/* Prompt Plus website styles.
   Visual language shared with aihuntrconsulting.com: deep ink "stage" bands,
   mint actions, paper surfaces, Space Grotesk display type over Inter.
   Fonts are self-hosted (public/fonts, SIL OFL 1.1); no frameworks.
   Brand tokens: ink #071f29, mint #a2eddf, signal #086c73, paper #f1f6f5.
   Every text/background pair below was checked against WCAG 2.x AA (4.5:1 for
   text, 3:1 for UI boundaries). */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-600.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Brand */
  --brand-ink: #071f29;
  --mint: #a2eddf;
  --mint-hover: #c4f5ec;
  --signal: #086c73;
  --signal-2: #0b4955;

  /* Light theme */
  --paper: #f1f6f5;
  --paper-2: #e7f0ef;
  --surface: #ffffff;
  --sunk: #e2eeed;
  --ink: #071f29;
  --muted: #4d5c67;
  --line: #d2dbde;
  --line-strong: #7a8a95;
  --accent: var(--signal);
  --accent-hover: var(--signal-2);
  --accent-soft: #d6f3ee;
  --accent-soft-ink: #0b4955;
  --btn-bg: var(--brand-ink);
  --btn-ink: #f1f6f5;
  --btn-bg-hover: var(--signal-2);
  --error: #a3341f;
  --error-soft: #fbece8;
  --warn-ink: #7a4b00;
  --warn-soft: #fbf1db;
  --focus: var(--signal);

  /* Stage: the dark ink bands (header, hero, page heads, footer, panels).
     They look the same in both themes. */
  --stage: var(--brand-ink);
  --stage-2: #0c2731;
  --stage-3: #12323d;
  --on-stage: #f1f6f5;
  --on-stage-2: #b5c3ce;
  --stage-line: #24414c;
  --stage-line-strong: #5d7581;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-pill: 999px;

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

  --gutter: 16px;
  --max: 1160px;
  --measure: 68ch;
  --section-space: clamp(64px, 3.5rem + 4vw, 120px);
  --header-h: 72px;
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a1a21;
    --paper-2: #0e222a;
    --surface: #122a33;
    --sunk: #081419;
    --ink: #eef4f3;
    --muted: #a9b9c3;
    --line: #23404a;
    --line-strong: #6d848f;
    --accent: var(--mint);
    --accent-hover: var(--mint-hover);
    --accent-soft: #123d3c;
    --accent-soft-ink: #a2eddf;
    --btn-bg: var(--mint);
    --btn-ink: var(--brand-ink);
    --btn-bg-hover: var(--mint-hover);
    --error: #ff9f8f;
    --error-soft: #3a1914;
    --warn-ink: #f4c97c;
    --warn-soft: #33290f;
    --focus: var(--mint);

    --stage: #04141b;
    --stage-2: #0b232c;
    --stage-3: #112f39;
  }
}

/* Inside a stage band the semantic tokens point at the stage palette, so
   every component (buttons, keys, lists, forms) re-themes itself. */
.stage,
.site-header,
.hero,
.page-head,
.section-stage,
.offer-own,
.demo,
.site-footer {
  --ink: var(--on-stage);
  --muted: var(--on-stage-2);
  --surface: var(--stage-2);
  --sunk: var(--stage-3);
  --line: var(--stage-line);
  --line-strong: var(--stage-line-strong);
  --accent: var(--mint);
  --accent-hover: var(--mint-hover);
  --accent-soft: rgba(162, 237, 223, 0.14);
  --accent-soft-ink: var(--mint);
  --btn-bg: var(--mint);
  --btn-ink: var(--brand-ink);
  --btn-bg-hover: var(--mint-hover);
  --error: #ffb1a3;
  --focus: var(--mint);
  color: var(--ink);
}

