/* ==========================================================================
   Autoprose — landing page styles
   Design concept: "editor's marks" — the page reads like an approved
   manuscript. A cobalt "ink" stamp, an amber highlighter swipe, and
   monospace margin notes are the signature system carried throughout.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* --- Color: near-white + near-black ink + one confident accent --- */
  --paper: #fdfdfb;
  --paper-alt: #f3f1e9;
  --ink: #0e0d0a;
  --ink-soft: #58554b;
  --ink-faint: #918d7e;
  --accent: #2a3fe0;
  --accent-deep: #1c2aa8;
  --accent-tint: #e4e8fd;
  --highlight: #f5b942;
  --highlight-soft: #fbe3ae;
  --line: #dedad0;
  --line-strong: #0e0d0a;
  --card: #ffffff;
  --card-shadow: none;

  /* --- Type --- */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  /* --- Scale --- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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; }
}
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-4); } }

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

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.ink-mark {
  color: var(--ink);
  background-color: var(--highlight-soft);
  padding: 0.03em 0.16em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  border: none;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
  min-height: 44px;
  touch-action: manipulation;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(42, 63, 224, 0.55);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(42, 63, 224, 0.6); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding-inline: 0;
  font-weight: 600;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-on-dark { background: var(--highlight); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(245, 185, 66, 0.35); }
.btn-on-dark:hover { background: #f7c765; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 253, 251, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--line-strong);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 1.05rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}
.brand__mark svg { width: 16px; height: 16px; color: var(--paper); }

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-4);
  font-weight: 500;
  font-size: 0.96rem;
}
.nav__links a { color: var(--ink-soft); transition: color 160ms var(--ease); }
.nav__links a:hover { color: var(--ink); }

.nav__right { display: flex; align-items: center; gap: var(--space-2); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--card);
}
.lang-switch button {
  border: none; background: transparent; color: var(--ink-faint);
  padding: 0.35rem 0.6rem; border-radius: 999px;
  transition: background 160ms var(--ease), color 160ms var(--ease);
  min-height: unset;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.nav__login { display: none; font-weight: 600; font-size: 0.94rem; color: var(--ink-soft); transition: color 160ms var(--ease); }
.nav__login:hover { color: var(--ink); }
.nav__cta { display: none; }
.nav__cta .btn { padding: 0.7rem 1.3rem; font-size: 0.92rem; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__login { display: inline-flex; }
  .nav__cta { display: block; }
  .menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 99;
  display: flex; flex-direction: column;
  padding: 6.5rem var(--space-3) var(--space-4);
  gap: var(--space-4);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu__links { display: flex; flex-direction: column; gap: var(--space-3); font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.mobile-menu__links a { display: block; }
.mobile-menu__login { font-weight: 600; font-size: 1.05rem; color: var(--ink-soft); }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ---------- Section rhythm ---------- */
.section { padding-block: var(--space-7); }
.section--alt { background: var(--paper-alt); }
.section__head { max-width: 640px; margin-bottom: var(--space-5); }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); margin-top: 0.7rem; letter-spacing: -0.02em; }
.section__head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 0.9rem; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: var(--space-5); padding-bottom: var(--space-5); position: relative; overflow: hidden; }
.hero__inner { max-width: 900px; margin-inline: auto; text-align: center; }
.hero .eyebrow { justify-content: center; margin-bottom: var(--space-4); }
.hero h1 {
  font-size: clamp(3rem, 8.2vw, 6.8rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}
.hero__sub {
  margin-top: var(--space-4);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 560px;
  margin-inline: auto;
}
.hero__actions {
  margin-top: var(--space-4);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-3);
}

/* ---------- Process ribbon ---------- */
.process {
  margin-top: var(--space-6);
  position: relative;
}
.process__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  position: relative;
}
.process__track::before {
  content: "";
  position: absolute;
  top: 26px; left: 12%; right: 12%;
  height: 0;
  border-top: 2px dashed var(--line);
  z-index: 0;
}
.process__dot {
  position: absolute; top: 24px; left: 12%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: travel 7s linear infinite;
}
@keyframes travel {
  0% { left: 12%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 88%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .process__dot { animation: none; opacity: 0; } }

.process__step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.85rem;
}
.process__icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--accent);
}
.process__icon svg { width: 24px; height: 24px; }
.process__step span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 11rem;
}

.stamp {
  position: absolute;
  top: 0.4rem; right: var(--space-4);
  width: 108px; height: 108px;
  transform: rotate(-11deg) scale(0.85);
  opacity: 0;
  transition: opacity 500ms var(--ease) 200ms, transform 650ms cubic-bezier(0.34, 1.56, 0.64, 1) 200ms;
  color: var(--accent);
  pointer-events: none;
  display: none;
}
.stamp.is-stamped { opacity: 0.94; transform: rotate(-11deg) scale(1); }
.stamp svg { width: 100%; height: 100%; }
@media (min-width: 1280px) { .stamp { display: block; } }

@media (max-width: 860px) {
  .process__track { grid-template-columns: 1fr; gap: var(--space-4); justify-items: center; }
  .process__track::before, .process__dot { display: none; }
}

