/* Not Yet · start page (all languages).
   A product launch page: centered statements, devices as the heroes,
   a sticky iPhone that tells the day, bento tiles for the details. */

section.sec { padding-block: clamp(96px, 13vw, 180px); }
.sechead { display: grid; gap: 18px; justify-items: center; text-align: center; margin-bottom: clamp(48px, 7vw, 96px); }
.sechead h2 { font-size: var(--t-h2); line-height: 1.04; max-width: 16ch; }

/* Devices. Frames use child margins: an absolute frame's own % padding would follow the stage width. */
.iphone { position: relative; display: flow-root; border-radius: 16% / 7.6%; background: linear-gradient(140deg, #E4DFD9 0%, #9C958E 22%, #F2EEE9 48%, #8A847D 76%, #D8D2CB 100%); box-shadow: var(--shadow-device); }
.iphone .bezel { margin: 1.1%; border-radius: 15% / 7.1%; background: #0A0A0A; padding: 3%; }
.iphone .glass { position: relative; border-radius: 13% / 6%; overflow: hidden; aspect-ratio: 720 / 1565; background: #000; }
.glass img, .glass .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.iphone::after { content: ""; position: absolute; right: -1.3%; top: 22%; width: 1.4%; height: 12%; border-radius: 0 3px 3px 0; background: #8f8881; }
/* Apple Watch, one component for hero and bento. --ww is the watch width. As on a Series 10/11 the display
   runs almost to the case edge: thin black border. Screens are the full 46 mm display (416 x 496 px); its corner
   is 51 pt continuous (EdgeShape in the watch app), which a plain radius of 102 px matches at the diagonal. */
.watch { --ww: 240px; position: relative; width: var(--ww); }
.watch .case { padding: calc(var(--ww) * .032); border: calc(var(--ww) * .018) solid #3B3734; border-radius: calc(var(--ww) * .27); background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), var(--shadow-device); }
.watch .face { position: relative; border-radius: 24.5% / 20.6%; overflow: hidden; aspect-ratio: 416 / 496; background: #000; }
.watch .face img { position: absolute; inset: 0; width: 100%; height: 100%; }
.watch .crown { position: absolute; right: calc(var(--ww) * -.04); top: 22%; width: calc(var(--ww) * .06); height: calc(var(--ww) * .18); border-radius: calc(var(--ww) * .025);
  background: repeating-linear-gradient(180deg, #6B6662 0 1px, #3B3836 1px 3px); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .15); }
.watch .sbtn { position: absolute; right: calc(var(--ww) * -.02); top: 50%; width: calc(var(--ww) * .03); height: calc(var(--ww) * .22); border-radius: 3px; background: #2C2A28; }
/* Dynamic Island on every phone screen (.iphone .glass and the hero's .scr). Measured on the
   alarm screenshot: 224 x 65 px at x 248, y 25 of a 720 px wide screen; % margins follow the width. */
.glass::after, .scr::after { content: ""; position: absolute; z-index: 2; top: 0; left: 34.4%; width: 31.2%; margin-top: 3.45%; aspect-ratio: 224 / 65; border-radius: 99px; background: #000; }
/* Day, rotation and watch screens: the new screen fades in on top; the old one stays until it is covered, so the glass never shows black. */
.shot { opacity: 0; transition: opacity 0s .5s; }
.shot.on { opacity: 1; z-index: 1; transition: opacity .5s ease; }
@media (prefers-reduced-motion: reduce) { .shot, .shot.on { transition: none; } }
.px { image-rendering: pixelated; height: auto; object-fit: contain; }

/* Reveal: elements below the first screen glide in once (home.js adds .pre, never with reduced motion). */
.reveal { transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1); }
.reveal.pre { opacity: 0; transform: translateY(48px); }

/* Hero (variant A of docs/design/mockups/website-hero.html): Fraunces claim on a light apricot ground,
   five phones fanned around one pivot far below the stage. The fan opens once on load. */
@font-face {
  font-family: "Fraunces Soft";
  src: url("/assets/fonts/fraunces-soft-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@property --s { syntax: "<number>"; inherits: true; initial-value: 1; }
:root { --hero-bg: #FCEEE2; --ti1: #D9D3CC; --ti2: #9C958E; --strap: #BFB3A6; --sky: #D8E7F4; }
:root[data-theme="dark"] { --hero-bg: #1C1510; --ti1: #5A5652; --ti2: #2F2C2A; --strap: #2E2A27; --sky: #B7DAFF; }
.js .home .nav:not(.past) { background: var(--hero-bg); }

#hero { background: var(--hero-bg); text-align: center; overflow: hidden; padding-top: clamp(40px, 3.9vw, 56px); }
.hero-eb { font-size: .9375rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-bottom: 22px; }
#hero h1 { font: 500 clamp(2.875rem, 1.6rem + 4.9vw, 5.75rem)/1.04 "Fraunces Soft", Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
#hero h1 .l2 { display: block; }
/* Fraunces has no kana or hangul: Japanese gets a heavier Mincho, Korean a bold Gothic. */
#hero h1:lang(ja) { font-family: "Fraunces Soft", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif; font-weight: 600; font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5rem); line-height: 1.15; }
#hero h1:lang(ko) { font-family: "Fraunces Soft", var(--sans); font-weight: 700; font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5rem); line-height: 1.15; }
.hero-sub { margin: 26px auto 0; max-width: 34em; font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); text-wrap: balance; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 26px; margin-top: 34px; }
.hero-cta .btn { min-height: 54px; padding: 0 28px; }
.plat { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin-top: 24px; font-size: .875rem; color: var(--ink-2); }
.plat span { display: inline-flex; align-items: center; gap: 6px; }
.plat svg { width: 17px; height: 17px; flex: none; }
.plat .for, .plat .dot { color: var(--ink-3); }

/* --w is the phone width; stage height and phone top follow it (1440: 258 px, phone: 134 px). */
.fan { --w: clamp(134px, 18vw, 258px); position: relative; height: calc(var(--w) * 1.371 + 146px); margin-top: clamp(40px, 3.4vw, 48px); overflow: hidden; }
.fan-phone { --a: 0; position: absolute; left: 50%; top: calc(var(--w) * .113 + 13px); z-index: var(--z, 1); width: var(--w); padding: calc(var(--w) * .034); border-radius: calc(var(--w) * .172); background: #0B0B0C;
  box-shadow: inset 0 0 0 calc(var(--w) * .011) var(--ti1), inset 0 0 0 calc(var(--w) * .016) var(--ti2), var(--shadow-device);
  transform: translateX(-50%) rotate(calc(var(--a) * var(--s) * 1deg)); transform-origin: 50% 260%; }
.fan-phone:nth-child(1) { --a: -16; }
.fan-phone:nth-child(2) { --a: -8; --z: 2; }
.fan-phone:nth-child(3) { --z: 3; }
.fan-phone:nth-child(4) { --a: 8; --z: 2; }
.fan-phone:nth-child(5) { --a: 16; }
.fan-phone::before, .fan-phone::after { content: ""; position: absolute; width: calc(var(--w) * .012); border-radius: 2px; background: var(--ti2); }
.fan-phone::before { left: calc(var(--w) * -.008); top: 21%; height: 6%; box-shadow: 0 calc(var(--w) * .2) 0 var(--ti2); }
.fan-phone::after { right: calc(var(--w) * -.008); top: 27%; height: 11%; }
.scr { position: relative; border-radius: calc(var(--w) * .138); overflow: hidden; aspect-ratio: 1206 / 2622; background: #000; }
.scr img { width: 100%; height: 100%; object-fit: cover; }

/* Apple Watch in front of the fan, desktop only. */
.fan-watch { --ww: calc(var(--w) * .58); position: absolute; left: calc(50% + var(--w) * 1.62); top: calc(var(--w) * .5); z-index: 6; }
.fan-watch .strap { position: absolute; left: 19%; width: 62%; height: calc(var(--ww) * .62); z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 22%, rgba(255, 255, 255, .1) 50%, transparent 78%, rgba(0, 0, 0, .18)), var(--strap); }
.fan-watch .strap.t { top: calc(var(--ww) * -.5); border-radius: calc(var(--ww) * .06) calc(var(--ww) * .06) 0 0; -webkit-mask: linear-gradient(to top, #000 45%, transparent); mask: linear-gradient(to top, #000 45%, transparent); }
.fan-watch .strap.b { bottom: calc(var(--ww) * -.5); border-radius: 0 0 calc(var(--ww) * .06) calc(var(--ww) * .06); -webkit-mask: linear-gradient(to bottom, #000 45%, transparent); mask: linear-gradient(to bottom, #000 45%, transparent); }

@media (prefers-reduced-motion: no-preference) {
  .fan { animation: fan 1.4s cubic-bezier(.2, .7, .2, 1) .15s backwards; }
  .fan-watch { animation: watch-in 1s ease .7s backwards; }
  @keyframes fan { from { --s: 0; } }
  @keyframes watch-in { from { opacity: 0; translate: 0 24px; } }
}

/* What: words light up while you scroll */
.statement { font-size: clamp(2rem, 1.1rem + 3.6vw, 4.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; max-width: 20ch; margin-inline: auto; text-align: center; text-wrap: balance; }
.statement .w { transition: color .35s ease; }
.statement.lit .w { color: var(--dim); }
.statement.lit .w.on { color: var(--ink); }
.statement .hi .w.on, .statement:not(.lit) .hi { color: var(--accent-ink); }
.what-foot { margin: 40px auto 0; max-width: 46ch; text-align: center; color: var(--ink-2); font-size: 1.1875rem; }

/* Pillars: three tiles */
#pillars { background: var(--bg-alt); }
.bento3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--tile); border-radius: 30px; overflow: hidden; position: relative; }
.pillar { display: grid; grid-template-rows: auto 1fr; }
.pillar .txt { padding: 36px 32px 0; display: grid; gap: 10px; align-content: start; }
.pillar .tag { font-size: .875rem; font-weight: 600; color: var(--accent-ink); }
.pillar h3 { font-size: var(--t-h3); line-height: 1.05; }
.pillar ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.pillar li { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--hair); }
.pillar li b { font-weight: 600; font-size: 1rem; }
.pillar li span { color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.pillar .peek { height: 300px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; margin-top: 32px; align-self: end; }
.pillar .peek .iphone { width: 64%; max-width: 250px; box-shadow: 0 30px 60px -30px rgba(40, 25, 10, .4); }

/* Day: sticky phone story */
.daywrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 78vh; display: grid; align-content: center; gap: 12px; }
/* Steps away from the middle fade back, but keep readable contrast (3:1 for the big lines, 4.5:1 for text). */
.step time, .step h3, .step p { transition: color .5s ease; }
.js .step:not(.on) time, .js .step:not(.on) h3 { color: var(--dim); }
.js .step:not(.on) time.am { background: none; }
.js .step:not(.on) p { color: var(--ink-3); }
.step time { font-size: clamp(3rem, 2rem + 4vw, 6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.step time.am { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: var(--t-h3); line-height: 1.08; }
.step p { color: var(--ink-2); font-size: 1.1875rem; max-width: 30ch; }
.step .inline { display: none; }
.stick { position: sticky; top: calc(var(--nav-h) + (100vh - var(--nav-h) - min(72vh, 600px)) / 2); display: grid; justify-items: center; }
.stick .iphone { width: min(260px, 31vh); }  /* about min(600px, 72vh) tall */
.dots { position: absolute; right: -28px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: .5; transition: all .3s ease; }
.dots i.on { background: var(--accent); opacity: 1; height: 18px; border-radius: 4px; }

/* Rotation */
#rotation { background: var(--bg-alt); overflow: hidden; }
.rot { display: grid; justify-items: center; gap: 32px; }
.rot .iphone { width: clamp(220px, 26vw, 330px); }
.seg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; background: var(--tile); padding: 4px; border-radius: 999px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.seg button { border: 0; background: none; color: var(--ink-2); font: 500 .9375rem/1 var(--sans); padding: .75rem 1.15rem; min-height: 44px; border-radius: 999px; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.rot-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; align-items: center; color: var(--ink-2); font-size: .9375rem; }
.rot-meta .gesture { font-weight: 600; color: var(--ink); min-width: 18ch; text-align: center; }
.rot-more { color: var(--ink-2); font-size: .9375rem; text-align: center; }
.shufflebtn { border: 1px solid var(--hair); background: var(--tile); color: var(--ink); border-radius: 999px; padding: .75rem 1.15rem; min-height: 44px; font: 500 .9375rem/1 var(--sans); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.shufflebtn svg { width: 16px; height: 16px; }

/* Stance: the one dark band (dark in both themes) */
#stance { background: var(--band); color: var(--band-ink); border-block: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
#stance .eyebrow { color: var(--accent); }
#stance .sechead h2 { color: var(--band-ink); }
.lines { display: grid; gap: clamp(28px, 4vw, 48px); max-width: 980px; margin: 0 auto; padding: 0; list-style: none; }
.line { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: baseline; }
.line del { justify-self: start; font-size: clamp(1.3rem, 1rem + 1.2vw, 2.1rem); font-weight: 600; color: var(--band-ink-2); text-decoration: none; letter-spacing: -.02em; }
.line .strike { padding-inline: .08em; margin-inline: -.08em; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 56% / 100% 3px; transition: background-size .8s cubic-bezier(.6, 0, .2, 1) .1s; }
.line.pre-strike .strike { background-size: 0 3px; }
.line ins { text-wrap: pretty; text-decoration: none; font-size: clamp(1.3rem, 1rem + 1.2vw, 2.1rem); font-weight: 700; letter-spacing: -.025em; }

/* Features bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.ftile { background: var(--bg-alt); border-radius: 30px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-height: 380px; }
.ftile .txt { padding: 30px 30px 0; display: grid; gap: 6px; align-content: start; }
.ftile h3 { font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; }
.ftile p { color: var(--ink-2); max-width: 36ch; }
.ftile .art { display: grid; place-items: end center; padding: 24px 24px 0; overflow: hidden; }
.span3 { grid-column: span 3; }
.ftile.watchtile { grid-row: span 2; }
.ftile.watchtile .art { place-items: center; padding-bottom: 32px; }
.ftile.watchtile .watch { --ww: 250px; }
.ftile.wide { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: none; min-height: 0; }
.ftile.wide .txt { align-content: center; padding-bottom: 30px; }
.ftile.wide .art { padding-top: 40px; }
/* Bento phones: the shared .iphone, cut off by the tile like the pillar peeks. */
.crop { width: min(70%, 320px); height: 240px; overflow: hidden; padding-inline: 8px; }
.crop .iphone { box-shadow: 0 2px 4px rgba(40, 25, 10, .08); }
.widgets { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; justify-content: center; padding-bottom: 30px; }
.ftile .art.widgets { display: flex; padding-bottom: 30px; }
.widgets img { border-radius: 20px; box-shadow: var(--shadow-soft); }
.widgets .w-s { width: 112px; }
.widgets .w-m { width: 240px; }
.widgets .w-l { width: 300px; border-radius: 22px; }
.ftile .art.kiosk { display: flex; justify-content: center; gap: 18px; align-items: flex-end; padding-bottom: 34px; }
/* Whole-number scales of the pixel sprites (hammer 12 px, pig 42 px wide at 1x). */
.kiosk .hammer { width: 48px; }
.kiosk .pig { width: 168px; }
/* Water: the app's pixel glass (WaterGlass.swift, full, stored at 1x) in its sky dot, as on Home.
   Whole-number scales only: 10x, or 8x when the tile is narrow. */
.ftile .art.water { display: flex; justify-content: center; align-items: center; gap: 24px; padding-bottom: 34px; container-type: inline-size; }
.skydot { display: grid; place-items: center; width: 168px; aspect-ratio: 1; border-radius: 50%; background: var(--sky); flex: none; }
.skydot .glass-px { width: 100px; }
@container (max-width: 420px) {
  .skydot { width: 136px; }
  .skydot .glass-px { width: 80px; }
}
.ftile .art.water .bignum { padding-bottom: 0; }
.bignum { font-size: 5.5rem; font-weight: 700; letter-spacing: -.06em; line-height: 1; padding-bottom: 34px; font-variant-numeric: tabular-nums; }
.bignum small { font-size: 1rem; letter-spacing: -.01em; color: var(--ink-2); font-weight: 500; margin-left: 6px; }

/* Privacy */
#privacy { text-align: center; }
.lock { width: 76px; height: 76px; margin: 0 auto 28px; color: var(--accent); }
#privacy .sechead { margin-bottom: 0; }
.pcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: left; margin-top: 72px; }
.pcols div { display: grid; gap: 8px; align-content: start; padding-top: 22px; border-top: 1px solid var(--hair); }
.pcols h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.pcols p { color: var(--ink-2); }
.privacy-more { margin-top: 40px; }

/* FAQ */
#faq { background: var(--bg-alt); }
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 26px; font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: 26px; color: var(--ink-2); font-size: 1.0625rem; max-width: 62ch; }
.faq details a { color: var(--accent-ink); }

/* CTA */
#cta { text-align: center; padding-bottom: 0; overflow: hidden; }
#cta h2 { font-size: var(--t-h2); line-height: 1.02; }
#cta .eyebrow { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--hair); border-radius: 999px; padding: .5rem .95rem; font-size: .9375rem; color: var(--ink-2); }
.chips b { color: var(--ink); font-weight: 600; }
.cta-actions { display: grid; justify-items: center; gap: 14px; margin-top: 34px; }
.cta-actions p { color: var(--ink-2); font-size: .9375rem; }
.cta-actions .applang { color: var(--ink-3); }
.cta-actions a:not(.btn) { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.cta-device { height: clamp(260px, 30vw, 380px); overflow: hidden; margin-top: 64px; display: flex; justify-content: center; background: var(--glow); }
.cta-device .iphone { width: clamp(220px, 24vw, 320px); align-self: flex-start; }

/* Responsive */
@media (max-width: 1000px) {
  .bento3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pillar .peek { height: 260px; }
  .pillar .peek .iphone { width: 46%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .span3 { grid-column: span 1; }
  .ftile.wide { grid-template-columns: 1fr; }
  .ftile.watchtile, .ftile.widgetstile, .ftile.kiosktile { grid-column: 1 / -1; grid-row: auto; }
  .fan-watch { display: none; }
}
@media (max-width: 760px) {
  .daywrap { grid-template-columns: 1fr; }
  .stick { display: none; }
  .step { min-height: 0; padding-block: 36px; border-top: 1px solid var(--hair); }
  .js .step:not(.on) time, .js .step:not(.on) h3 { color: var(--ink); }
  .js .step:not(.on) time.am { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .js .step:not(.on) p { color: var(--ink-2); }
  .step .inline { display: block; width: 190px; margin: 18px 0 6px; }
  .seg button { padding: .6rem .8rem; font-size: .875rem; }
  .line { grid-template-columns: 1fr; gap: 6px; }
  .pcols { grid-template-columns: 1fr; margin-top: 48px; }
  .bento { grid-template-columns: 1fr; }
  .ftile { min-height: 0; }
  .widgets .w-l { display: none; }
}
@media (max-width: 600px) {
  .hero-eb { font-size: .8125rem; margin-bottom: 16px; }
  #hero h1 { line-height: 1.02; }
  #hero h1 span { display: block; }
  .hero-sub { font-size: 1.0625rem; margin-top: 18px; }
  .hero-cta { flex-direction: column; margin-top: 26px; }
  .hero-cta .btn { min-height: 50px; font-size: 1rem; }
  .plat { font-size: .78125rem; margin-top: 20px; }
  .plat svg { width: 15px; height: 15px; }
  .plat .for { display: none; }
}
@media (max-width: 380px) {
  .plat .dot { display: none; }
}
