/*
 * kavra — marketing site.
 *
 * No framework and no CDN. This is the site of a company that sells anti-fraud;
 * pulling a stylesheet and two fonts from someone else's domain on every page
 * load would be both slower and off-message. The fonts sit next to this file.
 *
 * ---------------------------------------------------------------------------
 * The system
 *
 * A warm paper canvas, a visible structural grid, and type set large and calm.
 * The grid is the layout: thin rules frame the content column and divide one
 * cell from the next, so a block sits *inside* a structure rather than floating
 * as a card with an outline around it. That distinction is most of what
 * separates a page that looks composed from one that looks assembled.
 *
 * Colour is used twice: deep pine for the bands that need weight, and a warm
 * clay for the single thing worth pointing at on any given screen. Pastel tiles
 * carry illustration. The palette is deliberately not this category's — the
 * competition has divided blue-and-orange and teal-and-lime between them, and a
 * third entrant arriving in either would look like a follower before a word is
 * read. Pine and clay is the palette of expensive print, and nobody here is
 * using it.
 */

/* ------------------------------------------------------------------ fonts */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ tokens */

:root {
  /* Paper, warm. A pure white page under a saturated accent reads as an
     unstyled document; a few degrees of warmth reads as stock. */
  --paper: #f6f4f0;
  --paper-2: #efece5;
  --white: #ffffff;

  /* Ink carries a trace of the brand green rather than being neutral black.
     Nobody notices it and everybody feels it. */
  --ink: #13171a;
  --ink-2: #4c545a;
  --ink-3: #838d93;

  --pine: #14392e;
  --pine-2: #1c4b3c;
  --pine-3: #2a6b56;

  /* The pointer. One warm clay, spent on the thing to press and almost nothing
     else — an accent used everywhere is not an accent. */
  --clay: #d8542e;
  --clay-deep: #b8431f;
  --gold: #f0c14b;

  /* Pastels for illustration tiles, never for text. */
  --t-sage: #d7e3d8;
  --t-clay: #f3ddd2;
  --t-sky: #d6e2ec;
  --t-gold: #f6e9c8;
  --t-stone: #e6e3dc;

  /* One value for every rule on the page, so the structure reads as a single
     frame rather than a collection of borders. */
  --rule: #e0dcd2;

  --shadow-sm: 0 1px 2px rgba(19, 23, 26, 0.05);
  --shadow: 0 16px 40px -22px rgba(19, 23, 26, 0.25);
  --shadow-lg: 0 48px 90px -46px rgba(19, 23, 26, 0.38);

  --radius: 12px;
  --radius-lg: 20px;
  --pill: 999px;

  --gutter: clamp(20px, 3.5vw, 40px);
  --shell: 1240px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system,
    'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/*
 * Display weight is 400, not 700.
 *
 * At sixty pixels a bold grotesk shouts, and shouting is the cheapest thing a
 * headline can do. Regular weight at tight tracking and tight leading reads as
 * composure — which is the single largest difference between the sites this
 * category admires and the ones imitating them.
 */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.9rem, 6.2vw, 5rem);
  letter-spacing: -0.042em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.26;
}

p {
  margin: 0;
  text-wrap: pretty;
}

code,
pre {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

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

/* ------------------------------------------------------------------- grid */

/*
 * The frame.
 *
 * Two vertical rules mark the content column and run the full height of every
 * section; each section closes with a horizontal one. Together they make a grid
 * the reader can see, and that visible structure is what lets every block inside
 * it go unoutlined.
 */
.shell {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell::before,
.shell::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
  pointer-events: none;
}

.shell::before { left: 0; }
.shell::after  { right: 0; }

.band-pine .shell::before,
.band-pine .shell::after {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 760px) {
  .shell::before,
  .shell::after {
    display: none;
  }
}

.band {
  position: relative;
  padding-block: clamp(60px, 7vw, 104px);
  border-bottom: 1px solid var(--rule);
}

.band-pine {
  background: var(--pine);
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.band-white {
  background: var(--white);
}

.band-tight {
  padding-block: clamp(34px, 4vw, 52px);
}

.lede {
  color: var(--ink-2);
  font-size: 1.15rem;
  max-width: 52ch;
}

.band-pine .lede,
.band-pine .section-head p,
.band-pine p {
  color: rgba(255, 255, 255, 0.74);
}

/* Mono micro-label. The way this category writes them, and a good reason to:
   it separates a category name from a sentence without a pill around it. */
.eyebrow {
  margin: 0 0 22px;
  color: var(--ink-3);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.band-pine .eyebrow {
  color: var(--gold);
}

/* A marker drawn behind the words: the ink stays put and the colour sits under
   it. Borrowed openly — it is the one device in this category worth borrowing —
   in a gold that belongs to this palette rather than to anyone else's. */
.mark {
  background: linear-gradient(180deg, transparent 55%, var(--gold) 55%);
  padding-inline: 3px;
}

/* Wide enough that a display heading breaks into two or three lines rather than
   four or five. A 22ch measure at this type size turns every heading into a
   narrow column of stubs, which reads as cramped rather than as considered. */
.section-head {
  max-width: 30ch;
  margin-bottom: clamp(40px, 4.5vw, 60px);
}

.section-head.wide { max-width: 40ch; }

.section-head p {
  margin-top: 22px;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 1.06rem;
}

/* ------------------------------------------------------------------- nav */

.ribbon {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--pine-3),
    var(--gold) 38%,
    var(--clay) 72%,
    var(--pine)
  );
}

.announce {
  background: var(--pine);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
}

.announce .shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  text-align: center;
}

