/* Hourbloom site — one stylesheet for every page. The app's own surfaces drawn in HTML are in app.css.
   Tokens first (light, then dark), then layout, then components. Spacing is on a 4 px grid. */

:root {
  color-scheme: light dark;

  --bg: #FBFBFD;
  --bg-alt: #F2F2F6;
  --surface: #FFFFFF;
  --fg: #0D0D12;
  --muted: #55586A;
  --faint: #7A7D90;
  --line: rgba(13, 13, 18, .10);
  --link: #6E56CF;
  --ink: #0D0D12;
  --on-ink: #FFFFFF;
  --glass: rgba(251, 251, 253, .74);
  --wash: .16;

  --g1: 63, 123, 255;   /* #3F7BFF */
  --g2: 143, 91, 255;   /* #8F5BFF */
  --g3: 54, 200, 255;   /* #36C8FF */
  --night-fg: #F4F4FA;
  --night-muted: rgba(244, 244, 250, .70);
  --night-line: rgba(255, 255, 255, .14);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Inter, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 24px;
  --max: 1180px;
  --hero: 940px;      /* the first screen's one column: the nav pill, the copy and the scene share it */
  --narrow: 760px;
  --r-tile: 32px;
  --r-card: 24px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0F;
    --bg-alt: #15151B;
    --surface: #1C1C23;
    --fg: #F4F4FA;
    --muted: #A6A9BA;
    --faint: #80839A;
    --line: rgba(255, 255, 255, .11);
    --link: #A78BFA;
    --ink: #F4F4FA;
    --on-ink: #0D0D12;
    --glass: rgba(16, 16, 22, .72);
    --wash: .22;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: calc(var(--narrow) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } }

