/* PaloAlly — landing page.
   Quiet paper, ink type, one living mark. Glass only in the mark and the nav pill. */

:root {
  --paper: #F7F6F3;
  --paper-2: #EEECE7;
  --raised: #FFFFFF;
  --ink: #141416;
  --ink-2: #55545A;
  --ink-3: #8B8A90;
  --line: rgba(20, 20, 22, 0.11);
  --line-2: rgba(20, 20, 22, 0.06);
  --accent: #B53C86;
  --accent-soft: rgba(209, 86, 167, 0.14);
  --magenta: #D156A7;

  --phone-frame: #E6E4DF;
  --phone-bg: #FFFFFF;
  --phone-ink: #121214;
  --phone-2: #737378;
  --phone-3: #A3A3A8;
  --phone-fill: #F1F1F3;
  --phone-line: rgba(0, 0, 0, 0.09);

  --nav-glass: rgba(247, 246, 243, 0.62);
  --nav-edge: rgba(255, 255, 255, 0.7);
  --shadow-phone: 0 50px 90px -40px rgba(30, 24, 36, 0.32), 0 18px 40px -24px rgba(30, 24, 36, 0.18);

  --serif-en: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --serif-zh: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "Instrument Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;

  --gutter: clamp(16px, 4.2vw, 48px);
  --maxw: 1200px;
  --section: clamp(104px, 13vw, 184px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B0B0D;
    --paper-2: #17171A;
    --raised: #131316;
    --ink: #EDEBE6;
    --ink-2: #A7A5AB;
    --ink-3: #6F6E74;
    --line: rgba(255, 255, 255, 0.11);
    --line-2: rgba(255, 255, 255, 0.06);
    --accent: #E68DC6;
    --accent-soft: rgba(230, 141, 198, 0.18);
    --phone-frame: #1D1D20;
    --phone-bg: #0F0F11;
    --phone-ink: #F2F2F4;
    --phone-2: #8E8E93;
    --phone-3: #5D5D62;
    --phone-fill: #1F1F22;
    --phone-line: rgba(255, 255, 255, 0.10);
    --nav-glass: rgba(18, 18, 21, 0.58);
    --nav-edge: rgba(255, 255, 255, 0.08);
    --shadow-phone: 0 50px 90px -40px rgba(0, 0, 0, 0.8), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B0B0D;
  --paper-2: #17171A;
  --raised: #131316;
  --ink: #EDEBE6;
  --ink-2: #A7A5AB;
  --ink-3: #6F6E74;
  --line: rgba(255, 255, 255, 0.11);
  --line-2: rgba(255, 255, 255, 0.06);
  --accent: #E68DC6;
  --accent-soft: rgba(230, 141, 198, 0.18);
  --phone-frame: #1D1D20;
  --phone-bg: #0F0F11;
  --phone-ink: #F2F2F4;
  --phone-2: #8E8E93;
  --phone-3: #5D5D62;
  --phone-fill: #1F1F22;
  --phone-line: rgba(255, 255, 255, 0.10);
  --nav-glass: rgba(18, 18, 21, 0.58);
  --nav-edge: rgba(255, 255, 255, 0.08);
  --shadow-phone: 0 50px 90px -40px rgba(0, 0, 0, 0.8), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ------------------------------------------------------------ language */

:root[data-lang="zh"] .en,
:root[data-lang="en"] .zh { display: none !important; }

/* ------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:root[data-lang="zh"] body { line-height: 1.78; letter-spacing: 0.01em; }
::selection { background: var(--accent-soft); }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: 0.86em; }
p code, dd code, .note code {
  padding: 0.1em 0.42em;
  border-radius: 6px;
  background: var(--paper-2);
  white-space: nowrap;
}

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------ type */

.display, .display-2 { font-family: var(--serif-en); font-weight: 400; color: var(--ink); }
.display {
  font-size: clamp(46px, 6.9vw, 100px);
  line-height: 0.96;
  letter-spacing: -0.018em;
}
.display em { font-style: italic; }
.display .nb { white-space: nowrap; }
.display-2 {
  font-size: clamp(38px, 4.9vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
:root[data-lang="zh"] .display,
:root[data-lang="zh"] .display-2 { font-family: var(--serif-zh); font-weight: 600; letter-spacing: 0.02em; }
:root[data-lang="zh"] .display { font-size: clamp(42px, 6vw, 82px); line-height: 1.16; }
:root[data-lang="zh"] .display-2 { font-size: clamp(30px, 3.7vw, 50px); line-height: 1.3; }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
:root[data-lang="zh"] .kicker { letter-spacing: 0.24em; font-size: 13px; }
.kicker::before { content: ""; width: 18px; height: 1px; background: var(--accent); }

.body { color: var(--ink-2); font-size: 18px; max-width: 34em; }
:root[data-lang="zh"] .body { font-size: 17px; max-width: 31em; }
.narrow { max-width: 31em; }

/* ------------------------------------------------------------ nav (the one piece of glass) */

.nav {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--gutter)), 720px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 7px 7px 16px;
  border-radius: 999px;
  background: var(--nav-glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 var(--nav-edge), 0 10px 30px -18px rgba(20, 20, 30, 0.25);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.nav-links a { padding: 7px 12px; border-radius: 999px; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.lang {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
  transition: border-color .2s, background .2s;
}
.lang:hover { border-color: var(--ink-3); }
@media (max-width: 520px) {
  .nav-links a[href="#start"] { display: none; }
}

/* ------------------------------------------------------------ hero */

.hero { padding: clamp(120px, 15vh, 170px) 0 clamp(56px, 8vw, 110px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: min(calc(100svh - 230px), 760px);
}
.eyebrow { font-size: 14px; color: var(--ink-3); margin-bottom: 28px; letter-spacing: 0.02em; }
.hero .display { margin-bottom: 30px; }
.lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 31em; margin-bottom: 40px; }
:root[data-lang="zh"] .lede { font-size: 18px; line-height: 1.85; max-width: 28em; }
.hero-meta { margin-top: 18px; font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hero-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); opacity: .6; }
.hero-meta a { color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.hero-meta a:hover { color: var(--ink); border-color: var(--ink-3); }

.hero-mark { position: relative; display: flex; flex-direction: column; align-items: center; }
#hero-drops { width: 100%; max-width: 600px; aspect-ratio: 1 / 1; }
.hero-mark figcaption { margin-top: -4px; font-size: 13px; color: var(--ink-3); text-align: center; }

/* the install command */
.cmd {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 7px 7px 7px 18px;
  border-radius: 14px;
  background: var(--raised);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line-2);
}
.cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 13.5px;
  line-height: 32px;
  color: var(--ink);
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.cmd code::-webkit-scrollbar { display: none; }
.cmd-prompt { font-family: var(--mono); font-size: 13.5px; color: var(--ink-3); user-select: none; }
.copy {
  flex: none;
  height: 32px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper-2);
  transition: background .2s, color .2s;
}
.copy:hover { background: var(--line); }
.copy.done { color: var(--accent); }
.cmd-hero { max-width: 560px; }

/* install command + Mac download, side by side when there's room */
.hero-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; max-width: 720px; }
.hero-actions .cmd-hero { flex: 1 1 320px; min-width: 0; max-width: none; }
.dl {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px 0 17px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: opacity .2s, transform .2s cubic-bezier(.3, 1.4, .5, 1);
}
.dl:hover { opacity: .86; }
.dl:active { transform: scale(.98); }
.dl-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-quiet { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.dl-quiet:hover { opacity: 1; box-shadow: inset 0 0 0 1px var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .dl { transition: none; } }

/* ------------------------------------------------------------ section rhythm */

.story, .drops-sec, .yours, .start { padding: var(--section) 0 0; }
.section-head { max-width: 860px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .body { margin-top: 26px; }

/* ------------------------------------------------------------ a day */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(40px, 8vw, 128px);
  align-items: start;
}
.steps { position: relative; padding: 6vh 0 18vh 34px; }
.steps::before { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, var(--line) 8%, var(--line) 85%, transparent); }
.step {
  position: relative;
  min-height: 56vh;
  padding: 9vh 0;
  max-width: 30em;
  opacity: .3;
  transition: opacity .6s ease;
}
.step::before {
  content: "";
  position: absolute; left: -34px; top: calc(9vh + 6px);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--ink-3);
  transition: background .4s, box-shadow .4s, transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.step.on::before { background: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px var(--accent-soft); }
.step:first-child::before { top: calc(14vh + 6px); }
.step:first-child { padding-top: 14vh; }
.step.on { opacity: 1; }
.step-time { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.step h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; margin-bottom: 14px; }
:root[data-lang="zh"] .step h3 { font-size: 22px; letter-spacing: 0.02em; }
.step > p:not(.step-time) { color: var(--ink-2); font-size: 18px; }
:root[data-lang="zh"] .step > p:not(.step-time) { font-size: 17px; }
.inline-scene { display: none; }

.phone-col { position: sticky; top: max(96px, calc(50vh - min(350px, 40vh))); }
.phone {
  height: min(700px, 80vh);
  aspect-ratio: 9 / 18.9;
  padding: 9px;
  border-radius: 56px;
  background: var(--phone-frame);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .55), var(--shadow-phone);
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 47px;
  background: var(--phone-bg);
  color: var(--phone-ink);
  font-family: var(--system);
  font-size: 14px;
  line-height: 1.48;
  letter-spacing: 0;
  container-type: inline-size;
}
.island { position: absolute; top: 11px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 3; }
.app-bar {
  position: absolute;
  top: 54px; left: 14px; right: 14px;
  height: 44px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 2;
}
.app-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--phone-fill);
  border: 1px solid var(--phone-line);
  color: var(--phone-ink);
}
.app-btn svg, .composer svg, .u-meta svg, .task-chip svg, .doc svg, .shield { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-btn svg { width: 19px; height: 19px; }
.app-orb { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; }
.app-orb canvas { width: 100%; height: 100%; }
.scenes {
  position: absolute; top: 104px; left: 18px; right: 18px; bottom: 86px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 64px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 64px);
}
.thread {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 22px;
  transition: transform .9s cubic-bezier(.22, .8, .2, 1);
}
.scene {
  display: flex; flex-direction: column; gap: 10px;
  transition: opacity .6s ease;
}
.scene.later { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .thread, .scene { transition: none; } }
.day-mark { align-self: center; font-size: 11px; color: var(--phone-3); margin-bottom: 4px; }
.a-text { font-size: 14.5px; }
.u-row { display: flex; justify-content: flex-end; }
.u-bubble { max-width: 82%; padding: 9px 14px; border-radius: 19px; background: var(--phone-fill); font-size: 14.5px; }
.u-meta { align-self: flex-end; display: flex; align-items: center; gap: 4px; margin-top: -4px; font-size: 11px; color: var(--phone-2); }
.u-meta svg { width: 13px; height: 13px; }
.card { border: 1px solid var(--phone-line); border-radius: 18px; padding: 12px 14px 13px; }
.card-title { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.card-time { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--phone-3); }
.brief ul li { position: relative; padding-left: 12px; font-size: 13px; color: var(--phone-2); line-height: 1.55; }
.brief ul li::before { content: ""; position: absolute; left: 1px; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: var(--phone-3); }
.goal { padding: 11px 14px 13px; border-radius: 16px; background: var(--phone-fill); }
.goal-name { font-size: 13px; font-weight: 600; }
.goal-line { font-size: 12.5px; color: var(--phone-2); margin: 1px 0 9px; }
.goal-bar { display: block; height: 3px; border-radius: 3px; background: var(--phone-line); overflow: hidden; }
.goal-bar i { display: block; height: 100%; border-radius: 3px; background: var(--magenta); }
.task-chip {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--phone-fill);
  font-size: 12.5px;
}
.task-chip b { font-weight: 400; color: var(--phone-2); }
.task-chip.working i { width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); animation: pulse 1.6s ease-in-out infinite; }
.task-chip.ok svg { width: 15px; height: 15px; color: #fff; fill: #34C759; stroke: #fff; stroke-width: 2; }
.task-chip.ok svg circle { stroke: none; }
.task-chip .chev { width: 13px; height: 13px; fill: none; stroke: var(--phone-3); stroke-width: 2; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .task-chip.working i { animation: none; } }
.approval .shield { width: 17px; height: 17px; color: #FF9500; }
.card-body { font-size: 12.5px; color: var(--phone-2); line-height: 1.55; }
.card-meta { font-size: 11.5px; color: var(--phone-3); margin: 6px 0 10px; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; height: 34px; display: grid; place-items: center; border-radius: 999px; background: var(--phone-fill); font-size: 13.5px; font-weight: 500; }
.a-list li { position: relative; padding-left: 13px; font-size: 13.5px; line-height: 1.55; }
.a-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: var(--phone-ink); opacity: .55; }
.artifact { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--phone-line); }
.doc { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--phone-fill); color: var(--phone-2); }
.doc svg { width: 19px; height: 19px; }
.artifact-text { display: flex; flex-direction: column; }
.artifact-text b { font-weight: 600; font-size: 13.5px; }
.artifact-text small { font-size: 11.5px; color: var(--phone-2); }
.composer {
  position: absolute; left: 12px; right: 12px; bottom: 20px;
  height: 50px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  border-radius: 25px;
  background: var(--phone-fill);
  border: 1px solid var(--phone-line);
  color: var(--phone-2);
}
.composer .plus { font-size: 22px; font-weight: 300; line-height: 1; color: var(--phone-ink); }
.composer .hint { flex: 1; text-align: center; font-size: 13.5px; color: var(--phone-3); }
.composer svg { width: 19px; height: 19px; color: var(--phone-ink); }

