@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600&family=Geist+Mono:wght@400;500&display=swap");
@import url("tokens.css");

/* =========================================================================
   Base — atmospheric dark canvas with two warm blooms (genre allowance)
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: clip; }
body {
  overflow-x: clip;
  margin: 0;
  min-height: 100dvh;
  background-color: var(--color-paper);
  background-image: var(--bloom-amber), var(--bloom-copper);
  background-attachment: fixed;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 350;            /* dark-mode recipe: reduce body weight */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--color-accent); color: var(--color-accent-ink); }

/* Focus ring — instant, never animated */
:focus { outline: none; }
:focus-visible {
  outline: var(--rule-medium) solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a { color: var(--color-ink); text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }

/* Headings — Oswald display, roman, tight tracking */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; max-width: var(--measure); }

/* =========================================================================
   Layout primitives
   ========================================================================= */
.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section {
  padding-block: var(--space-3xl);
}
.section--tight { padding-block: var(--space-2xl); }
.section--loose { padding-block: var(--space-4xl); }

.rule-top    { border-top: var(--rule-hair) solid var(--color-rule); }
.rule-bottom { border-bottom: var(--rule-hair) solid var(--color-rule); }

/* =========================================================================
   N9 · Edge-aligned minimal nav — wordmark hard-left, CTA hard-right
   The space between IS the design.
   ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-md);
  padding-inline: var(--page-gutter);
  background: color-mix(in oklch, var(--color-paper) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: var(--rule-hair) solid transparent;
  transition: border-color var(--dur-short) var(--ease-out);
}
.nav__wordmark { flex-shrink: 0; }
.nav .cta { flex-shrink: 0; }
.nav[data-scrolled="true"] { border-bottom-color: var(--color-rule); }

.nav__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  white-space: nowrap;
}
.nav__wordmark::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  display: inline-block;
  align-self: center;
  box-shadow: 0 0 0.6em color-mix(in oklch, var(--color-accent) 55%, transparent);
}

.nav__links {
  display: none;             /* hidden on mobile, see responsive */
  align-items: center;
  gap: var(--space-xl);
}
.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-short) var(--ease-out);
}
.nav__link:hover { color: var(--color-ink); }

/* =========================================================================
   C1 · Outlined chip — bordered, transparent, typographic verb
   ========================================================================= */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-ink);
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border: var(--rule-medium) solid var(--color-accent);
  border-radius: var(--radius-pill);
  min-height: 44px;
  white-space: nowrap;
  background: transparent;
  transition:
    background-color var(--dur-short) var(--ease-out),
    color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}
.cta:hover {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.cta:active { transform: translateY(1px); }
.cta__arrow { transition: transform var(--dur-short) var(--ease-out); }
.cta:hover .cta__arrow { transform: translateX(3px); }

/* Solid variant — used once at hero */
.cta--solid {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-color: var(--color-accent);
}
.cta--solid:hover {
  background: color-mix(in oklch, var(--color-accent) 80%, white);
  color: var(--color-accent-ink);
}

/* Responsive CTA label — nav only. Mobile shows "Get it →", desktop full. */
.cta__label-long { display: none; }
.cta--nav { padding-inline: 1rem; }
@media (min-width: 30rem) {
  .cta--nav .cta__label-short { display: none; }
  .cta--nav .cta__label-long { display: inline; }
  .cta--nav { padding-inline: 1.2rem; }
}

/* =========================================================================
   Hero — left-biased, atmospheric, type-led
   Not min-height:100vh centred. Content height with left bias + screenshot right.
   ========================================================================= */
.hero {
  padding-block: var(--space-3xl) var(--space-2xl);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.hero__lede { max-width: var(--measure-wide); }
.hero__eyebrow {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 0.6ch;
}
.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5em;
  height: 1px;
  background: var(--color-accent);
}
.hero__title {
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: var(--space-lg);
}
.hero__title-accent {
  color: var(--color-accent);
  display: inline-block;
  position: relative;
}
.hero__subtitle {
  font-size: var(--text-md);
  color: var(--color-ink-2);
  line-height: 1.55;
  margin-bottom: var(--space-xl);
  max-width: 38ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}
.hero__meta {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

/* Hero screenshots — F5 annotated, hairline frame only, no re-drawn chrome.
   Split pair: stations + now-playing dial. Phone-portrait assets are 9:16 —
   clamp height so the hero fits one fold and the CTA never gets buried. */
.hero__shots {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(var(--space-md), 2.5vw, var(--space-xl));
  max-height: 62svh;
  isolation: isolate;
}
.hero__shot {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
}
/* Lead device — straight, anchors the pair. */
.hero__shot-frame {
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 18rem;
  width: 100%;
  height: 100%;
  max-height: 62svh;
  background: var(--color-paper-2);
}
.hero__shot-frame img {
  width: 100%;
  height: 100%;
  max-height: 62svh;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* Accent device — second phone, tilted, lifted, dial forward. */
.hero__shot--accent {
  align-self: flex-end;
}
.hero__shot--accent .hero__shot-frame {
  max-width: 14rem;
  box-shadow: 0 1.2rem 3rem -1rem oklch(0% 0 0 / 0.55);
}
@media (hover: hover) and (pointer: fine) {
  .hero__shot--accent .hero__shot-frame {
    transform: rotate(2.5deg) translateY(-0.5rem);
    transition: transform var(--dur-short) var(--ease-out);
  }
  .hero__shots:hover .hero__shot--accent .hero__shot-frame { transform: rotate(1.5deg) translateY(-0.25rem); }
}
/* Touch / non-hover: show the tilt statically so it doesn't look like two identical slabs. */
@media not all and (hover: hover) and (pointer: fine) {
  .hero__shot--accent .hero__shot-frame { transform: rotate(2.5deg) translateY(-0.5rem); }
}

/* =========================================================================
   Workbench screenshot tour — alternating left/right bias, real captures
   F5 annotated: hairline frame, margin label, text-led anchor
   ========================================================================= */
.tour {
  padding-block: var(--space-3xl);
}
.tour__intro {
  max-width: var(--measure);
  margin-bottom: var(--space-3xl);
}
.tour__intro h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}
.tour__intro p {
  color: var(--color-ink-2);
  font-size: var(--text-md);
}

.tour__step {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding-block: var(--space-2xl);
  border-top: var(--rule-hair) solid var(--color-rule-soft);
}
.tour__step:last-child { border-bottom: var(--rule-hair) solid var(--color-rule-soft); }

.tour__shot {
  order: 2;
}
.tour__copy {
  order: 1;
}

.tour__step-num {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-sm);
  display: block;
}
.tour__step-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}
.tour__step-body {
  color: var(--color-ink-2);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: var(--measure);
}
.tour__step-detail {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-top: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-rule-soft);
}
.tour__step-detail-item {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  display: flex;
  gap: 0.6ch;
  align-items: baseline;
}
.tour__step-detail-item::before {
  content: "—";
  color: var(--color-accent);
  font-family: var(--font-outlier);
}