.eyebrow { font: 500 15px/1.4 var(--font); letter-spacing: -.005em; color: var(--faint); }
.display { font-size: clamp(40px, 6.6vw, 76px); line-height: 1.04; letter-spacing: -.034em; }
.title { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -.03em; }
.lead { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.42; letter-spacing: -.01em; color: var(--muted); }
.fine { font-size: 14px; line-height: 1.5; color: var(--faint); }
.center { text-align: center; }
.section { padding-block: clamp(88px, 11vw, 152px); }
.section[data-flush] { padding-top: 0; }
.section-head { max-width: 800px; margin: 0 auto clamp(40px, 6vw, 72px); display: grid; gap: 16px; text-align: center; justify-items: center; }
.section-head .lead { max-width: 640px; }
.kbd { font: 600 .88em/1 var(--font); padding: 3px 7px; border-radius: 7px; background: var(--line); color: var(--fg); white-space: nowrap; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--gutter)), var(--hero));
  display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 10px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -16px rgba(8, 8, 20, .35);
  transition: background-color .35s, border-color .35s, box-shadow .35s;
}
/* Over a black screen the pill goes dark, so it never reads as a grey smudge. */
.nav.on-night { background: rgba(18, 18, 24, .72); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.nav.on-night .brand { color: var(--night-fg); }
.nav.on-night .nav-links a { color: rgba(244, 244, 250, .72); }
.nav.on-night .nav-links a:hover, .nav.on-night .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
.nav.on-night .nav-cta { background: var(--night-fg); color: #0D0D12; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 650; font-size: 17px; letter-spacing: -.01em; padding: 4px 8px 4px 2px; border-radius: 999px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; }
.nav-links a, .nav-lang {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover, .nav-lang:hover { color: var(--fg); background: var(--line); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-lang svg { width: 16px; height: 16px; }
.nav-cta {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--ink); color: var(--on-ink);
  font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  padding: 9px 16px; border-radius: 999px; margin-left: 4px;
  transition: opacity .2s, transform .2s;
}
a.nav-cta:hover { text-decoration: none; opacity: .88; }
span.nav-cta { cursor: default; }
@media (max-width: 720px) { .nav-links .nav-hide-sm { display: none; } }
@media (max-width: 520px) { .nav-cta { display: none; } .nav-links a { padding-inline: 10px; } }

/* ---------- Store buttons: our own pill until Apple's badge (an image) takes the slot ---------- */

.store-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.store-soon, .store-badge {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  height: 50px; padding: 0 24px;
  border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.store-soon { cursor: default; }
a.store-badge:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(8, 8, 20, .5); }
a.store-badge.has-image { background: none; padding: 0; height: auto; }
a.store-badge.has-image img { height: 52px; width: auto; }

/* ---------- Hero: plain black, the product carries the colour ---------- */

.hero { position: relative; background: #000; color: var(--night-fg); padding-top: clamp(96px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 120px); overflow: hidden; }
.hero .eyebrow { color: rgba(244, 244, 250, .55); }
.hero .lead { color: var(--night-muted); }
.hero .fine { color: rgba(244, 244, 250, .5); }
.hero .store-soon, .hero .store-badge { background: var(--night-fg); color: #0D0D12; }
.hero-copy { display: grid; justify-items: center; text-align: center; gap: 22px; }
.hero-copy .lead { max-width: 760px; text-wrap: balance; }

/* The launch list: a single pill at rest; the first press reveals the field beside it (site.js adds .is-open). */
.notify { position: relative; width: min(100%, 540px); margin-top: 6px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.js .notify:not(.is-open) { width: auto; grid-template-columns: auto; }
.js .notify:not(.is-open) input[type="email"], .js .notify:not(.is-open) .notify-note { display: none; }
.notify.is-open input[type="email"] { animation: rise .45s var(--ease) both; }
.notify input[type="email"] {
  min-width: 0; height: 50px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: var(--night-fg);
  font: 500 16px/1 var(--font); -webkit-appearance: none; appearance: none;
}
.notify input[type="email"]::placeholder { color: rgba(244, 244, 250, .5); }
.notify input[type="email"]:focus { outline: 0; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); }
.notify button {
  height: 50px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--night-fg); color: #0D0D12; font: 600 16px/1 var(--font); letter-spacing: -.01em; white-space: nowrap;
  transition: transform .3s var(--ease), opacity .2s;
}
.notify button:hover { transform: translateY(-1px); }
.notify.is-sending button { opacity: .6; pointer-events: none; }
.notify-note, .notify-ok { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; color: rgba(244, 244, 250, .5); margin: 0; }
.notify-ok { display: none; color: var(--night-fg); }
.notify.is-error .notify-note { color: #FFB4A8; }
.notify.is-done input, .notify.is-done button, .notify.is-done .notify-note, .notify:target input, .notify:target button, .notify:target .notify-note { display: none; }
.notify.is-done .notify-ok, .notify:target .notify-ok { display: block; }
.notify-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 520px) { .notify { grid-template-columns: minmax(0, 1fr); } }

/* Arrival: the words rise one after another, the scene is simply there, and the panel drops out of the menu bar. */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { from { transform: translate(-3%, 2%) rotate(0deg); } to { transform: translate(3%, -3%) rotate(5deg); } }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-copy > :nth-child(6) { animation-delay: .4s; }
.scene {
  position: relative; max-width: var(--hero); margin: clamp(44px, 5vw, 56px) auto 0;
  aspect-ratio: 940 / 690;
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 60px 120px -50px rgba(var(--g2), .6), 0 30px 60px -30px rgba(0, 0, 0, .8);
  animation: fade 1s ease .25s both;
}
/* Everything inside sits in its own clipped layer: WebKit does not clip blended or backdrop-filtered children to a
   parent's rounded corners by overflow alone, so the inner box is masked to the same radius and isolated. */
.scene-in { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(#fff, #000); }
.scene-in::before {
  content: ""; position: absolute; inset: -20%; pointer-events: none;
  background:
    radial-gradient(36% 40% at 28% 72%, rgba(var(--g1), .38), transparent 70%),
    radial-gradient(30% 34% at 72% 18%, rgba(var(--g3), .34), transparent 70%);
  mix-blend-mode: screen;
  animation: drift 16s ease-in-out infinite alternate;
  will-change: transform;
}
.scene-bar {
  position: absolute; inset: 0 0 auto; height: 32px; z-index: 2;
  border-top-left-radius: inherit; border-top-right-radius: inherit;
  display: flex; align-items: center; justify-content: flex-end; gap: 18px;
  padding: 0 18px;
  background: rgba(10, 10, 16, .28);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .92);
  font-variant-numeric: tabular-nums;
}
.status-item { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 7px; background: rgba(255, 255, 255, .2); }
.status-item img { width: 16px; height: 16px; }
.status-item b { font-weight: 500; }
/* Arrival, once, in the app's own order: the timer appears in the menu bar, the panel opens from it like a popover,
   and the main window unfolds behind it, as if «Details» had been pressed; then motion.js grows the chart and counts the sums. */
@keyframes window-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes panel-pop { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
.scene-window { position: absolute; left: 2%; top: 10%; width: 68%; container-type: inline-size; animation: window-in 1.1s var(--ease) 1.6s both; }
.scene-bar .status-item { animation: fade .6s ease .5s both; }
/* The panel opens the way a macOS popover does: one short pop from the menu-bar item, whole, nothing moves inside. */
.scene-panel { position: absolute; right: 3%; top: 40px; width: 37%; container-type: inline-size; transform-origin: 85% 0; animation: panel-pop .85s cubic-bezier(.2, .8, .2, 1) .9s both; }
@media (max-width: 760px) {
  .scene { aspect-ratio: auto; height: min(150vw, 640px); border-radius: 28px; }
  .scene-window { display: none; }
  .scene-panel { right: auto; left: 50%; translate: -50% 0; width: min(78%, 360px); top: 44px; }
  .scene-bar .clock { display: none; }
  .scene-bar { justify-content: center; }
}

.works { margin-top: clamp(64px, 8vw, 96px); display: grid; gap: 22px; justify-items: center; text-align: center; }
.works p { font-size: 19px; color: var(--night-muted); }
.works ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; }
.works li { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--night-fg); padding: 11px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); }
.js .works li { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 150ms); }
.js .works.in li { opacity: 1; transform: none; }
@media (max-width: 640px) { .works li { font-size: 15px; padding: 9px 16px; } .works ul { gap: 8px; } }

/* ---------- Features: wide tiles, the copy beside a collage of the app's own pieces ---------- */

.tiles-wide { display: grid; gap: 24px; }
.tile-wide {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--bg-alt); border-radius: var(--r-tile); overflow: hidden; isolation: isolate;
  padding-left: clamp(28px, 5vw, 72px);
}
.tile-wide.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-left: 0; padding-right: clamp(28px, 5vw, 72px); }
.tile-wide.flip .tile-copy { order: 2; }
.tile-copy { display: grid; gap: 18px; align-content: center; padding-block: clamp(40px, 5vw, 72px); max-width: 460px; }
.tile-copy h3 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.06; letter-spacing: -.03em; }
.tile-copy p { color: var(--muted); font-size: 18px; }
.collage { position: relative; min-width: 0; aspect-ratio: 1.22; container-type: inline-size; }
.piece { position: absolute; container-type: inline-size; }
/* One corner radius for every piece, whatever its scale; the menu-bar strip is a flatter pill. */
.collage .hb-frag, .collage .hb-notes, .collage .hb-call, .collage .hb-report { border-radius: 18px; }
.collage .hb-frag-bar { border-radius: 10px; }
/* Each piece stands where a still life would put it; a piece past the edge is cut by the tile. */
.t1 .p-bar { width: 62%; right: 0; top: 6%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%); mask-image: linear-gradient(90deg, transparent, #000 26%); }
.t1 .p-sum { width: 56%; left: 4%; top: 20%; }
.t1 .p-proj { width: 54%; left: 42%; top: 52%; }
.t1 .p-goal { width: 56%; left: 8%; top: 73%; }
.t2 .p-call { width: 66%; left: -10%; top: 7%; }
.t2 .p-now { width: 50%; right: 4%; top: 10%; }
.t2 .p-notes { width: 52%; right: 10%; top: 42%; }
.t3 .p-head { width: 96%; left: 14%; top: 8%; }
.t3 .p-days { width: 80%; left: 4%; top: 27%; }
.t3 .p-foot { width: 90%; right: 0; top: 70%; }
.t4 .p-report { width: 86%; left: 6%; top: 9%; }
.t4 .p-pay { width: 44%; right: -2%; top: 56%; }
.js .tile-wide .piece { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 200ms); }
.js .tile-wide.in .piece { opacity: 1; transform: none; }
.features { padding-bottom: 0; }   /* the next section's own top padding is the gap after the banner */
/* The banner after the tiles: the first screen's promise once more, on the brand glow, with the launch list. */
.cta-banner { position: relative; margin-top: clamp(40px, 5vw, 64px); padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px); border-radius: var(--r-tile); display: grid; justify-items: center; text-align: center; gap: 24px; overflow: hidden; isolation: isolate; }
.cta-banner .title { max-width: 18ch; font-size: clamp(28px, 3.8vw, 46px); color: var(--night-fg); }
.cta-banner .fine { color: rgba(244, 244, 250, .55); }
@media (max-width: 820px) {
  .tile-wide, .tile-wide.flip { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .tile-wide.flip .tile-copy { order: 0; }
  .tile-copy { padding: 28px 24px 12px; max-width: none; }
  .tile-copy h3 { font-size: clamp(26px, 7vw, 34px); }
  .tile-copy p { font-size: 17px; }
  .collage { aspect-ratio: auto; height: min(70vw, 420px); }
  .t4 .p-pay { width: 58%; top: 62%; }
}

/* ---------- Small features ---------- */

.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; }
.mini { height: 100%; background: var(--bg-alt); border-radius: var(--r-card); padding: 28px; display: grid; gap: 10px; align-content: start; transition: transform .4s var(--ease), box-shadow .4s; }
.mini:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(8, 8, 20, .35); }
.mini-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--fg); margin-bottom: 6px; box-shadow: 0 1px 0 var(--line); }
.mini-icon svg { width: 22px; height: 22px; }
.mini h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.012em; }
.mini p { font-size: 15.5px; color: var(--muted); }
@media (max-width: 900px) { .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .minis { grid-template-columns: minmax(0, 1fr); } }

