/* Hana site stylesheet (gethana.app). Tokens mirror hana-app/Shared/Theme.swift. Light = Paper, dark = Ink.
   System fonts only: the privacy page promises no third-party requests, so no web fonts or CDNs.
   Type: 7 sizes (--t1 to --t7) and 3 voices (--serif English display, --mincho Japanese display, --ui everything else). */

:root {
  color-scheme: light dark;
  --paper: #F6F0E6;
  --raised: #FFFBF5;
  --sunk: #ECE3D4;
  --ink: #2A2622;
  --ink2: #5E554C;
  --ink3: #736859;
  --line: rgba(42, 38, 34, .14);
  --sakura: #E9A3B4;
  --sakuraInk: #A8435F;
  --sakuraSoft: #F8E1E6;
  --olive: #6B7A3A;
  --oliveInk: #55622B;
  --oliveSoft: #E6E8D2;
  --orange: #BF5316;
  --onOrange: #FFFFFF;
  --orangeSoft: #F7DEC9;
  /* Small orange text on light surfaces: orange itself is 4.15:1 on paper, this clears AA. */
  --orangeText: #8F3D0F;
  --shadow-shot: 0 1px 2px rgba(42, 38, 34, .08), 0 18px 40px -18px rgba(42, 38, 34, .35);
  --shadow-primary: 0 8px 18px -8px rgba(191, 83, 22, .6);

  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Apple Garamond", Georgia, "Noto Serif", serif;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  /* Japanese inside UI text: the same UI voice, with the system's Japanese sans. */
  --jp: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Segoe UI", Roboto, sans-serif;

  /* The whole type scale. */
  --t1: 13px;
  --t2: 15px;
  --t3: 17px;
  --t4: 20px;
  --t5: 28px;
  --t6: clamp(32px, 7.6vw, 48px);
  --t7: clamp(42px, 11.6vw, 72px);

  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 28px;
  --ease: cubic-bezier(.2, .9, .3, 1);
  --gutter: 16px;
}
/* Dark tokens: follow the system unless the page pins a theme with data-theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1C1916; --raised: #27231F; --sunk: #141210;
    --ink: #F2EADD; --ink2: #C2B7A8; --ink3: #9A8F81; --line: rgba(242, 234, 221, .14);
    --sakuraInk: #F0B3C2; --sakuraSoft: #3A2A2E;
    --olive: #A9B872; --oliveInk: #B9C785; --oliveSoft: #2C3020;
    --orange: #F08A3E; --onOrange: #1C1916; --orangeSoft: #3D2A1C; --orangeText: #F08A3E;
    --shadow-shot: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
    --shadow-primary: 0 8px 18px -8px rgba(240, 138, 62, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1C1916; --raised: #27231F; --sunk: #141210;
  --ink: #F2EADD; --ink2: #C2B7A8; --ink3: #9A8F81; --line: rgba(242, 234, 221, .14);
  --sakuraInk: #F0B3C2; --sakuraSoft: #3A2A2E;
  --olive: #A9B872; --oliveInk: #B9C785; --oliveSoft: #2C3020;
  --orange: #F08A3E; --onOrange: #1C1916; --orangeSoft: #3D2A1C; --orangeText: #F08A3E;
  --shadow-shot: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
  --shadow-primary: 0 8px 18px -8px rgba(240, 138, 62, .45);
}
:root[data-theme="light"] { color-scheme: light; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t3)/1.55 var(--ui);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
p span[lang="ja"], li span[lang="ja"] { white-space: nowrap; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
a { color: var(--orangeText); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
:lang(ja) { font-family: var(--jp); }
::selection { background: var(--sakuraSoft); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-md);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Voices */
.display { font: 400 var(--t7)/1.02 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.display em { font-style: italic; font-weight: 600; }
.h2 { font: 400 var(--t6)/1.08 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.h3 { font: 600 var(--t4)/1.25 var(--ui); letter-spacing: -.01em; }
.lede { font-size: var(--t4); line-height: 1.45; color: var(--ink2); text-wrap: pretty; }
.muted { color: var(--ink2); }
.fine { font-size: var(--t1); line-height: 1.45; color: var(--ink3); }

/* Eki stamp (double ring). --c sets the ink. */
.stamp {
  --c: var(--sakuraInk); --s: 34px;
  width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  border: 2px solid var(--c);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3.2px var(--c);
  display: grid; place-items: center;
  font: 600 calc(var(--s) * .46)/1 var(--mincho); color: var(--c);
  transform: rotate(var(--rot, -8deg));
}
.stamp.c1 { --c: var(--orange); }
.stamp.c2 { --c: var(--oliveInk); }
.mark { transform: none; font-size: var(--t2); }

/* Header */
.site-head { padding: 12px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand b { font: 600 var(--t4)/1 var(--serif); letter-spacing: -.01em; }
.head-cta {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--ink);
  font: 600 var(--t2)/1 var(--ui); text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.head-cta:hover { text-decoration-color: var(--orange); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-md);
  font: 600 var(--t3)/1 var(--ui); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease-out, opacity .15s ease-out;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--orange); color: var(--onOrange); box-shadow: var(--shadow-primary); }
.btn-primary[disabled] { opacity: .5; cursor: default; }

/* Footer */
.site-foot { margin-top: 96px; padding: 28px 0 48px; border-top: 1px solid var(--line); color: var(--ink3); font-size: var(--t2); }
.site-foot .wrap { display: grid; gap: 16px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.foot-links a { color: var(--ink2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.foot-note { max-width: 62ch; }
.site-foot details { max-width: 62ch; }
.site-foot summary { cursor: pointer; color: var(--ink2); min-height: 44px; display: flex; align-items: center; }
.site-foot details p { margin-top: 4px; }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes stampIn {
  0% { transform: scale(1.8) rotate(-18deg); opacity: 0; }
  60% { transform: scale(.94) rotate(calc(var(--rot, -8deg) + 2deg)); opacity: 1; }
  100% { transform: scale(1) rotate(var(--rot, -8deg)); opacity: 1; }
}
@keyframes wv { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============ Home ============ */

/* Hero */
.hero { padding: 20px 0 0; }
.hero-grid { display: grid; gap: 44px; }
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: 20px; align-content: start; animation: rise .3s var(--ease) both; }
.hero .lede { max-width: 34ch; }

/* Waitlist: one row, email + button */
.join { margin-top: 8px; scroll-margin-top: 24px; max-width: 520px; }
.join-row {
  display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 16px;
  background: var(--raised); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .15s ease-out;
}
.join-row:focus-within { border-color: var(--orange); }
.join-row input {
  flex: 1 1 0; width: 0; min-width: 0; height: 48px; border: 0; background: transparent; padding: 0;
  font: 400 var(--t3)/1 var(--ui); color: var(--ink); outline: none; -webkit-appearance: none; appearance: none;
}
.join-row input::placeholder { color: var(--ink3); opacity: 1; }
.join-row .btn { height: 48px; padding: 0 18px; border-radius: 13px; box-shadow: none; }
.join .fine { margin-top: 12px; font-size: var(--t2); color: var(--ink2); }
.msg { font-size: var(--t2); margin-top: 10px; }
.msg:empty { display: none; }
.msg.err { color: var(--sakuraInk); font-weight: 600; }

.done { display: grid; gap: 18px; animation: rise .3s var(--ease) both; }
.done:focus { outline: none; }
.done-head { display: flex; gap: 16px; align-items: center; }
.done .stamp { --s: 60px; border-width: 2.5px; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4.8px var(--c); animation: stampIn .5s cubic-bezier(.3, 1.5, .5, 1) .15s both; }
.done h2 { font: 400 var(--t5)/1.15 var(--serif); letter-spacing: -.01em; }
.done-head p { color: var(--ink2); font-size: var(--t2); margin-top: 2px; }
.when legend { font: 600 var(--t2)/1.4 var(--ui); padding: 0; margin-bottom: 10px; }
.when-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.when-opts button {
  min-height: 48px; padding: 10px 12px; text-align: left; cursor: pointer;
  background: var(--raised); border: 1.5px solid var(--line); border-radius: var(--r-md);
  font: 500 var(--t2)/1.25 var(--ui); color: var(--ink); transition: border-color .15s, background .15s;
}
.when-opts button:hover { border-color: var(--ink3); }
.when-opts button[aria-pressed="true"] { border-color: var(--oliveInk); background: var(--oliveSoft); }
.when-opts button[disabled] { cursor: default; }
.when-opts button[disabled]:not([aria-pressed="true"]) { opacity: .5; }
.thanks { color: var(--ink2); font-size: var(--t2); }

/* Hero art: the real Today screen with Hana and Tanu in front of it. */
.hero-art { display: grid; gap: 12px; }
.stage { position: relative; aspect-ratio: 358 / 500; }
.stage-ui {
  position: absolute; right: 0; top: 0; width: 80%; height: auto;
  border-radius: 22px; box-shadow: var(--shadow-shot); transform: rotate(2.2deg); transform-origin: 70% 0;
}
.stage-ja {
  position: absolute; left: 1%; top: 2%;
  writing-mode: vertical-rl; font: 400 var(--t5)/1 var(--mincho); letter-spacing: .14em; color: var(--ink);
}
.stage-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, var(--paper) 62%); }
.hero-hana, .hero-tanu { position: absolute; bottom: 0; aspect-ratio: 1; height: auto; }
.hero-hana { left: -4%; width: 62%; }
.hero-tanu { right: -2%; width: 36%; bottom: -1%; }
video.anim { background: transparent; }
video.hero-hana, video.hero-tanu { opacity: 0; transition: opacity .2s ease; }
video.hero-hana.on, video.hero-tanu.on { opacity: 1; }
.hero-art figcaption { font-size: var(--t1); color: var(--ink3); padding-left: 2px; }

/* Sections */
.sec { margin-top: 104px; }
.sec-head { display: grid; gap: 12px; max-width: 560px; margin-bottom: 32px; }
.sec-head p { color: var(--ink2); text-wrap: pretty; }

/* Bento: large, readable crops of the real app, one sentence each */
.bento { list-style: none; padding: 0; display: grid; gap: 12px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--sunk);
  display: flex; flex-direction: column; gap: 22px; padding: 24px 22px 0;
}
.tile .copy { display: grid; gap: 6px; max-width: 36ch; }
.tile p { color: var(--ink2); text-wrap: pretty; }
.tile .shot { margin-top: auto; align-self: center; width: min(100%, 402px); }
.tile .shot img { width: 100%; border-radius: 20px 20px 0 0; box-shadow: var(--shadow-shot); }
.tile.pad-b { padding-bottom: 22px; }
.tile.pad-b .shot img { border-radius: 20px; }
.tile.talk { background: var(--sakuraSoft); }
.tile.staff .shot img { border-radius: 20px; }
.tile.stamp-t { background: var(--orangeSoft); }
.tile.count { background: var(--ink); color: var(--paper); justify-content: space-between; padding-bottom: 24px; min-height: 260px; }
.tile.count p { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.tile.count .num { font: 400 clamp(96px, 30vw, 168px)/.8 var(--serif); letter-spacing: -.04em; }
.tile.count .kanji { position: absolute; right: 22px; top: 22px; font: 400 var(--t5)/1 var(--mincho); writing-mode: vertical-rl; letter-spacing: .12em; color: color-mix(in srgb, var(--paper) 55%, transparent); }

/* Stamp strip: the 21 stamps, one per situation */
.stamps .sec-head { margin-bottom: 24px; }
.strip {
  list-style: none; margin: 0; padding: 8px var(--gutter) 12px; display: flex; gap: 4px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: none; width: 96px; scroll-snap-align: start; display: grid; justify-items: center; gap: 10px; text-align: center; }
.strip .stamp { --s: 68px; border-width: 2.5px; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4.8px var(--c); }
.strip span:last-child { font-size: var(--t1); line-height: 1.3; color: var(--ink2); max-width: 88px; }
.strip li:last-child .stamp { --c: var(--ink); }
.stamps.pre .strip .stamp { opacity: 0; }
.stamps.in .strip .stamp { animation: stampIn .5s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(.15s + var(--i, 0) * .07s); }
.strip-foot { display: grid; gap: 14px; justify-items: start; }
.strip-hint { margin-top: 6px; }
.text-link { font-weight: 600; color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }
.text-link:hover { color: var(--orangeText); }

/* Phrase card demo */
.demo { display: grid; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-md);
  background: transparent; border: 1.5px solid var(--line); color: var(--ink);
  font: 500 var(--t2)/1 var(--jp); cursor: pointer; transition: transform .15s ease-out, border-color .15s;
}
.chip:active { transform: scale(.98); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--raised); }
.pcard { background: var(--raised); border-radius: var(--r-xl); padding: 24px 22px 20px; box-shadow: var(--shadow-shot); }
.pcard .ctx { font-size: var(--t2); color: var(--ink3); }
.pcard .ja { font: 500 var(--t6)/1.25 var(--jp); margin-top: 10px; word-break: keep-all; overflow-wrap: anywhere; }
.pcard .ro { font-size: var(--t4); color: var(--ink2); margin-top: 8px; }
.pcard .en { font-size: var(--t3); margin-top: 2px; }
.pcard hr { border: 0; border-top: 1.5px dashed var(--line); margin: 20px 0 16px; }
.player { display: flex; align-items: center; gap: 16px; }
.play {
  width: 68px; height: 68px; border-radius: 50%; border: 0; flex: none; cursor: pointer;
  background: var(--orange); color: var(--onOrange); display: grid; place-items: center;
  box-shadow: var(--shadow-primary); transition: transform .15s ease-out;
}
.play:active { transform: scale(.95); }
.play svg { width: 28px; height: 28px; }
.play .i-pause { display: none; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.player-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.wave { display: flex; align-items: center; justify-content: center; gap: 2.5px; height: 44px; }
.wave span { flex: 1 1 0; max-width: 4px; min-width: 2px; border-radius: 2px; background: var(--ink3); opacity: .4; transform-origin: center; }
.pcard[data-state="playing"] .wave span { background: var(--orange); opacity: 1; animation: wv var(--d) ease-in-out var(--dl) infinite alternate; }
.pcard[data-state="slow"] .wave span { background: var(--sakuraInk); opacity: 1; animation: wv var(--d) ease-in-out var(--dl) infinite alternate; }
.player-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pstate { font-size: var(--t1); color: var(--ink3); }
.slow {
  min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1.5px solid var(--line); cursor: pointer;
  background: transparent; color: var(--ink); font: 600 var(--t1)/1 var(--ui); position: relative;
}
.slow::after { content: ""; position: absolute; inset: -5px 0; }
.slow[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.notes { display: grid; gap: 0; }
.notes p { padding: 14px 2px; border-top: 1px solid var(--line); color: var(--ink2); text-wrap: pretty; }
.notes p:last-child { border-bottom: 1px solid var(--line); }
.notes b { color: var(--ink); font-weight: 600; }

/* Torn-paper note (AI disclosure) */
.torn {
  position: relative; background: var(--sakuraSoft); color: var(--ink);
  padding: 26px 20px 20px; border-radius: 4px 4px 18px 18px;
  clip-path: polygon(0 7px, 5% 1px, 11% 6px, 17% 0, 24% 5px, 31% 1px, 38% 7px, 46% 2px, 53% 6px, 61% 0, 68% 5px, 75% 1px, 83% 6px, 90% 0, 96% 5px, 100% 2px, 100% 100%, 0 100%);
}
.torn h3 { font: 600 var(--t3)/1.3 var(--serif); }
.torn p { margin-top: 6px; font-size: var(--t2); line-height: 1.55; color: var(--ink2); text-wrap: pretty; }

/* Pricing */
.plans { list-style: none; padding: 0; display: grid; }
.plan {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px; border-top: 1px solid var(--line);
}
.plan:last-child { border-bottom: 1px solid var(--line); }
.plan .t { font: 600 var(--t3)/1.3 var(--ui); }
.plan .s { font-size: var(--t2); line-height: 1.4; color: var(--ink2); margin-top: 2px; }
.plan .p { text-align: right; flex: none; }
.plan .p b { display: block; font: 400 var(--t5)/1.05 var(--serif); letter-spacing: -.01em; }
.plan .p span { font-size: var(--t1); color: var(--ink3); }
.plans .ticket-row { padding: 12px 0; border-top: 1px solid var(--line); }
/* Trip Pass ticket: notches cut into both sides at 50% */
.ticket {
  display: flex; align-items: stretch; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg);
  background: var(--orangeSoft); color: var(--ink);
  -webkit-mask: radial-gradient(circle 10px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 10px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket .main { flex: 1; min-width: 0; }
.ticket .t { font: 600 var(--t3)/1.3 var(--ui); }
.ticket .t [lang="ja"] { font-family: var(--mincho); color: var(--orangeText); margin-left: 4px; }
.ticket .s { font-size: var(--t2); line-height: 1.4; color: var(--ink2); margin-top: 2px; }
.ticket .perf { border-left: 2px dashed color-mix(in srgb, var(--orange) 40%, transparent); }
.ticket .p { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-width: 80px; }
.ticket .p b { font: 400 var(--t5)/1.05 var(--serif); color: var(--orangeText); letter-spacing: -.01em; }
.ticket .p span { font-size: var(--t1); color: var(--ink2); margin-top: 2px; }
.price-note { margin-top: 16px; max-width: 60ch; }

/* FAQ: hairline list */
.faq { display: grid; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 2px; font: 600 var(--t3)/1.35 var(--ui);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 9px; height: 9px; flex: none; margin-right: 6px;
  border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .28s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details > div { padding: 0 2px 20px; color: var(--ink2); display: grid; gap: 10px; max-width: 62ch; }
.faq details[open] > div { animation: rise .28s var(--ease) both; }

/* Closing */
.closing { margin-top: 112px; }
.closing .wrap { position: relative; display: grid; gap: 16px; }
.closing .h2 { max-width: 14ch; }
.closing p { color: var(--ink2); max-width: min(40ch, calc(100% - 96px)); }
.closing .btn { justify-self: start; }
.closing .tanu-bow { position: absolute; right: var(--gutter); bottom: -10px; width: 120px; height: 120px; object-fit: contain; pointer-events: none; }

/* Desktop */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .tile { padding: 30px 30px 0; }
  .tile.pad-b { padding-bottom: 30px; }
  .tile.count { padding-bottom: 30px; }
  .tile.talk { grid-row: span 2; }
  .demo-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
  .demo-wrap .sec-head { position: sticky; top: 40px; }
  .price-wrap, .faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
  .closing .tanu-bow { width: 180px; height: 180px; bottom: -20px; right: calc(var(--gutter) + 40px); }
}
@media (min-width: 960px) {
  .site-head { padding: 20px 0; }
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
  .hero .display { max-width: 12.5ch; }
  .stage { max-width: 470px; justify-self: end; width: 100%; }
  .hero-art { justify-items: end; }
  .sec { margin-top: 152px; }
  .closing { margin-top: 160px; }
  .strip { max-width: 1120px; margin: 0 auto; flex-wrap: wrap; justify-content: flex-start; gap: 28px 0; overflow: visible; }
  .strip li { width: calc(100% / 7); }
  .strip-hint { display: none; }
}

/* ============ Long-form pages (privacy, terms, support) ============ */
.doc { padding-top: 16px; }
.doc .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.doc .wrap > * { min-width: 0; }
.doc-head { max-width: 68ch; }
.doc-head h1 { font: 400 var(--t6)/1.08 var(--serif); letter-spacing: -.02em; margin-top: 8px; }
.doc-head .meta { margin-top: 12px; font-size: var(--t2); color: var(--ink3); }
.prose { max-width: 68ch; font-size: var(--t3); line-height: 1.65; color: var(--ink2); }
.prose section { margin-top: 48px; scroll-margin-top: 24px; }
.prose h2 { font: 400 var(--t5)/1.2 var(--serif); letter-spacing: -.01em; color: var(--ink); scroll-margin-top: 24px; }
.prose h3 { margin-top: 26px; font: 600 var(--t3)/1.35 var(--ui); color: var(--ink); }
.prose p, .prose ul, .prose ol { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--ink3); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--orangeText); overflow-wrap: anywhere; }
.summary { margin-top: 28px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--raised); border: 1px solid var(--line); }
.summary h2 { font: 600 var(--t3)/1.35 var(--ui); color: var(--ink); }
.summary ul { margin-top: 8px; }
.callout { margin-top: 16px; background: var(--oliveSoft); border-radius: var(--r-lg); padding: 16px 18px; color: var(--ink); }
.callout p:first-child { margin-top: 0; }
.table-wrap { margin-top: 14px; overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: var(--t2); line-height: 1.5; min-width: 540px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink2); }
th { color: var(--ink); font-weight: 600; background: var(--sunk); }
tr:last-child td { border-bottom: 0; }