.tour__shot-frame {
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-paper-2);
  max-width: 18rem;
  margin-inline: auto;
}
.tour__shot-frame img {
  width: 100%;
  height: auto;
  max-height: 70svh;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--dur-long) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tour__shot-frame:hover img { transform: scale(1.015); }
}

/* =========================================================================
   Features — typographic rhythm, NOT a 3-column icon-card grid
   Inline-numbered detail strip beneath each concept
   ========================================================================= */
.features {
  padding-block: var(--space-3xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.features__head {
  max-width: var(--measure);
  margin-bottom: var(--space-2xl);
}
.features__head h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}
.features__head p {
  color: var(--color-ink-2);
  font-size: var(--text-md);
}

.features__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: feat;
}
.features__item {
  counter-increment: feat;
  padding-block: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-sm);
}
.features__item:last-child { border-bottom: var(--rule-hair) solid var(--color-rule-soft); }

.features__item-num {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  color: var(--color-accent);
  letter-spacing: 0.12em;
}
.features__item-num::before {
  content: counter(feat, decimal-leading-zero) "  ";
}
.features__item-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-ink);
}
.features__item-body {
  color: var(--color-ink-2);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: var(--measure);
}

/* =========================================================================
   FAQ — F4 step-sequence energy but as honest Q&A accordion
   ========================================================================= */
.faq {
  padding-block: var(--space-3xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.faq__head {
  max-width: var(--measure);
  margin-bottom: var(--space-2xl);
}
.faq__head h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}
.faq__list {
  display: flex;
  flex-direction: column;
}
.faq__item {
  border-top: var(--rule-hair) solid var(--color-rule-soft);
}
.faq__item:last-child { border-bottom: var(--rule-hair) solid var(--color-rule-soft); }
.faq__q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  text-align: start;
  padding: var(--space-lg) 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}
.faq__q-icon {
  flex-shrink: 0;
  width: 1.25em;
  height: 1.25em;
  color: var(--color-accent);
  transition: transform var(--dur-short) var(--ease-out);
}
.faq__item[open] .faq__q-icon { transform: rotate(45deg); }
.faq__a {
  padding: 0 0 var(--space-lg);
  color: var(--color-ink-2);
  font-size: var(--text-base);
  line-height: 1.65;
  max-width: var(--measure);
}
.faq__a p + p { margin-top: var(--space-sm); }

/* =========================================================================
   Privacy statement — short, honest, local-first
   ========================================================================= */
