/* Lyravant — one stylesheet for the whole site. No build step. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f3f0ea;
  --ink: #15172e;
  --ink-2: #33364f;
  --muted: #5d6075;
  --line: #e5e1d8;
  --line-strong: #d3cec2;
  --brand: #343792;
  --brand-2: #4b4fc4;
  --brand-soft: #ecebfb;
  --accent: #d46a2e;
  --accent-ink: #a94c17;
  --accent-soft: #fcebdf;
  --ok: #276b43;
  --ok-soft: #e3f3e8;
  --shadow: 0 1px 2px rgba(21, 23, 46, 0.05), 0 8px 24px -8px rgba(21, 23, 46, 0.12);
  --shadow-lg: 0 2px 4px rgba(21, 23, 46, 0.04), 0 24px 60px -20px rgba(21, 23, 46, 0.25);
  --radius: 14px;
  --radius-lg: 22px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e1b;
    --surface: #141729;
    --surface-2: #1a1e34;
    --ink: #eceaf4;
    --ink-2: #cfcde0;
    --muted: #a2a4bb;
    --line: #262a44;
    --line-strong: #353a5a;
    --brand: #a9acff;
    --brand-2: #8d91ff;
    --brand-soft: #1f2245;
    --accent: #f0a06a;
    --accent-ink: #f4b388;
    --accent-soft: #3a2518;
    --ok: #7fd3a0;
    --ok-soft: #173325;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--brand-2);
}
:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--brand-soft);
  color: var(--ink);
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
p {
  margin: 0 0 1em;
}
.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
  color: var(--bg);
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow {
  max-width: calc(760px + 2 * var(--gutter));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 620;
  font-size: 19px;
  letter-spacing: -0.025em;
}
.wordmark:hover {
  color: var(--ink);
}
.wordmark svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}
@media (max-width: 520px) {
  .nav a {
    padding: 8px 9px;
    font-size: 14.5px;
  }
  .nav .hide-sm {
    display: none;
  }
  .wordmark {
    font-size: 18px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 560;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 16px -6px rgba(21, 23, 46, 0.45);
}
.btn-primary:hover {
  color: var(--bg);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--ink-2);
}
.btn-soon {
  background: var(--surface);
  color: var(--ink-2);
  border-color: var(--line-strong);
  border-style: dashed;
  cursor: default;
}
.btn-soon .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Generic sections ---------- */
section {
  padding: clamp(56px, 9vw, 104px) 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head {
  max-width: 680px;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 50px);
  letter-spacing: -0.01em;
  line-height: 1.08;
}
.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}
.lede {
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
  max-width: 620px;
}
.divider {
  border-top: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 11vw, 136px) 0 clamp(56px, 9vw, 112px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 70%),
    radial-gradient(closest-side at 30% 70%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8.4vw, 92px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 900px;
}
.hero h1 em {
  font-style: italic;
  color: var(--brand);
}
.hero .lede {
  margin-bottom: 36px;
}

/* ---------- Principles ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
.principle {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}
.principle .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-ink);
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}
.principle h3 {
  font-size: 20px;
}
.principle p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Portfolio ---------- */
.portfolio {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: clamp(16px, 2.5vw, 24px);
}
@media (max-width: 860px) {
  .portfolio {
    grid-template-columns: 1fr;
  }
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.product-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}
.product-card .body {
  padding: clamp(24px, 3.5vw, 36px);
}
.product-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}
.product-card p {
  color: var(--muted);
}
.product-card .more {
  color: var(--brand);
  font-weight: 560;
}
.product-card .art {
  padding: 28px clamp(20px, 3vw, 32px) 0;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--line);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 560;
}
.tag-accent {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.tag-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.soon-card {
  align-self: start;
  gap: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3.5vw, 36px);
  background: transparent;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.soon-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
}
.soon-card p {
  color: var(--muted);
}
.soon-card .glyphs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}
.soon-card .glyphs span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.soon-card .glyphs span:nth-child(2) {
  opacity: 0.7;
}
.soon-card .glyphs span:nth-child(3) {
  opacity: 0.45;
}