/* A soft light under the pointer. */
.spot { position: relative; overflow: hidden; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--g2), .16), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.spot:hover::after { opacity: 1; }

/* ---------- Privacy band ---------- */

.band { display: grid; gap: clamp(40px, 6vw, 64px); }
.band .section-head { margin-bottom: 0; }
.band .eyebrow { color: rgba(244, 244, 250, .6); }
.band .lead { color: var(--night-muted); }
.points { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.points li { display: grid; gap: 10px; align-content: start; }
.points svg { width: 28px; height: 28px; color: var(--night-fg); margin-bottom: 4px; }
.points h3 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.points p { font-size: 15.5px; color: var(--night-muted); }
.band-link { justify-self: center; color: var(--night-fg); font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; }
.band-link:hover { text-decoration: none; border-color: var(--night-fg); }
@media (max-width: 1000px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .points { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pricing: two cards on black ---------- */

.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; max-width: 1000px; margin-inline: auto; align-items: stretch; }
.plan { border-radius: var(--r-tile); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 28px; background: transparent; border: 1px solid rgba(255, 255, 255, .16); color: var(--night-fg); }
.plan.pro { border: 0; }
.plan-head { display: grid; gap: 10px; }
.plan-name { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.plan-badge { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--night-fg); color: #0D0D12; letter-spacing: 0; }
.price { font-size: clamp(44px, 5vw, 56px); font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--night-muted); margin-left: 6px; }
.plan-note { color: var(--night-muted); font-size: 16px; }
.feats { list-style: none; display: grid; gap: 12px; }
.feats li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16.5px; line-height: 1.4; }
.feats svg { width: 20px; height: 20px; margin-top: 2px; color: rgba(244, 244, 250, .75); }
.options { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.opt { position: relative; border: 1px solid var(--night-line); border-radius: 16px; padding: 14px 14px 12px; display: grid; gap: 2px; align-content: start; }
.opt.best { border-color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .06); }
.opt .k { font-size: 14px; color: var(--night-muted); }
.opt b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.opt .per { font-size: 13px; color: var(--night-muted); }
.opt .save { position: absolute; top: -11px; right: 12px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--night-fg); color: #0D0D12; }
.plan-cta { margin-top: auto; padding-top: 4px; }
.plan .store-row { justify-content: flex-start; }
.plan .store-soon, .plan .store-badge { background: var(--night-fg); color: #0D0D12; }
.plans-fine { max-width: 720px; margin: 32px auto 0; text-align: center; }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 16.5px; }
.checks svg { width: 20px; height: 20px; margin-top: 2px; }
@media (max-width: 820px) { .plans { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .options { grid-template-columns: minmax(0, 1fr); }
  .opt { display: flex; align-items: baseline; gap: 8px; }
  .opt .k { flex: 1; }
  .opt .save { top: -10px; }
}

/* A light that runs around the Pro card. */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-a { to { --spin: 360deg; } }
.plan.pro { position: relative; }
.plan.pro::before {
  content: ""; position: absolute; inset: -1px; border-radius: calc(var(--r-tile) + 1px); padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 58%, rgba(var(--g3), 1) 72%, rgba(var(--g2), 1) 84%, rgba(var(--g1), 1) 93%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-a 7s linear infinite;
}

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; align-items: center;
  padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 24px; height: 24px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 20px no-repeat;
  color: var(--faint);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 40px 24px 0; display: grid; gap: 12px; color: var(--muted); animation: rise .45s var(--ease) both; }
.faq .answer ul, .faq .answer ol { padding-left: 20px; display: grid; gap: 6px; }
.faq .answer b { color: var(--fg); font-weight: 600; }
.faq-more { text-align: center; margin-top: 32px; font-weight: 600; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 24px; letter-spacing: -.018em; margin-bottom: 12px; }

code, .path { font-family: var(--mono); font-size: .86em; background: var(--bg-alt); color: var(--fg); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- Closing call to action ---------- */

.closing-in { display: grid; justify-items: center; text-align: center; gap: 20px; }
.closing-icon { width: 120px; height: 120px; margin-bottom: 8px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 24px 40px rgba(var(--g2), .35)); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.closing-in .store-row { margin-top: 12px; }

/* ---------- Black screens between the light ones (Revolut's rhythm) ---------- */

.night { background: #000; color: var(--night-fg); }
.night .eyebrow { color: rgba(244, 244, 250, .55); }
.night .lead { color: var(--night-muted); }
.night .fine { color: rgba(244, 244, 250, .5); }
.night a { color: #A78BFA; }
.night .store-soon, .night .store-badge { background: var(--night-fg); color: #0D0D12; }
.section.night + .section.night { padding-top: 0; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding-block: 40px 56px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; justify-content: space-between; }
.footer .brand { font-size: 15px; }
.footer .brand img { width: 24px; height: 24px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--muted); font-size: 15px; }
.footer-links a:hover { color: var(--fg); }
.footer-meta { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--faint); font-size: 14px; }
.footer-meta .nav-lang { padding: 0; color: var(--faint); font-size: 14px; }
.footer-meta .nav-lang:hover { background: none; color: var(--fg); }

/* ---------- Documents: privacy, terms ---------- */

.doc { padding-top: clamp(120px, 14vw, 160px); }
.doc-head { display: grid; gap: 14px; margin-bottom: 40px; }
.doc-head h1 { font-size: clamp(38px, 5.4vw, 56px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; }
.doc-date { color: var(--faint); font-size: 15px; }
.summary { background: var(--bg-alt); border-radius: var(--r-card); padding: clamp(24px, 3.4vw, 32px); display: grid; gap: 14px; margin-bottom: 48px; }
.summary h2 { font-size: 20px; letter-spacing: -.014em; }
.summary ul { list-style: none; display: grid; gap: 12px; }
.summary li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--muted); }
.summary li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--fg); }
.prose { display: grid; gap: 16px; color: var(--muted); }
.prose h2 { color: var(--fg); font-size: 26px; line-height: 1.2; letter-spacing: -.02em; margin-top: 32px; }
.prose h3 { color: var(--fg); font-size: 19px; line-height: 1.3; letter-spacing: -.012em; margin-top: 8px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose b, .prose strong { color: var(--fg); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--line); }
.prose th { color: var(--fg); font-weight: 600; width: 34%; }
.table-scroll { overflow-x: auto; }
.email { font-weight: 600; color: var(--fg); -webkit-user-select: all; user-select: all; }

