/* ==========================================================================
   Levelaur — waitlist landing page
   Palette and type mirror the Claude Design source ("Levelaur Waitlist").
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts — self-hosted, no CDN. latin + latin-ext subsets only.
   Stack Sans Text stands in for SF Pro Display, which cannot be self-hosted
   (Apple licenses it for Apple platforms only). It is variable on the wght
   axis 400–700, so one file per subset covers every weight the page uses.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Stack Sans Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/stacksanstext-latin.woff2') format('woff2-variations'),
       url('../fonts/stacksanstext-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Stack Sans Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/stacksanstext-latin-ext.woff2') format('woff2-variations'),
       url('../fonts/stacksanstext-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/archivo-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/archivo-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Serif is only ever used italic (.serif), so the upright cut is
   not declared at all — the two files were deleted with these blocks. */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrumentserif-400i-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrumentserif-400i-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   Tokens — hex first so older engines still get the right page,
   oklch (the design's own colour space) where it is supported.
   -------------------------------------------------------------------------- */
:root {
  --bg: #131318;
  --bg-2: #0c0d11;
  --bg-3: #0a0b0f;
  --surface: #1e1f24;
  --text: #eaebee;
  --muted: #a3a4ab;
  --muted-2: #8e8f95;
  --faint: #7f8086;
  --faint-2: #707177;
  --accent: #a287fe;
  --accent-bright: #baa4ff;
  --accent-soft: #c0acff;
  --accent-dot: #b297ff;
  --on-accent: #0b0a13;

  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.1);
  --accent-wash: rgba(162, 135, 254, 0.12);
  --accent-edge: rgba(162, 135, 254, 0.25);
  --accent-tint: rgba(162, 135, 254, 0.14);

  --font-body: 'Stack Sans Text', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    system-ui, sans-serif;
  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-mark: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shell: 1100px;
  --gutter: 32px;
}

@supports (color: oklch(0.5 0.1 280)) {
  :root {
    --bg: oklch(0.19 0.01 280);
    --bg-2: oklch(0.16 0.008 280);
    --bg-3: oklch(0.15 0.008 280);
    --surface: oklch(0.24 0.01 280);
    --text: oklch(0.94 0.005 280);
    --muted: oklch(0.72 0.01 280);
    --muted-2: oklch(0.65 0.01 280);
    --faint: oklch(0.6 0.01 280);
    --faint-2: oklch(0.55 0.01 280);
    --accent: oklch(0.7 0.17 292);
    --accent-bright: oklch(0.78 0.15 292);
    --accent-soft: oklch(0.8 0.14 292);
    --accent-dot: oklch(0.75 0.17 292);
    --on-accent: oklch(0.15 0.02 292);

    --line: oklch(1 0 0 / 0.07);
    --line-strong: oklch(1 0 0 / 0.1);
    --accent-wash: oklch(0.65 0.16 292 / 0.12);
    --accent-edge: oklch(0.65 0.16 292 / 0.25);
    --accent-tint: oklch(0.7 0.17 292 / 0.14);
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent-edge);
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-soft);
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px)) {
  .nav {
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mark);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

/* Sized in em so the mark tracks whatever size the wordmark is set at —
   22px in the nav, 17px in the footer. The width/height attributes on the
   <svg> itself are only a fallback for the case where this rule never
   arrives; the mark is very slightly wider than it is tall. */
.wordmark .mark {
  flex: 0 0 auto;
  width: 0.94em;
  height: 0.92em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.nav-cta {
  color: var(--accent-bright);
  font-weight: 600;
}

.nav-links a.nav-cta:hover {
  color: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 104px var(--gutter) 88px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-edge);
  font-size: 13px;
  color: var(--accent-soft);
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-dot);
}

.hero h1 {
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.08;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero h1 .serif {
  font-size: 1.08em;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
  margin: 0;
  text-wrap: pretty;
}

/* Video slot — swap the placeholder for a <video> when the demo is ready. */
.video-frame {
  margin-top: 12px;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-2);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The .video-placeholder rules that used to live here went with the real
   video. The poster frame is light, so .video-frame's own dark background
   only shows for the moment before it loads. */

/* Waitlist form */
.waitlist-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  /* Stop the sticky nav from swallowing the form when #waitlist is targeted,
     and leave the video visible above it so the landing spot reads as the hero
     rather than as the top of the next section. */
  scroll-margin-top: clamp(90px, 26vh, 260px);
}

.waitlist-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  margin-top: 4px;
}

.waitlist-form input[type='email'] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 15px 18px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}

.waitlist-form input[type='email']::placeholder {
  color: var(--muted-2);
}

.waitlist-form input[type='email']:focus {
  border-color: var(--accent-edge);
}