.announce .shell::before,
.announce .shell::after { display: none; }

.announce a {
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.announce a svg { transition: transform 0.2s var(--ease); }
.announce a:hover svg { transform: translateX(3px); }

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 244, 240, 0.9);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.045em;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding-inline: 24px;
  border: 0;
  border-radius: var(--pill);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease),
    box-shadow 0.16s var(--ease), color 0.16s var(--ease);
}

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

.btn-primary {
  background: var(--clay);
  color: #fff;
}

.btn-primary:hover { background: var(--clay-deep); }

.btn-pine {
  background: var(--pine);
  color: #fff;
}

.btn-pine:hover { background: var(--pine-2); }

.btn-line {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--rule);
}

.btn-line:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink-3);
}

.band-pine .btn-line,
.hero-pine .btn-line {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.34);
}

.band-pine .btn-line:hover,
.hero-pine .btn-line:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}

/* The arrow in its own disc. A small thing that reads as considered. */
.pip {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  margin-right: -8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.btn-lg {
  height: 56px;
  padding-inline: 28px;
  font-size: 1.03rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
}

.band-pine .link-arrow { color: var(--gold); }

.link-arrow svg { transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------------- hero */

.hero {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: 0;
  border-bottom: 1px solid var(--rule);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  padding: 7px 7px 7px 8px;
  border-radius: 9px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 0.88rem;
  color: var(--ink-2);
}

.badge b {
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--gold);
  color: #4a3806;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.badge span { padding-right: 8px; }

.hero h1 { max-width: 15ch; }

.hero-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(28px, 4vw, 60px);
  /* Aligned to the top, not the bottom. The two columns are different heights,
     and bottom-alignment left the shorter one hanging under a column of empty
     paper — which reads as a layout that ran out of content rather than one
     that was set. */
  align-items: start;
  margin-top: clamp(30px, 3.5vw, 46px);
  padding-bottom: clamp(40px, 5vw, 66px);
}

@media (max-width: 940px) {
  .hero-lead { grid-template-columns: 1fr; align-items: start; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 0.89rem;
}

/*
 * The product surface, straddling the seam.
 *
 * The screenshot is the proof, so it gets the most valuable position on the
 * page: the fold. Half on the hero, half on the band below, which also stops
 * the two sections reading as a stack of unrelated rectangles.
 */
.hero-shot {
  margin-bottom: calc(-1 * clamp(60px, 7vw, 110px));
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.after-shot {
  padding-top: clamp(92px, 10vw, 150px);
  padding-bottom: clamp(48px, 5vw, 72px);
}

/* --------------------------------------------------------------- verdict */

/*
 * The evaluation panel: what an operator actually sees.
 *
 * Layer names and an outcome, and deliberately no numbers. A panel full of
 * weights on a marketing page would be an instruction manual for anyone trying
 * to move them; the shape of the answer is the part worth showing, and it is
 * also the part competitors do not have.
 */
.verdict-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--ink-2);
}

.verdict-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pine-3);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(42, 107, 86, 0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(42, 107, 86, 0.05); }
}

.verdict-time {
  margin-left: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--ink-3);
}

.verdict-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 760px) {
  .verdict-body { grid-template-columns: 1fr; }
}

.layer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  animation: settle 0.5s var(--ease) forwards;
  animation-delay: calc(320ms + var(--i) * 110ms);
}

.layer:nth-child(odd) { border-right: 1px solid var(--rule); }

@media (max-width: 760px) {
  .layer:nth-child(odd) { border-right: 0; }
}

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

