/* Breeze Code site. Tokens, fonts and buttons match the app (src/renderer/breeze.css). */
@font-face {
  font-family: 'Instrument Sans';
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/InstrumentSans-Variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Unbounded';
  font-weight: 200 900;
  font-display: swap;
  src: url('assets/fonts/Unbounded.woff2') format('woff2');
}

@font-face {
  font-family: 'Google Sans Code';
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/GoogleSansCode-Latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --blue: #005EFF;
  --blue-soft: rgba(0, 94, 255, .14);
  --bg: #000;
  --bg-1: #0b0b0d;
  --bg-2: #131316;
  --bg-3: #1c1c21;
  --line: #26262c;
  --text: #f5f5f7;
  --text-2: #a1a1aa;
  --text-3: #6b6b75;
  --ok: #22c55e;
  --c-planner: #a78bfa;
  --c-builder: #38bdf8;
  --font-ui: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: Unbounded, var(--font-ui);
  --font-code: "Google Sans Code", Consolas, monospace;
  --r: 10px;
  --r-card: 16px;
  --glass-strong: rgba(24, 24, 30, .74);
  --glass-line: rgba(255, 255, 255, .1);
  --glass-blur: blur(22px) saturate(160%);
  /* Download glow, shared by the landing page finale and the footer of the other pages. */
  --glow-bg:
    radial-gradient(120% 70% at 50% 100%, rgba(0, 94, 255, .62), rgba(64, 72, 210, .26) 38%, rgba(167, 139, 250, .08) 58%, transparent 78%),
    radial-gradient(60% 40% at 18% 100%, rgba(56, 189, 248, .22), transparent 70%),
    radial-gradient(60% 40% at 82% 100%, rgba(167, 139, 250, .22), transparent 70%);
  /* Hero atmosphere: Pattaya bay (a 3x time-lapse video over its first frame) under a dark scrim so the headline
     stays readable. */
  --hero-scrim: linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(3, 11, 31, .48) 40%, rgba(3, 11, 31, .3) 70%, rgba(0, 0, 0, .5) 100%);
  --hero-still: url("assets/Background/pattaya-bay.jpg") center 40% / cover no-repeat #030b1f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

main [id] { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

::selection { background: rgba(0, 94, 255, .45); color: #fff; }
/* No page scrollbar; the wheel, keys and touch still scroll. */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* Lenis smooth scrolling (on only when site.js starts it) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

a { color: inherit; }

p, li, dd { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: var(--blue); color: #fff; }

/* ---------- buttons (same as the app) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 14px;
  font: 500 14px/1.2 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.btn:hover { border-color: #3a3a42; background: #24242a; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #0052e0; border-color: #0052e0; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 10px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 12px; z-index: 50; display: flex; justify-content: center; padding: 0 16px; margin-top: 12px; }

.nav-in {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}

.logo img { width: 24px; height: 24px; }

.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 6px 10px; border-radius: 999px; color: var(--text-2); font-size: 14px; text-decoration: none; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav .btn { margin-left: 6px; padding: 7px 14px; border-radius: 999px; font-size: 13px; }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 16px 16px 0; }

.hero-card {
  position: relative;
  isolation: isolate; /* the video and scrim sit behind the copy without leaving the card */
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 112px) 24px 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--hero-still); /* shows until the video plays, and instead of it with reduced motion */
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  pointer-events: none;
}

/* The scrim (and the card's hairline edge) go over the video. */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-scrim);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  border-radius: inherit;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* A faint dark halo behind the hero copy so it reads over the photo. */
.hero h1, .lede, .hero-meta { text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 2px 18px rgba(0, 0, 0, .5); }
/* A soft dark pool behind the words, fading out well before the edges. */
.hero-copy { background: radial-gradient(ellipse 46% 42% at 50% 50%, rgba(0, 0, 0, .5), rgba(0, 0, 0, .28) 55%, transparent 100%); }