/* ---------- Storefront mock (pure HTML/CSS) ---------- */
.mock {
  border-radius: 16px 16px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 14px;
  color: var(--ink);
}
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mock-chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.mock-chrome b {
  margin-left: 10px;
  flex: 1;
  height: 18px;
  max-width: 260px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.ship-bar {
  padding: 11px 16px 12px;
  background: var(--brand-soft);
  color: var(--ink);
  text-align: center;
  font-weight: 520;
  font-size: 14px;
}
.ship-bar strong {
  color: var(--brand);
}
.ship-bar .track {
  height: 6px;
  margin: 8px auto 0;
  max-width: 340px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  overflow: hidden;
}
.ship-bar .track span {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.mock-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  padding: 22px;
}
@media (max-width: 560px) {
  .mock-body {
    grid-template-columns: 1fr;
  }
  .mock-photo {
    aspect-ratio: 16 / 9 !important;
  }
}
.mock-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--accent-soft), var(--surface-2));
  overflow: hidden;
}
.mock-photo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: 62%;
  transform: translate(-50%, -46%);
  border-radius: 10px 10px 14px 14px;
  background: linear-gradient(180deg, #2b2d6e, #1d1f4d);
  box-shadow: 0 18px 30px -12px rgba(21, 23, 46, 0.45);
}
.mock-photo::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  height: 22%;
  transform: translate(-50%, -10%);
  border-radius: 6px;
  background: #f0a06a;
}
.mock-title {
  font-weight: 620;
  font-size: 16px;
  margin-bottom: 2px;
}
.mock-price {
  color: var(--muted);
  margin-bottom: 14px;
}
.tiers {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
}
.tier .radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex: none;
}
.tier.on {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.tier.on .radio {
  border: 5px solid var(--brand);
}
.tier .l {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 560;
}
.tier .save {
  font-size: 11.5px;
  font-weight: 650;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.tier .p {
  font-weight: 600;
  white-space: nowrap;
}
.mock-atc {
  display: block;
  padding: 11px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-weight: 600;
  margin-bottom: 12px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 12.5px;
}
.badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badges svg {
  width: 14px;
  height: 14px;
}
.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 13px;
  font-weight: 560;
}
.countdown svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* ---------- Product page ---------- */
.p-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 960px) {
  .p-hero {
    grid-template-columns: 1fr;
  }
}
.p-hero h1 {
  font-size: clamp(46px, 7vw, 76px);
}
.p-hero .mock {
  border-radius: 16px;
  border-bottom: 1px solid var(--line);
}
.p-hero .mock-body {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}
.mock-body > div {
  min-width: 0;
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.facts > div {
  padding: 24px 24px 26px;
  border-left: 1px solid var(--line);
}
.facts > div:first-child {
  border-left: 0;
}
.facts b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.facts span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  display: block;
}
@media (max-width: 860px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .facts > div:nth-child(3) {
    border-left: 0;
  }
  .facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 440px) {
  .facts {
    grid-template-columns: 1fr;
  }
  .facts > div {
    border-left: 0;
  }
  .facts > div + div {
    border-top: 1px solid var(--line);
  }
}
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}
@media (max-width: 960px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.feature {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}
.feature .icon svg {
  width: 22px;
  height: 22px;
}
.feature h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 19px;
  margin-bottom: 8px;
}
.feature p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 12px;
}
.feature ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--ink-2);
}
.feature li {
  position: relative;
  padding-left: 20px;
  margin-top: 6px;
}
.feature li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.badge {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.01em;
}
.badge-free {
  background: var(--ok-soft);
  color: var(--ok);
}
.badge-pro {
  background: var(--brand-soft);
  color: var(--brand);
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 24px);
  max-width: 920px;
}
@media (max-width: 760px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}
.plan {
  padding: clamp(26px, 3.5vw, 36px);
}
.plan.featured {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: var(--shadow-lg);
}
.plan h3 {
  font-size: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 6px;
}
.price b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.price span {
  color: var(--muted);
}
.price s {
  color: var(--muted);
}
.plan .note {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
}
.checks {
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding: 7px 0 7px 30px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.checks li:first-child {
  border-top: 0;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ok-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232f7d4f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}
.founding {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 920px;
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--ink);
}
.founding svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent-ink);
  margin-top: 2px;
}
.founding p {
  margin: 0;
}

/* FAQ */
.faq {
  max-width: 820px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 580;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}
.faq details > div {
  padding: 0 0 20px;
  color: var(--ink-2);
}
.faq details > div p:last-child {
  margin-bottom: 0;
}