/* ── Base ─────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.9rem, 1.9rem + 4.4vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 1.45rem + 2.2vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

p,
ul,
ol,
dl,
table,
figure,
blockquote {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.35em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: var(--sunk);
  overflow-wrap: anywhere;
}

kbd,
.key {
  display: inline-block;
  min-width: 1.65em;
  padding: 0.05em 0.42em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.84em;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

hr {
  height: 1px;
  margin: 2.5rem 0;
  border: 0;
  background: var(--line);
}

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

::selection {
  background: rgba(162, 237, 223, 0.55);
  color: var(--brand-ink);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  color: var(--brand-ink);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.measure {
  max-width: var(--measure);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
}

/* Small uppercase label above headings: "01 / How it works" */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-dot::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(162, 237, 223, 0.18);
}

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--stage-line);
  background: rgba(7, 31, 41, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(4, 20, 27, 0.94);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  display: block;
  width: 24px;
  height: 30px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li + li {
  margin-top: 0;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:hover {
  background: rgba(241, 246, 245, 0.08);
  color: var(--ink);
}

.nav-list a[aria-current="page"] {
  color: var(--mint);
}

.nav-mobile {
  display: none;
  position: relative;
}

.nav-mobile > summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.nav-mobile > summary::-webkit-details-marker {
  display: none;
}

.menu-icon {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.nav-mobile[open] .menu-icon {
  box-shadow: none;
  background: transparent;
  position: relative;
}

.nav-mobile[open] .menu-icon::before,
.nav-mobile[open] .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.nav-mobile[open] .menu-icon::after {
  transform: rotate(-45deg);
}

.nav-mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--stage-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.nav-mobile-panel .nav-list {
  flex-direction: column;
  align-items: stretch;
}

.nav-mobile-panel .nav-list a {
  padding: 12px 14px;
  border-radius: var(--radius-m);
  font-size: 1.02rem;
}

.nav-mobile-panel .button {
  width: 100%;
  margin-top: 10px;
}

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

  .nav-mobile {
    display: block;
  }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.button-primary:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-ink);
}

.button-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button-small {
  min-height: 42px;
  padding: 8px 20px;
  font-size: 0.95rem;
}

.button[disabled],
.button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

/* Underlined text link with a diagonal arrow, as on aihuntrconsulting.com */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.35em;
}

.link-arrow::after {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M2 10 10 2M3.5 2H10v6.5'/%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 12 12' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M2 10 10 2M3.5 2H10v6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateY(1px);
  transition: transform 0.18s ease;
}

.link-arrow:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.link-arrow:hover::after {
  transform: translate(2px, -1px);
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.section {
  padding-block: var(--section-space);
}

.section-sunk {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.section-stage {
  position: relative;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(162, 237, 223, 0.08), transparent 70%),
    var(--stage);
}

.section-head {
  max-width: 48rem;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head h2 {
  margin-bottom: 0.4em;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.section-head p.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
}

.section-head > p:last-child {
  margin-bottom: 0;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.24rem);
  line-height: 1.6;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 3rem + 4vw, 112px) clamp(40px, 2.5rem + 2vw, 72px);
  background:
    radial-gradient(55% 60% at 78% 30%, rgba(162, 237, 223, 0.12), transparent 70%),
    radial-gradient(40% 50% at 8% 100%, rgba(8, 108, 115, 0.28), transparent 70%),
    var(--stage);
}

/* A faint grid behind the hero, faded out towards the edges */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(241, 246, 245, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 246, 245, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 0.3em;
}

.h1-accent {
  color: var(--mint);
}

.hero-copy .lede {
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-copy .link-arrow {
  margin-top: 24px;
}

.hero-note {
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-requirements {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* The facts strip along the bottom of the home hero */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 32px;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-facts li {
  margin: 0;
}

.hero-facts strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The keystroke example: the one deliberately bold element on the site. */
.demo {
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(162, 237, 223, 0.06), transparent 40%),
    var(--stage-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(241, 246, 245, 0.06);
}

.demo-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 0.8rem;
}

.demo-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.demo-window {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--stage);
  overflow: hidden;
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--stage-3);
  box-shadow: inset 0 0 0 1px var(--line);
}

.demo-titlebar span:last-child {
  margin-left: 8px;
}

.demo-text {
  margin: 0;
  padding: 16px 16px 18px;
  font-size: 0.96rem;
  line-height: 1.6;
}