.waitlist-form button {
  flex: 0 0 auto;
  font-family: inherit;
  padding: 15px 26px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.waitlist-form button:hover {
  background: var(--accent-bright);
}

.waitlist-form button[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* Honeypot — kept out of the layout and away from assistive tech. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 13px;
  color: var(--faint-2);
  margin: 0;
  min-height: 1.2em;
}

.form-note.is-error {
  color: #ff9d9d;
}

.form-note.is-success {
  color: var(--accent-soft);
}

/* Sits below the status line, quieter than it. The negative top margin pulls
   it back out of .waitlist-block's 14px gap so the two lines read as one
   block of small print rather than two separate notes. */
.form-consent {
  margin: -8px 0 0;
  max-width: 460px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--faint-2);
  text-align: center;
  text-wrap: pretty;
}

.form-consent a {
  color: var(--faint);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.form-consent a:hover {
  color: var(--accent-soft);
  text-decoration-color: currentColor;
}

/* Proof — the claim, with the sequence it was measured on directly under it */
.proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.proof-claim {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  color: var(--muted);
  text-wrap: balance;
}

.proof-claim b {
  color: var(--text);
  font-weight: 600;
}

.proof-note {
  margin: 0;
  font-size: 13px;
  color: var(--faint-2);
}

/* Desktop-product note, shown on small screens only */
.desktop-note {
  display: none;
  align-items: flex-start;
  gap: 10px;
  max-width: 420px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted-2);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: left;
}

.desktop-note svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  stroke: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: 100px 0;
}

.section--sunk {
  background: var(--bg-3);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-head h2 {
  font-size: clamp(28px, 4.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}

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

.eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--accent-tint);
  font-size: 12px;
  color: var(--accent-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Problem
   -------------------------------------------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.problem-card {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.problem-card .tick {
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.75;
  margin-bottom: 22px;
}

.problem-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.problem-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted-2);
  margin: 0;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

/* Copy on the left, a picture of the panel on the right. The panel is lifted
   into the section's own top padding so it breaks the band of empty space
   above it — the section still starts where every other section starts. */
.how-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}

.section-head--left {
  text-align: left;
  max-width: 460px;
  margin: 0;
}

.how-caption {
  margin-top: 18px !important;
  font-size: 14.5px !important;
  color: var(--faint) !important;
}

.panel-mock {
  margin-top: -44px;
  justify-self: end;
}

/* ---- the panel itself -----------------------------------------------------
   These colours are the plugin's own palette, copied verbatim from
   AutoMix/index.html so the mock reads as a screenshot rather than as a
   re-skin. They are deliberately local to .panel-mock and are NOT site
   tokens — do not move them into :root, they would need oklch twins there. */
.panel-mock .pm-chrome {
  --pm-bg: #0f1013;
  --pm-border: #2a2d33;
  --pm-text: #ecedef;
  --pm-dim: #8b8e96;
  --pm-faint: #55585f;
  --pm-accent: #8c7cf0;
  --pm-surface: #1d1f24;
  --pm-nested: #17181c;
  --pm-success: #35d488;
  --pm-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  display: flex;
  flex-direction: column;
  height: 520px;
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--pm-bg);
  color: var(--pm-text);
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.panel-mock .pm-header {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-bottom: 1px solid var(--pm-border);
}

.panel-mock .pm-wordmark {
  font-family: var(--font-mark);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.panel-mock .pm-tabs {
  flex: 0 0 auto;
  display: flex;
  border-bottom: 1px solid var(--pm-border);
}

.panel-mock .pm-tab {
  flex: 1;
  text-align: center;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--pm-faint);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.panel-mock .pm-tab.is-active {
  color: var(--pm-text);
  border-bottom-color: var(--pm-accent);
}

.panel-mock .pm-tab.is-off {
  opacity: 0.55;
}

.panel-mock .pm-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--pm-border);
  font-size: 11px;
  color: var(--pm-dim);
}

.panel-mock .pm-target {
  font-family: var(--pm-mono);
  color: var(--pm-accent);
}

.panel-mock .pm-edit {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
}

.panel-mock .pm-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-mock .pm-group {
  flex-shrink: 0;
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--pm-surface);
}

.panel-mock .pm-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
}

/* An SVG chevron rather than the panel's "▸" character — the body face has no
   glyph for it, and a bare inline element ignores transform, so the open group
   could never point down. */
.panel-mock .pm-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
}

