/*
 * Marketing site. Layout families (each used once on the home page):
 * asymmetric hero, bento, staircase, sticky steps, interactive panel, text + code split,
 * rows, accordion, CTA band. Breakpoints: 56.25rem (nav collapses, two-column layouts stack).
 */

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

.header-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 4px; pointer-events: none; }
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled, .site-header.menu-open {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: var(--line);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled, .site-header.menu-open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.bar { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; color: var(--ink); text-decoration: none; font: 600 1.0625rem/1 var(--font); letter-spacing: -.02em; }
.brand img { display: block; }
.nav { display: flex; align-items: center; gap: .25rem; margin-right: auto; }
.nav a {
  padding: .5rem .8rem; border-radius: var(--r-ctl); color: var(--ink-2); text-decoration: none;
  font-size: .9375rem; font-weight: 500; transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-login, .nav-cta { display: none; }
.bar-actions { display: flex; align-items: center; gap: .75rem; }
.bar-actions .link { color: var(--ink-2); font-size: .9375rem; font-weight: 500; text-decoration: none; padding: .5rem; border-radius: var(--r-ctl); }
.bar-actions .link:hover { color: var(--ink); }
.menu-btn {
  display: none; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: var(--r-ctl);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
}

@media (max-width: 56.24rem) {
  .menu-btn { display: inline-grid; }
  .bar-actions .link { display: none; }
  .bar { gap: .75rem; }
  .bar-actions { margin-left: auto; }
  .nav {
    position: absolute; inset: 100% 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: .15rem;
    padding: .75rem 1rem 1.25rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .menu-open .nav { display: flex; max-height: calc(100dvh - 4rem); overflow-y: auto; overscroll-behavior: contain; }
  .nav a { padding: .8rem .9rem; font-size: 1rem; }
  .nav-login { display: block; }
}
@media (max-width: 26rem) {
  .bar-actions .btn { display: none; }
  .nav-cta {
    display: inline-flex; justify-content: center; margin-top: .5rem; padding: .85rem 1rem !important;
    background: var(--accent); color: var(--accent-ink) !important; font-weight: 500;
  }
  .nav-cta:hover { background: var(--accent-hover) !important; }
}

/* ── Shared page scaffolding ────────────────────────────────────────────────────────────────── */

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-tight { padding-block: 1rem clamp(3rem, 6vw, 5rem); }
.section-sunk { background: var(--bg-sunk); }
.section-title { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3rem); letter-spacing: -.038em; max-width: 20ch; }
.section-sub { margin-top: 1rem; color: var(--ink-2); font-size: 1.125rem; max-width: 52ch; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--ink-2); max-width: 36em; }

@media (prefers-reduced-motion: no-preference) {
  .enter { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
  .enter[data-i="1"] { --i: 1; }
  .enter[data-i="2"] { --i: 2; }
  .enter[data-i="3"] { --i: 3; }
  .reveal.d1 { --i: 1; }
  .reveal.d2 { --i: 2; }
  .reveal.d3 { --i: 3; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

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

.hero { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(1.75rem, 4vw, 3.5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -40% -15% auto 25%; height: 130%;
  background: radial-gradient(60% 60% at 60% 40%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: min(34rem, 80%); pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem; opacity: .5;
  -webkit-mask-image: radial-gradient(70% 90% at 70% 0%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 70% 0%, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, .9rem + 3.1vw, 3.4rem); line-height: 1.04; letter-spacing: -.045em; max-width: 14em; }
.hero .lead { margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 2rem; color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-points .ic { color: var(--accent-text); }
.hero-media { position: relative; padding-bottom: 2.5rem; margin-right: calc(-1 * max(1rem, (100vw - 76rem) / 2)); }
.frame {
  margin: 0; overflow: hidden; border-radius: var(--r-media); border: 1px solid var(--line-strong);
  background: var(--surface); box-shadow: var(--shadow-lg), var(--glass-edge);
}
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; filter: var(--img-filter); }
.hero-frame { aspect-ratio: 1000 / 640; border-right: 0; border-radius: var(--r-media) 0 0 var(--r-media); }
.hero-frame .art { height: 100%; }
.hero-phone { position: absolute; left: -1.75rem; bottom: 0; width: clamp(7rem, 25%, 11.5rem); margin: 0; filter: drop-shadow(0 26px 28px rgb(10 30 70 / .3)); }
/* Floating notes that show the product at work. Decorative: hidden from assistive tech. */
.float-note {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .7rem; padding: .65rem .9rem .65rem .7rem;
  border-radius: 14px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink);
  box-shadow: var(--shadow-md), var(--glass-edge); font-size: .8125rem; line-height: 1.3;
}
.float-note strong { display: block; font-weight: 600; letter-spacing: -.01em; }
.float-note small { display: block; color: var(--ink-3); font-size: .75rem; }
.float-ic { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 9px; background: var(--ok-soft); color: var(--ok); }
.float-ic.accent { background: var(--accent-soft); color: var(--accent-text); }
.float-a { right: 7%; bottom: .5rem; }
.float-b { right: 4%; top: -1rem; }
@media (prefers-reduced-motion: no-preference) {
  .float-note { animation: float-bob 7s ease-in-out infinite; }
  .float-b { animation-delay: -3.5s; }
  @keyframes float-bob { 50% { transform: translateY(-6px); } }
}
@media (max-width: 56.24rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero h1 { max-width: 12em; }
  .hero-media { margin-right: 0; padding-bottom: 2rem; }
  .hero-frame { border-right: 1px solid var(--line-strong); border-radius: var(--r-media); }
  .hero-phone { left: -.25rem; width: clamp(6.5rem, 26%, 10rem); }
}
@media (max-width: 40rem) {
  .hero { padding-bottom: 1.5rem; }
  .hero-actions .btn { flex: 1 1 14rem; }
  .hero-points { gap: .5rem 1.25rem; }
  /* On a phone the phone itself is the picture: large enough to read, centered, with one note below. */
  .hero-frame, .float-b { display: none; }
  .hero-media { display: grid; justify-items: center; padding-bottom: 3.25rem; }
  .hero-phone { position: relative; left: auto; bottom: auto; width: min(16.5rem, 74%); }
  .float-a { right: 0; bottom: 0; font-size: .75rem; }
}

/* ── Bento ──────────────────────────────────────────────────────────────────────────────────── */

.bento {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem;
  grid-template-areas: "a a a a a a a b b b b b" "a a a a a a a c c c c c" "d d d d e e e e e e e e";
}
.cell {
  position: relative; display: flex; flex-direction: column; gap: .75rem; min-height: 13rem; padding: 1.75rem; overflow: hidden;
  border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--glass-edge);
}
.cell h3 { font-size: 1.25rem; letter-spacing: -.025em; }
.cell p { color: var(--ink-2); max-width: 36ch; }
.cell > .ic-lg { width: 1.75rem; height: 1.75rem; color: var(--accent-text); }
.cell-photo { grid-area: a; padding: 0; justify-content: flex-end; min-height: 28rem; color: #f6f8fb; }
.cell-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }
.cell-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(8 12 20 / .88) 0%, rgb(8 12 20 / .5) 40%, transparent 72%); }
.cell-photo .cell-body { position: relative; z-index: 1; padding: 1.75rem; }
.cell-photo h3 { color: #f6f8fb; font-size: 1.5rem; }
.cell-photo p { color: #d9dee7; margin-top: .5rem; }
.cell-tint { grid-area: b; background: linear-gradient(150deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 35%, var(--surface))); border-color: var(--accent-line); }
.cell-pattern { grid-area: c; background: var(--surface-2); }
.cell-pattern::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 22%, transparent) 1px, transparent 1.3px); background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(110% 90% at 100% 0%, #000, transparent 62%); mask-image: radial-gradient(110% 90% at 100% 0%, #000, transparent 62%);
}
.cell-pattern > * { position: relative; }
.cell-phone { grid-area: d; padding-bottom: 0; }
.cell-shot { grid-area: e; padding-bottom: 0; }
.cell-text { display: grid; gap: .5rem; }
.cell-art { display: block; margin-top: auto; overflow: hidden; }
.cell-art-phone { width: 60%; align-self: center; aspect-ratio: 300 / 400; filter: drop-shadow(0 -2px 18px rgb(10 30 70 / .16)); }
.cell-art-shot {
  width: 100%; aspect-ratio: 16 / 6.5; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 14px 14px 0 0;
  box-shadow: var(--shadow-md);
}
.cell-art-shot .art { height: 100%; }
@media (max-width: 56.24rem) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "b" "c" "d" "e"; }
  .cell-photo { min-height: 22rem; }
  .cell-art-phone { width: min(15rem, 60%); }
}

