/* Curbcut. No framework, no webfont, no JS, no tracking.
   A site selling accessibility has to survive its own audit. */

:root {
  color-scheme: dark light;

  --bg:        #0b0c0e;
  --bg-soft:   #101216;
  --surface:   #14171c;
  --raised:    #1b1f26;
  --line:      #262b34;
  --line-soft: #1c2028;

  --text:      #edecea;
  --muted:     #b4bac2;
  --faint:     #9ea5ae;

  --accent:      #f5c344;   /* curb paint */
  --accent-ink:  #17130a;   /* text on accent fills */
  --link:        #f5c344;

  --p1: #ff8a7a;
  --p2: #f5c344;
  --p3: #8fd0ff;

  --radius: 10px;
  --measure: 36rem;
  --pad: clamp(1.25rem, 5vw, 2rem);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:        #fbfaf8;
    --bg-soft:   #f4f2ed;
    --surface:   #ffffff;
    --raised:    #ffffff;
    --line:      #ddd9d0;
    --line-soft: #e8e5de;

    --text:      #14151a;
    --muted:     #484b51;
    --faint:     #52555d;

    --accent:      #f5c344;
    --accent-ink:  #17130a;
    --link:        #7a4b00;

    --p1: #a11b06;
    --p2: #7a4b00;
    --p3: #0b4f7a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1, "cv05" 1;
  -webkit-font-smoothing: antialiased;
}

/* Focus is never removed. This site gets audited by its own visitors. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--accent); color: var(--accent-ink);
  padding: .8rem 1.25rem; font-weight: 650; text-decoration: none;
}
.skip:focus { left: .5rem; top: .5rem; border-radius: var(--radius); }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

/* ─────────────── header ─────────────── */

.masthead {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 3.75rem; flex-wrap: wrap;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 660; font-size: 1.02rem; letter-spacing: -.02em;
  color: var(--text); text-decoration: none;
}
.wordmark svg { display: block; }
.masthead nav ul {
  display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none;
  font-size: .9rem; flex-wrap: wrap; align-items: center;
}
.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a:hover { color: var(--text); text-decoration: underline; }

/* ─────────────── type ─────────────── */

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.028em; font-weight: 660; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.15rem); }
h3 { font-size: 1.05rem; letter-spacing: -.015em; }
p { margin: 0; }
.stack > * + * { margin-top: 1rem; }
.measure { max-width: var(--measure); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .32rem .8rem; background: var(--surface);
}
.dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); flex: none; }

.lede { font-size: clamp(1.05rem, .98rem + .4vw, 1.2rem); color: var(--muted); }

section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: 0; }

.sec-head { margin-bottom: 2.5rem; }
.sec-head h2 + p { margin-top: .75rem; }

/* ─────────────── hero ─────────────── */

.hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.hero-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.hero h1 { margin-top: 1.15rem; }
.hero .lede { margin-top: 1.15rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .95rem/1 inherit; font-family: inherit;
  padding: .82rem 1.35rem; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }

.micro { font-size: .85rem; color: var(--faint); margin-top: 1.15rem; }

/* ─────────────── terminal ─────────────── */

.term {
  /* Fixed dark palette on purpose: a terminal is dark in both colour schemes,
     and inheriting the light theme put amber text on a near-white ground. */
  --t-bg:    #0d0f13;
  --t-bar:   #161a20;
  --t-line:  #262b34;
  --t-text:  #e8e7e4;
  --t-muted: #b4bac2;
  --t-faint: #98a0aa;
  --t-acc:   #f5c344;
  --t-p1:    #ff8a7a;
  --t-p2:    #f5c344;
  --t-p3:    #8fd0ff;

  background: var(--t-bg);
  border: 1px solid var(--t-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px -28px rgba(0,0,0,.85);
}
.term-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .6rem .85rem;
  border-bottom: 1px solid var(--t-line);
  background: var(--t-bar);
}
.term-bar span.knob { width: .6rem; height: .6rem; border-radius: 50%; background: #333944; flex: none; }
.term-bar .term-name {
  margin-left: .5rem; font: 500 .78rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--t-faint);
}
.term pre {
  margin: 0; padding: 1rem 1.1rem 1.2rem;
  font: 400 .82rem/1.65 ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, monospace;
  overflow-x: auto; color: var(--t-text); tab-size: 2;
}
.term .c  { color: var(--t-faint); }
.term .u  { color: var(--t-muted); }
.term .a  { color: var(--t-acc); font-weight: 600; }
.term .r1 { color: var(--t-p1); font-weight: 600; }
.term .r2 { color: var(--t-p2); font-weight: 600; }
.term .r3 { color: var(--t-p3); font-weight: 600; }

/* ─────────────── mapping table ─────────────── */

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 40rem; }
caption { text-align: left; padding: .9rem 1.1rem; color: var(--muted); font-size: .87rem; border-bottom: 1px solid var(--line-soft); }
th, td { text-align: left; padding: .78rem 1.1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; }
td code { color: var(--muted); }

.band { display: inline-block; font: 700 .72rem/1 ui-monospace, monospace; padding: .3rem .45rem; border-radius: 5px; border: 1px solid currentColor; }
.band-1 { color: var(--p1); }
.band-2 { color: var(--p2); }
.band-3 { color: var(--p3); }

.clause { font-weight: 600; color: var(--text); white-space: nowrap; }

/* ─────────────── cards ─────────────── */

.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .94rem; }
.card .tag {
  display: block; font: 600 .74rem/1 ui-monospace, monospace;
  letter-spacing: .06em; color: var(--faint); margin-bottom: .7rem;
}

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}
.callout p { color: var(--muted); }
.callout strong { color: var(--text); }

/* ─────────────── pricing ─────────────── */

.tiers { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); align-items: start; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.tier.lead { border-color: var(--accent); background: var(--raised); }
.tier .tier-top { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.pill { font: 600 .7rem/1 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase;
        background: var(--accent); color: var(--accent-ink); padding: .3rem .5rem; border-radius: 5px; }
.price { display: block; margin: 1rem 0 .2rem; font-size: 2.1rem; font-weight: 660; letter-spacing: -.035em; }
.price .per { font-size: .85rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.tier > p.sub { color: var(--faint); font-size: .85rem; }
.tier ul { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; font-size: .92rem; color: var(--muted); }
.tier li { position: relative; padding-left: 1.4rem; margin-bottom: .55rem; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: .5rem; height: .28rem; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.tier .btn { margin-top: auto; justify-content: center; }

/* ─────────────── faq ─────────────── */

.qa { border-top: 1px solid var(--line-soft); padding: 1.4rem 0; }
.qa:last-child { border-bottom: 1px solid var(--line-soft); }
.qa h3 { margin-bottom: .5rem; }
.qa p { color: var(--muted); max-width: var(--measure); }

/* ─────────────── footer ─────────────── */

footer { border-top: 1px solid var(--line-soft); padding: 3rem 0 3.5rem; font-size: .9rem; color: var(--faint); }
footer ul { display: flex; flex-wrap: wrap; gap: 1.4rem; padding: 0; margin: 0 0 1.5rem; list-style: none; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }
footer p { max-width: 44rem; margin-top: .85rem; }

/* legal pages: readable column */
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose li { color: var(--muted); max-width: var(--measure); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose > p + p, .prose h2 + p, .prose h3 + p, .prose p + ul { margin-top: .85rem; }