/* ---------- Support ---------- */

.support-head { padding-top: clamp(128px, 15vw, 168px); display: grid; gap: 20px; justify-items: center; text-align: center; }
.support-head > * { animation: rise .9s var(--ease) both; }
.support-head > :nth-child(2) { animation-delay: .08s; }
.support-head > :nth-child(3) { animation-delay: .16s; }
.contact-card {
  margin: clamp(40px, 6vw, 56px) auto 0; max-width: 640px;
  border-radius: var(--r-card); padding: clamp(24px, 3.4vw, 32px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; text-align: left;
  animation: rise 1s var(--ease) .25s both;
}
.contact-label { font: 500 15px/1.4 var(--font); color: rgba(244, 244, 250, .6); }
.contact-email { font-size: clamp(24px, 3.6vw, 32px); font-weight: 700; letter-spacing: -.02em; -webkit-user-select: all; user-select: all; margin-top: 6px; overflow-wrap: anywhere; }
.contact-note { grid-column: 1 / -1; color: var(--night-muted); font-size: 15.5px; }
.btn-copy {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 0; border-radius: 999px; padding: 12px 20px;
  background: var(--night-fg); color: #0D0D12; font-weight: 600; font-size: 15px;
  transition: transform .3s var(--ease), opacity .2s;
}
.btn-copy svg { width: 18px; height: 18px; }
.btn-copy:hover { transform: translateY(-1px); }
.btn-copy:active { transform: scale(.97); }
@media (max-width: 520px) { .contact-card { grid-template-columns: minmax(0, 1fr); } .btn-copy { justify-self: start; } }
.support-faq { padding-block: clamp(56px, 8vw, 88px) clamp(88px, 11vw, 152px); }

/* ---------- 404 ---------- */

.lost { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 20px; padding-top: 120px; }
.lost-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pill-link { display: inline-flex; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 600; }
.pill-link.secondary { background: var(--bg-alt); color: var(--fg); }
.pill-link:hover { text-decoration: none; opacity: .9; }

/* ---------- Things that rise into view once (motion.js adds .in) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- The brand glow: the app's dark card with its three lights. Last, so it wins over a card's own background. ---------- */

.glow {
  --a: 1;
  background-color: #0B0B10;
  background-image:
    radial-gradient(64% 100% at -6% 108%, rgba(var(--g1), calc(.62 * var(--a))), rgba(var(--g1), calc(.51 * var(--a))) 18%, rgba(var(--g1), calc(.34 * var(--a))) 38%, rgba(var(--g1), calc(.17 * var(--a))) 58%, rgba(var(--g1), calc(.06 * var(--a))) 78%, rgba(var(--g1), 0)),
    radial-gradient(64% 100% at 42% -16%, rgba(var(--g2), calc(.52 * var(--a))), rgba(var(--g2), calc(.43 * var(--a))) 18%, rgba(var(--g2), calc(.29 * var(--a))) 38%, rgba(var(--g2), calc(.15 * var(--a))) 58%, rgba(var(--g2), calc(.05 * var(--a))) 78%, rgba(var(--g2), 0)),
    radial-gradient(64% 100% at 106% -2%, rgba(var(--g3), calc(.50 * var(--a))), rgba(var(--g3), calc(.41 * var(--a))) 18%, rgba(var(--g3), calc(.28 * var(--a))) 38%, rgba(var(--g3), calc(.14 * var(--a))) 58%, rgba(var(--g3), calc(.05 * var(--a))) 78%, rgba(var(--g3), 0)),
    linear-gradient(#202028, #0B0B10);
  background-blend-mode: screen, screen, screen, normal;
  color: var(--night-fg);
}

/* ---------- Less motion when asked ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .tile-wide .piece { opacity: 1; transform: none; }
}