/* ── Staircase (modules by package) ─────────────────────────────────────────────────────────── */

.stairs { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 1.25rem; align-items: start; margin-top: 3.5rem; min-height: 24rem; }
.stair {
  margin-top: calc((var(--cols) - var(--step, 1)) * 2.75rem); padding: 1.5rem;
  border-radius: var(--r-panel); border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) calc(var(--step, 1) * 3.5%), var(--surface));
}
.stair header { padding-bottom: 1rem; margin-bottom: 1.1rem; border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.stair h3 { font-size: 1.375rem; }
.stair-meta { margin-top: .25rem; color: var(--ink-3); font-size: .875rem; }
.stair ul { list-style: none; display: grid; gap: .75rem; }
.stair li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.stair li .ic { color: var(--accent-text); margin-top: .12em; }
.stair .skeleton + .skeleton { margin-top: .75rem; }
@media (max-width: 56.24rem) {
  .stairs { grid-template-columns: minmax(0, 1fr); margin-top: 2.5rem; }
  .stair { margin-top: 0; }
}

/* ── Sticky steps ───────────────────────────────────────────────────────────────────────────── */

.steps-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.steps-intro { position: sticky; top: 6rem; }
.steps-intro h2 { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3rem); max-width: 14ch; }
.steps-intro p { margin-top: 1.1rem; max-width: 38ch; font-size: 1.0625rem; }
.steps { list-style: none; display: grid; }
.step { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem; padding-bottom: 2.5rem; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 1.5rem; top: 3.4rem; bottom: .4rem; width: 1px; background: var(--line-strong); }
.step-icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--r-ctl);
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line);
}
.step h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.step p { color: var(--ink-2); max-width: 46ch; }
@media (max-width: 56.24rem) {
  .steps-layout { grid-template-columns: minmax(0, 1fr); }
  .steps-intro { position: static; }
}