nav.toc { margin-top: 24px; }
nav.toc details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
nav.toc summary {
  list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px; font: 600 var(--t3)/1 var(--ui); color: var(--ink);
}
nav.toc summary::-webkit-details-marker { display: none; }
nav.toc summary::after {
  content: ""; width: 9px; height: 9px; margin-right: 6px; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .28s var(--ease);
}
nav.toc details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
nav.toc ol { list-style: none; margin: 0; padding: 0 0 12px; counter-reset: toc; }
nav.toc li { counter-increment: toc; }
nav.toc a {
  display: flex; gap: 10px; align-items: baseline; padding: 8px 8px; border-radius: var(--r-sm);
  color: var(--ink2); text-decoration: none; font-size: var(--t2); line-height: 1.35;
}
nav.toc a::before { content: counter(toc); font-size: var(--t1); color: var(--ink3); min-width: 16px; font-variant-numeric: tabular-nums; }
nav.toc a:hover { background: var(--sunk); color: var(--ink); }
nav.toc a[aria-current="true"] { background: var(--orangeSoft); color: var(--ink); }
nav.toc a[aria-current="true"]::before { color: var(--orangeText); }

.contact { margin-top: 28px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 12px; max-width: 68ch; }
.contact p { color: var(--ink2); }
.contact .btn { justify-self: start; overflow-wrap: anywhere; white-space: normal; }
.support-faq { margin-top: 28px; max-width: 68ch; border-bottom: 1px solid var(--line); }
.support-faq details > p { padding: 0 2px; margin-top: 10px; color: var(--ink2); font-size: var(--t3); line-height: 1.6; max-width: 62ch; }
.support-faq details > p:first-of-type { margin-top: 0; }
.support-faq details > p:last-child { padding-bottom: 20px; }
.support-faq a { color: var(--orangeText); }
.support-faq strong { color: var(--ink); font-weight: 600; }

@media (min-width: 1000px) {
  .doc.has-toc .wrap { grid-template-columns: 260px minmax(0, 68ch); grid-template-rows: auto 1fr; column-gap: 64px; justify-content: center; }
  .doc.has-toc .doc-head, .doc.has-toc .prose { grid-column: 2; }
  .doc.has-toc nav.toc { grid-column: 1; grid-row: 1 / span 2; margin-top: 0; padding-top: 14px; }
  .doc.has-toc nav.toc details { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; border: 0; }
  .doc.has-toc nav.toc summary { cursor: default; pointer-events: none; padding: 0 8px; min-height: 36px; font-size: var(--t2); color: var(--ink3); }
  .doc.has-toc nav.toc summary::after { display: none; }
  .doc:not(.has-toc) .wrap { max-width: calc(68ch + 64px); }
}

@media print {
  body { background: #fff; color: #000; }
  .site-head .head-cta, nav.toc, .skip { display: none; }
  .prose, .prose strong, .prose h2, .prose h3, th, td { color: #000; }
  .summary, .table-wrap, .callout { border: 1px solid #ccc; }
}

.when .opt { font-weight: 400; color: var(--ink3); }
#form .when { margin-bottom: 12px; }

