/* Maestro · Grain · static at-rest design */
:root {
  --bg: #030303;
  --bg-2: #0a0a0b;
  --ink: #f2f0ea;
  --ink-2: rgba(242, 240, 234, .66);
  --ink-3: rgba(242, 240, 234, .40);
  --hair: rgba(242, 240, 234, .12);
  --hair-2: rgba(242, 240, 234, .22);
  --glow: #fff4e2;
  --gutter: clamp(20px, 4vw, 64px);
  --display: clamp(48px, 7.2vw, 128px);
  --h2: clamp(36px, 4.6vw, 80px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { padding-inline: var(--gutter); width: 100%; }

/* ---------- type ---------- */
.kicker, .caption, .tags li, figcaption, .crop__label, .scroll-cue span, .foot h4, .tag {
  font: 500 11.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.kicker { color: var(--ink-2); margin-bottom: 28px; display: flex; align-items: center; gap: 14px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--ink-3); }
.display {
  font: 300 var(--display)/.94 var(--sans); letter-spacing: -0.045em; color: var(--ink);
}
.h2 {
  font: 300 var(--h2)/1 var(--sans); letter-spacing: -0.038em; max-width: 15ch; color: var(--ink);
}
.display em, .h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.012em;
  font-size: 1.08em; line-height: .8;
}
.lead { font: 400 clamp(17px, 1.35vw, 20px)/1.5 var(--sans); color: var(--ink-2); max-width: 46ch; letter-spacing: -0.01em; }
.body { font: 400 17px/1.6 var(--sans); color: var(--ink-2); max-width: 52ch; }
.caption { color: var(--ink-3); }

/* ---------- buttons ---------- */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 3px;
  font: 500 15px/1 var(--sans); letter-spacing: -0.005em; white-space: nowrap;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn--primary { background: var(--ink); color: #050505; }
.btn--primary:hover { background: #fff; }
.btn--ghost { border: 1px solid var(--hair-2); color: var(--ink); background: rgba(3, 3, 3, .35); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13.5px; }

.foot__mark img { width: 24px; height: 24px; filter: invert(1); mix-blend-mode: screen; border-radius: 6px; }

/* ---------- sections ---------- */
.sec { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.stage { position: absolute; inset: 0; height: 100vh; height: 100svh; z-index: -1; pointer-events: none; }
.stage canvas { display: block; width: 100%; height: 100%; }
.stage--2d { height: 100%; }

/* 01 hero */
.hero { display: flex; flex-direction: column; }
.hero__copy { position: relative; padding-top: clamp(128px, 17vh, 170px); }
.hero .display { max-width: 11.5ch; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-top: 40px; }
.hero__row .lead { max-width: 44ch; }
.scroll-cue { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.scroll-cue span { color: var(--ink-2); }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--ink-2), transparent); }

/* 02 launch */
.launch { display: flex; align-items: flex-start; }
.launch__copy { position: relative; padding-top: clamp(128px, 17vh, 170px); }
.launch .col { max-width: 560px; }
.launch .h2 { margin-bottom: 30px; max-width: 12ch; }
.tags li { position: absolute; left: var(--x); top: var(--y); color: var(--ink-2); display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: .06em; font-size: 12px; }
.tags li::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--ink-2); border-radius: 50%; }
.tags li.is-left { transform: translateX(-100%); flex-direction: row-reverse; }

/* 03 touch */
.touch__frame { position: relative; height: 100vh; height: 100svh; min-height: 640px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; padding: clamp(104px, 14vh, 140px) 0 clamp(56px, 9vh, 96px); }
.touch__head { display: flex; flex-direction: column; align-items: center; }
.touch__head .kicker::after { content: ""; width: 28px; height: 1px; background: var(--ink-3); }
.touch__head .h2 { max-width: none; }
.touch__body { padding-inline: var(--gutter); max-width: calc(52ch + 2 * var(--gutter)); }
.app__shot img { border-radius: 10px; border: 1px solid var(--hair-2); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9); }

/* 04 app: see sections.css */
.pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #050505;
  font: 500 11px/22px var(--mono); text-align: center;
  box-shadow: 0 0 0 5px rgba(242, 240, 234, .14), 0 0 0 1px rgba(0, 0, 0, .6);
}