/* ── Domain demo ────────────────────────────────────────────────────────────────────────────── */

.domain-demo {
  margin-top: 2.5rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-media);
  border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-md), var(--glass-edge);
}
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: 1.75rem; }
.demo-grid .field { margin-bottom: 0; }
.affix-input { display: flex; align-items: stretch; overflow: hidden; border: 1px solid var(--ctl-border); border-radius: var(--r-ctl); background: var(--raised); }
.affix-input:focus-within { outline: 2px solid var(--focus); border-color: var(--focus); }
.affix-input input[type="text"] { flex: 1; min-width: 0; border: 0; border-radius: 0; background: transparent; outline: none; box-shadow: none; font-family: var(--mono); }
.affix { display: flex; align-items: center; padding: 0 .9rem; background: var(--surface-2); border-left: 1px solid var(--line-strong); color: var(--ink-2); font: .9375rem var(--mono); white-space: nowrap; }
.hint.is-error { color: var(--bad); font-weight: 500; }
.address {
  display: flex; align-items: center; gap: .5rem; margin-top: 1.25rem; padding: .9rem 1rem; border-radius: var(--r-ctl);
  background: var(--bg-sunk); border: 1px solid var(--line); font: 1rem var(--mono); overflow-wrap: anywhere;
}
.address .ic { color: var(--ok); }
.address-scheme { color: var(--ink-3); margin-right: -.4rem; }
.address-host { color: var(--ink); font-weight: 500; }
.address.is-invalid .ic, .address.is-invalid .address-host { color: var(--ink-3); }
.demo-facts { list-style: none; display: grid; gap: .95rem; padding-top: .25rem; }
.demo-facts li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-2); }
.demo-facts .ic { color: var(--accent-text); margin-top: .15em; }
@media (max-width: 56.24rem) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Trust: facts + code ────────────────────────────────────────────────────────────────────── */