/* CTA band */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 64px);
  border-radius: 28px;
  background: #15172e;
  color: #eceaf4;
}
.cta::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(141, 145, 255, 0.35), transparent 70%);
}
.cta::after {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -220px;
  width: 460px;
  height: 460px;
  background: radial-gradient(closest-side, rgba(240, 160, 106, 0.28), transparent 70%);
}
.cta > * {
  position: relative;
  z-index: 1;
}
.cta h2 {
  color: #fff;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  max-width: 640px;
}
.cta p {
  color: #c9c8db;
  max-width: 560px;
  font-size: 18px;
}
.cta a:not(.btn) {
  color: #fff;
}
.cta .btn-primary {
  background: #fff;
  color: #15172e;
}
.cta .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}
.cta .btn-soon {
  background: rgba(255, 255, 255, 0.06);
  color: #eceaf4;
  border-color: rgba(255, 255, 255, 0.3);
}
.cta .btn-soon .dot {
  box-shadow: 0 0 0 4px rgba(240, 160, 106, 0.25);
  background: #f0a06a;
}

/* ---------- About / contact on home ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.founder {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-family: var(--serif);
  font-size: 24px;
  flex: none;
}
.founder b {
  display: block;
}
.founder span {
  color: var(--muted);
  font-size: 15px;
}
.contact-card {
  padding: clamp(26px, 4vw, 40px);
}
.contact-card h3 {
  font-size: 22px;
}
.contact-card .mail {
  display: inline-block;
  margin: 6px 0 14px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  text-decoration: none;
  color: var(--ink);
  word-break: break-word;
}
.contact-card .mail:hover {
  color: var(--brand);
}
.contact-card p {
  color: var(--muted);
}

/* ---------- Docs / legal pages ---------- */
.page-head {
  padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 40px);
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.page-head .meta {
  color: var(--muted);
  font-size: 15px;
}
.docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(56px, 9vw, 104px);
}
@media (max-width: 900px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
  }
}
.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  font-size: 15px;
}
.toc p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}
.toc a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--ink);
  border-left-color: var(--line-strong);
}
@media (max-width: 900px) {
  .toc {
    position: static;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .toc ol {
    border: 0;
    columns: 2;
    column-gap: 20px;
  }
  .toc a {
    padding: 5px 0;
    border: 0;
    margin: 0;
  }
}
@media (max-width: 480px) {
  .toc ol {
    columns: 1;
  }
}
.prose {
  max-width: 720px;
  color: var(--ink-2);
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 38px);
  letter-spacing: -0.01em;
  margin-top: 64px;
  padding-top: 8px;
  color: var(--ink);
}
.prose > h2:first-child,
.prose > .callout:first-child + h2 {
  margin-top: 0;
}
.prose h3 {
  font-size: 19px;
  margin-top: 36px;
  color: var(--ink);
}
.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 1.1em;
}
.prose li {
  margin: 6px 0;
}
.prose li::marker {
  color: var(--muted);
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose code,
.prose kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 15.5px;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}
.prose th {
  color: var(--ink);
  font-weight: 600;
}
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.4em;
}
.table-scroll table {
  min-width: 560px;
  margin: 0;
}
.callout {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 0 0 1.4em;
}
.callout p:last-child {
  margin-bottom: 0;
}
.callout-brand {
  background: var(--brand-soft);
  border-color: transparent;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0 !important;
  margin: 0 0 1.4em;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 52px;
  margin: 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 650;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 15.5px;
  top: 34px;
  bottom: 4px;
  width: 1px;
  background: var(--line-strong);
}
.steps > li:last-child::after {
  display: none;
}
.steps > li > strong:first-child {
  display: block;
  margin-bottom: 4px;
  font-size: 17.5px;
}
.steps p {
  margin-bottom: 0.6em;
}
.ui {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 15px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}
.site-footer h2 {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li {
  margin: 7px 0;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ink);
}
.site-footer .wordmark {
  margin-bottom: 12px;
  color: var(--ink);
}
.site-footer .fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.notfound .big {
  font-family: var(--serif);
  font-size: clamp(110px, 22vw, 200px);
  line-height: 0.9;
  color: var(--brand);
  letter-spacing: -0.04em;
}
.notfound .big em {
  color: var(--accent);
}
.notfound .btn-row {
  justify-content: center;
}

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