.hero h1 {
  max-width: 1104px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38.4px, 6.48vw, 69.6px);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.lede {
  max-width: 744px;
  margin: 20px auto 0;
  color: rgba(245, 245, 247, .74);
  font-size: clamp(19.2px, 1.92vw, 21.6px);
  text-wrap: pretty;
}

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-meta { margin: 14px 0 0; color: rgba(245, 245, 247, .62); font-size: 15.6px; }
.cta .btn-lg { padding: 14.4px 28.8px; font-size: 18px; }
.cta .btn svg { width: 19.2px; height: 19.2px; }

.hero-shot {
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  margin: clamp(40px, 6vw, 64px) auto 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 80px rgba(0, 0, 0, .5);
}

.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Pinned hero (site.js adds .is-pinned on large screens without reduced motion). The stage holds still
   while the page scrolls past; --e runs 0 to 1: the gradient pulls in from the edges into a rounded card,
   the words lift and fade, and the screenshot rises from the bottom to the centre. */
.hero.is-pinned { height: 260vh; margin-top: calc(-1 * var(--nav-h, 62px)); padding: 0; }

.hero.is-pinned .hero-card {
  position: sticky;
  top: 0;
  height: 100vh;
  max-width: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: inset(calc(var(--e, 0) * 16px) calc(var(--e, 0) * 16px) round calc(var(--e, 0) * 20px));
}

.hero.is-pinned .hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px; /* centred on the screen */
  opacity: calc(1 - var(--e, 0) * 1.9);
  transform: translateY(calc(var(--e, 0) * -9vh)) scale(calc(1 + var(--e, 0) * .07));
  will-change: transform, opacity;
}

.hero.is-pinned.copy-gone .hero-copy { visibility: hidden; }

.hero.is-pinned .hero-shot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(min(1600px, 94vw, (100vh - 48px) * 16 / 9) - 10px); /* nearly as big as the screen allows */
  max-width: none;
  margin: 0;
  aspect-ratio: 16 / 9; /* the interactive window's own shape (ide-demo.css) */
  border-radius: 12px;
  transform: translate(-50%, calc(-50% + (1 - var(--e, 0)) * (31vh + 50%))) scale(calc(.9 + var(--e, 0) * .1));
  will-change: transform;
}

/* Hero entrance (site.js). html.anim is set in <head> only when motion is allowed; if GSAP never runs,
   the delayed keyframe shows the words anyway. */
.anim .hero-copy > *, .anim .hero-shot { opacity: 0; animation: show 0s 2.5s forwards; }
@keyframes show { to { opacity: 1; } }

/* ---------- sections ---------- */
.section { padding-top: clamp(80px, 11vw, 136px); }
.section-head { max-width: 720px; margin-bottom: 40px; }

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.section-head p { margin: 16px 0 0; color: var(--text-2); font-size: 17px; text-wrap: pretty; }

/* ---------- multi-agent showcase ---------- */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); align-items: center; gap: clamp(32px, 6vw, 80px); }
.showcase-text h2 { font-size: clamp(28px, 3vw, 36px); }
.showcase-text p { margin: 18px 0 0; max-width: 44ch; color: var(--text-2); text-wrap: pretty; }
.showcase-text .link { display: inline-block; margin-top: 22px; color: #6ea2ff; font-weight: 500; }
/* The video floats on a blue wash, like a window on a desktop. */
.showcase-media {
  padding: clamp(20px, 4.5vw, 52px);
  border-radius: var(--r-card);
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(120, 170, 255, .75), transparent 60%),
    linear-gradient(135deg, #3b82ff 0%, var(--blue) 55%, #1f4fd8 100%);
}
.showcase-video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: var(--bg-1);
  box-shadow: 0 24px 60px -18px rgba(0, 10, 40, .7);
}

@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
}

/* ---------- compare ---------- */
.compare { margin-top: clamp(80px, 11vw, 136px); }
.compare h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; }
.compare > p { margin: 10px 0 24px; color: var(--text-2); }

.table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--bg-1);
  font-size: 15px;
}