.trust-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.trust-copy h2 { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3rem); max-width: 14ch; }
.trust-list { list-style: none; display: grid; gap: 1.75rem; margin-top: 2.25rem; }
.trust-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.trust-list .ic-lg { margin-top: .15rem; color: var(--accent-text); }
.trust-list h3 { font-size: 1.125rem; }
.trust-list p { margin-top: .25rem; color: var(--ink-2); max-width: 44ch; }
.code-panel { margin: 0; }
.code {
  margin: 0; padding: 1.5rem 1.75rem; overflow: auto; border-radius: var(--r-media); border: 1px solid var(--line-strong);
  background: var(--bg-sunk); color: var(--ink-2); font: .9rem/1.8 var(--mono); box-shadow: var(--shadow-md); tab-size: 2;
}
.code code { font: inherit; }
.code-panel figcaption { margin-top: .9rem; font-size: .875rem; color: var(--ink-3); max-width: 52ch; }
@media (max-width: 56.24rem) { .trust-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Plans: toggle, rows (home), cards (pricing), matrix ────────────────────────────────────── */

.billing { display: inline-flex; gap: .25rem; margin-top: 1.75rem; padding: .25rem; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface-2); }
.billing button {
  min-height: 2.75rem; padding: 0 1.1rem; border: 0; border-radius: calc(var(--r-ctl) - 3px); background: transparent;
  color: var(--ink-2); font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s;
}
.billing button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-sm); }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .45rem; }
.price strong { font-size: 2rem; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.price .per { color: var(--ink-3); font-size: .9375rem; }
@media (prefers-reduced-motion: no-preference) { .price { animation: price-in .45s var(--ease); } @keyframes price-in { from { opacity: 0; transform: translateY(6px); } } }
.plan-name { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }

.plan-rows { display: grid; gap: .75rem; margin-top: 1.75rem; min-height: 20rem; align-content: start; }
.plan-row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1.5fr); gap: 1.5rem; align-items: center;
  padding: 1.5rem 1.75rem; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface);
}
.plan-row.hl { border-color: var(--accent-line); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); box-shadow: var(--shadow-md); }
.plan-row h3 { font-size: 1.375rem; }
.plan-id p { margin-top: .3rem; font-size: .95rem; max-width: 34ch; }
.plan-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.plan-stats div { display: flex; flex-direction: column-reverse; gap: .2rem; }
.plan-stats dd { margin: 0; font: 600 1.5rem/1.1 var(--mono); letter-spacing: -.03em; }
.plan-stats dd.word { font: 600 1.125rem/1.35 var(--font); letter-spacing: -.02em; padding-top: .2rem; }
.plan-stats dt { font-size: .8125rem; color: var(--ink-3); }
.rows-more { margin-top: 1.75rem; }
@media (max-width: 56.24rem) {
  .plan-row { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.25rem; }
}

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; margin-top: 1.75rem; min-height: 31rem; }
.plan-card {
  display: flex; flex-direction: column; gap: 1.25rem; padding: 1.75rem; border-radius: var(--r-panel);
  border: 1px solid var(--line); background: var(--surface);
}
.plan-card.hl { border-color: var(--accent-line); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); box-shadow: var(--shadow-lg); }
.plan-card h3 { font-size: 1.5rem; }
.plan-card header p { margin-top: .4rem; min-height: 3em; font-size: .95rem; }
.limit-list { list-style: none; display: grid; gap: .65rem; font-size: .9375rem; }
.limit-list li { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-2); }
.limit-list strong { color: var(--ink); font-weight: 600; }
.plan-card .btn { margin-top: auto; }
@media (min-width: 56.25rem) { .plans .plan-card.hl { margin-block: -.75rem; padding-block: 2.5rem; } }
@media (max-width: 56.24rem) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* overflow: clip (not auto) keeps the header sticky against the viewport; narrow screens scroll instead. */
/* position: relative keeps the visually hidden <caption> (absolutely positioned) inside the scroller; without it the
   caption escapes the clip and widens the whole page on phones. */