.demo-selected {
  padding: 1px 2px;
  border-radius: 3px;
  background: rgba(162, 237, 223, 0.26);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.demo-keys {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.demo-key {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  height: 56px;
  padding: 0 12px;
  border: 1px solid #cfdcdf;
  border-bottom: 4px solid #9fb2b8;
  border-radius: 12px;
  background: #f4f8f7;
  color: var(--brand-ink);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
}

.demo-key small {
  display: block;
  margin-top: 2px;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4d5c67;
}

.demo-plus {
  color: var(--muted);
  font-size: 1.1rem;
}

.demo-result {
  border-color: rgba(162, 237, 223, 0.45);
  box-shadow: 0 0 0 4px rgba(162, 237, 223, 0.07);
}

.demo-result .demo-text {
  white-space: pre-line;
}

.demo-caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (prefers-reduced-motion: no-preference) {
  .demo-key {
    animation: key-press 0.5s ease-out both;
  }

  .demo-key:nth-of-type(1) {
    animation-delay: 0.5s;
  }

  .demo-key:nth-of-type(2) {
    animation-delay: 0.62s;
  }

  .demo-key:nth-of-type(3) {
    animation-delay: 0.74s;
  }

  .demo-result {
    animation: result-in 0.6s ease-out 1.15s both;
  }
}

@keyframes key-press {
  0% {
    transform: translateY(0);
    border-bottom-width: 4px;
  }
  45% {
    transform: translateY(3px);
    border-bottom-width: 1px;
    background: var(--mint);
  }
  100% {
    transform: translateY(0);
    border-bottom-width: 4px;
  }
}

@keyframes result-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── How it works (a real sequence, so it is numbered) ─────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 24px 24px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  counter-increment: step;
}

.steps > li::before {
  content: counter(step, decimal-leading-zero) " / Step";
  display: block;
  margin-bottom: 36px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steps h3 {
  margin-bottom: 0.45em;
}

.steps p {
  margin-bottom: 0.6em;
  color: var(--muted);
  font-size: 0.98rem;
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps > li::before {
    margin-bottom: 18px;
  }
}

/* ── Features ─────────────────────────────────────────────────────────── */

.feature-lead {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.feature-lead article {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background:
    linear-gradient(180deg, rgba(162, 237, 223, 0.05), transparent 50%),
    var(--surface);
}

.feature-lead h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.8rem);
  letter-spacing: -0.03em;
}

.feature-lead .shortcut {
  font-family: var(--font);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.feature-lead p,
.feature-lead li {
  color: var(--muted);
}

.feature-lead ul {
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.feature-lead li {
  position: relative;
  padding-left: 20px;
}

.feature-lead li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.feature-list > div {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: 8px 40px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list dt {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.feature-list dt span {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-list dd {
  margin: 0;
  max-width: var(--measure);
  color: var(--muted);
}

@media (max-width: 760px) {
  .feature-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-list > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Pricing ──────────────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: stretch;
}

.offer {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.5vw, 44px);
  border-radius: 20px;
}

.offer-trial {
  border: 1px solid var(--line);
  background: var(--surface);
}

.offer-own {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(162, 237, 223, 0.12), transparent 70%),
    var(--stage);
}

.offer-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.offer-head img {
  flex: none;
  width: 56px;
  height: 59px;
}

.offer h2,
.offer h3 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.035em;
}

.offer-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 14px 0 20px;
}

.offer-price strong {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 2.2rem + 2vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.offer-price span {
  color: var(--muted);
  font-weight: 500;
}

.offer-own .offer-price {
  margin-bottom: 4px;
}

.not-subscription {
  display: inline-block;
  align-self: flex-start;
  margin: 8px 0 0;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--brand-ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.not-subscription + .offer-list {
  margin-top: 22px;
}

.license-note {
  margin: 20px 0 22px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--mint);
  border-radius: var(--radius-s);
  background: rgba(241, 246, 245, 0.04);
  font-size: 0.95rem;
}

.license-note p {
  margin-bottom: 0.5em;
}

.license-note p:last-child {
  margin-bottom: 0;
}

.offer-list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.offer-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
}

.offer-list li + li {
  margin-top: 0.55em;
}

.offer-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.offer-actions {
  margin-top: auto;
}

.offer-fineprint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Terms notice next to Buy and trial download buttons */
.buy-terms {
  margin: 12px 0 1em;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Form status line (checkout, recovery) */
.form-status {
  min-height: 1.5em;
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: var(--error);
  font-weight: 600;
}

/* ── Platforms ────────────────────────────────────────────────────────── */

.platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.platforms li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.platforms li:first-child {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.platform-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-available {
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
}

.status-soon {
  background: var(--sunk);
  color: var(--muted);
}

@media (max-width: 960px) {
  .platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .platforms {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── OpenRouter band ──────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.callout {
  margin-bottom: 1.4rem;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-m);
  background: var(--surface);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-warn {
  border-left-color: var(--warn-ink);
  background: var(--warn-soft);
}

.big-link {
  font-size: 1.15rem;
  font-weight: 500;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq {
  max-width: 56rem;
  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: 20px;
  padding: 22px 2px;
  font-size: 1.08rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

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

/* A plus that turns into a minus */
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1.5px 14px no-repeat;
}

.faq details[open] summary::after {
  background: linear-gradient(var(--accent), var(--accent)) center / 14px 1.5px no-repeat;
}

.faq .answer {
  max-width: var(--measure);
  padding: 0 2px 22px;
  color: var(--muted);
}

.faq .answer > :last-child {
  margin-bottom: 0;
}

/* ── Closing band (home page launch updates) ───────────────────────────── */

.close-band {
  --ink: var(--brand-ink);
  --muted: #21414b;
  --surface: #ffffff;
  --line: rgba(7, 31, 41, 0.18);
  --line-strong: var(--brand-ink);
  --accent: var(--brand-ink);
  --accent-hover: var(--signal-2);
  --btn-bg: var(--brand-ink);
  --btn-ink: #f1f6f5;
  --btn-bg-hover: var(--signal-2);
  --error: #8f1f0e;
  --focus: var(--brand-ink);
  position: relative;
  overflow: hidden;
  background: var(--mint);
  color: var(--ink);
}

/* Concentric rings, as on the AI Huntr closing band */
.close-band::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -180px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 69px, rgba(7, 31, 41, 0.09) 70px 71px);
  transform: translateY(-50%);
  pointer-events: none;
}

.close-band > .container {
  position: relative;
}

.close-band .signup-card {
  max-width: 40rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.close-band h2 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: auto;
  padding: clamp(56px, 6vw, 88px) 0 32px;
  background: var(--stage);
  font-size: 0.95rem;
}

.footer-wordmark {
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  color: var(--mint);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 1.2rem + 10vw, 9.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.9;
  white-space: nowrap;
}

.footer-wordmark span {
  color: var(--on-stage);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 40px;
}

.footer-name {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.footer-brand p {
  margin-bottom: 6px;
  color: var(--muted);
}

.footer-brand .footer-name {
  color: var(--ink);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}

.footer-heading {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li + li {
  margin-top: 10px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--mint);
  text-decoration: underline;
}

.copyright {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Content pages (setup, support, legal) ────────────────────────────── */

.page-head {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(36px, 5vw, 64px);
  padding-block: clamp(48px, 3rem + 3vw, 104px) clamp(40px, 3vw, 64px);
  background:
    radial-gradient(50% 80% at 90% 0%, rgba(162, 237, 223, 0.1), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(8, 108, 115, 0.22), transparent 70%),
    var(--stage);
}

.page-head h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 1.7rem + 3vw, 4rem);
}

.page-head .lede {
  max-width: 44rem;
}

.page-head > .container > :last-child {
  margin-bottom: 0;
}

/* A page head directly followed by a full-bleed section sits flush against it */
.page-head:has(+ .section) {
  margin-bottom: 0;
}

.page-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: 2.6rem;
  font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem);
  letter-spacing: -0.035em;
}

.prose h3 {
  margin-top: 1.8rem;
}

.prose > h2:first-child,
.prose > section:first-child > h2:first-child {
  margin-top: 0;
}

.prose li {
  padding-left: 2px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-bottom: var(--section-space);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  font-size: 0.94rem;
}

.toc h2 {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol,
.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li {
  margin-top: 0;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
  }
}

/* Numbered walkthrough steps on /setup and /trial */
.walk {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: walk;
}

.walk > li {
  position: relative;
  margin: 0;
  padding: 0 0 8px 58px;
  counter-increment: walk;
}

.walk > li + li {
  margin-top: 1.6rem;
}

.walk > li::before {
  content: counter(walk, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
}

.walk h2,
.walk h3 {
  margin-top: 0;
  padding-top: 4px;
}

/* Video walkthrough at the top of /setup */
.video-card {
  margin: 0 0 24px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--stage);
  box-shadow: 0 24px 60px rgba(7, 31, 41, 0.12);
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--stage);
}

.video-card figcaption {
  padding: 14px 12px 8px;
  color: var(--on-stage-2);
  font-size: 0.94rem;
}

.video-card figcaption strong {
  color: var(--on-stage);
  font-weight: 500;
}

.step-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.step-card + .step-card {
  margin-top: 16px;
}

.step-card > :last-child {
  margin-bottom: 0;
}

.step-card h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 0;
}

.step-num {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0;
}

.ui-label {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .ui-label {
    white-space: normal;
  }
}

/* Tables */
.table-wrap {
  width: 100%;
  margin: 0 0 1.4em;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
}

table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.96rem;
}