.table th, .table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { background: var(--bg-2); color: var(--text-2); font-size: 14px; font-weight: 600; }
.table tbody th { width: 22%; font-weight: 500; }
.table td { color: var(--text-2); }
.table td.win { border-bottom-color: rgba(255, 255, 255, .18); background: var(--blue); color: #fff; }
.note { margin: 12px 0 0; color: var(--text-2); font-size: 13px; }

@media (max-width: 640px) {
  .table { font-size: 14px; }
  .table th, .table td { padding: 12px; }
  .table tbody th { width: auto; }
}

/* ---------- features: a row of cards ----------
   Default (phones, reduced motion, no JS): a native swipe row with snap points.
   .is-pinned (site.js, large screens): the section holds still and vertical scroll drives the row sideways. */
.hs { --edge: max(20px, calc((100% - 1080px) / 2)); }
.hs.is-pinned { padding-top: 0; }
.hs-intro { margin: 0 20px 32px var(--edge); }

.features {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 4px var(--edge) 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
}

.feature {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 20px;
  width: min(86vw, 520px);
  padding: 10px 10px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-1);
  scroll-snap-align: start;
}

.feature-media { order: -1; }
.feature-text { padding: 0 12px; }
.feature h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; letter-spacing: -.02em; }
.feature p { margin: 0; color: var(--text-2); font-size: 15.5px; text-wrap: pretty; }

.shot { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }

code, .mono { font-family: var(--font-code); font-size: .9em; }
.feature p code { padding: 1px 6px; border-radius: 4px; background: var(--bg-3); color: var(--text); }

.hs.is-pinned .hs-pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  padding: var(--nav-h, 62px) var(--edge) 0;
  overflow: hidden;
}

.hs.is-pinned .hs-track { display: flex; align-items: center; gap: clamp(40px, 6vw, 96px); width: max-content; will-change: transform; }
.hs.is-pinned .hs-intro { width: min(440px, 32vw); margin: 0; }
.hs.is-pinned .features { align-items: stretch; gap: 28px; padding: 0; overflow: visible; }
/* Height-led width so a card plus its words always fits a short laptop screen. */
.hs.is-pinned .feature { width: min(600px, 42vw, calc((100vh - 330px) * 1.6)); }
.hs.is-pinned .team { display: flex; flex-direction: column; justify-content: center; aspect-ratio: 16 / 9; }