.matrix-wrap { position: relative; margin-top: 2.5rem; overflow-x: clip; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface); }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; }
.matrix th, .matrix td { padding: .8rem 1.1rem; text-align: left; }
.matrix thead th { position: sticky; top: 4rem; z-index: 2; background: var(--surface-2); font-weight: 600; font-size: .875rem; }
@media (max-width: 40rem) {
  .matrix-wrap { overflow-x: auto; }
  .matrix { min-width: 32rem; }
  .matrix thead th { position: static; }
}
.matrix tbody th[scope="row"] { font-weight: 400; color: var(--ink); }
.matrix td { text-align: center; color: var(--ink-2); }
.matrix thead th:not(:first-child) { text-align: center; }
.matrix .group th { padding: 1.4rem 1.1rem .5rem; font-size: .8125rem; font-weight: 600; color: var(--ink-3); background: var(--surface); }
.matrix tbody tr:not(.group):hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.row-label { display: inline-flex; align-items: center; gap: .6rem; }
.row-label .ic { color: var(--ink-3); }
.matrix .yes { display: inline-flex; color: var(--ok); }
.matrix .no { color: var(--ink-3); }

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

.faq { margin-top: 2rem; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding: 1.1rem 0;
  font-size: 1.0625rem; font-weight: 500; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--ink-3); transition: transform .3s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { max-width: 62ch; padding: 0 2.5rem 1.4rem 0; color: var(--ink-2); }

/* ── CTA band ───────────────────────────────────────────────────────────────────────────────── */