.layer-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--ink-3);
}

.layer-state.ok::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 8.3 6.9 10.8 11.7 5.6' fill='none' stroke='%2314392e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 18px no-repeat,
    var(--t-sage);
}

.verdict-out {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 24px;
  background: var(--pine);
  color: #fff;
  opacity: 0;
  animation: settle 0.5s var(--ease) forwards;
  animation-delay: calc(320ms + var(--i) * 110ms);
}

.verdict-label {
  color: rgba(255, 255, 255, 0.55);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.69rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.verdict-action {
  margin-top: 7px;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  color: var(--gold);
}

.verdict-token code {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.81rem;
}

@media (prefers-reduced-motion: reduce) {
  .verdict-dot { animation: none; }
  .layer, .verdict-out { opacity: 1; animation: none; }
}

/* ------------------------------------------------------------- proof strip */

.proof-label {
  color: var(--ink-3);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.71rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
  border-top: 1px solid var(--rule);
}

.proof-row > * {
  padding: 26px 26px 4px 0;
  border-right: 1px solid var(--rule);
}

.proof-row > *:last-child { border-right: 0; }
.proof-row > *:not(:first-child) { padding-left: 26px; }

.proof-row b {
  display: block;
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--pine);
}

.proof-row span {
  display: block;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.93rem;
}

@media (max-width: 880px) {
  .proof-row { grid-template-columns: 1fr 1fr; }
  .proof-row > *:nth-child(2n) { border-right: 0; }
  .proof-row > *:nth-child(2n + 1) { padding-left: 0; }
  .proof-row > *:nth-child(n + 3) { border-top: 1px solid var(--rule); padding-top: 26px; }
}

@media (max-width: 520px) {
  .proof-row { grid-template-columns: 1fr; }
  .proof-row > * {
    border-right: 0;
    padding-left: 0 !important;
    border-top: 1px solid var(--rule);
    padding-top: 24px;
  }
  .proof-row > *:first-child { border-top: 0; padding-top: 0; }
}

/* ------------------------------------------------------------- grid cells */

/*
 * Cells in the frame, not floating cards.
 *
 * They share the grid's rules with their neighbours instead of each drawing an
 * outline of its own. That is the difference between a layout and a pile of
 * boxes, and it is the reason this page needs no shadows to hold together.
 */
.cells {
  display: grid;
  border-top: 1px solid var(--rule);
}

.band-pine .cells,
.band-pine .cell {
  border-color: rgba(255, 255, 255, 0.14);
}

.cells-3 { grid-template-columns: repeat(3, 1fr); }
.cells-2 { grid-template-columns: repeat(2, 1fr); }

.cell {
  padding: 34px 32px 36px 0;
  border-right: 1px solid var(--rule);
}

.cells-3 > .cell:nth-child(3n),
.cells-2 > .cell:nth-child(2n) { border-right: 0; }

.cells-3 > .cell:not(:nth-child(3n + 1)),
.cells-2 > .cell:not(:nth-child(2n + 1)) { padding-left: 32px; }

.cells-3 > .cell:nth-child(n + 4),
.cells-2 > .cell:nth-child(n + 3) { border-top: 1px solid var(--rule); }

.cell h3 { margin-bottom: 11px; }

.cell p {
  color: var(--ink-2);
  font-size: 0.99rem;
}

.band-pine .cell p { color: rgba(255, 255, 255, 0.72); }

@media (max-width: 940px) {
  .cells-3 { grid-template-columns: 1fr 1fr; }
  .cells-3 > .cell { border-right: 1px solid var(--rule); padding-left: 0; }
  .cells-3 > .cell:nth-child(2n) { border-right: 0; padding-left: 32px; }
  .cells-3 > .cell:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}

@media (max-width: 640px) {
  .cells-3, .cells-2 { grid-template-columns: 1fr; }
  .cells-3 > .cell, .cells-2 > .cell {
    padding: 28px 0 30px;
    border-right: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule);
  }
}

.cell-no {
  display: block;
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--clay);
}

.band-pine .cell-no { color: var(--gold); }

/*
 * The pastel tile.
 *
 * Every capability opens with a block of colour carrying a small diagram. It is
 * what lets this palette appear four times on one screen without any of it
 * competing: the colour is ground, the drawing on it is always brand ink, and
 * no two neighbours take the same hue.
 */
.tile {
  display: grid;
  place-items: center;
  min-height: 168px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  color: var(--pine);
}

.t-sage  { background: var(--t-sage); }
.t-clay  { background: var(--t-clay); }
.t-sky   { background: var(--t-sky); }
.t-gold  { background: var(--t-gold); }
.t-stone { background: var(--t-stone); }

