/* ShellCove 官网：只写 kit 没有的视觉内部样式，颜色与字形全部来自 system.css 的 token。 */

:root {
  /* the lit ground behind the product windows: a pale desk, so the dark app reads as the real thing */
  --ground-bg: #d9e6e3;
  --ground-surface: #eef4f2;
  --ground-ink: #0c0e10;
  --ground-accent: #0f9f92;
}

/* ---------------------------------------------------------------- the app window */
.hero--centred h1 { max-width: 18ch; }

.hero__window {
  background: transparent;
}

.sc-win {
  background: #101215;
  color: #eceef0;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px -32px rgb(0 0 0 / .8), 0 2px 0 rgb(255 255 255 / .04) inset;
  text-align: left;
  font-family: var(--font-text);
  font-size: 13px;
  line-height: 1.45;
}

.sc-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  background: #171a1e;
  border-bottom: 1px solid rgb(255 255 255 / .08);
}

.sc-dots { display: inline-flex; gap: 6px; }
.sc-dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3f45; }
.sc-dots i:nth-child(1) { background: #ff5f57; }
.sc-dots i:nth-child(2) { background: #febc2e; }
.sc-dots i:nth-child(3) { background: #28c840; }
.sc-title { font-weight: 500; color: #dfe3e7; }
.sc-appicon { display: block; border-radius: 3px; }
.sc-term__name { display: inline-flex; align-items: center; gap: 8px; }
.sc-more { margin-top: var(--s-6); }
.sc-h2-icon { display: inline-block; width: 28px; height: 28px; margin-right: 10px; vertical-align: -4px; border-radius: 6px; }
.sc-sp { flex: 1; }

.sc-kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8b9299;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 5px;
  padding: 0 5px;
  line-height: 17px;
}

.sc-body { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 360px; }
.sc-side { border-right: 1px solid rgb(255 255 255 / .08); padding: 10px; background: #121518; }

.sc-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 9px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgb(255 255 255 / .05);
  color: #858c93;
}

.sc-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 6px 6px;
  font-size: 12px;
  color: #7d848b;
}
.sc-group span { font-variant-numeric: tabular-nums; }

.sc-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
}
.sc-row.is-on { background: rgb(255 255 255 / .07); }
.sc-row__text { display: grid; min-width: 0; }
.sc-row__text b { font-weight: 500; color: #e8ebee; font-size: 13px; }
.sc-row__text em { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: #7d848b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sc-dot { width: 8px; height: 8px; border-radius: 2px; }
.sc-dot--prod { background: #ff6b5e; }
.sc-dot--stage { background: #ffb340; }
.sc-dot--dev { background: #58a6ff; }

.sc-chip {
  font-size: 12px;
  line-height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.sc-chip--prod { color: #ff8b81; background: rgb(255 107 94 / .14); border-color: rgb(255 107 94 / .28); }
.sc-chip--stage { color: #ffc46b; background: rgb(255 179 64 / .13); border-color: rgb(255 179 64 / .26); }
.sc-chip--dev { color: #85baff; background: rgb(88 166 255 / .14); border-color: rgb(88 166 255 / .28); }

.sc-detail { padding: 16px 20px; min-width: 0; }
.sc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sc-name { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: #f2f4f6; }
.sc-meta { margin: 2px 0 0; font-family: var(--font-mono); font-size: 12px; color: #858c93; }
.sc-connect {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: #3ecfbf;
  color: #06201d;
  font-weight: 500;
  white-space: nowrap;
}

.sc-label { margin: 18px 0 6px; font-size: 12px; color: #7d848b; }
.sc-note { margin: 0; color: #cfd4d8; line-height: 1.65; }
.sc-note code {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgb(255 255 255 / .08);
  color: #e9edef;
}

.sc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; margin: 14px 0 0; }
.sc-facts dt { font-size: 12px; color: #7d848b; }
.sc-facts dd { margin: 1px 0 0; font-size: 13px; color: #dfe3e7; }

.sc-log {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid rgb(255 255 255 / .07);
  font-size: 12px;
  color: #a7adb3;
  font-variant-numeric: tabular-nums;
}
.sc-log:first-of-type { border-top: 0; }
.sc-ok { color: #7dd8c8; }
.sc-bad { color: #ff8b81; }

/* ---------------------------------------------------------------- section two: the flow */
.sc-flow { align-items: start; }
#flow .section-head { margin-bottom: var(--s-5); }
.sc-steps { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.sc-step__head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.sc-steps h3 { margin: 0; font: 500 20px/1.3 var(--font-text); letter-spacing: -.01em; }
.sc-steps p { margin: 0; color: var(--muted); }
.sc-steps .step-num { flex: none; }

.sc-panel {
  padding: 20px;
  border-radius: var(--r-lg);
  min-height: 340px;
}
.sc-panel > .sc-win { height: 100%; min-height: 300px; }
.sc-win--flat { border-radius: 10px; box-shadow: 0 20px 40px -24px rgb(0 0 0 / .55); }
.sc-win--flat .sc-bar { height: 32px; }

.sc-form { display: grid; gap: 10px; padding: 14px 16px 16px; }
.sc-form label { display: grid; gap: 4px; font-size: 12px; color: #8b9299; }
.sc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc-input {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: #181c20;
  border: 1px solid rgb(255 255 255 / .09);
  color: #e6eaed;
  font-size: 13px;
}
.sc-area {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  background: #181c20;
  border: 1px solid rgb(255 255 255 / .09);
  color: #e6eaed;
  font-size: 13px;
  line-height: 1.6;
  min-height: 52px;
}
.sc-actions { display: flex; gap: 8px; margin-top: 4px; }
.sc-btn, .sc-btn2 {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 500;
}
.sc-btn { background: #3ecfbf; color: #06201d; }
.sc-btn2 { background: rgb(255 255 255 / .07); color: #d5dade; }

/* ---------------------------------------------------------------- section three: environment */
.sc-panel-sc { padding: 20px; min-height: 300px; }
.sc-mini {
  background: #101215;
  border: 1px solid rgb(255 255 255 / .09);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 20px 40px -26px rgb(0 0 0 / .5);
}
.sc-mini .sc-row + .sc-row { margin-top: 2px; }

.sc-pal { background: #101215; border: 1px solid rgb(255 255 255 / .09); border-radius: 10px; padding: 10px; box-shadow: 0 20px 40px -26px rgb(0 0 0 / .5); }
.sc-pal__input {
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #181c20;
  border: 1px solid #3ecfbf;
  color: #e6eaed;
}
.sc-caret { position: relative; padding-right: 2px; }
.sc-caret::after { content: ""; display: inline-block; width: 2px; height: 14px; margin-left: 2px; vertical-align: -2px; background: #3ecfbf; }
.sc-pal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #cfd4d8;
  font-size: 13px;
}
.sc-pal__row.is-on { background: rgb(255 255 255 / .07); }
.sc-dim { color: #858c93; font-size: 12px; }

/* ---------------------------------------------------------------- section four: connect */
.sc-connect-row h2 { margin-bottom: var(--s-4); }
.sc-session {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4) var(--s-5);
  margin: var(--s-7) 0 0;
}
.sc-session dt { font-size: var(--t-small); color: var(--muted); }
.sc-session dd { margin: 2px 0 0; font-size: var(--t-lead); font-weight: 500; font-variant-numeric: tabular-nums; }
.sc-term {
  background: #0b0d0f;
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .7);
  color: #d7dbde;
}
.sc-term__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 38px;
  padding: 0 16px;
  background: #14171a;
  border-bottom: 1px solid rgb(255 255 255 / .08);
  font-size: 13px;
  font-weight: 500;
}
.sc-term__body { padding: 18px 16px 20px; font-family: var(--font-mono); font-size: 13px; line-height: 1.9; }
.sc-term__body p { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.sc-prompt { color: #3ecfbf; }
.sc-cursor { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: #3ecfbf; }
.sc-term__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-top: 1px solid rgb(255 255 255 / .08);
  background: #121518;
  font-size: 12px;
  color: #8b9299;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- section five: the statement */
.sc-statement { max-width: none; }
.sc-statement p { max-width: 56ch; }
.sc-local { margin-top: var(--s-8); align-items: start; }
.sc-facts-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) var(--gutter);
  margin: 0;
}
.sc-facts-row dt { font-size: var(--t-small); color: var(--muted); }
.sc-facts-row dd { margin: 4px 0 0; font-size: var(--t-lead); font-weight: 500; }
.sc-limit h3 { font: 500 var(--t-small)/1.4 var(--font-text); color: var(--muted); margin: 0 0 var(--s-3); }
.sc-limit .rows { margin: 0; }

/* ---------------------------------------------------------------- questions */
.sc-faq p { color: var(--muted); }
.sc-mini__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #cfd4d8;
}

/* ---------------------------------------------------------------- the close */
.close__name {
  margin: var(--s-7) 0 0;
  font: var(--display-weight) clamp(72px, 11vw, 150px)/1 var(--font-display);
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: color-mix(in oklab, var(--ink) 13%, transparent);
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 639px) {
  .nav .nav__actions { display: none; }
  .hero__c .pill .muted { display: none; }
  .sc-panel-sc { --p-h: 260px; min-height: 260px; }
  .sc-panel-sc .sc-row { padding-block: 5px; }
  .sc-term__body p:nth-child(n+8) { display: none; }
  .sc-form > label:last-of-type, .sc-form .sc-actions { display: none; }
  .sc-form .sc-two:nth-of-type(2) { display: none; }
  .sc-panel { --p-h: 160px; min-height: 160px; padding: 8px; }
  .sc-steps { gap: 14px; }
  .sc-form { gap: 8px; }
  .section-head { margin-bottom: var(--s-3); }
  #questions .sc-mini { margin-top: var(--s-5); }
  #questions .sc-mini .sc-log:nth-of-type(n+3) { display: none; }
  .sc-faq .faq__item { padding: 0; }
  #local .section-head { margin-bottom: var(--s-3); }
  .sc-local { margin-top: var(--s-4); }
  .sc-faq .faq__item:last-child { display: none; }
  #environments { --hm: 2; }
  .sc-panel .sc-bar { display: none; }
  .sc-panel > .sc-win { min-height: 0; }
  .sc-more { display: none; }
  .sc-faq .faq__item { padding: 4px 0; gap: 4px; }
  .sc-statement p { font-size: var(--t-body); }
  .mo-lt__type { font-size: clamp(44px, 12.5vw, 60px); }
  .sc-local { margin-top: var(--s-6); }
  .sc-faq .faq__item { padding: 12px 0; }
  .close__name, .footer__lede { display: none; }
  .close__name { font-size: 56px; }
}

@media (max-width: 1023px) {
  .sc-mini .sc-log:nth-of-type(n+5) { display: none; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .mo-io { --mo-gap: 24px; }
  .mo-io__ring { display: none; }
  .sc-panel-sc { --p-h: 150px; min-height: 150px; }
  #environments .sc-more { display: none; }
  #environments .section-head { margin-bottom: var(--s-4); }
  #environments .card { grid-column: auto / span 6; }
  #environments .card:nth-child(3) { grid-column: 1 / -1; }
  .sc-term__body { font-size: 12px; line-height: 1.75; }
  .sc-term__body p:nth-child(n+21) { display: none; }
  .sc-form > label:last-of-type, .sc-form .sc-actions { display: none; }
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1023px) {
  .sc-body { grid-template-columns: 240px minmax(0, 1fr); }
  .sc-facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .sc-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .sc-side { display: none; }
  .sc-detail { padding: 14px 16px 18px; }
  .sc-name { font-size: 16px; }
  .sc-label { margin-top: 12px; }
  .sc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-log:nth-of-type(2) { display: none; }
  .sc-panel { min-height: 0; }
  .sc-panel > .sc-win { min-height: 0; }
  .sc-form { padding: 14px; }
  .sc-two { grid-template-columns: 1fr; }
  .sc-steps { gap: 18px; }
  .sc-term__body { font-size: 12px; line-height: 1.8; }
  .sc-facts-row { grid-template-columns: 1fr 1fr; margin-top: var(--s-6); }
}

/* CJK: the word mask wraps the whole headline in one inline-block, which re-flows the line box */
.hero[data-enter] h1 .m-w { display: inline; padding-bottom: 0; margin-bottom: 0; }
.hero[data-enter] h1 .m-w__in { display: inline; }

/* ---------------------------------------------------------------- typography and rhythm pass */
.hero h1 { letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
.section h2, footer.closing h2 { letter-spacing: -0.02em; line-height: 1.14; text-wrap: balance; }
.hero__lead { max-width: 620px; line-height: 1.65; }
.section-head p { max-width: 44ch; line-height: 1.7; }
.faq p { line-height: 1.7; }
.card > p { line-height: 1.65; }
h3 { letter-spacing: -0.01em; }

/* the app mocks sit in the middle of their lit frame, not at its top */
.sc-panel-sc { display: grid; align-content: center; }

/* the section-two frame takes the screen's spare height on a wide desktop */
@media (min-width: 1280px) {
  .sc-panel { min-height: 500px; }
  .sc-panel > .sc-win { min-height: 440px; }
}

/* the records panel's header and rows read as one list */
.sc-mini .sc-log:last-of-type { border-bottom: 0; }

/* the environment link is a phone aid; the desktop section needs no second action */
#environments .sc-more { display: none; }
@media (max-width: 639px) { #environments .sc-more { display: block; } }

/* the head line's macOS leaves the phone headline, where the line would break before 的 */
@media (max-width: 639px) { .hero-os { display: none; } }

/* a slightly fuller watermark at the foot */
.close__name { color: color-mix(in oklab, var(--ink) 16%, transparent); }

/* 品牌标记：内联 SVG，方框与提示符跟随文字色，浪线用强调色 */
.nav__logo .brand-mark { flex: none; overflow: visible; }
@media (max-width: 639px) { .nav__logo .brand-mark { height: 20px; } }

.hero__window .sc-log--second { display: none; }

/* ---------------------------------------------------------------- live prototype */
.sc-demo {
  position: relative;
  height: 660px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  background: #101215;
}
.sc-demo iframe { display: block; width: 100%; height: 100%; border: 0; background: #101215; }
.section-head .sc-demo-lead { max-width: 680px; }
@media (min-width: 1024px) and (max-width: 1279px) { .sc-demo { height: 440px; } }
@media (min-width: 640px) and (max-width: 1023px) { .sc-demo { height: 520px; } }
@media (max-width: 639px) {
  #demo, .nav__item--demo { display: none; }
}
.sc-demo:focus-within { outline: 2px solid var(--action); outline-offset: 3px; }
.sc-demo iframe { outline: none; }

/* the GitHub entry beside the download button */
.nav__gh {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color .18s, border-color .18s, background .18s;
}
.nav__gh:hover { color: var(--ink); border-color: var(--soft); background: var(--surface); }
.nav__gh svg { display: block; width: 18px; height: 18px; }

/* the legal row's quiet links */
.footer__legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.footer__legal-links a { color: var(--muted); text-decoration: none; }
.footer__legal-links a:hover { color: var(--ink); }

@media (max-width: 639px) {
  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 11px;
    margin-top: 0;
    padding-top: var(--s-4);
    line-height: 1.2;
  }
  .footer__legal-links { display: none; }
  .legal-trust, .legal-license, .legal-issues, .legal-dev { display: none; }
  .legal-inline-mail, .legal-inline-sep { display: inline; color: inherit; text-decoration: none; }
}

@media (min-width: 640px) {
  .legal-inline-mail, .legal-inline-sep { display: none; }
}