.cta-band {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.75rem; padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--r-media); color: var(--band-ink); box-shadow: var(--shadow-lg);
  background: radial-gradient(70% 130% at 100% 0%, rgb(255 255 255 / .13), transparent 60%), linear-gradient(135deg, var(--band-from), var(--band-to));
}
.cta-band h2 { font-size: clamp(1.75rem, 1rem + 2.2vw, 2.75rem); }
.cta-band p { margin-top: .6rem; max-width: 46ch; opacity: .92; }
.cta-band .btn { background: #f3f6fb; color: #0c2d63; border-color: transparent; }
.cta-band .btn:hover { background: #fff; }

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

.site-footer { padding: 3.5rem 0 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand p { max-width: 36ch; margin-top: 1rem; font-size: .9375rem; color: var(--ink-2); }
.site-footer h2 { margin-bottom: .9rem; font-size: .8125rem; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.site-footer ul { list-style: none; display: grid; gap: .6rem; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .875rem; }
.theme-switch { display: inline-flex; gap: .25rem; padding: .25rem; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface-2); }
.theme-switch button {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: calc(var(--r-ctl) - 3px);
  background: transparent; color: var(--ink-3); cursor: pointer;
}
.theme-switch button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-sm); }
@media (max-width: 40rem) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
/* Touch screens: every link and switch is at least 44 px tall. */
@media (pointer: coarse) {
  .site-footer ul { gap: 0; }
  .site-footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .theme-switch button { width: 2.75rem; height: 2.75rem; }
  .feature-nav a { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .link-arrow { min-height: 2.75rem; }
}

/* ── Inner pages ────────────────────────────────────────────────────────────────────────────── */

.page-hero { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; inset: -70% -20% auto 25%; height: 200%;
  background: radial-gradient(60% 60% at 60% 35%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 75%); pointer-events: none;
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 100%; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem; opacity: .45;
  -webkit-mask-image: radial-gradient(60% 100% at 80% 0%, #000, transparent 75%); mask-image: radial-gradient(60% 100% at 80% 0%, #000, transparent 75%);
}
.page-hero h1 { font-size: clamp(2.2rem, 1rem + 3.6vw, 3.75rem); line-height: 1.04; letter-spacing: -.045em; max-width: 16ch; }
.page-hero .lead { margin-top: 1.25rem; max-width: 46ch; }
.page-hero .billing { margin-top: 2rem; }

/* features */
.features-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-bottom: clamp(4rem, 8vw, 6rem); }
.feature-nav { position: sticky; top: 6rem; }
.feature-nav nav { display: grid; gap: .15rem; }
.feature-nav a { padding: .55rem .8rem; border-radius: var(--r-ctl); color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; transition: background-color .2s, color .2s; }
.feature-nav a:hover { background: var(--surface-2); color: var(--ink); }
.feature-nav a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-text); }
.feature-group { scroll-margin-top: 6rem; }
.feature-group + .feature-group { margin-top: clamp(3rem, 6vw, 5rem); }
.feature-group > h2 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); letter-spacing: -.035em; }
.feature-group > p { margin-top: .6rem; color: var(--ink-2); max-width: 52ch; }
.core-panel {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.5rem; margin-top: 1.75rem; padding: 1.75rem;
  border-radius: var(--r-panel); border: 1px solid var(--accent-line);
  background: linear-gradient(150deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 35%, var(--surface)));
}
.core-panel li { display: grid; gap: .35rem; align-content: start; }
.core-panel .ic-lg { color: var(--accent-text); width: 1.6rem; height: 1.6rem; }
.core-panel h3 { font-size: 1.0625rem; }
.core-panel p { color: var(--ink-2); font-size: .9375rem; }
.module-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; margin-top: 1.75rem; }
.module { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.module-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-ctl); background: var(--surface-2); border: 1px solid var(--line); color: var(--accent-text); }
.module h3 { font-size: 1.0625rem; }
.module p { margin-top: .3rem; color: var(--ink-2); font-size: .9375rem; }
.module .badge { margin-top: .6rem; }
@media (max-width: 56.24rem) {
  .features-layout { grid-template-columns: minmax(0, 1fr); }
  .feature-nav { position: sticky; top: 4rem; z-index: 5; margin-inline: -1rem; padding: .5rem 1rem; background: var(--bg); border-bottom: 1px solid var(--line); }
  .feature-nav nav { display: flex; gap: .25rem; overflow-x: auto; }
  .feature-nav a { white-space: nowrap; }
  .core-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) { .core-panel, .module-grid { grid-template-columns: minmax(0, 1fr); } }