/* --------------------------------------------------------------- ticklist */

.ticks {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-2);
  font-size: 0.99rem;
}

.ticks li::before {
  content: '';
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.4 8.4 6.3 11.3 12.6 4.6' fill='none' stroke='%23d8542e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.band-pine .ticks li { color: rgba(255, 255, 255, 0.8); }

.band-pine .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.4 8.4 6.3 11.3 12.6 4.6' fill='none' stroke='%23f0c14b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ split */

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

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------- code panel */

.code {
  border-radius: var(--radius);
  background: #0e2a22;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
}

.code-tabs { display: flex; gap: 4px; margin-left: auto; }

.code-tab {
  padding: 5px 13px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.code-tab[aria-selected='true'] {
  background: var(--gold);
  color: #3a2c05;
  font-weight: 500;
}

.code pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.75;
  color: #cddbd4;
}

.code pre[hidden] { display: none; }

.tok-key { color: #f0c14b; }
.tok-str { color: #ef9d7c; }
.tok-com { color: #5f7d72; font-style: italic; }
.tok-fn  { color: #e8f0eb; }

/* --------------------------------------------------------------- compare */

.compare { overflow-x: auto; }

.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.99rem;
}

.compare th,
.compare td {
  padding: 20px 24px 20px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.compare thead th {
  padding-top: 0;
  color: var(--ink-3);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 0.71rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compare thead th.ours { color: var(--clay); }

.compare tbody th {
  font-weight: 400;
  color: var(--ink);
  width: 26%;
}

.compare td { color: var(--ink-3); width: 37%; }

/* The winning column carries the ink and a tick; the others are greyed. Two
   columns of identical black text is a table nobody reads a conclusion from. */
.compare .ours {
  color: var(--ink);
  padding-left: 24px;
  background: rgba(215, 227, 216, 0.4);
}

.compare tbody .ours::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  vertical-align: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.4 8.4 6.3 11.3 12.6 4.6' fill='none' stroke='%2314392e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

@media (max-width: 760px) {
  .compare th, .compare td { padding: 14px 12px 14px 0; font-size: 0.92rem; }
  .compare .ours { padding-left: 12px; }
}

/* -------------------------------------------------------------------- faq */

.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-child { border-top: 1px solid var(--rule); }

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 26px;
  cursor: pointer;
  font-size: 1.12rem;
  letter-spacing: -0.022em;
  list-style: none;
}

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

.faq-item summary::after {
  content: '';
  width: 26px;
  height: 26px;
  margin-left: auto;
  flex: none;
  border-radius: 50%;
  background: var(--paper-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v8M4 8h8' stroke='%2313171a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 15px no-repeat;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(135deg);
  background-color: var(--gold);
}

.faq-item p {
  padding-bottom: 28px;
  color: var(--ink-2);
  max-width: 74ch;
}

/* ------------------------------------------------------------------ quote */

.quote {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.24;
  max-width: 24ch;
}

.quote-by {
  margin-top: 26px;
  color: var(--ink-3);
  font-size: 0.94rem;
}

/* ------------------------------------------------------------------- cta */

.cta { text-align: center; }

.cta h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.cta p {
  margin: 24px auto 0;
  max-width: 48ch;
  font-size: 1.08rem;
}

.cta .hero-actions { justify-content: center; }

/* ----------------------------------------------------------------- footer */

.footer {
  background: var(--pine);
  color: rgba(255, 255, 255, 0.6);
  padding-block: 58px 34px;
  font-size: 0.93rem;
}

.footer .shell::before,
.footer .shell::after { background: rgba(255, 255, 255, 0.14); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 42px;
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer h4 {
  margin: 0 0 16px;
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.footer a:hover { color: var(--gold); }

.footer .brand { color: #fff; margin-bottom: 18px; }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.87rem;
}

/* -------------------------------------------------------------- animation */

/*
 * The hidden state is armed by script, and only after it has confirmed it can
 * undo it.
 *
 * Written the obvious way — opacity 0 in the stylesheet — this hid two thirds
 * of the page the first time it rendered: the observer had not fired for
 * anything below the fold, so CSS was holding invisible content that nothing
 * was going to reveal. A stylesheet must never be the only thing between a
 * reader and the copy.
 */
html.reveal-armed [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--delay, 0ms);
}

html.reveal-armed [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Belt to those braces: whatever else happens, this wins. */
html.reveal-done [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-armed [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn, .link-arrow svg { transition: none; }
}