/* 05 ai */
.ai { display: flex; flex-direction: column; justify-content: flex-start; }
.ai__copy { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; padding-top: clamp(104px, 14vh, 140px); }
.ai .h2 { max-width: 13ch; }
.ai__side { max-width: 46ch; display: grid; gap: 22px; padding-bottom: 6px; }
.ai__side .body { font-size: 16px; }
.crop { position: absolute; inset: 0; pointer-events: none; }
.crop__orig, .crop__frame { position: absolute; }
.crop__orig { border: 1px dashed rgba(242, 240, 234, .22); }
.crop__frame .c { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ink); }
.crop__frame .tl { left: -1px; top: -1px; border-left-width: 1.5px; border-top-width: 1.5px; }
.crop__frame .tr { right: -1px; top: -1px; border-right-width: 1.5px; border-top-width: 1.5px; }
.crop__frame .bl { left: -1px; bottom: -1px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.crop__frame .br { right: -1px; bottom: -1px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.crop__label { position: absolute; left: 0; top: calc(100% + 12px); color: var(--ink-3); letter-spacing: .1em; white-space: nowrap; }
.crop__label--out { left: auto; right: 0; color: var(--ink); }

/* 06 pricing */
.pricing { display: flex; align-items: stretch; }
.pricing__inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-block: clamp(104px, 14vh, 140px) clamp(56px, 8vh, 88px); }
.pricing__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.pricing__head .body { max-width: 38ch; padding-bottom: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1120px; width: 100%; margin-inline: auto; }
.plan {
  display: flex; flex-direction: column; padding: 30px 30px 28px; border: 1px solid var(--hair);
  border-radius: 6px; background: rgba(3, 3, 3, .58);
}
.plan--feature { border-color: rgba(242, 240, 234, .34); background: rgba(3, 3, 3, .5); }
.plan header { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 24px; }
.plan h3 { font: 500 15px/1.2 var(--sans); letter-spacing: -0.005em; }
.tag { color: var(--ink); border: 1px solid var(--hair-2); border-radius: 999px; padding: 6px 10px 5px; font-size: 10.5px; }
.price { font: 300 clamp(48px, 4.4vw, 68px)/1 var(--sans); letter-spacing: -0.045em; margin: 40px 0 10px; }
.price small { font: 400 15px/1 var(--sans); letter-spacing: 0; color: var(--ink-3); }
.plan__gen { font: 400 15.5px/1.4 var(--sans); color: var(--ink); }
.plan__note { font: 400 14px/1.5 var(--sans); color: var(--ink-3); margin-top: 6px; min-height: 42px; }
.plan .btn { margin-top: 30px; width: 100%; height: 46px; }

/* 07 close */
.close { display: flex; align-items: flex-end; justify-content: center; text-align: center; }
.close__copy { position: relative; display: flex; flex-direction: column; align-items: center; padding-bottom: clamp(64px, 11vh, 120px); }
.close .display { margin-bottom: 26px; }
.close .lead { margin-bottom: 36px; }

/* footer */
.foot { position: relative; background: var(--bg); padding: 96px 0 40px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.foot__cols > div { display: flex; flex-direction: column; gap: 14px; }
.foot h4 { margin-bottom: 8px; }
.foot__cols a { font: 400 14.5px/1.3 var(--sans); color: var(--ink-2); width: fit-content; }
.foot__cols a:hover { color: var(--ink); }
.foot__base { margin-top: 96px; padding-top: 28px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.foot__base p { font: 500 11.5px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.foot__mark { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1 var(--sans); color: var(--ink-2); }
.foot__mark img { width: 20px; height: 20px; }
/* legal links (home, account and the /privacy and /terms pages) */
.foot__legal { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot__legal a { font: 500 11.5px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.foot__legal a:hover, .foot__legal a[aria-current] { color: var(--ink); }
.foot--slim { padding: 56px 0 40px; }
.foot--slim .foot__base { margin-top: 0; }

/* film grain */
.film { position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .08; background-size: 220px 220px; mix-blend-mode: screen; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .kicker { margin-bottom: 20px; font-size: 10.5px; }
  .kicker::before { width: 18px; }
  .display { letter-spacing: -0.04em; }
  .h2 { font-size: 40px; }
  .body { font-size: 15.5px; }
  .lead { font-size: 16.5px; }
  .btn { height: 48px; padding: 0 20px; font-size: 14.5px; }
  .btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }

  .hero__copy { padding-top: 112px; }
  .hero .display { font-size: 52px; max-width: 9ch; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 26px; margin-top: 24px; }
  .hero .btns { width: 100%; }
  .hero .btns .btn { flex: 1 1 100%; }
  .scroll-cue { bottom: 22px; }

  .launch { align-items: flex-end; }
  .launch__copy { padding-top: 0; padding-bottom: 56px; }
  .launch .h2 { margin-bottom: 18px; }
  .launch .body { max-width: 34ch; }
  .tags li { font-size: 11px; }

  .touch__frame { height: auto; min-height: 0; justify-content: flex-start; padding: 92px 0 8px; }
  .touch__head { margin-bottom: 300px; }


  .ai__copy { flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 92px; }
  .ai__side { gap: 14px; }
  .ai__side .body { font-size: 15px; }

  .pricing__inner { padding-block: 92px 64px; gap: 32px; }
  .pricing__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .pricing__head::after { content: ""; display: block; height: 300px; }
  .plans { grid-template-columns: 1fr; gap: 12px; }
  .plan { padding: 22px 22px 20px; }
  .price { margin: 22px 0 8px; font-size: 44px; }
  .plan__note { min-height: 0; }
  .plan .btn { margin-top: 20px; }

  .close .display { font-size: 64px; }
  .close__copy { padding-bottom: 72px; }

  .foot { padding-top: 72px; }
  .foot__cols { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .foot__base { flex-direction: column; align-items: flex-start; margin-top: 64px; }
}

/* ---------- motion (added by main.js when WebGL and the libraries are available) ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; background: var(--bg); }
.motion .stage canvas { visibility: hidden; }
.motion .sw-mask { padding: .16em .12em .24em; margin: -.16em -.12em -.24em; }
.motion .tags li { translate: 0 var(--ty, 0px); }
.motion .crop__frame .c, .motion .crop__label--out { will-change: transform; }

/* ---------- no WebGL at all: the same stills, pre-rendered ---------- */
.no-gl .stage { background: center / cover no-repeat; }
.no-gl .stage[data-scene="dunes"] { background-image: url(assets/still/dunes-desk.webp); }
.no-gl .stage[data-scene="plume"] { background-image: url(assets/still/plume-desk.webp); }
.no-gl .stage[data-scene="hands"] { background-image: url(assets/still/hands-desk.webp); }
.no-gl .stage[data-scene="mountain"] { background-image: url(assets/still/mountain-desk.webp); }
.no-gl .stage[data-scene="ring"] { background-image: url(assets/still/ring-desk.webp); }
.no-gl .stage[data-scene="chess"] { background-image: url(assets/still/chess-desk.webp); }
@media (max-width: 760px) {
  .no-gl .stage[data-scene="dunes"] { background-image: url(assets/still/dunes-phone.webp); }
  .no-gl .stage[data-scene="plume"] { background-image: url(assets/still/plume-phone.webp); }
  .no-gl .stage[data-scene="hands"] { background-image: url(assets/still/hands-phone.webp); }
  .no-gl .stage[data-scene="mountain"] { background-image: url(assets/still/mountain-phone.webp); }
  .no-gl .stage[data-scene="ring"] { background-image: url(assets/still/ring-phone.webp); }
  .no-gl .stage[data-scene="chess"] { background-image: url(assets/still/chess-phone.webp); }
}

/* Gold accent: the Instrument Serif words carry one continuous, slowly moving gold sheen (user request 2026-11-23).
   gold.js measures each word's place inside its <em> (--gx/--gy) and the <em>'s size (--gw/--gh), so the split
   words share ONE gradient instead of each word restarting it. --sheen (0..1) moves the light across. */
@property --sheen { syntax: '<number>'; inherits: true; initial-value: 0; }
.display em, .h2 em {
  --gold: linear-gradient(100deg, #b08c4a 0%, #dcbc76 18%, #fbefc8 34%, #e7cb8c 48%, #bf9a55 62%, #f1dca6 80%, #b8924f 100%);
  animation: gold-sheen 5s ease-in-out infinite alternate;
}
/* not split (static path, reduced motion): the <em> itself carries the gradient */
.display em:not(:has(.sw)), .h2 em:not(:has(.sw)) {
  background-image: var(--gold);
  background-size: 260% 100%;
  background-position-x: calc(var(--sheen) * 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding: 0 0.14em 0.3em 0.04em; margin: 0 -0.14em -0.3em -0.04em;
}
/* split: every word paints its slice of the same em-wide gradient */
.display em .sw, .h2 em .sw {
  background-image: var(--gold);
  background-size: calc(var(--gw, 10em) * 2.6) var(--gh, 1.4em);
  background-position: calc(var(--gx, 0px) - var(--sheen) * var(--gw, 10em) * 1.6) var(--gy, 0px);
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  /* room for italic overhang and descenders (g, y, p) so whole glyphs are painted and not clipped */
  padding: 0.04em 0.16em 0.32em 0.04em; margin: -0.04em -0.16em -0.32em -0.04em;
}
.motion .display em .sw-mask, .motion .h2 em .sw-mask { padding: .16em .2em .4em .06em; margin: -.16em -.2em -.4em -.06em; }
@keyframes gold-sheen { from { --sheen: 0; } to { --sheen: 1; } }
@media (prefers-reduced-motion: reduce) {
  .display em, .h2 em { animation: none; --sheen: 0.35; }
}

/* Hero centred: kicker, headline, lead and buttons on the centre axis (user request 2026-11-23). */
.hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .kicker::after { content: ""; width: 28px; height: 1px; background: var(--ink-3); }
.hero .display { margin-inline: auto; }
.hero__row { flex-direction: column; align-items: center; justify-content: flex-start; gap: 34px; margin-top: 34px; }
.hero__row .lead { margin-inline: auto; }
.hero .btns { justify-content: center; }
@media (max-width: 767px) {
  .hero .kicker::after { width: 18px; }
  .hero__row { align-items: center; }
}

/* The lower dunes pass behind the scroll cue: keep its label readable. */
.scroll-cue span { text-shadow: 0 0 10px #000, 0 0 22px #000, 0 0 2px #000; }

/* Buttons match the header island (user request 2026-11-23): pills; primary = the cream Download pill,
   ghost = the island's grain-glass puck. */
.btn {
  position: relative; height: 48px; padding: 0 24px; border-radius: 999px; gap: 9px; isolation: isolate; overflow: hidden;
  font: 500 14.5px/1 var(--sans); letter-spacing: -0.005em;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .5s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.btn--primary {
  background: var(--ink); color: #050505;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .18), 0 0 0 0 rgba(255, 244, 226, 0);
}
.btn--primary:hover { background: #fff; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .18), 0 0 26px -2px rgba(255, 244, 226, .45); }
.btn .btn__ic { flex: none; transition: transform .5s var(--spring); }
.btn:hover .btn__ic { transform: translateY(2px); }
.btn--ghost {
  border: 0; color: var(--ink);
  background: radial-gradient(90% 120% at 50% 0%, rgba(255, 244, 226, .13), rgba(255, 244, 226, .03) 70%, transparent), rgba(18, 18, 20, .55);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(242, 240, 234, .13), inset 0 1px 0 rgba(255, 244, 226, .16), 0 18px 40px -22px rgba(0, 0, 0, .9);
}
.btn--ghost::before { /* moving grain inside the glass, like the header puck */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background-image: var(--noise); background-size: 140px; opacity: .16; mix-blend-mode: screen; animation: isl-grain 1.2s steps(6) infinite;
}
.btn--ghost:hover {
  background: radial-gradient(90% 120% at 50% 0%, rgba(255, 244, 226, .2), rgba(255, 244, 226, .05) 70%, transparent), rgba(24, 24, 26, .62);
  box-shadow: inset 0 0 0 1px rgba(242, 240, 234, .22), inset 0 1px 0 rgba(255, 244, 226, .22), 0 0 24px -6px rgba(255, 244, 226, .25);
}
.btn--sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.plan .btn { height: 46px; }
@media (max-width: 767px) { .btn { height: 48px; padding: 0 20px; font-size: 14.5px; } }
@media (prefers-reduced-motion: reduce) { .btn--ghost::before { animation: none; } }