/* ------------------------------------------------------------ it and you */

.drops-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.drops-copy .display-2 { margin-bottom: 26px; }
.states { margin-top: 44px; border-bottom: 1px solid var(--line); }
.states li { border-top: 1px solid var(--line); }
.states button {
  width: 100%;
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  text-align: left;
  font-size: 15px;
  color: var(--ink-3);
  transition: color .25s;
}
:root[data-lang="zh"] .states button { grid-template-columns: 6.5em minmax(0, 1fr); }
.states button b { position: relative; font-weight: 500; color: var(--ink-2); transition: color .25s; }
.states button b::before {
  content: "";
  position: absolute;
  left: -16px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.states button:hover b { color: var(--ink); }
.states button[aria-pressed="true"] { color: var(--ink-2); }
.states button[aria-pressed="true"] b { color: var(--ink); }
.states button[aria-pressed="true"] b::before { transform: scale(1); }
.drops-stage { position: relative; }
#states-drops { width: 100%; aspect-ratio: 1 / 1; max-width: 620px; margin: 0 auto; }

/* ------------------------------------------------------------ yours */

.route {
  display: grid;
  grid-template-columns: auto minmax(60px, 1fr) auto minmax(60px, 1fr) auto;
  align-items: center;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.node {
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--raised);
}
.node b { display: block; font-size: 15px; font-weight: 600; }
.node small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.node small.mono { font-family: var(--mono); font-size: 12px; }
.wire { position: relative; height: 1px; background: var(--line); margin: 0 6px; }
.wire > span {
  position: absolute; left: 50%; bottom: 10px;
  transform: translateX(-50%);
  font-size: 12px; color: var(--ink-3); white-space: nowrap;
}
.wire::after {
  content: "";
  position: absolute; top: -2.5px; left: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--magenta);
  opacity: 0;
  animation: travel 3.6s cubic-bezier(.5, 0, .5, 1) infinite;
}
.wire:nth-of-type(4)::after { animation-delay: 1.8s; }
@keyframes travel {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wire::after { animation: none; } }

