/* ==========================================================================
   Yīnyáng · product page
   A long-form, Apple-inspired surface for the real local web app.
   This file only styles the product page. The app inside .phone keeps its
   own variables and component styles from styles.css.
   ========================================================================== */

:root {
  --paper: #f1eee5;
  --paper-raised: #faf8f1;
  --paper-deep: #e7e3d7;
  --ink: #171914;
  --ink-soft: #3d4238;
  --ink-muted: #5f6755;
  --ink-faint: #626b56;
  --line: #17191414;
  --line-strong: #17191424;
  --sage: #59684a;
  --sage-light: #c9d3b8;
  --sage-dark: #2f3a2a;
  --vermillion: #c8102e;
  --night: #10120e;
  --night-raised: #181b15;
  --night-line: #ffffff14;
  --night-text: #f2f0e6;
  --night-muted: #a8ad9d;
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --page-gutter: clamp(22px, 5vw, 72px);
  --max-width: 1260px;
  --serif: Georgia, 'Times New Roman', 'Noto Serif SC', serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.2, .8, .2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  background: var(--paper);
}

body.product-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.product-page ::selection { background: #c8102e2b; }
body.product-page img { max-width: 100%; display: block; }
body.product-page p { margin: 0; }
body.product-page h1,
body.product-page h2,
body.product-page h3,
body.product-page h4 { margin: 0; }

.product-page .skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 2000;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}
.product-page .skip-link:focus { top: 18px; }

/* Page atmosphere ---------------------------------------------------------- */
.page-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 82% 3%, #fffdf7 0%, transparent 62%),
    radial-gradient(ellipse 70% 45% at 4% 36%, #dfe4d2a6 0%, transparent 55%),
    linear-gradient(180deg, #f4f1e8 0%, #eeece2 100%);
}
.ambient-glyph {
  position: absolute;
  font-family: 'Noto Serif SC', var(--serif);
  color: #2f3a2a08;
  line-height: 1;
  user-select: none;
}
.ambient-glyph-a { font-size: min(50vw, 620px); top: -110px; right: -90px; transform: rotate(-7deg); }
.ambient-glyph-b { font-size: min(36vw, 430px); left: -120px; top: 58vh; transform: rotate(6deg); color: #c8102e06; }
.ambient-grain {
  position: absolute;
  inset: 0;
  opacity: .23;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.22' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1500;
  background: transparent;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--vermillion));
  transition: width .08s linear;
}

/* Shared typography ------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--sage);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vermillion);
  box-shadow: 0 0 0 4px #c8102e12;
}

.section {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(90px, 11vw, 160px) var(--page-gutter);
}

.section-heading {
  max-width: 790px;
  margin-bottom: clamp(42px, 6vw, 78px);
}
.section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.section-heading h2 em,
.hero h1 em,
.privacy-copy h2 em,
.closing-inner h2 em {
  color: var(--sage);
  font-weight: 400;
}
.section-heading > p:last-child {
  max-width: 610px;
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.75;
}
.section-heading-dark { color: var(--night-text); }
.section-heading-dark .eyebrow { color: var(--sage-light); }
.section-heading-dark h2 em { color: #c9d3b8; }
.section-heading-dark > p:last-child { color: var(--night-muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: transform .35s var(--ease-out), background .25s, color .25s, border-color .25s, box-shadow .35s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.985); }
.button-primary {
  background: var(--ink);
  color: var(--paper) !important;
  box-shadow: 0 12px 30px -14px #171914a6, inset 0 1px 0 #ffffff1f;
}
.button-primary:hover { background: #2a2f25; box-shadow: 0 18px 38px -16px #171914b3; }
.button-quiet {
  border-color: var(--line-strong);
  background: #ffffff3d;
  color: var(--ink);
  backdrop-filter: blur(12px);
}
.button-quiet:hover { background: #ffffffe0; border-color: #1719143d; }
.button-light { background: #f4f1e8; color: #171914 !important; }
.button-light:hover { background: #fffdf7; }
.button-arrow {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffff1a;
  font-size: 14px;
  transition: transform .35s var(--ease-out);
}
.button:hover .button-arrow { transform: translate(2px, 2px); }
.text-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--sage);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: gap .25s, border-color .25s;
}
.text-arrow:hover { gap: 13px; border-color: currentColor; }
.text-button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--night-muted);
  font-size: 12px;
  transition: color .2s;
}
.text-button:hover { color: var(--night-text); }
.mini-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.mini-list li {
  position: relative;
  padding-left: 23px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.55;
}
.mini-list li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: .52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px #6d7c5c18;
}
.section-heading-dark .mini-list li { color: var(--night-muted); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: min(calc(100% - 32px), 1290px);
  min-height: 64px;
  padding: 10px 12px 10px 22px;
  border: 1px solid #ffffff4f;
  border-radius: 999px;
  background: #f4f1e8a6;
  box-shadow: 0 12px 40px -24px #17191466, inset 0 1px 0 #ffffffe0;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  transform: translateX(-50%);
  transition: top .35s var(--ease-out), background .35s, box-shadow .35s, min-height .35s;
}
.site-header.scrolled {
  top: 8px;
  min-height: 56px;
  background: #f4f1e8d9;
  box-shadow: 0 16px 50px -24px #17191480, inset 0 1px 0 #ffffffe0;
}
.site-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
  white-space: nowrap;
}
.site-mark {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: #f4f1e8;
  font-size: 20px;
  font-weight: 400;
}
.site-mark img { width: 100%; height: 100%; object-fit: cover; }
.site-period { color: var(--vermillion); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  position: relative;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--ink); background: #1719140a; }
.site-nav a.active { color: var(--ink); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--vermillion);
  transform: translateX(-50%);
}
.site-actions { display: flex; align-items: center; gap: 8px; }
.script-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff4a;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s, transform .3s var(--ease-out);
}
.script-switch:hover { background: #fff; }
.script-switch:active { transform: scale(.96); }
.script-glyph {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--sage-dark);
  color: #f4f1e8;
  font-family: 'Noto Serif SC', var(--serif);
  font-size: 13px;
  transition: transform .45s var(--ease-out), background .3s;
}
.script-switch[aria-pressed="true"] .script-glyph { background: var(--vermillion); transform: rotate(180deg); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper) !important;
  font-size: 12.5px;
  font-weight: 600;
  transition: background .2s, transform .3s var(--ease-out);
}
.nav-cta:hover { background: #2a2f25; transform: translateY(-1px); }
.nav-cta span { font-size: 13px; }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow-x: clip;
  max-width: 1460px;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(128px, 15vh, 176px) var(--page-gutter) 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  align-items: center;
  gap: clamp(38px, 5vw, 80px);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-copy { position: relative; z-index: 2; }
.hero-eyebrow { margin-bottom: 26px; }
.hero h1 {
  max-width: 720px;
  font-family: var(--serif);
  font-size: clamp(58px, 8.1vw, 122px);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .94;
}
.hero h1 em { display: inline-block; }
.hero-lede {
  max-width: 510px;
  margin-top: 32px;
  color: var(--ink-muted);
  font-size: clamp(15.5px, 1.45vw, 18.5px);
  line-height: 1.72;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 36px; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-muted);
  font-size: 12px;
}
.hero-proof li { display: flex; align-items: center; gap: 7px; }
.proof-check {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #6d7c5c15;
  color: var(--sage);
  font-size: 9px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 690px;
  display: grid;
  place-items: center;
  perspective: 1500px;
}
.hero-halo {
  position: absolute;
  width: 630px;
  height: 630px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #e7eadc 38%, transparent 72%);
  filter: blur(4px);
  animation: halo-breathe 9s ease-in-out infinite;
}
.hero-orbit {
  position: absolute;
  border: 1px solid #17191410;
  border-radius: 50%;
  pointer-events: none;
}
.hero-orbit-a { width: 560px; height: 560px; }
.hero-orbit-b { width: 680px; height: 680px; border-style: dashed; opacity: .7; animation: orbit-spin 70s linear infinite; }
.hero-orbit-b::before {
  content: '';
  position: absolute;
  top: 17%;
  left: 4%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--vermillion);
  box-shadow: 0 0 0 6px #c8102e12;
}
.hero-device {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
  will-change: transform;
}
.hero-phone-frame {
  position: relative;
  width: 330px;
  padding: 9px;
  border-radius: 52px;
  background: linear-gradient(145deg, #74766a 0%, #252720 23%, #5c5e53 50%, #1b1d18 77%, #67695d 100%);
  box-shadow:
    0 60px 110px -50px #17191480,
    0 24px 50px -28px #17191466,
    inset 0 0 0 1px #c5c6b8,
    inset 0 0 0 4px #2e3029;
}
.hero-phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 44px;
  background: #101110;
  aspect-ratio: 407 / 852;
}
.hero-phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #ffffff14, inset 0 0 26px #0006;
  pointer-events: none;
}
.hero-phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.hero-island {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 104px;
  height: 29px;
  padding: 0 10px;
  border-radius: 999px;
  background: #050604;
  color: #d8e0ca;
  font-size: 12px;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px #ffffff0d;
}
.hero-island img { width: 18px; height: 18px; border-radius: 5px; }
.hero-island i {
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: #93a978;
  box-shadow: 0 0 0 3px #93a97824;
  animation: live-pulse 2.4s ease-in-out infinite;
}

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border: 1px solid #ffffff8c;
  border-radius: 17px;
  background: #fbfaf3d9;
  box-shadow: 0 18px 40px -24px #17191473, inset 0 1px 0 #fff;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: var(--ink);
  animation: float-y 7s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 12px; font-weight: 650; letter-spacing: -.01em; }
.float-card small { display: block; margin-top: 2px; color: var(--ink-muted); font-size: 10px; white-space: nowrap; }
.float-card-a { top: 16%; left: 1%; }
.float-card-b { right: -1%; top: 47%; animation-delay: -2.4s; }
.float-card-c { bottom: 12%; left: 4%; animation-delay: -4.2s; }
.float-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #6d7c5c16;
  color: var(--sage);
  font-size: 19px;
}
.float-glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: #f4f1e8;
  font-family: 'Noto Serif SC', serif;
  font-size: 23px;
}
.float-live {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #c8102e12;
}
.float-live i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--vermillion);
  box-shadow: 0 0 0 5px #c8102e1a;
  animation: live-pulse 2s ease-in-out infinite;
}
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--max-width);
  margin: clamp(30px, 5vh, 56px) auto 0;
  color: var(--ink-faint);
}
.scroll-cue { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.scroll-line { position: relative; width: 42px; height: 1px; background: var(--ink-faint); overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; inset: 0; background: var(--ink); animation: scroll-sweep 2.4s var(--ease-soft) infinite; transform: translateX(-100%); }
.hero-foot-note { color: var(--ink-faint); font-family: 'Noto Serif SC', serif; font-size: 12px; letter-spacing: .04em; }
.hero-foot-note span { color: var(--vermillion); }

/* Reveal behaviour -------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }
.js .hero .reveal { transform: translateY(34px); }
.js .hero .reveal.in { transform: translateY(0); }

/* Proof ------------------------------------------------------------------- */
.proof-section {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f6ef99;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 54px var(--page-gutter);
}
.proof-item {
  padding: 4px 28px;
  border-left: 1px solid var(--line);
}
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1;
}
.proof-item > span { display: block; max-width: 180px; margin-top: 11px; color: var(--ink-muted); font-size: 11.5px; line-height: 1.5; }
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  color: var(--ink-faint);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .17em;
  white-space: nowrap;
  animation: marquee-scroll 42s linear infinite;
}
.marquee-track i { color: var(--vermillion); font-style: normal; }