caption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: left;
  caption-side: top;
}

th,
td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  border-top: 0;
  background: var(--paper-2);
  font-weight: 600;
}

tbody th {
  font-weight: 600;
}

/* Stacked table rows on narrow screens */
@media (max-width: 700px) {
  .table-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .table-stack tr {
    display: block;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
  }

  .table-stack tbody tr:first-child {
    border-top: 0;
  }

  .table-stack th,
  .table-stack td {
    display: block;
    padding: 4px 0;
    border: 0;
  }

  .table-stack td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
  }
}

/* ── Forms ────────────────────────────────────────────────────────────── */

.form-card {
  max-width: 34rem;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.field .hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.field .field-error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.95rem;
  font-weight: 600;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  min-height: 50px;
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

input[aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}

input:focus-visible {
  outline-offset: 1px;
}

/* ── Status pages (access, purchase, recover) ─────────────────────────── */

.status-page {
  position: relative;
  padding-block: clamp(48px, 3rem + 3vw, 104px) var(--section-space);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(162, 237, 223, 0.22), transparent 70%),
    var(--paper);
}

.status-card {
  max-width: 44rem;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(7, 31, 41, 0.08);
}

.status-card h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.2rem);
}

.status-card h2 {
  font-size: 1.45rem;
  margin-top: 1.8rem;
}