.privacy-note {
  padding-block: var(--space-2xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.privacy-note__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: baseline;
}
.privacy-note__label {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.privacy-note__body {
  font-size: var(--text-base);
  color: var(--color-ink-2);
  max-width: var(--measure-wide);
  line-height: 1.6;
}
.privacy-note__link {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.privacy-note__link:hover { color: var(--color-ink); }

/* =========================================================================
   CTA strip — single button, one-sentence prompt
   ========================================================================= */
.cta-strip {
  padding-block: var(--space-3xl);
  border-top: var(--rule-hair) solid var(--color-rule);
  text-align: start;
}
.cta-strip__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  max-width: 20ch;
}
.cta-strip__body {
  color: var(--color-ink-2);
  margin-bottom: var(--space-xl);
  max-width: var(--measure);
}

/* =========================================================================
   Ft5 · Statement footer — one display sentence, minimal meta
   ========================================================================= */
.foot {
  padding: var(--space-2xl) var(--page-gutter) var(--space-xl);
}
.foot__line {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 28ch;
  margin: 0 0 var(--space-lg);
  color: var(--color-ink);
}
.foot__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.foot__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: baseline;
}
.foot__meta a {
  color: var(--color-ink-2);
  text-decoration: none;
}
.foot__meta a:hover { color: var(--color-accent); }
.foot__meta-sep { color: var(--color-rule); }

/* =========================================================================
   Skip link — a11y first
   ========================================================================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: var(--z-toast);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--dur-short) var(--ease-out);
}
.skip-link:focus { top: var(--space-md); }

/* =========================================================================
   Prose — privacy.html & terms.html long-form reading layout
   ========================================================================= */
.prose { padding-block: var(--space-3xl) var(--space-2xl); }
.prose__head {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.prose__eyebrow {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 var(--space-md);
}
.prose__head h1 {
  font-size: var(--text-display-s);
  margin-bottom: var(--space-sm);
}
.prose__meta {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  color: var(--color-muted);
  letter-spacing: 0.02em;
  max-width: none;
}
.prose__meta code {
  font-family: var(--font-outlier);
  color: var(--color-ink-2);
}

.prose__body {
  max-width: var(--measure);
}
.prose__body h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.prose__body h2:first-of-type { margin-top: 0; }
.prose__body p {
  margin-bottom: var(--space-md);
  color: var(--color-ink-2);
  line-height: 1.7;
}
.prose__lede {
  font-size: var(--text-md);
  color: var(--color-ink);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: var(--rule-hair) solid var(--color-rule-soft);
}
.prose__body ul {
  margin: 0 0 var(--space-md);
  padding-inline-start: var(--space-lg);
}
.prose__body li {
  color: var(--color-ink-2);
  line-height: 1.7;
  margin-bottom: var(--space-xs);
}
.prose__body strong { color: var(--color-ink); font-weight: 500; }
.prose__body code {
  font-family: var(--font-outlier);
  font-size: 0.92em;
  background: var(--color-paper-3);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--color-accent);
}
.prose__body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose__body a:hover { color: var(--color-ink); }

.prose__foot {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}
.prose__foot a {
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.prose__foot a:hover { color: var(--color-accent); }

/* =========================================================================
   Reveal — one orchestrated entrance, staggered by index
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes reveal {
  to { opacity: 1; transform: none; }
}

/* =========================================================================
   Reduced motion — collapse all spatial motion to opacity crossfade
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  .reveal {
    animation: reveal-reduced 150ms linear forwards;
    transform: none;
  }
  @keyframes reveal-reduced {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* =========================================================================
   Responsive — 60rem (desktop baseline), 40rem (tablet)
   ========================================================================= */
@media (min-width: 40rem) {
  .nav__links { display: flex; }
  .features__list {
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-2xl);
  }
  .features__item { padding-block: var(--space-lg); }
  .foot__meta { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .prose__foot { flex-direction: row; }
}

/* Mobile / narrow: split pair becomes a stacked fan — lead device forward,
   accent device tucked behind on the right, partly visible. Keeps the lead
   phone legible instead of cramming two tiny slabs side by side. */
@media (max-width: 39.9375rem) {
  .hero__shots {
    gap: 0;
    justify-content: flex-start;
    padding-inline-end: 0;
  }
  .hero__shot--accent {
    position: absolute;
    right: 0;
    bottom: -1rem;
    z-index: 0;
    opacity: 0.75;
    max-width: 62%;
  }
  .hero__shot--accent .hero__shot-frame {
    max-width: 10rem;
    transform: rotate(5deg) translateY(1.5rem) translateX(1rem);
  }
  .hero__shot:not(.hero__shot--accent) {
    position: relative;
    z-index: 1;
    max-width: 64%;
  }
  .hero__shot:not(.hero__shot--accent) .hero__shot-frame { max-width: 15rem; }
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-3xl);
  }
  .hero__shots { order: 2; }

  .tour__step {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
  .tour__step--reverse .tour__shot { order: -1; }
  .tour__step--reverse .tour__copy { order: 0; }

  .features__list {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .cta-strip__title { font-size: var(--text-4xl); }
}