/* Bento ------------------------------------------------------------------- */
.learning-section { padding-top: clamp(100px, 12vw, 170px); }
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.bento-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid #17191410;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #fcfbf6 0%, #f7f4ea 100%);
  box-shadow: 0 1px 0 #ffffffb3 inset, 0 24px 60px -46px #1719145c;
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.bento-card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 #ffffffb3 inset, 0 34px 70px -46px #17191470; }
.bento-card h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 2.7vw, 42px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.06;
}
.bento-card h3 em { color: var(--sage); font-weight: 400; }
.bento-card > p,
.bento-copy p { max-width: 360px; margin-top: 17px; color: var(--ink-muted); font-size: 14px; line-height: 1.7; }
.bento-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--sage);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.bento-words { grid-column: 1 / 8; grid-row: 1 / 3; min-height: 660px; }
.bento-script { grid-column: 8 / 13; grid-row: 1; min-height: 318px; background: linear-gradient(150deg, #fbfaf4 0%, #e8ecdc 100%); }
.bento-fsrs { grid-column: 8 / 13; grid-row: 2; min-height: 324px; background: linear-gradient(155deg, #f1f2e9 0%, #e2e8d4 100%); }
.bento-writing { grid-column: 1 / 8; min-height: 445px; background: linear-gradient(140deg, #fbfaf5, #f1eee4); }
.bento-listen { grid-column: 8 / 13; min-height: 445px; background: linear-gradient(155deg, #171914 0%, #252b20 100%); color: #f2f0e6; }
.bento-listen .bento-kicker { color: var(--sage-light); }
.bento-listen p { color: #aeb4a2; }
.bento-listen h3 em { color: #cbd5ba; }
.bento-stats { grid-column: 1 / 13; min-height: 330px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.bento-words { display: flex; flex-direction: column; min-height: 660px; max-height: 660px; }
.bento-words .bento-copy { position: relative; z-index: 2; max-width: none; }
.bento-words .bento-copy > p { max-width: 430px; }
.bento-stat-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.bento-stat-row span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid #17191412;
  border-radius: 999px;
  background: #ffffff66;
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: .04em;
}
.bento-stat-row strong { color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
.bento-shot {
  position: relative;
  flex: 0 0 auto;
  width: min(52%, 335px);
  margin: 18px auto -210px;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 30px 60px -30px #17191480, 0 0 0 1px #17191412;
  transform: rotate(-3.5deg);
  transform-origin: 50% 100%;
  transition: transform .7s var(--ease-out);
}
.bento-card:hover .bento-shot { transform: rotate(-1.5deg) translateY(-8px); }
.bento-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, #f7f4ea 100%);
}
.bento-shot img { border-radius: 30px 30px 0 0; aspect-ratio: 407 / 852; object-fit: cover; object-position: top; }

.script-demo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
}
.script-demo-side {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 8px 5px;
  border-radius: 18px;
  transition: opacity .4s, transform .5s var(--ease-out), background .4s;
}
.script-big { font-family: 'Noto Serif SC', 'Noto Serif TC', serif; font-size: clamp(48px, 5vw, 68px); line-height: 1; transition: transform .6s var(--ease-out); }
.script-demo small { color: var(--ink-muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.script-swap {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--sage);
  font-size: 14px;
  transition: transform .6s var(--ease-out), background .3s;
}
.script-demo:hover .script-swap { background: #fff; transform: rotate(180deg); }
.script-demo[aria-pressed="true"] .script-demo-simplified { opacity: .32; transform: scale(.93); }
.script-demo[aria-pressed="true"] .script-demo-traditional { background: #ffffff80; }
.script-demo[aria-pressed="false"] .script-demo-traditional { opacity: .32; transform: scale(.93); }
.script-demo[aria-pressed="false"] .script-demo-simplified { background: #ffffff80; }
.bento-footnote { position: absolute; right: 30px; bottom: 22px; color: var(--ink-faint); font-size: 9.5px; }

.bento-writing .bento-copy { max-width: 51%; }
.writing-stage {
  position: absolute;
  right: 4%;
  top: 50%;
  display: grid;
  place-items: center;
  width: min(40%, 310px);
  aspect-ratio: 1;
  border: 1px solid #17191412;
  border-radius: 30px;
  background: #fdfcf7;
  box-shadow: 0 24px 55px -35px #17191480;
  transform: translateY(-50%) rotate(2deg);
  overflow: hidden;
}
.writing-grid,
.writing-grid::before,
.writing-grid::after {
  position: absolute;
  inset: 20px;
  content: '';
  border: 1px solid #17191412;
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), #17191414 50%, transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(50% - .5px), #17191414 50%, transparent calc(50% + .5px)),
    linear-gradient(45deg, transparent calc(50% - .5px), #17191408 50%, transparent calc(50% + .5px)),
    linear-gradient(-45deg, transparent calc(50% - .5px), #17191408 50%, transparent calc(50% + .5px));
}
.writing-grid::before { inset: 0; border: 0; background: none; }
.writing-grid::after { inset: 0; border: 0; background: none; }
.stroke-svg { position: relative; z-index: 2; width: 72%; height: 72%; overflow: visible; }
.stroke-median {
  fill: none;
  stroke: #1b1d17;
  stroke-width: 7.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.writing-label {
  position: absolute;
  right: 16px;
  bottom: 13px;
  color: var(--ink-faint);
  font-family: 'Noto Serif SC', serif;
  font-size: 10px;
  letter-spacing: .12em;
}

.fsrs-viz { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); margin-top: 24px; }
.fsrs-ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.fsrs-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fsrs-ring circle { fill: none; stroke-width: 7; }
.fsrs-ring .track { stroke: #6d7c5c22; }
.fsrs-ring .progress { stroke: var(--sage); stroke-linecap: round; animation: ring-in 1.6s var(--ease-out) both; }
.fsrs-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: -.04em;
}
.fsrs-days { display: flex; gap: 9px; }
.fsrs-days .day {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #17191414;
  border-radius: 50%;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 600;
}
.fsrs-days .day.done { border-color: transparent; background: var(--sage); color: #f7f6ee; }
.fsrs-days .day.today { border-color: var(--vermillion); color: var(--vermillion); }
.fsrs-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.fsrs-chips span {
  padding: 7px 11px;
  border: 1px solid #17191412;
  border-radius: 999px;
  background: #ffffff4f;
  color: var(--ink-soft);
  font-size: 9.5px;
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  height: 110px;
  margin-top: 26px;
  padding: 0 2px;
}
.waveform i {
  flex: 1;
  height: calc(100% * var(--h));
  min-height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #cad4b7, #7d8c68);
  opacity: .85;
  transform-origin: 50% 50%;
  animation: wave 1.8s ease-in-out infinite alternate;
}
.waveform i:nth-child(3n) { animation-delay: -.5s; }
.waveform i:nth-child(3n + 1) { animation-delay: -1.1s; }
.waveform i:nth-child(4n) { animation-delay: -.8s; }
.tone-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #ffffff12; }
.tone-row span { font-family: 'Noto Serif SC', serif; font-size: 23px; color: #dbe3cc; }
.tone-row span:nth-child(2) { color: #d7b77c; }
.tone-row span:nth-child(3) { color: #b9c99b; }
.tone-row span:nth-child(4) { color: #9db5c3; }

.heat-demo { min-width: 0; }
.heat-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); grid-template-columns: repeat(13, 1fr); gap: 5px; }
.heat-cell { aspect-ratio: 1; border-radius: 4px; background: #1719140d; transition: background .2s, transform .2s; }
.heat-cell:hover { transform: scale(1.16); }
.heat-cell[data-level="1"] { background: #c7d1b4; }
.heat-cell[data-level="2"] { background: #91a27a; }
.heat-cell[data-level="3"] { background: #5f704e; }
.heat-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 15px; color: var(--ink-faint); font-size: 8.5px; letter-spacing: .12em; }
.heat-meta span:last-child { display: flex; align-items: center; gap: 5px; letter-spacing: 0; }
.heat-meta i { width: 8px; height: 8px; border-radius: 2px; background: #d8ddcd; }
.heat-meta i:nth-of-type(2) { background: #91a27a; }
.heat-meta i:nth-of-type(3) { background: #5f704e; }

/* Real app gallery -------------------------------------------------------- */
.app-gallery, .watch-gallery {
  margin-top: clamp(56px, 8vw, 108px);
  padding-top: clamp(38px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.watch-gallery { margin-bottom: clamp(20px, 4vw, 50px); }
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.gallery-head .eyebrow { flex: 0 0 auto; margin: 0 0 4px; }
.gallery-head > p:last-child { max-width: 520px; color: var(--ink-muted); font-size: 12.5px; line-height: 1.7; }
.gallery-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.6vw, 22px);
  margin-top: clamp(26px, 4vw, 42px);
  align-items: start;
}
.gallery-item { margin: 0; }
.gallery-phone {
  overflow: hidden;
  padding: 6px;
  border-radius: 28px;
  background: linear-gradient(145deg, #6f7165 0%, #24261f 22%, #56594d 51%, #1a1c17 78%, #66695d 100%);
  box-shadow: 0 26px 50px -32px #17191499, inset 0 0 0 1px #c3c5b7;
  transition: transform .55s var(--ease-out), box-shadow .55s;
}
.gallery-item:nth-child(even) .gallery-phone { transform: translateY(18px) rotate(1deg); }
.gallery-item:hover .gallery-phone { transform: translateY(-4px) rotate(0); box-shadow: 0 36px 64px -32px #171914a6, inset 0 0 0 1px #d7d8cc; }
.gallery-phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 407 / 853;
  border-radius: 23px;
  object-fit: cover;
  object-position: top;
}
.gallery-item figcaption { padding: 17px 5px 0; }
.gallery-item:nth-child(even) figcaption { padding-top: 35px; }
.gallery-item strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.gallery-item figcaption span { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 10.5px; line-height: 1.5; }

.watch-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.6vw, 22px);
  margin-top: clamp(26px, 4vw, 42px);
  align-items: start;
}
.watch-item { margin: 0; }
.watch-frame {
  overflow: hidden;
  padding: 6px;
  border-radius: 28px;
  background: linear-gradient(145deg, #6f7165 0%, #24261f 22%, #56594d 51%, #1a1c17 78%, #66695d 100%);
  box-shadow: 0 26px 50px -32px #17191499, inset 0 0 0 1px #c3c5b7;
  transition: transform .55s var(--ease-out), box-shadow .55s;
}
.watch-item:nth-child(even) .watch-frame { transform: translateY(18px) rotate(1deg); }
.watch-item:hover .watch-frame { transform: translateY(-4px) rotate(0); box-shadow: 0 36px 64px -32px #171914a6, inset 0 0 0 1px #d7d8cc; }
.watch-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 416 / 496;
  border-radius: 23px;
  object-fit: cover;
  object-position: top;
}
.watch-item figcaption { padding: 17px 5px 0; }
.watch-item:nth-child(even) figcaption { padding-top: 35px; }
.watch-item strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.watch-item figcaption span { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 10.5px; line-height: 1.5; }

/* Interactive demo -------------------------------------------------------- */
.demo-section {
  position: relative;
  overflow: hidden;
  margin-top: clamp(20px, 4vw, 50px);
  padding: clamp(100px, 12vw, 160px) var(--page-gutter);
  background:
    radial-gradient(ellipse 70% 50% at 82% 18%, #62715333 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 8% 76%, #4e5a3f24 0%, transparent 65%),
    linear-gradient(180deg, #0e100c 0%, #141710 100%);
  color: var(--night-text);
}
.demo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: radial-gradient(#f4f1e8 0.45px, transparent 0.45px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  pointer-events: none;
}
.demo-section > * { position: relative; z-index: 1; }
.demo-section .section-heading { max-width: 800px; }
.demo-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0 !important; }
.demo-bg span { position: absolute; font-family: 'Noto Serif SC', serif; color: #f4f1e805; line-height: 1; }
.demo-bg span:first-child { font-size: 580px; top: -130px; left: -130px; transform: rotate(-10deg); }
.demo-bg span:last-child { font-size: 430px; right: -100px; bottom: -120px; transform: rotate(8deg); color: #c8102e08; }
.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 427px;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}
.demo-rail {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
  background: #f4f1e807;
  box-shadow: inset 0 1px 0 #ffffff0a, 0 30px 80px -60px #000;
}
.demo-rail-top { display: flex; align-items: center; gap: 9px; color: var(--sage-light); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.demo-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #a9bd87; box-shadow: 0 0 0 4px #a9bd8718; animation: live-pulse 2.2s ease-in-out infinite; }
#connection-label { display: flex; align-items: center; gap: 7px; font-size: 9px; }
#connection-label i { width: 4px; height: 4px; border-radius: 50%; background: #a9bd87; }
.demo-rail h3 { margin: 20px 0 22px; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); font-weight: 400; letter-spacing: -.04em; }
.demo-modes { display: grid; gap: 0; border-top: 1px solid var(--night-line); }
.demo-mode {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 64px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--night-line);
  background: none;
  color: #9da392;
  text-align: left;
  transition: color .25s, padding .35s var(--ease-out);
}
.demo-mode:hover { color: var(--night-text); padding-left: 9px; }
.demo-mode.active { color: var(--night-text); }
.demo-mode.active .demo-mode-index { color: #cf7d86; }
.demo-mode-index { min-width: 24px; color: #8b9383; font-size: 9px; font-variant-numeric: tabular-nums; transition: color .2s; }
.demo-mode > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.demo-mode strong { font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; }
.demo-mode small { color: #7f8778; font-size: 10px; }
.demo-mode b { font-size: 13px; font-weight: 400; opacity: 0; transform: translate(-4px, 4px); transition: opacity .25s, transform .25s; }
.demo-mode.active b { opacity: 1; transform: none; }
.demo-description {
  min-height: 58px;
  margin-top: 22px;
  color: #aeb4a2;
  font-size: 12.5px;
  line-height: 1.7;
}
.demo-rail-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--night-line); }
.demo-foot-note { max-width: 180px; color: #8b9383; font-size: 8.5px; line-height: 1.5; text-align: right; }
.demo-stage { position: relative; justify-self: center; }
.demo-stage .device-stage { width: 427px; }
.demo-stage .device-label { display: flex; color: #7f8778; }
.demo-stage .device-label > span:last-child { color: #656d5e; }
.demo-stage .phone-frame { width: 427px; margin: 0 auto; }
.demo-stage .phone { width: 407px; }
.demo-caption { margin-top: 18px; color: #707868; font-size: 9px; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.demo-stage .hardware-button { display: block; }
.product-page .mobile-simulator { display: none !important; }

/* System section ---------------------------------------------------------- */
.system-section { padding-top: clamp(100px, 12vw, 160px); }
.system-showcase {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #faf8f1;
  box-shadow: 0 40px 100px -70px #17191473;
}
.system-tabs {
  display: flex;
  gap: 4px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.system-tabs::-webkit-scrollbar { display: none; }
.system-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s, background .2s, transform .3s var(--ease-out);
}
.system-tab:hover { color: var(--ink); }
.system-tab.active { background: var(--ink); color: #f4f1e8; box-shadow: 0 5px 14px -7px #171914a6; }
.system-panels { min-height: 590px; }
.system-panel {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: stretch;
  min-height: 590px;
  animation: panel-in .6s var(--ease-out);
}
.system-panel[hidden] { display: none; }
.system-panel-copy { padding: clamp(30px, 4vw, 58px); align-self: center; }
.system-panel-copy h3 { font-family: var(--serif); font-size: clamp(32px, 3.5vw, 52px); font-weight: 400; letter-spacing: -.045em; line-height: 1.04; }
.system-panel-copy h3 em { color: var(--sage); }
.system-panel-copy > p { max-width: 430px; margin-top: 18px; color: var(--ink-muted); font-size: 13.5px; line-height: 1.75; }
.system-panel-copy .mini-list { margin-top: 22px; }
.system-panel-copy .text-arrow { margin-top: 26px; }
.system-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  margin: 15px 15px 15px 0;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 60% at 74% 6%, #7b8c6338, transparent 60%),
    radial-gradient(ellipse 60% 55% at 16% 92%, #4d573d33, transparent 60%),
    linear-gradient(150deg, #161911 0%, #292f22 55%, #11140e 100%);
}
.system-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#f4f1e8 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  opacity: .1;
}

/* Dynamic island mock */
.island-phone { position: relative; z-index: 2; width: min(80%, 330px); height: 400px; border: 8px solid #0a0b08; border-radius: 42px; background: linear-gradient(180deg, #1d2217, #10130d); box-shadow: 0 30px 60px -28px #000, inset 0 0 0 1px #ffffff14; }
.island-phone::after { content: ''; position: absolute; left: 50%; bottom: 9px; width: 90px; height: 4px; border-radius: 4px; background: #ffffff2e; transform: translateX(-50%); }
.island-screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 28px; }
.island-clock { color: #d7dfca; font-size: 62px; font-weight: 400; letter-spacing: -.07em; line-height: 1; }
.island-word { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 28px; color: #b4c1a5; }
.island-word > span { font-family: 'Noto Serif SC', serif; font-size: 47px; line-height: 1; }
.island-word small { color: #7e8a74; font-size: 9px; letter-spacing: .04em; }
.island-pill {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 132px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #030403;
  color: #dce5cf;
  font-size: 12px;
  cursor: pointer;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px #ffffff0d, 0 8px 22px #0008;
  transition: width .55s var(--ease-out), height .55s var(--ease-out), top .55s var(--ease-out), border-radius .55s, padding .55s;
}
.island-pill:hover { width: 142px; }
.island-pill-mark { display: block; font-size: 15px; }
.island-pill-mark img { width: 18px; height: 18px; border-radius: 5px; }
.island-pill-count { margin-left: auto; font-size: 10px; font-variant-numeric: tabular-nums; }
.island-pill-cam { width: 14px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 40%, #263021, #050605 62%); box-shadow: inset 0 0 0 1px #ffffff12; }
.island-expanded {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 4;
  width: calc(100% - 30px);
  padding: 16px;
  border-radius: 28px;
  background: #050604;
  color: #eef2e5;
  box-shadow: 0 0 0 1px #ffffff12, 0 24px 50px #0009;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px) scale(.96);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility .35s;
}
.island-phone.expanded .island-expanded { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.island-expanded-top { display: flex; justify-content: space-between; align-items: center; color: #9ba58d; font-size: 8.5px; letter-spacing: .08em; }
.island-expanded-meta { display: inline-flex; align-items: center; gap: 9px; }
.island-close { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #ffffff1c; border-radius: 50%; background: #ffffff0d; color: #b9c3ae; font-size: 13px; line-height: 1; }
.island-close:hover { background: #ffffff18; color: #fff; }
.island-expanded-main { display: flex; align-items: center; gap: 15px; margin-top: 15px; }
.island-expanded-main > span { font-family: 'Noto Serif SC', serif; font-size: 48px; line-height: 1; }
.island-expanded-main > div { flex: 1; }
.island-expanded-main small { color: #8a9480; font-size: 7.5px; letter-spacing: .12em; }
.island-expanded-main strong { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; }
.island-bar { height: 4px; margin-top: 10px; border-radius: 4px; background: #ffffff17; overflow: hidden; }
.island-bar i { display: block; width: 58%; height: 100%; border-radius: inherit; background: #c4d3a9; animation: bar-fill 3s var(--ease-soft) infinite alternate; }
.island-expanded-actions { display: flex; gap: 7px; margin-top: 15px; }
.island-expanded-actions span { flex: 1; display: grid; place-items: center; min-height: 37px; border-radius: 11px; background: #ffffff10; color: #dbe4ce; font-size: 10px; }
.island-hint { position: absolute; bottom: 27px; left: 0; right: 0; color: #6f7a66; font-size: 8px; letter-spacing: .1em; text-align: center; text-transform: uppercase; }

/* Widget mock */
.widgets-art { align-content: center; }
.widget-stack { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(88%, 420px); }
.widget-mock { position: relative; overflow: hidden; padding: 15px; border: 1px solid #ffffff26; border-radius: 22px; background: #e9e6d7d9; color: #1c2018; box-shadow: 0 18px 35px -22px #000c, inset 0 1px 0 #ffffffb3; backdrop-filter: blur(16px); }
.widget-mock-label { display: block; color: #5d6653; font-size: 7px; font-weight: 700; letter-spacing: .11em; }
.widget-small { min-height: 140px; }
.widget-mock-glyph { display: block; margin: 13px 0 8px; font-family: 'Noto Serif SC', serif; font-size: 58px; line-height: 1; text-align: center; }
.widget-small small { display: block; color: #626b58; font-size: 8.5px; text-align: center; }
.widget-medium { grid-column: 1 / 3; min-height: 140px; }
.widget-mock-top { display: flex; justify-content: space-between; align-items: flex-start; }
.widget-mock-top strong { display: block; margin-top: 5px; font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -.04em; }
.widget-mock-top strong small { font-family: 'DM Sans', sans-serif; color: #69725f; font-size: 9px; }
.widget-streak { padding: 5px 8px; border-radius: 999px; background: #ffffff85; font-size: 9px; }
.widget-mock-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #17191412; }
.widget-mock-row > span { font-family: 'Noto Serif SC', serif; font-size: 28px; }
.widget-mock-row > div { flex: 1; }
.widget-mock-row strong { display: block; font-size: 10px; }
.widget-mock-row small { color: #626b58; font-size: 8.5px; }
.mock-check, .mock-x { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #ffffff8c; font-size: 11px; font-style: normal; }
.mock-check { color: #536843; }
.mock-x { color: #9a5b61; }
.widget-large { grid-column: 1 / 3; min-height: 105px; }
.widget-large-row { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.widget-mock-glyph.small { margin: 0; font-size: 42px; }
.widget-heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, 1fr); grid-template-columns: repeat(10, 1fr); gap: 3px; flex: 1; }
.widget-heat i { aspect-ratio: 1; border-radius: 2px; background: #1719140f; }
.widget-heat i[data-level="1"] { background: #b9c6a4; }
.widget-heat i[data-level="2"] { background: #7e9068; }
.widget-heat i[data-level="3"] { background: #4e6040; }

/* Lock mock */
.lock-art { background: radial-gradient(ellipse 80% 65% at 50% 0%, #5c6a4c66, transparent 60%), linear-gradient(160deg, #3b4433 0%, #20261b 60%, #0f120d 100%); }
.lock-mock { position: relative; z-index: 2; width: min(76%, 300px); color: #eef2e4; text-align: center; }
.lock-date { font-size: 11px; color: #d9e0cf; }
.lock-time { margin-top: 3px; font-size: 76px; font-weight: 500; letter-spacing: -.08em; line-height: 1.05; }
.lock-word { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0 22px; }
.lock-word > span { font-family: 'Noto Serif SC', serif; font-size: 40px; }
.lock-word > div { text-align: left; }
.lock-word strong { display: block; font-size: 12px; font-weight: 500; }
.lock-word small { color: #bfc9b2; font-size: 9px; }
.lock-activity { padding: 14px; border: 1px solid #ffffff1f; border-radius: 19px; background: #0f130cc9; box-shadow: inset 0 1px 0 #ffffff12; text-align: left; backdrop-filter: blur(14px); }
.lock-activity-top { display: flex; justify-content: space-between; color: #c8d2bb; font-size: 8px; letter-spacing: .08em; }
.lock-activity-bar { height: 4px; margin: 10px 0 9px; border-radius: 4px; background: #ffffff1a; overflow: hidden; }
.lock-activity-bar i { display: block; width: 58%; height: 100%; border-radius: inherit; background: #bfd0a2; }
.lock-activity p { color: #98a58c; font-size: 8.5px; }

/* StandBy mock */
.standby-art { background: #080a06; }
.standby-mock { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 38px; color: #d95e57; }
.standby-clock { display: flex; flex-direction: column; font-size: 78px; font-weight: 300; letter-spacing: -.08em; line-height: .78; }
.standby-word { text-align: center; }
.standby-word strong { display: block; font-family: 'Noto Serif TC', 'Noto Serif SC', serif; font-size: 82px; font-weight: 400; line-height: .95; }
.standby-word span { font-size: 11px; line-height: 1.5; }

/* Watch mock */
.watch-art { overflow: hidden; background: radial-gradient(ellipse 60% 55% at 50% 40%, #4d5c3c4d, transparent 70%), #0b0d09; }
.watch-band { position: absolute; top: 0; width: 96px; height: 92px; border-radius: 0 0 28px 28px; background: linear-gradient(180deg, #22261d, #343b2c); }
.watch-band.bottom { top: auto; bottom: 0; border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #343b2c, #20251b); }
.watch-case { position: relative; z-index: 2; width: 208px; height: 250px; padding: 9px; border-radius: 51px; background: linear-gradient(145deg, #8d9186, #2d3029 30%, #757a6d 53%, #1d201a 80%, #7d8275); box-shadow: 0 30px 60px -30px #000, inset 0 0 0 1px #b6b9ae; }
.watch-case::after { content: ''; position: absolute; right: -5px; top: 72px; width: 5px; height: 37px; border-radius: 3px; background: #555a4e; box-shadow: 0 47px 0 #555a4e; }
.watch-screen { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; padding: 15px 13px; border-radius: 43px; background: radial-gradient(ellipse at 50% 0%, #2d3624, #0b0e08 72%); color: #eef2e4; }
.watch-top { display: flex; justify-content: space-between; width: 100%; color: #c5cfb8; font-size: 8px; }
.watch-ring { position: relative; width: 111px; height: 111px; margin-top: 8px; }
.watch-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.watch-ring circle { fill: none; stroke-width: 7; }
.watch-ring .track { stroke: #ffffff17; }
.watch-ring .progress { stroke: #c3d4a5; stroke-linecap: round; stroke-dasharray: 251; stroke-dashoffset: 69; }
.watch-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Noto Serif SC', serif; font-size: 45px; }
.watch-copy { text-align: center; }
.watch-copy strong { display: block; font-size: 12px; font-weight: 500; }
.watch-copy small { color: #a6b39a; font-size: 8px; }
.watch-dots { display: flex; gap: 5px; margin-top: auto; padding-bottom: 4px; }
.watch-dots i { width: 5px; height: 5px; border-radius: 50%; background: #ffffff26; }
.watch-dots i.done { background: #c3d4a5; }

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.family-card {
  position: relative;
  min-height: 192px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #faf8f1b3;
  transition: transform .45s var(--ease-out), background .3s, box-shadow .45s;
}
.family-card:hover { transform: translateY(-3px); background: #fdfcf7; box-shadow: 0 24px 45px -35px #17191459; }
.family-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #6d7c5c14; color: var(--sage); font-size: 19px; }
.family-card h3 { margin-top: 20px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.family-card p { max-width: 240px; margin-top: 7px; color: var(--ink-muted); font-size: 12px; line-height: 1.55; }
.family-tag { position: absolute; top: 24px; right: 24px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-faint); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }

/* Technology -------------------------------------------------------------- */
.tech-section {
  max-width: none;
  background: #11130f;
  color: var(--night-text);
}
.tech-section > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.tech-section .section-heading .eyebrow { color: var(--sage-light); }
.tech-section .section-heading h2 em { color: #c9d3b8; }
.tech-section .section-heading > p:last-child { color: var(--night-muted); }
.tech-layout {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.tech-stack {
  border-top: 1px solid var(--night-line);
}
.stack-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 84px;
  padding: 16px 0;
  border-bottom: 1px solid var(--night-line);
}
.stack-label { color: #8b9383; font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.stack-row strong { display: block; font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
.stack-row small { display: block; margin-top: 4px; color: #858d7d; font-size: 11px; line-height: 1.45; }
.stack-status {
  padding: 5px 8px;
  border: 1px solid #ffffff17;
  border-radius: 999px;
  color: #a6b58f;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.stack-status.planned { color: #c2a77d; }
.terminal-card {
  position: sticky;
  top: 105px;
  overflow: hidden;
  border: 1px solid #ffffff17;
  border-radius: 24px;
  background: #090b08;
  box-shadow: 0 40px 90px -50px #000, inset 0 1px 0 #ffffff12;
}
.terminal-top { display: flex; align-items: center; gap: 13px; padding: 14px 17px; border-bottom: 1px solid #ffffff10; color: #8b9383; font-size: 9px; letter-spacing: .08em; }
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3b4136; }
.terminal-dots i:first-child { background: #7d4a4a; }
.terminal-dots i:nth-child(2) { background: #807045; }
.terminal-dots i:last-child { background: #4d6744; }
.copy-command { margin-left: auto; padding: 5px 9px; border: 1px solid #ffffff17; border-radius: 7px; background: transparent; color: #a5ad9b; font-size: 8px; transition: color .2s, border-color .2s; }
.copy-command:hover { color: #f2f0e6; border-color: #ffffff33; }
.terminal-body { overflow-x: auto; margin: 0; padding: 26px 22px; color: #c9d1c0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 2; }
.terminal-body code { font-family: inherit; }
.prompt { color: #c7d6ad; }
.terminal-ok { color: #8fae7c; }
.terminal-dim { color: #60685a; }
.terminal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 14px 18px; border-top: 1px solid #ffffff10; color: #8f9787; font-size: 9px; }
.terminal-lock { color: #b4c39a; font-size: 15px; }
.terminal-sep { color: #4e5648; }
.honesty-note {
  display: flex;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 75px) !important;
  padding: 22px 24px;
  border: 1px solid #ffffff10;
  border-radius: 18px;
  background: #ffffff05;
}
.honesty-mark { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border: 1px solid #ffffff1f; border-radius: 50%; color: #b6c39e; font-family: var(--serif); font-size: 13px; font-style: italic; }
.honesty-note p { max-width: 900px; color: #99a190; font-size: 11.5px; line-height: 1.75; }
.honesty-note strong { color: #d6ddcb; font-weight: 500; }

/* Privacy ----------------------------------------------------------------- */
.privacy-section {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 13vw, 180px) var(--page-gutter);
  background:
    radial-gradient(ellipse 55% 60% at 83% 50%, #7a2e3626, transparent 65%),
    radial-gradient(ellipse 60% 60% at 15% 30%, #4b5a3b33, transparent 65%),
    #0c0e0a;
  color: var(--night-text);
}
.privacy-glow {
  position: absolute;
  top: 20%;
  right: 8%;
  width: 400px;
  height: 400px;
  border: 1px solid #ffffff0b;
  border-radius: 50%;
  box-shadow: 0 0 0 60px #ffffff03, 0 0 0 120px #ffffff02;
  pointer-events: none;
}
.privacy-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.privacy-copy .eyebrow { color: #c9d3b8; }
.privacy-copy h2 { font-family: var(--serif); font-size: clamp(44px, 6.5vw, 86px); font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.privacy-copy h2 em { color: #c9d3b8; }
.privacy-copy > p:not(.eyebrow) { max-width: 500px; margin-top: 25px; color: #a5ad9d; font-size: 14.5px; line-height: 1.75; }
.privacy-list { display: grid; gap: 10px; margin: 29px 0 33px; padding: 0; list-style: none; }
.privacy-list li { display: flex; align-items: center; gap: 11px; color: #c9d1bf; font-size: 12.5px; }
.privacy-list span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #c9d3b814; color: #b9c9a2; font-size: 9px; }
.privacy-visual {
  position: relative;
  min-height: 470px;
  border: 1px solid #ffffff10;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 40%, #63755330 0%, transparent 42%),
    linear-gradient(155deg, #151911 0%, #0c0f09 100%);
  box-shadow: inset 0 1px 0 #ffffff0d, 0 50px 100px -60px #000;
}
.privacy-visual::before {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px dashed #ffffff0d;
  border-radius: 24px;
}
.privacy-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #c9d1bf;
}
.privacy-device { top: 104px; left: 16%; }
.privacy-device > span { display: grid; place-items: center; overflow: hidden; width: 102px; height: 102px; border: 1px solid #ffffff1c; border-radius: 29px; background: #1b2116; box-shadow: inset 0 1px 0 #ffffff14, 0 20px 40px -20px #000; font-size: 45px; }
.privacy-device > span img { width: 100%; height: 100%; object-fit: cover; }
.privacy-node small { color: #7f8875; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.privacy-store { top: 104px; right: 15%; }
.privacy-store > span { display: grid; place-items: center; width: 102px; height: 102px; border: 1px solid #ffffff1c; border-radius: 29px; background: #1b2116; box-shadow: inset 0 1px 0 #ffffff14, 0 20px 40px -20px #000; font-size: 40px; color: #b7c7a1; }
.privacy-link { position: absolute; top: 155px; left: calc(16% + 102px); right: calc(15% + 102px); display: flex; align-items: center; justify-content: space-around; height: 1px; background: #ffffff16; }
.privacy-link i { width: 5px; height: 5px; border-radius: 50%; background: #a9bd8d; box-shadow: 0 0 0 4px #a9bd8d13; animation: data-dot 3.2s linear infinite; }
.privacy-link i:nth-child(2) { animation-delay: -1s; }
.privacy-link i:nth-child(3) { animation-delay: -2s; }
.privacy-crossed { position: absolute; left: 50%; bottom: 57px; display: flex; align-items: center; gap: 10px; padding: 13px 17px; border: 1px solid #ffffff10; border-radius: 14px; color: #6b7463; font-size: 10px; transform: translateX(-50%); }
.privacy-crossed b { color: #8d555b; font-size: 17px; font-weight: 400; }
.privacy-crossed small { color: #5d6556; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.privacy-seal {
  position: absolute;
  right: 30px;
  bottom: 31px;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid #c8102e6b;
  border-radius: 3px;
  color: #c8102ecc;
  font-family: 'Noto Serif SC', serif;
  font-size: 9px;
  line-height: 1.3;
  text-align: center;
  transform: rotate(-7deg);
}

/* FAQ --------------------------------------------------------------------- */
.faq-section {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: start;
}
.faq-section .section-heading { position: sticky; top: 118px; margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
  padding: 20px 3px;
  cursor: pointer;
  color: var(--ink);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 500;
  letter-spacing: -.015em;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-muted); font-size: 15px; font-weight: 400; transition: transform .35s var(--ease-out), background .2s, color .2s; }
.faq-item[open] summary span { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: transparent; }
.faq-item p { max-width: 650px; padding: 0 3px 28px; color: var(--ink-muted); font-size: 13px; line-height: 1.8; }
.faq-item code { padding: 2px 5px; border-radius: 4px; background: #1719140a; font-size: .9em; }

/* Closing ----------------------------------------------------------------- */
.closing-section {
  position: relative;
  overflow: hidden;
  max-width: 1460px;
  margin: 0 auto clamp(20px, 4vw, 50px);
  padding: clamp(100px, 14vw, 180px) var(--page-gutter);
  border-radius: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(ellipse 60% 80% at 82% 40%, #d4dcc7 0%, transparent 60%),
    linear-gradient(135deg, #f5f2e9 0%, #e9e7db 100%);
  text-align: center;
}
.closing-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #ffffff66;
  font-family: 'Noto Serif SC', serif;
  font-size: min(58vw, 700px);
  line-height: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.closing-inner { position: relative; z-index: 2; }
.closing-inner .eyebrow { justify-content: center; }
.closing-inner h2 { font-family: var(--serif); font-size: clamp(52px, 8vw, 108px); font-weight: 400; letter-spacing: -.06em; line-height: .96; }
.closing-inner h2 em { color: var(--sage); }
.closing-inner > p:not(.eyebrow) { max-width: 470px; margin: 24px auto 0; color: var(--ink-muted); font-size: 15px; line-height: 1.7; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: 34px; }
.closing-note { position: absolute; right: 34px; bottom: 27px; color: var(--ink-faint); font-family: 'Noto Serif SC', serif; font-size: 11px; letter-spacing: .15em; }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  padding: 0 var(--page-gutter) 32px;
  background: #0e100c;
  color: #d8decd;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 38px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 0 56px;
}
.footer-brand .site-wordmark { color: #f1efe5; }
.footer-brand .site-mark { background: transparent; color: #141610; }
.footer-brand p { margin-top: 18px; color: #7f8875; font-size: 12px; line-height: 1.7; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col > span { margin-bottom: 6px; color: #8b9383; font-size: 8.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer-col a { color: #aab2a0; font-size: 11.5px; transition: color .2s; }
.footer-col a:hover { color: #f1efe5; }
.footer-note p { color: #848d7a; font-size: 11.5px; line-height: 1.65; }
.footer-hanzi { margin-top: 10px; color: #b6c3a4 !important; font-family: 'Noto Serif SC', serif; font-size: 16px !important; letter-spacing: .12em; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid #ffffff12;
  color: #8b9383;
  font-size: 9px;
}
.back-top { color: #9fa893; font-size: 9px; transition: color .2s; }
.back-top:hover { color: #f1efe5; }

/* Keyframes --------------------------------------------------------------- */
@keyframes halo-breathe {
  0%, 100% { transform: scale(.96); opacity: .78; }
  50% { transform: scale(1.03); opacity: 1; }
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.9); }
}
@keyframes scroll-sweep {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
@keyframes draw-stroke {
  0% { stroke-dashoffset: 260; }
  18%, 64% { stroke-dashoffset: 0; }
  82%, 100% { stroke-dashoffset: -260; }
}
@keyframes wave {
  from { transform: scaleY(.48); opacity: .55; }
  to { transform: scaleY(1); opacity: .95; }
}
@keyframes ring-in { from { stroke-dashoffset: 307.9; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes bar-fill { from { width: 36%; } to { width: 76%; } }
@keyframes data-dot {
  0% { transform: translateX(-36px); opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { transform: translateX(36px); opacity: 0; }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1120px) {
  .site-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr 400px; gap: 30px; }
  .hero-visual { min-height: 620px; }
  .float-card-a { left: -2%; }
  .float-card-b { right: -2%; }
  .bento-words { grid-column: 1 / 13; grid-row: auto; min-height: 540px; }
  .bento-script { grid-column: 1 / 7; grid-row: auto; }
  .bento-fsrs { grid-column: 7 / 13; grid-row: auto; }
  .bento-writing { grid-column: 1 / 7; }
  .bento-listen { grid-column: 7 / 13; }
  .bento-stats { grid-column: 1 / 13; }
  .demo-layout { grid-template-columns: minmax(0, 1fr) 427px; gap: 45px; }
  .family-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gallery-item:nth-child(even) .gallery-phone { transform: none; }
  .gallery-item:nth-child(even) figcaption { padding-top: 17px; }
  .watch-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .watch-item:nth-child(even) .watch-frame { transform: none; }
  .watch-item:nth-child(even) figcaption { padding-top: 17px; }
  .tech-layout { grid-template-columns: 1fr; }
  .terminal-card { position: relative; top: auto; }
}

@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { min-height: 570px; }
  .hero-phone-frame { width: 286px; }
  .hero-halo { width: 520px; height: 520px; }
  .hero-orbit-a { width: 470px; height: 470px; }
  .hero-orbit-b { width: 560px; height: 560px; }
  .hero-foot { margin-top: 34px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .proof-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .demo-layout { grid-template-columns: 1fr; }
  .demo-rail { order: 2; max-width: 560px; margin: 0 auto; }
  .demo-stage { order: 1; }
  .demo-description { min-height: 0; }
  .system-panel { grid-template-columns: 1fr; min-height: 0; }
  .system-art { min-height: 390px; margin: 0 15px 15px; }
  .system-panel-copy { padding-bottom: 34px; }
  .system-panels { min-height: 0; }
  .faq-section { grid-template-columns: 1fr; }
  .faq-section .section-heading { position: static; }
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-visual { max-width: 520px; width: 100%; }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-note { grid-column: 1 / 4; }
}

@media (max-width: 720px) {
  .site-header { top: 9px; padding: 7px 7px 7px 14px; min-height: 56px; }
  .site-header.scrolled { top: 6px; min-height: 52px; }
  .site-wordmark { font-size: 20px; }
  .site-mark { width: 29px; height: 29px; font-size: 18px; }
  .script-switch { display: none; }
  .nav-cta { min-height: 40px; padding: 0 14px; font-size: 11px; }
  .hero { padding-top: 104px; }
  .hero h1 { font-size: clamp(52px, 14vw, 76px); }
  .hero-lede { margin-top: 23px; }
  .hero-actions .button { min-height: 50px; padding: 0 19px; font-size: 13px; }
  .hero-proof { margin-top: 25px; gap: 8px 18px; }
  .hero-visual { min-height: 510px; }
  .hero-phone-frame { width: 258px; }
  .float-card { padding: 10px 12px; }
  .float-card small { display: none; }
  .float-card-a { top: 10%; left: 0; }
  .float-card-b { top: 45%; right: 0; }
  .float-card-c { bottom: 7%; left: 2%; }
  .hero-foot-note { display: none; }
  .proof-grid { padding-top: 38px; padding-bottom: 38px; }
  .proof-item { padding: 0 15px; }
  .proof-item strong { font-size: 42px; }
  .proof-item > span { font-size: 10px; }
  .bento { display: flex; flex-direction: column; }
  .bento-card { min-height: 300px; }
  .bento-words { min-height: 560px; }
  .bento-words .bento-copy { max-width: 100%; }
  .bento-shot { width: 58%; right: -50px; bottom: -130px; opacity: .9; }
  .bento-writing { min-height: 560px; }
  .bento-writing .bento-copy { max-width: 100%; }
  .writing-stage { position: relative; right: auto; top: auto; width: 78%; margin: 28px auto 0; transform: rotate(1deg); }
  .bento-stats { display: block; }
  .bento-stats .heat-demo { margin-top: 26px; }
  .system-tabs { padding: 11px; }
  .system-tab { padding: 0 13px; font-size: 11px; }
  .system-panel-copy h3 { font-size: 34px; }
  .system-art { min-height: 330px; }
  .island-phone { height: 340px; }
  .widget-stack { width: 92%; }
  .lock-time { font-size: 68px; }
  .standby-mock { gap: 20px; }
  .standby-clock { font-size: 58px; }
  .standby-word strong { font-size: 62px; }
  .watch-case { width: 178px; height: 216px; }
  .watch-ring { width: 91px; height: 91px; }
  .watch-ring span { font-size: 38px; }
  .family-grid { grid-template-columns: 1fr; }
  .tech-layout { gap: 28px; }
  .stack-row { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; }
  .stack-row small { font-size: 10px; }
  .privacy-visual { min-height: 390px; }
  .privacy-device, .privacy-store { top: 78px; }
  .privacy-device > span, .privacy-store > span { width: 82px; height: 82px; border-radius: 23px; font-size: 36px; }
  .privacy-link { top: 119px; }
  .privacy-crossed { bottom: 45px; }
  .faq-item summary { min-height: 72px; }
  .closing-note { position: static; margin-top: 30px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 48px; }
  .footer-brand { grid-column: 1 / 3; }
  .footer-note { grid-column: 1 / 3; }
  .footer-bottom { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  /* Override the app's old full-screen mobile layout: the product page scrolls. */
  html, body.product-page { height: auto; overflow-x: hidden; overflow-y: auto; background: var(--paper); }
  .hero { min-height: auto; padding-top: 94px; padding-bottom: 10px; }
  .hero h1 { font-size: 50px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { flex: 1 1 auto; }
  .hero-visual { min-height: 450px; }
  .hero-phone-frame { width: 230px; }
  .hero-halo { width: 390px; height: 390px; }
  .hero-orbit-a { width: 380px; height: 380px; }
  .hero-orbit-b { width: 440px; height: 440px; }
  .float-card-a { top: 5%; }
  .float-card-b { top: 42%; }
  .float-card-c { bottom: 3%; }
  .section { padding-top: 78px; padding-bottom: 78px; }
  .section-heading h2 { font-size: 42px; }
  .section-heading > p:last-child { font-size: 14px; }
  .proof-grid { gap: 26px 0; }
  .proof-item strong { font-size: 36px; }
  .bento-card { padding: 25px; border-radius: 27px; }
  .bento-words { min-height: 500px; }
  .bento-script { min-height: 290px; }
  .bento-fsrs { min-height: 320px; }
  .fsrs-viz { gap: 18px; }
  .fsrs-days { gap: 6px; }
  .fsrs-days .day { width: 25px; height: 25px; }
  .bento-writing { min-height: 520px; }
  .heat-grid { gap: 4px; }
  .gallery-head { display: block; }
  .gallery-head > p:last-child { margin-top: 10px; }
  .gallery-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 20px 26px;
    margin-right: -20px;
    margin-left: -20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .gallery-row::-webkit-scrollbar, .watch-row::-webkit-scrollbar { display: none; }
  .gallery-item { scroll-snap-align: center; }
  .gallery-phone { border-radius: 25px; }
  .watch-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 20px 26px;
    margin-right: -20px;
    margin-left: -20px;
    scroll-snap-type: x mandatory;
  }
  .watch-item { scroll-snap-align: center; }
  .watch-frame { border-radius: 25px; }
  .demo-section { padding: 78px 20px; }
  /* On phones the demo becomes the app: edge to edge, exactly 100vw wide. */
  .demo-stage { width: 100vw; margin-left: calc(50% - 50vw); }
  .demo-stage .device-stage { width: 100vw; }
  .demo-stage .phone-frame { width: 100vw; max-width: none; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .demo-stage .phone { width: 100vw; height: 760px; border-radius: 0; }
  .demo-stage .hardware-button { display: none; }
  .demo-stage .device-label { display: flex; padding: 0 20px; font-size: 7px; }
  .demo-rail { padding: 24px; border-radius: 25px; }
  .demo-modes { margin-top: 6px; }
  .demo-mode { min-height: 58px; }
  .demo-rail-foot { align-items: flex-start; flex-direction: column; gap: 10px; }
  .demo-foot-note { max-width: none; text-align: left; }
  .system-tab { font-size: 10px; padding: 0 12px; }
  .system-panel-copy { padding: 26px 23px 30px; }
  .system-panel-copy h3 { font-size: 30px; }
  .system-art { margin: 0 10px 10px; border-radius: 21px; min-height: 300px; }
  .system-showcase { border-radius: 28px; }
  .island-phone { height: 300px; border-width: 6px; }
  .island-expanded { padding: 13px; }
  .island-expanded-main > span { font-size: 38px; }
  .widget-stack { width: 96%; gap: 9px; }
  .widget-mock { padding: 12px; border-radius: 18px; }
  .widget-small { min-height: 120px; }
  .widget-medium { min-height: 128px; }
  .widget-large { min-height: 92px; }
  .lock-mock { width: 84%; }
  .lock-time { font-size: 60px; }
  .standby-clock { font-size: 50px; }
  .standby-word strong { font-size: 55px; }
  .watch-case { width: 165px; height: 200px; }
  .watch-ring { width: 82px; height: 82px; margin-top: 4px; }
  .watch-ring span { font-size: 33px; }
  .watch-copy strong { font-size: 11px; }
  .privacy-copy h2 { font-size: 44px; }
  .privacy-visual { min-height: 350px; border-radius: 28px; }
  .privacy-device, .privacy-store { top: 64px; }
  .privacy-device { left: 11%; }
  .privacy-store { right: 10%; }
  .privacy-device > span, .privacy-store > span { width: 70px; height: 70px; font-size: 31px; border-radius: 20px; }
  .privacy-link { top: 99px; left: calc(11% + 70px); right: calc(10% + 70px); }
  .privacy-crossed { bottom: 38px; }
  .privacy-seal { right: 19px; bottom: 20px; }
  .faq-item summary { font-size: 15px; gap: 13px; }
  .closing-section { margin-left: 10px; margin-right: 10px; border-radius: 28px; padding-left: 24px; padding-right: 24px; }
  .closing-inner h2 { font-size: 49px; }
  .closing-actions .button { width: 100%; }
  .site-footer { padding-left: 22px; padding-right: 22px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand, .footer-note { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* Motion preferences ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-page *,
  .product-page *::before,
  .product-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .stroke-path { stroke-dashoffset: 0; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .float-card, .widget-mock { backdrop-filter: none; -webkit-backdrop-filter: none; background: #f4f1e8f2; }
}