/* Team mock: an HTML picture of the @mention flow, drawn like the app's chat panel */
.team { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(80% 60% at 100% 0%, rgba(0, 94, 255, .14), transparent 70%), var(--bg-1); }
.team-prompt { margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); font: 400 14.5px/2 var(--font-code); }
.mention { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px 1px 4px; border-radius: 6px; font-weight: 600; vertical-align: middle; }
.mention img { width: 16px; height: 16px; border-radius: 4px; }
.m-claude { background: rgba(217, 119, 87, .16); color: #f0a487; }
.m-codex { background: rgba(255, 255, 255, .08); color: var(--text); }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 18px 0 0; }
.lane dt { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.lane dt::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.lane dd { margin: 0; padding-left: 16px; color: var(--text-2); font: 400 13px/1.8 var(--font-code); }
.team-foot { margin: 18px 0 0; color: var(--text-2); font-size: 13px; }

@media (max-width: 480px) {
  .lanes { grid-template-columns: 1fr; }
}

/* And also */
/* And also: the heading holds still on the left while the rows scroll past on the right. */
@property --rule-c { syntax: '<color>'; inherits: false; initial-value: #26262c; }

.more { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 6vw, 96px); margin-top: clamp(96px, 12vw, 160px); }

.extras-title {
  position: sticky;
  top: calc(var(--nav-h, 62px) + 32px);
  align-self: start;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.extras { margin: 0; border-bottom: 1px solid var(--line); }

.extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 40px;
  padding: 34px 0 38px;
  background: linear-gradient(var(--rule-c), var(--rule-c)) 0 0 / var(--rule, 100%) 1px no-repeat;
  transition: --rule-c .35s;
}

.extra dt {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  transition: translate .45s cubic-bezier(.16, 1, .3, 1), color .3s;
}

.extra dd { margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.extra code { padding: 1px 6px; border-radius: 4px; background: var(--bg-3); color: var(--text); }

/* A real keycap: the offset shadow is the key's side, and it presses down on hover. */
.extra kbd {
  display: inline-block;
  margin-left: .1em;
  padding: .12em .45em;
  border: 1px solid #3a3a42;
  border-radius: 7px;
  background: var(--bg-2);
  box-shadow: 0 4px 0 #26262c;
  font: 600 .72em/1.3 var(--font-code);
  vertical-align: .18em;
  transition: translate .12s, box-shadow .12s;
}

.langs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.langs img { width: 28px; height: 28px; transition: translate .3s cubic-bezier(.16, 1, .3, 1); }
/* Orbiting (site.js): the logos start at the row's centre and site.js moves them round the description. The row is the stacking context, so a logo on
   the far side (z-index -1) passes under the text and one on the near side over it. */
.extra:has(.langs.orbit) { position: relative; isolation: isolate; padding-block: 48px; }
.langs.orbit { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.langs.orbit img { position: absolute; left: calc(50% - 18px); top: calc(50% - 18px); width: 36px; height: 36px; transition: none; }

@media (hover: hover) {
  .extra:hover { --rule-c: var(--blue); }
  .extra:hover dt { translate: 8px 0; color: #fff; }
  .extra:hover kbd { translate: 0 3px; box-shadow: 0 1px 0 #26262c; }
  .langs:not(.orbit) img:hover { translate: 0 -4px; }
}

@media (max-width: 860px) {
  .more { grid-template-columns: 1fr; }
  .extras-title { position: static; }
  .extra { grid-template-columns: 1fr; padding: 26px 0 30px; }
}

/* ---------- download ---------- */
.finale {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: clamp(80px, 11vw, 136px);
}

@property --open {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

/* The app's onboarding sky: deep Breeze blue through the middle, pale sky in the corners, a hint of violet low down.
   Like the app's launch, it opens from the centre through a soft-edged circular mask; site.js holds it shut
   (.is-closed) until the finale scrolls in, then plays it open (.is-open). */
.finale-sky {
  --open: 160vmax;
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 calc(var(--open) - 120px), transparent var(--open));
  mask-image: radial-gradient(circle at 50% 50%, #000 calc(var(--open) - 120px), transparent var(--open));
  background:
    radial-gradient(60% 55% at 12% 8%, #b9dcff 0%, rgba(185, 220, 255, 0) 70%),
    radial-gradient(55% 60% at 92% 96%, #a9d1fb 0%, rgba(169, 209, 251, 0) 70%),
    radial-gradient(45% 40% at 18% 92%, #7a5cff 0%, rgba(122, 92, 255, 0) 70%),
    linear-gradient(125deg, #8fc3ff 0%, #2f6bff 34%, #1f4dff 55%, #3d7bff 78%, #9cc9f7 100%);
}

/* Slow drifting light inside the sky, so it feels alive while it holds. */
.finale-sky::before,
.finale-sky::after {
  content: '';
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
}

.finale-sky::before {
  left: -20vmax;
  top: -30vmax;
  background: #d6ecff;
  animation: sky-drift 5s ease-in-out infinite alternate;
}

.finale-sky::after {
  right: -25vmax;
  bottom: -35vmax;
  background: #5b3dff;
  opacity: .35;
  animation: sky-drift 6s ease-in-out -2s infinite alternate-reverse;
}

.finale-sky.is-closed { --open: 0px; }
.finale-sky.is-open { animation: sky-open 1s cubic-bezier(.65, 0, .35, 1) both; }

@keyframes sky-open {
  from { --open: 0px; }
  to { --open: 160vmax; }
}

/* Holds the edge blurs above the drifting light. */
.finale-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Top and bottom edges: a dark blur, so the sky melts into the page above and settles under the footer. */
.finale-veil::before,
.finale-veil::after {
  content: '';
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.finale-veil::before {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .85), transparent 28%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 28%);
  mask-image: linear-gradient(to bottom, #000, transparent 28%);
}

.finale-veil::after {
  background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent 30%);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 30%);
  mask-image: linear-gradient(to top, #000, transparent 30%);
}

@keyframes sky-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(8vmax, 6vmax) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .finale-sky::before,
  .finale-sky::after { animation: none; }
}

/* Over the sky the blue button would vanish into the blue, so it turns white (as on the app's welcome screen). */
.finale .btn-primary { background: #f5f5f7; border-color: #f5f5f7; color: #1f4dff; }
.finale .btn-primary:hover { background: #fff; border-color: #fff; }

/* FAQ and legal pages: the same screen-tall glow painted at the bottom of the page, behind the footer. */
.glow { background-image: var(--glow-bg); background-position: bottom; background-size: 100% 100vh; background-repeat: no-repeat; }

.download {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(72px, 13vh, 104px) 20px clamp(40px, 9vh, 72px);
  text-align: center;
}

.download img { width: 72px; height: 72px; margin: 0 auto 8px; }
.download h2 { margin-top: 16px; }
.download > p { max-width: 520px; margin: 14px auto 0; color: rgba(245, 245, 247, .8); }
.download-meta { margin: 14px 0 0; color: rgba(245, 245, 247, .74); font-size: 13px; }
.download-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 20px; font-size: 14px; }
.download-links a { color: rgba(245, 245, 247, .8); text-decoration: none; }
.download-links a:hover { color: var(--text); }

/* ---------- inline links ---------- */
/* Plain until hovered or focused, then a blue line draws in from the left (same move as the footer links). */
.link, .prose a, .faq-a a {
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 2px no-repeat;
  transition: background-size .35s cubic-bezier(.16, 1, .3, 1), color .15s;
}
.link:hover, .prose a:hover, .faq-a a:hover,
.link:focus-visible, .prose a:focus-visible, .faq-a a:focus-visible { background-size: 100% 2px; }

/* ---------- FAQ and legal pages ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) 20px 0; }

.page h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.page-meta { margin: 12px 0 40px; color: var(--text-2); font-size: 14px; }

.prose { color: var(--text-2); font-size: 17px; line-height: 1.7; }
.prose h2 { margin: 44px 0 12px; color: var(--text); font: 600 22px/1.3 var(--font-ui); letter-spacing: -.01em; }
.prose p, .prose li { margin: 0 0 12px; }
.prose ul { padding-left: 20px; }
.prose b { color: var(--text); font-weight: 600; }
.prose h3 { margin: 28px 0 8px; color: var(--text); font: 600 18px/1.35 var(--font-ui); }
.prose ul ul { margin-top: 8px; }
/* Legal convention: disclaimers set in capitals, a touch smaller so the block stays readable. */
.prose .caps { font-size: 14.5px; letter-spacing: .02em; }

/* Contents list at the top of the legal pages */
.toc { margin: 32px 0 8px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-1); }
.toc ol { margin: 0; padding-left: 22px; columns: 2 280px; column-gap: 48px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.prose .toc a { color: var(--text-2); }
.prose .toc a:hover { color: var(--text); }
.prose h2[id], .prose h3[id] { scroll-margin-top: 32px; }

.faq-group { margin: 48px 0 14px; font-family: var(--font-display); font-size: clamp(20px, 2vw, 24px); letter-spacing: -.02em; }
.page-meta + .faq-group { margin-top: 0; }

.faq { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background: var(--text-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1);
}
.faq[open]:not([data-state="closing"]) summary::after { transform: rotate(180deg); }
.faq summary:hover::after { background: var(--text); }
.faq-a { padding: 0 20px 18px; color: var(--text-2); }
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin: 0; }
.faq-a b { color: var(--text); font-weight: 600; }

/* ---------- footer ---------- */
.footer { margin-top: clamp(80px, 11vw, 136px); padding: 32px 0 48px; border-top: 1px solid var(--line); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer small { color: var(--text-2); font-size: 13px; }
.finale .footer { margin-top: 0; }
.finale .footer, .glow .footer {
  border-top-color: var(--glass-line);
  background: rgba(8, 10, 20, .32);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.footer nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 2px;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 2px no-repeat;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s, background-size .35s cubic-bezier(.16, 1, .3, 1), transform .15s;
}
.footer nav a:hover { background-size: 100% 2px; color: var(--text); }
.footer nav a:active { transform: scale(.95); }
/* Click (site.js adds .is-opening): a quick press-and-spring as the new tab opens. */
.footer nav a.is-opening { color: var(--text); animation: open .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes open {
  30% { transform: scale(.9); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .footer nav a.is-opening { animation: none; }
}