/* ---------- Problem: full-bleed ink band, no cards ---------- */
.problem { background: var(--ink); color: var(--paper); }
.problem .eyebrow { color: var(--highlight); }
.problem .eyebrow::before { background: var(--highlight); }
.problem__statement {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 20ch;
}
.problem__statement .ink-mark { background-color: var(--highlight); }
.problem__facts {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  border-top: 1px solid rgba(253, 253, 251, 0.16);
  padding-top: var(--space-4);
}
@media (min-width: 720px) {
  .problem__facts { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .problem__facts > div { padding-inline: var(--space-4); border-left: 1px solid rgba(253, 253, 251, 0.16); }
  .problem__facts > div:first-child { padding-left: 0; border-left: none; }
}
.problem__facts .fact-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  color: var(--highlight);
  display: block;
  margin-bottom: 0.6rem;
}
.problem__facts p { color: #cfccc0; font-size: 1.02rem; max-width: 26ch; }

/* ---------- Pull quote ---------- */
.pull-quote {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { display: flex; gap: var(--space-3); padding-block: var(--space-3); border-top: 1px solid var(--line); }
.step:nth-child(-n+2) { border-top: none; }
@media (max-width: 719px) { .step { border-top: 1px solid var(--line); } .step:first-child { border-top: none; } }
.step__num {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  color: var(--accent);
  flex: none;
  width: 3rem;
  letter-spacing: -0.02em;
}
.step h3 { font-size: 1.24rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Benefits: Swiss stat strip, no cards ---------- */
.benefits {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(4, 1fr); } }
.benefit {
  padding: var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .benefit {
    border-bottom: none;
    border-right: 1px solid var(--line);
  }
  .benefit:last-child { border-right: none; }
}
.benefit__value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-2);
}
.benefit h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.benefit p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Security ---------- */
.security__layout { display: grid; gap: var(--space-5); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .security__layout { grid-template-columns: 1fr 1fr; } }
.security__list { display: flex; flex-direction: column; gap: var(--space-3); }
.security__item { display: flex; gap: var(--space-2); align-items: flex-start; }
.security__item svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 0.15rem; }
.security__item p { color: var(--ink-soft); }
.security__item strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 0.15rem; }

.security__panel {
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: var(--space-4);
}
.draft-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.draft-row:last-child { border-bottom: none; }
.draft-row span:first-child { color: var(--ink); font-weight: 500; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600;
  padding: 0.28rem 0.6rem; border-radius: 999px;
  letter-spacing: 0.03em;
}
.tag--draft { background: var(--paper-alt); color: var(--ink-soft); }
.tag--review { background: var(--highlight-soft); color: #7a5410; }
.tag--live { background: var(--accent-tint); color: var(--accent-deep); margin-bottom: 0.5rem; }

/* ---------- Pricing ---------- */
.pricing__grid {
  display: grid; gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .pricing__grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan {
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  display: flex; flex-direction: column;
  position: relative;
}
.plan--popular { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (min-width: 860px) { .plan--popular { transform: translateY(-14px); } }
.plan--popular .plan__name,
.plan--popular .plan__desc { color: #b9b6a9; }
.plan--popular .plan__price span { color: #b9b6a9; }
.plan--popular .plan__features svg { color: var(--highlight); }
.plan__badge {
  position: absolute; top: -13px; left: var(--space-4);
  background: var(--highlight); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  padding: 0.3rem 0.7rem; border-radius: 999px; letter-spacing: 0.04em;
}
.plan__name { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; color: var(--ink-soft); }
.plan__price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; margin-top: 0.6rem; }
.plan__price span { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.plan__desc { color: var(--ink-soft); font-size: 0.94rem; margin-top: 0.5rem; }
.plan__features { margin-top: var(--space-3); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.plan__features li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.94rem; }
.plan__features svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 0.18rem; }
.plan .btn { margin-top: var(--space-4); width: 100%; }
.plan--popular .btn-primary { background: var(--highlight); color: var(--ink); box-shadow: none; }
.plan--popular .btn-primary:hover { background: #f7c765; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq__item {
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-3);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { flex: none; width: 26px; height: 26px; position: relative; }
.faq__plus::before, .faq__plus::after {
  content: ""; position: absolute; background: var(--ink); border-radius: 2px;
  transition: transform 220ms var(--ease);
}
.faq__plus::before { top: 50%; left: 2px; right: 2px; height: 2px; transform: translateY(-50%); }
.faq__plus::after { left: 50%; top: 2px; bottom: 2px; width: 2px; transform: translateX(-50%); }
.faq__item[open] .faq__plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq__item p { color: var(--ink-soft); margin-top: 0.9rem; max-width: 62ch; }

/* ---------- Final CTA ---------- */
.cta-final {
  background: var(--paper-alt);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-l);
  padding: var(--space-6) var(--space-3);
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .cta-final { padding: var(--space-7) var(--space-4); } }
.cta-final__inner { max-width: 620px; margin-inline: auto; position: relative; z-index: 1; }
.cta-final h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--ink); }
.cta-final p.lede { color: var(--ink-soft); margin-top: var(--space-2); font-size: 1.08rem; }
.cta-final .hero__actions { margin-top: var(--space-4); }
.cta-final .trust { margin-top: var(--space-3); font-size: 0.88rem; color: var(--ink-faint); font-family: var(--font-mono); }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--space-5); }
.footer__grid {
  display: flex; flex-direction: column; gap: var(--space-4);
  align-items: flex-start;
}
@media (min-width: 720px) { .footer__grid { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer__brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; }
.footer__tag { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.3rem; }
.footer__links { display: flex; gap: var(--space-3); flex-wrap: wrap; font-size: 0.92rem; color: var(--ink-soft); }
.footer__links a:hover { color: var(--ink); }
.footer__bottom {
  margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between;
  font-size: 0.84rem; color: var(--ink-faint); font-family: var(--font-mono);
}