/* how it works */
.flow { display: grid; gap: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.flow-block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.flow-block h2 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.4rem); letter-spacing: -.035em; max-width: 14ch; }
.flow-block .intro { margin-top: .9rem; color: var(--ink-2); max-width: 40ch; }
.ledger { margin: 0; }
.ledger > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.ledger > div:first-child { border-top: 1px solid var(--line-strong); }
.ledger dt { font-weight: 600; letter-spacing: -.01em; }
.ledger dd { margin: 0; color: var(--ink-2); }
.ledger .big { display: block; margin-bottom: .2rem; font: 600 1.5rem/1.1 var(--mono); letter-spacing: -.03em; color: var(--ink); }
/* Variation on the page: some blocks stack their heading above the content instead of splitting. */
.flow-block.stack { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
.flow-block.stack h2 { max-width: 22ch; }
.flow-block.stack .intro { max-width: 54ch; }
.ledger.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2rem; }
.ledger.strip > div { display: block; padding: 1.1rem 0 0; border: 0; border-top: 2px solid var(--line-strong); }
.ledger.strip > div:first-child { border-top-color: var(--accent); }
.ledger.strip dt { margin-bottom: .6rem; }
.ledger.strip dd { font-size: .9375rem; }
@media (max-width: 56.24rem) { .ledger.strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; } }
@media (max-width: 36rem) { .ledger.strip { grid-template-columns: minmax(0, 1fr); } }
.table-plain { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table-plain th, .table-plain td { padding: .85rem 1rem .85rem 0; text-align: left; vertical-align: top; }
.table-plain thead th { font-size: .8125rem; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line-strong); }
.table-plain tbody tr + tr td { border-top: 1px solid var(--line); }
.table-plain code { overflow-wrap: anywhere; }
.fact-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.fact-grid li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; }
.fact-grid .ic-lg { margin-top: .15rem; color: var(--accent-text); }
.fact-grid h3 { font-size: 1.0625rem; }
.fact-grid p { margin-top: .3rem; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 40rem) { .fact-grid { grid-template-columns: minmax(0, 1fr); } }
.domain-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.domain-split h3 { font-size: 1.125rem; }
.domain-split p { margin-top: .4rem; color: var(--ink-2); }
.domain-split code { display: block; margin-top: .75rem; padding: .7rem .9rem; border-radius: var(--r-ctl); background: var(--bg-sunk); border: 1px solid var(--line); overflow-wrap: anywhere; }
.keyline { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }
.keyline code { flex: 1 1 18rem; min-width: 0; padding: .7rem .9rem; border-radius: var(--r-ctl); background: var(--bg-sunk); border: 1px solid var(--line); overflow-wrap: anywhere; font-size: .8125rem; }
@media (max-width: 56.24rem) {
  .flow-block { grid-template-columns: minmax(0, 1fr); }
  .ledger > div { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .domain-split { grid-template-columns: minmax(0, 1fr); }
}

/* forms (trial, contact) */
.split-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); }
.split-copy h1 { font-size: clamp(2rem, 1rem + 3vw, 3.25rem); line-height: 1.05; letter-spacing: -.045em; max-width: 12em; }
.split-copy .lead { margin-top: 1.1rem; }
.check-list { list-style: none; display: grid; gap: 1rem; margin-top: 2rem; }
.check-list li { display: flex; gap: .75rem; color: var(--ink-2); }
.check-list .ic { color: var(--accent-text); margin-top: .2em; }
.photo { margin: 2.5rem 0 0; }
.photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-media); border: 1px solid var(--line); filter: var(--img-filter); }
.form-card {
  padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-media); border: 1px solid var(--line-strong);
  background: var(--surface); box-shadow: var(--shadow-md), var(--glass-edge);
}
.form-card h2 { font-size: 1.375rem; margin-bottom: 1.25rem; }
.form-card .btn-primary { width: 100%; margin-top: .5rem; }
.form-card .notice { margin-bottom: 1rem; }
.key-result { display: grid; gap: 1rem; }
.key-result h2 { margin: 0; }
.keybox { margin: .25rem 0; padding: 1.1rem 1.25rem; border-radius: var(--r-ctl); background: var(--bg-sunk); border: 1px dashed var(--accent); text-align: center; user-select: all; }
.keybox code { font: 600 clamp(1.05rem, 3.6vw, 1.5rem)/1.3 var(--mono); letter-spacing: .04em; word-break: break-all; }
.next-steps { display: grid; gap: .5rem; padding-left: 1.25rem; color: var(--ink-2); }
@media (max-width: 56.24rem) { .split-page { grid-template-columns: minmax(0, 1fr); } }

/* 404 */
.lost { min-height: 60dvh; display: grid; align-content: center; justify-items: start; gap: 1.25rem; padding-block: 4rem; }
.lost .code-404 { font: 600 clamp(4rem, 14vw, 9rem)/1 var(--mono); letter-spacing: -.06em; color: var(--accent-text); }
.lost h1 { font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem); }