.status-card > :last-child,
.state > :last-child {
  margin-bottom: 0;
}

.state[hidden] {
  display: none;
}

/* State headings receive focus from script so screen readers announce the
   new state. They aren't interactive, so they don't need a focus ring. */
.state h1[tabindex="-1"]:focus,
.state h2[tabindex="-1"]:focus {
  outline: none;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  vertical-align: -3px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .spinner {
    animation: spin 0.9s linear infinite;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.download-box {
  margin: 20px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper-2);
}

.download-box p {
  margin-bottom: 0.5em;
}

.download-box .button {
  margin-bottom: 10px;
}

.message-error {
  color: var(--error);
  font-weight: 600;
}

.notice {
  padding: 14px 18px;
  border-radius: var(--radius-m);
  background: var(--accent-soft);
  color: var(--ink);
}

.notice > :last-child {
  margin-bottom: 0;
}

.install-steps {
  padding-left: 1.4em;
}

/* ── Utilities ────────────────────────────────────────────────────────── */

.stack-s > * + * {
  margin-top: 8px;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .nav-mobile,
  .skip-link,
  .site-footer nav,
  .footer-wordmark {
    display: none;
  }

  body,
  .hero,
  .page-head,
  .section-stage,
  .close-band,
  .site-footer {
    background: #fff;
    color: #000;
  }
}

/* The skip link moves focus to <main tabindex="-1">; don't draw a ring around the whole page. */
main:focus {
  outline: none;
}

/* ── Launch waitlist (home page #updates) ──────────────────────────────── */

.signup-card {
  max-width: 42rem;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.signup-card h2 {
  margin-top: 0;
}

.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signup-row input {
  flex: 1 1 16rem;
  width: auto;
}

.signup-row .button {
  flex: 0 0 auto;
}

.signup-card .state > :last-child,
.signup-card form > :last-child {
  margin-bottom: 0;
}