.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); }
.facts > div { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.facts dt { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
:root[data-lang="zh"] .facts dt { font-size: 17px; letter-spacing: 0.02em; }
.facts dd { color: var(--ink-2); font-size: 16.5px; max-width: 28em; }

/* ------------------------------------------------------------ get started */

.install-steps { border-bottom: 1px solid var(--line); }
.install-steps li {
  display: grid;
  grid-template-columns: 56px minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.install-steps .n { font-family: var(--serif-en); font-size: 34px; line-height: 1; color: var(--ink-3); }
.install-text h3 { font-size: 19px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
:root[data-lang="zh"] .install-text h3 { letter-spacing: 0.02em; }
.install-text p { font-size: 15.5px; color: var(--ink-2); }
.note {
  margin-top: 40px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 820px;
}
.note b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.note code { background: var(--raised); }
.note-app { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.note-app p { flex: 1 1 420px; min-width: 0; }

/* ------------------------------------------------------------ footer */

.foot { margin-top: var(--section); border-top: 1px solid var(--line); }
.foot-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 30px; padding-bottom: 44px; font-size: 14px; color: var(--ink-3); }
.foot-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; }
.foot-links { display: flex; gap: 22px; }
.foot-links a:hover { color: var(--ink); }

/* ------------------------------------------------------------ reveal */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* no WebGL: the static mark */
canvas.drops-fallback { background: url(favicon.svg) center / 46% no-repeat; }

/* ------------------------------------------------------------ narrow screens */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-mark { order: -1; margin: -18px auto 4px; width: min(76vw, 420px); }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .phone-col { display: none; }
  .steps { padding: 0; }
  .steps { padding-left: 0; }
  .steps::before, .step::before { display: none; }
  .step { min-height: 0; padding: 0 0 64px; opacity: 1; }
  .step:first-child { padding-top: 0; }
  .inline-scene {
    display: block;
    margin-top: 26px;
    padding: 18px 16px 20px;
    border-radius: 24px;
    background: var(--phone-bg);
    border: 1px solid var(--line);
    color: var(--phone-ink);
    font-family: var(--system);
    font-size: 14px;
    line-height: 1.48;
  }
  :root[data-lang="zh"] .inline-scene { letter-spacing: 0; }
  .inline-scene .scene, .inline-scene .scene.later { opacity: 1; }
  .drops-grid { grid-template-columns: minmax(0, 1fr); }
  .drops-stage { order: -1; width: min(86vw, 480px); margin: 0 auto; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .install-steps li { grid-template-columns: 40px minmax(0, 1fr); row-gap: 14px; }
  .install-steps .cmd { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .display { font-size: clamp(40px, 11.4vw, 60px); }
  :root[data-lang="zh"] .display { font-size: clamp(34px, 9.6vw, 52px); }
  .display-2 { font-size: clamp(32px, 9vw, 44px); }
  :root[data-lang="zh"] .display-2 { font-size: clamp(26px, 7.2vw, 36px); }
  .hero { padding-top: 96px; }
  .hero-actions .dl { flex: 1 1 100%; }
  .lede { font-size: 18px; }
  :root[data-lang="zh"] .lede { font-size: 17px; }
  .route { grid-template-columns: 1fr; justify-items: start; }
  .wire { width: 1px; height: 40px; margin: 6px 0 6px 28px; }
  .wire > span { left: 18px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .wire::after { animation-name: travel-v; left: -2.5px; }
  @keyframes travel-v {
    0% { top: 0; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { top: calc(100% - 6px); opacity: 0; }
  }
  .node { width: 100%; }
  .foot-grid { flex-direction: column; align-items: flex-start; }
}