/* ── Breadcrumbs ────────────────────────────────────────────────────────────────────────────── */

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; font-size: .875rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.page-hero .crumbs { margin-bottom: 1.25rem; }
.split-copy .crumbs { margin-bottom: 1.5rem; }

/* A table that scrolls sideways on a phone must be reachable and announced by keyboard users. */
.matrix-wrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ── Illustrations (generated by scripts/build-art.js) ─────────────────────────────────────── */
/* Colors come from the page tokens, so the figures follow the theme without extra files. */

.art { display: block; width: 100%; height: auto; font-family: var(--font); }
.art .mono { font-family: var(--mono); }
.art .tn { font-variant-numeric: tabular-nums; }
.art .op { opacity: .85; }
.art .w5 { font-weight: 500; }
.art .w6 { font-weight: 600; }
.art .f-bg { fill: var(--bg); }
.art .f-sf { fill: var(--surface); }
.art .f-sf2 { fill: var(--surface-2); }
.art .f-rs { fill: var(--raised); }
.art .f-sunk { fill: var(--bg-sunk); }
.art .f-ls { fill: var(--line-strong); }
.art .f-ink { fill: var(--ink); }
.art .f-ink2 { fill: var(--ink-2); }
.art .f-ink3 { fill: var(--ink-3); }
.art .f-ac { fill: var(--accent); }
.art .f-acs { fill: var(--accent-soft); }
.art .f-ac2 { fill: color-mix(in srgb, var(--accent) 34%, var(--surface)); }
.art .f-act { fill: var(--accent-text); }
.art .f-aci { fill: var(--accent-ink); }
.art .f-ok { fill: var(--ok); }
.art .f-oks { fill: var(--ok-soft); }
.art .f-warn { fill: var(--warn); }
.art .f-warns { fill: var(--warn-soft); }
.art .f-bad { fill: var(--bad); }
.art .f-bads { fill: var(--bad-soft); }
.art .f-bz { fill: var(--art-bezel); }
.art .s-line { fill: none; stroke: var(--line); }
.art .s-ls { fill: none; stroke: var(--line-strong); }
.art .s-brk { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.art .ts-11 { font-size: 11px; }
.art .ts-12 { font-size: 12px; }
.art .ts-13 { font-size: 13px; }
.art .ts-14 { font-size: 14px; }
.art .ts-15 { font-size: 15px; }
.art .ts-16 { font-size: 16px; }
.art .ts-17 { font-size: 17px; }
.art .ts-20 { font-size: 20px; }
.art .ts-22 { font-size: 22px; }
.art .ts-24 { font-size: 24px; }
.art .ts-30 { font-size: 30px; }

/* Address picker on the signup form: suggestions when the chosen name is taken. */
.slug-suggest { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .8125rem; color: var(--ink-3); }
.slug-suggest:empty { display: none; }
.slug-suggest button { min-height: 1.9rem; padding: 0 .6rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--raised); color: var(--accent-text); font: 500 .8125rem var(--mono); cursor: pointer; }
.slug-suggest button:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Long legal text remains readable without JavaScript and on narrow screens. */
.privacy-policy { line-height: 1.8; overflow-wrap: anywhere; }
.privacy-policy section { margin-block: 2.5rem; scroll-margin-top: 6rem; }
.privacy-policy h2 { line-height: 1.35; margin-bottom: 1rem; }
.privacy-policy p, .privacy-policy ul, .privacy-policy ol, .privacy-policy dl { margin-block: 1rem; }
.privacy-policy ul, .privacy-policy ol { padding-inline-start: 1.5rem; }
.privacy-policy li + li { margin-top: .5rem; }
.privacy-policy dt { margin-top: 1rem; }
.privacy-policy dd { margin-inline-start: 0; }
.privacy-policy a { text-decoration: underline; text-underline-offset: .2em; }