.panel-mock .pm-arrow svg {
  fill: none;
  stroke: var(--pm-faint);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-mock .pm-group-head.is-open .pm-arrow svg {
  transform: rotate(90deg);
}

.panel-mock .pm-group-label {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
}

.panel-mock .pm-count {
  flex: 0 0 auto;
  font-family: var(--pm-mono);
  font-size: 10.5px;
  color: var(--pm-faint);
}

.panel-mock .pm-group-body {
  padding: 9px 10px 10px;
  border-top: 1px solid var(--pm-border);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.panel-mock .pm-clip {
  padding: 8px 9px;
  border: 1px solid var(--pm-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-mock .pm-clip-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-mock .pm-check {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--pm-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-mock .pm-check svg {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: #0f1013;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-mock .pm-clip-name {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-mock .pm-lufs {
  flex: 0 0 auto;
  font-family: var(--pm-mono);
  font-size: 11px;
  color: var(--pm-dim);
  font-variant-numeric: tabular-nums;
}

.panel-mock .pm-clip-detail {
  padding-left: 19px;
}

/* Same convention as the panel: a cut is green, a boost is the accent. */
.panel-mock .pm-gain {
  font-family: var(--pm-mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.panel-mock .pm-gain.up {
  color: var(--pm-accent);
}

.panel-mock .pm-gain.down {
  color: var(--pm-success);
}

.panel-mock .pm-footer {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--pm-border);
  background: rgba(0, 0, 0, 0.15);
}

.panel-mock .pm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
}

.panel-mock .pm-btn.ghost {
  flex: 0 0 auto;
  background: #2a2c33;
  border: 1px solid #383b42;
  color: var(--pm-text);
}

.panel-mock .pm-btn.primary {
  flex: 1;
  background: var(--pm-accent);
  color: #0f1013;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  counter-reset: step;
}

.step {
  background: var(--bg-2);
  padding: 36px 28px 40px;
}

.step .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 34px;
  line-height: 1;
  color: var(--accent-soft);
  display: block;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.step p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted-2);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Features — the design's seamless hairline grid
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.feature {
  background: var(--bg-2);
  padding: 40px;
}

.feature .glyph {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature .glyph i {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent-bright);
  border-radius: 4px;
}

.feature .glyph i.round { border-radius: 50%; }
.feature .glyph i.sharp { border-radius: 2px; }
.feature .glyph i.notch { border-radius: 4px 4px 4px 0; }
.feature .glyph i.leaf  { border-radius: 50% 4px 50% 4px; }
.feature .glyph i.bar   { height: 10px; border-radius: 3px; }

.feature h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-2);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Trust
   -------------------------------------------------------------------------- */
.trust-card {
  max-width: 820px;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid var(--accent-edge);
  background: linear-gradient(180deg, var(--accent-wash), transparent);
  padding: 56px;
  text-align: center;
}

.trust-card h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}

.trust-card > p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  text-wrap: pretty;
}

.trust-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin: 40px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.trust-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--muted);
}

.trust-points svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  stroke: var(--accent-soft);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   FAQ — native <details>, no JavaScript
   -------------------------------------------------------------------------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent-soft);
}

.faq summary::after {
  content: '';
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.18s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq details p {
  margin: 0 0 24px;
  padding-right: 34px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted-2);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Bottom CTA
   -------------------------------------------------------------------------- */
.cta {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta h2 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.footer .wordmark {
  font-size: 17px;
}

.footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--faint);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer .copy {
  font-size: 13px;
  color: var(--faint-2);
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 88px var(--gutter) 96px;
}

.prose h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.prose .updated {
  color: var(--faint);
  font-size: 14px;
  margin: 0 0 48px;
}

.prose h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
}

.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 10px;
}

.prose a {
  color: var(--accent-soft);
  text-decoration-color: var(--accent-edge);
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  /* Not enough width for copy beside the panel — stack them and put the
     heading back in the middle, like every other section head. */
  .how-top {
    grid-template-columns: 1fr;
    gap: 48px;
    justify-items: center;
  }

  .section-head--left {
    text-align: center;
    max-width: 640px;
  }

  .panel-mock {
    margin-top: 0;
    justify-self: center;
    width: 100%;
    max-width: 372px;
  }
}

@media (max-width: 860px) {
  .nav {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 22px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .hero {
    padding: 64px var(--gutter) 64px;
    gap: 24px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .waitlist-form {
    flex-direction: column;
    max-width: 100%;
  }

  .waitlist-form button {
    width: 100%;
  }

  .desktop-note {
    display: flex;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature,
  .step {
    padding: 32px 26px;
  }

  .problem-card {
    padding: 26px;
  }

  .trust-card {
    padding: 36px 24px;
  }

  .trust-points {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
  }

  .cta {
    padding: 80px var(--gutter);
  }

  .footer {
    padding: 32px var(--gutter);
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: 18px 22px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
