:root {
  --paper: #FFF6EC;
  --ink: #1A1524;
  --ink-soft: #5F5670;

  --blue: #3D7BFF;
  --coral: #FF5470;
  --yellow: #FFC93C;
  --mint: #21C79B;
  --grape: #7C4DFF;

  --lift: 0 14px 34px rgba(26, 21, 36, 0.10);
  --lift-hi: 0 22px 50px rgba(26, 21, 36, 0.16);
  --edge: rgba(26, 21, 36, 0.13);
  --gutter: clamp(18px, 4.2vw, 68px);

  --display: "Fredoka", "Trebuchet MS", sans-serif;
  --body: "Figtree", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.62;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
canvas { display: block; }
img { max-width: 100%; }

/* display rules on components outrank the UA hidden rule, so make it stick */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.04em; }

#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.layer { position: relative; z-index: 1; }
.full { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--display); font-weight: 500; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
}

.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--tone, var(--coral)); }

.btn {
  font-family: var(--display); font-weight: 500; font-size: 16.5px;
  text-decoration: none; padding: 13px 25px; border-radius: 999px;
  background: var(--ink); color: var(--paper); display: inline-block;
  border: 0; cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.btn.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--edge); }
.btn.alt:hover { background: rgba(255, 246, 236, 0.7); }

/* ---------- header ---------- */

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 24px; flex-wrap: wrap; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 13px; }
.logo svg { flex: none; display: block; overflow: visible; }
.logo .cap { transition: transform 200ms cubic-bezier(.34, 1.56, .64, 1); }
.logo:hover .cap { transform: translateY(-5px); }
.logo .word { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -0.055em; line-height: 1; display: block; }
.logo .sub { font-size: 12px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.06em; margin-top: 5px; display: block; text-transform: uppercase; }

.pills { display: flex; gap: 2px; flex-wrap: wrap; }
.pill { font-family: var(--display); font-weight: 500; font-size: 15px; text-decoration: none; padding: 9px 14px; border-radius: 999px; transition: background 140ms ease, color 140ms ease; }
.pill:hover, .pill[aria-current="page"] { background: var(--ink); color: var(--paper); }
@media (max-width: 900px) { .topbar .pills { display: none; } }

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

.hero { padding-block: clamp(30px, 7vw, 86px) clamp(26px, 5vw, 60px); }
.hero h1 { font-size: clamp(50px, 11vw, 148px); line-height: 0.85; letter-spacing: -0.065em; margin: 0; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero h1 .two { display: block; padding-left: clamp(0px, 13vw, 190px); }

.heroFoot { margin-top: clamp(26px, 3.6vw, 46px); padding-left: clamp(0px, 13vw, 190px); }
.heroFoot p { margin: 0 0 26px; font-size: clamp(17px, 1.9vw, 22px); font-weight: 500; max-width: 40ch; color: var(--ink-soft); }
.heroBtns { display: flex; flex-wrap: wrap; gap: 10px; }

.define { margin-top: clamp(28px, 5vw, 58px); padding-top: clamp(20px, 3vw, 32px); padding-left: clamp(0px, 13vw, 190px); border-top: 1px solid var(--edge); }
.define .word { font-family: var(--display); font-weight: 600; font-size: clamp(23px, 3.2vw, 36px); letter-spacing: -0.055em; line-height: 1; }
.define .say { font-weight: 600; color: var(--ink-soft); font-size: 14.5px; margin-left: 12px; }
.define .say i { opacity: 0.6; }
.define p { margin: 14px 0 0; font-size: clamp(16px, 1.8vw, 20px); font-weight: 500; max-width: 46ch; color: var(--ink-soft); }
.define p mark { background: transparent; color: var(--coral); font-weight: 600; }

/* ---------- sections ---------- */

section { padding-block: clamp(34px, 5vw, 60px); }
h2 { font-size: clamp(34px, 5.4vw, 68px); line-height: 0.95; margin: 0 0 14px; max-width: 16ch; }
.intro { margin: 0; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-soft); max-width: 50ch; font-weight: 500; }

/* ---------- capability rows ---------- */

.capRow {
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 48px); align-items: center;
  padding-block: clamp(26px, 3.4vw, 44px); border-top: 1px solid var(--edge);
  text-decoration: none; color: inherit;
}

.capRow:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
.capRow:nth-of-type(even) .shot { order: 2; }
.capRow:nth-of-type(even) .say { padding-left: clamp(0px, 3vw, 40px); }

.shot { line-height: 0; width: 100%; }
.shot canvas { width: 100%; height: auto; }

.capRow h3 { font-size: clamp(24px, 3.2vw, 40px); margin: 0 0 12px; line-height: 1; }
.capRow p { margin: 0 0 14px; font-size: clamp(16px, 1.6vw, 18.5px); font-weight: 500; color: var(--ink-soft); max-width: 46ch; }
.capRow .n { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 0.12em; color: var(--solid); display: block; margin-bottom: 10px; }
.capRow .more { font-family: var(--display); font-weight: 500; font-size: 15.5px; color: var(--solid); }
.capRow:hover .more { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 800px) {
  .capRow, .capRow:nth-of-type(even) { grid-template-columns: 1fr; gap: 18px; }
  .capRow:nth-of-type(even) .shot { order: 0; }
  .capRow:nth-of-type(even) .say { padding-left: 0; }
  .shot { max-width: 240px; }
}

/* ---------- diagnostic ---------- */

.diag { text-align: center; }
.diag h2 { margin-inline: auto; max-width: 14ch; }
.symptoms { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px auto 44px; justify-content: center; max-width: 880px; }

.symptoms button {
  font-family: var(--display); font-weight: 500; font-size: 15.5px;
  background: rgba(255, 246, 236, 0.55); color: var(--ink-soft);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--edge); border-radius: 999px;
  padding: 10px 17px; cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.symptoms button:hover { transform: translateY(-2px); color: var(--ink); }
.symptoms button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.answer { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); align-items: center; text-align: left; max-width: 940px; margin-inline: auto; }
#symShape { width: 100%; height: auto; }
.finding { transition: opacity 150ms linear; }
.finding h3 { font-size: clamp(25px, 4vw, 46px); margin: 0 0 24px; max-width: 20ch; line-height: 0.99; }
.finding .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 44px; }
.finding .tag { display: block; font-family: var(--display); font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.finding .tag::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 9px; vertical-align: middle; background: var(--grape); }
.finding .tag.b::before { background: var(--mint); }
.finding p { margin: 0; font-weight: 500; font-size: clamp(16px, 1.6vw, 18.5px); }
.finding .when { margin-top: 24px; font-family: var(--display); font-weight: 500; font-size: 16px; color: var(--ink-soft); }
.finding .when b { color: var(--ink); font-weight: 600; }
.swapping { opacity: 0.12; }

@media (max-width: 860px) { .answer { grid-template-columns: 1fr; gap: 20px; } #symShape { max-width: 170px; } }
@media (max-width: 700px) { .finding .two { grid-template-columns: 1fr; } }

/* ---------- levels ---------- */

.level {
  padding-block: clamp(24px, 3.2vw, 40px); border-top: 1px solid var(--edge);
  display: grid; grid-template-columns: 54px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 32px); align-items: start; max-width: 680px;
}

.level:nth-child(even) { margin-left: auto; }

.stack { display: flex; flex-direction: column-reverse; gap: 5px; }
.stack i { display: block; width: 30px; height: 30px; border-radius: 9px; background: rgba(26, 21, 36, 0.09); }
.stack i.on { background: var(--tone); }

.level .when { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tone); margin-bottom: 10px; }
.level .when::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: var(--tone); }
.level h3 { font-size: clamp(21px, 2.8vw, 32px); margin: 0 0 11px; line-height: 1.03; }
.level p { margin: 0; font-weight: 500; color: var(--ink-soft); font-size: clamp(15.5px, 1.6vw, 18px); max-width: 48ch; }

@media (max-width: 620px) { .level { grid-template-columns: 1fr; gap: 14px; } .stack { flex-direction: row; } }

/* ---------- toy box ---------- */

.toys { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(26px, 3vw, 44px) clamp(20px, 3vw, 40px); }
.toys > *:nth-child(3n+2) { margin-top: clamp(0px, 2.2vw, 30px); }
.toys > *:nth-child(3n+3) { margin-top: clamp(0px, 1.1vw, 14px); }

.toy { text-decoration: none; color: var(--ink); display: block; transition: transform 160ms ease; }
.toy:hover, .toy:focus-visible { transform: translateY(-5px); }
.toy .mark { width: 76px; margin-bottom: 14px; display: block; }
.toy .mark canvas { width: 100%; height: auto; }
.toy .kind { font-family: var(--display); font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.toy .kind::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--solid); }
.toy h3 { font-size: clamp(23px, 2.6vw, 29px); margin: 0 0 8px; line-height: 1; }
.toy p { margin: 0 0 12px; font-size: 15.5px; font-weight: 500; color: var(--ink-soft); }
.toy .go { font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--solid); }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 40px; }
.filters button { font-family: var(--display); font-weight: 500; font-size: 15px; background: transparent; color: var(--ink-soft); border: 1px solid var(--edge); border-radius: 999px; padding: 9px 17px; cursor: pointer; transition: background 140ms ease, color 140ms ease; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- contact ---------- */

.contact { text-align: center; padding-block: clamp(50px, 8vw, 104px); }
.contact h2 { margin: 0 auto 16px; max-width: 14ch; }
.contact p { margin: 0 auto 30px; max-width: 42ch; font-weight: 500; font-size: 18px; color: var(--ink-soft); }
.contact .mail { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 3.2vw, 38px); letter-spacing: -0.05em; text-decoration: none; color: var(--coral); word-break: break-word; display: inline-block; }
.contact .mail:hover { color: var(--ink); }

/* ---------- service pages ---------- */

.svcHero { padding-block: clamp(26px, 5vw, 62px) clamp(20px, 3vw, 34px); display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); align-items: center; }
.svcHero h1 { font-size: clamp(38px, 6.6vw, 82px); line-height: 0.92; letter-spacing: -0.055em; margin: 0 0 16px; }
.svcHero p { margin: 0; font-size: clamp(17px, 1.9vw, 21px); font-weight: 500; color: var(--ink-soft); max-width: 48ch; }
.svcHero .shot canvas { width: 100%; height: auto; }
.back { font-family: var(--display); font-weight: 500; font-size: 14.5px; color: var(--ink-soft); text-decoration: none; display: inline-block; margin-bottom: 16px; }
.back:hover { color: var(--ink); }

@media (max-width: 760px) { .svcHero { grid-template-columns: 1fr; gap: 20px; } .svcHero .shot { max-width: 190px; } }

.demo {
  border: 1px solid var(--edge); border-radius: 26px;
  background: rgba(255, 246, 236, 0.62);
  backdrop-filter: blur(16px) saturate(1.06); -webkit-backdrop-filter: blur(16px) saturate(1.06);
  box-shadow: var(--lift); padding: clamp(22px, 3.4vw, 40px);
}

.demoHead { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.demoHead h3 { margin: 0; font-size: clamp(20px, 2.6vw, 27px); }
.demoHead .hint { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--display); font-weight: 500; font-size: 14.5px;
  border: 1px solid var(--edge); border-radius: 999px; background: transparent;
  color: var(--ink-soft); padding: 8px 15px; cursor: pointer;
  transition: background 130ms ease, color 130ms ease;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"], .chip.on { background: var(--tone, var(--ink)); color: var(--paper); border-color: transparent; }

.field {
  width: 100%; font-family: var(--body); font-size: clamp(17px, 2vw, 22px); font-weight: 600;
  padding: 15px 20px; border-radius: 16px; border: 1px solid var(--edge);
  background: #fff; color: var(--ink);
}
.field::placeholder { color: #B6AFC0; font-weight: 500; }

.results { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.results li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: 13px; background: rgba(255, 255, 255, 0.7); font-weight: 600; }
.results li mark { background: var(--yellow); border-radius: 4px; padding: 0 3px; }
.results .score { font-family: var(--display); font-weight: 500; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.results .none { display: block; text-align: center; color: var(--ink-soft); font-weight: 500; background: transparent; }

.ledger { display: grid; gap: 8px; }
.lineItem { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 13px; background: rgba(255, 255, 255, 0.66); }
.lineItem.off { opacity: 0.45; }
.lineItem .sw { width: 26px; height: 26px; border-radius: 8px; border: 0; cursor: pointer; background: var(--mint); }
.lineItem.off .sw { background: rgba(26, 21, 36, 0.16); }
.lineItem b { font-weight: 600; font-size: 16px; }
.lineItem small { display: block; color: var(--ink-soft); font-weight: 500; font-size: 13.5px; }
.lineItem .cost { font-family: var(--display); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }

.total { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: baseline; justify-content: space-between; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--edge); }
.total .big { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 5vw, 52px); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.total .was { color: var(--ink-soft); font-weight: 600; }
.total .saved { color: var(--mint); font-weight: 600; }

.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.prod { border: 0; background: rgba(255, 255, 255, 0.7); border-radius: 16px; padding: 14px; cursor: pointer; text-align: left; font-family: var(--body); color: var(--ink); transition: transform 130ms ease; }
.prod:hover { transform: translateY(-3px); }
.prod .sq { width: 34px; height: 34px; border-radius: 10px; margin-bottom: 10px; }
.prod b { display: block; font-weight: 600; font-size: 15px; }
.prod span { font-family: var(--display); font-weight: 500; color: var(--ink-soft); font-size: 14px; }

.basket { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--edge); }
.basket ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.basket li { display: flex; justify-content: space-between; gap: 14px; font-weight: 600; }
.basket .empty { color: var(--ink-soft); font-weight: 500; }

.pipeline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.step { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 500; font-size: 14.5px; color: var(--ink-soft); background: rgba(255,255,255,0.6); border-radius: 999px; padding: 8px 15px; }
.step i { width: 11px; height: 11px; border-radius: 4px; background: rgba(26, 21, 36, 0.15); display: block; }
.step.done { color: var(--ink); }
.step.done i { background: var(--mint); }

.inbox { display: grid; gap: 8px; }
.msg { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 16px; border-radius: 13px; background: rgba(255, 255, 255, 0.68); }
.msg b { display: block; font-weight: 600; font-size: 15.5px; }
.msg small { color: var(--ink-soft); font-weight: 500; font-size: 13.5px; }
.msg .verdict { font-family: var(--display); font-weight: 500; font-size: 13px; padding: 5px 12px; border-radius: 999px; white-space: nowrap; background: rgba(26,21,36,0.07); color: var(--ink-soft); }
.msg .verdict.ok { background: var(--mint); color: #08281F; }
.msg .verdict.flag { background: var(--yellow); color: #3A2A00; }

.stages { display: grid; gap: 10px; }
.stageRow { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: center; padding: 13px 16px; border-radius: 13px; background: rgba(255,255,255,0.62); opacity: 0.4; transition: opacity 200ms ease; }
.stageRow.live { opacity: 1; }
.stageRow .dot { width: 26px; height: 26px; border-radius: 9px; background: rgba(26,21,36,0.14); }
.stageRow.live .dot { background: var(--tone); }
.stageRow b { font-weight: 600; font-size: 16px; display: block; }
.stageRow small { color: var(--ink-soft); font-weight: 500; font-size: 14px; }

.game { border-radius: 20px; overflow: hidden; background: #fff; }
.game canvas { width: 100%; height: auto; cursor: pointer; }
.score { display: flex; gap: 22px; margin-top: 16px; font-family: var(--display); font-weight: 500; color: var(--ink-soft); font-size: 15px; }
.score b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.gets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.get h3 { font-size: 21px; margin: 0 0 8px; }
.get p { margin: 0; color: var(--ink-soft); font-weight: 500; font-size: 16px; }
.get .rule { width: 26px; height: 3px; border-radius: 2px; background: var(--tone); margin-bottom: 12px; }

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

footer { background: var(--ink); color: var(--paper); margin-top: clamp(20px, 4vw, 46px); position: relative; z-index: 1; }
footer .inner { padding-block: clamp(38px, 5vw, 62px); display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
footer h4 { font-family: var(--display); font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 16px; color: var(--yellow); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a { text-decoration: none; font-weight: 500; opacity: 0.8; }
footer a:hover { opacity: 1; color: var(--yellow); }
footer .fmark { display: flex; align-items: center; gap: 12px; }
footer .fmark svg { flex: none; display: block; }
footer .fword { font-family: var(--display); font-weight: 600; font-size: 25px; letter-spacing: -0.055em; }
footer .blurb { font-weight: 500; opacity: 0.72; margin: 14px 0 0; max-width: 36ch; font-size: 15px; }
footer .base { border-top: 1px solid rgba(255, 246, 236, 0.15); padding-block: 20px 34px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-size: 13.5px; opacity: 0.64; font-weight: 500; }
footer .base p { margin: 0; max-width: 62ch; }

@media (max-width: 860px) { footer .inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { footer .inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .btn, .toy, .symptoms button, .filters button, .finding, .prod, .stageRow { transition: none; }
  .toys > *:nth-child(n) { margin-top: 0; }
}

/* ---------- what we do on this, long lists ---------- */

.does { display: grid; grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); gap: 11px clamp(22px, 3vw, 44px); margin: 30px 0 0; padding: 0; }
.does li { list-style: none; display: flex; gap: 12px; align-items: baseline; font-weight: 500; font-size: 16.5px; }
.does li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--tone); flex: none; }

/* ---------- integrations bridge ---------- */

.bridge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 130px) minmax(0, 1fr); gap: clamp(10px, 2vw, 22px); align-items: center; }
.side { background: rgba(255, 255, 255, 0.66); border-radius: 18px; padding: 16px; }
.sideName { display: block; font-family: var(--display); font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; min-height: 152px; }
.recs li { font-weight: 600; font-size: 15px; padding: 9px 12px; border-radius: 11px; background: rgba(26, 21, 36, 0.05); transition: opacity 200ms ease, transform 200ms ease; }
.recs li.ghost { opacity: 0.25; }
.recs li.fresh { background: rgba(33, 199, 155, 0.22); }
.span canvas { width: 100%; height: auto; }

@media (max-width: 700px) {
  .bridge { grid-template-columns: 1fr; }
  .span { max-width: 120px; margin-inline: auto; transform: rotate(90deg); }
}

/* ---------- header nav with a services menu ---------- */

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.navItem { position: relative; }

.navBtn {
  font-family: var(--display); font-weight: 500; font-size: 15.5px;
  background: transparent; border: 0; cursor: pointer; color: var(--ink);
  padding: 10px 15px; border-radius: 999px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
  transition: background 140ms ease, color 140ms ease;
}

.navBtn:hover, .navBtn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.navBtn .chev { width: 9px; height: 9px; border-radius: 2px; background: var(--coral); transition: transform 200ms cubic-bezier(.34,1.56,.64,1); }
.navBtn[aria-expanded="true"] .chev { transform: translateY(4px); }

.menu {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 50;
  width: min(92vw, 430px);
  background: rgba(255, 246, 236, 0.92);
  backdrop-filter: blur(20px) saturate(1.1); -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid var(--edge); border-radius: 24px;
  box-shadow: var(--lift-hi); padding: 9px;
}

.menu[hidden] { display: none; }
.menu > a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 13px; align-items: center; padding: 11px 12px; border-radius: 16px; text-decoration: none; }
.menu > a:hover, .menu > a[aria-current="page"] { background: rgba(26, 21, 36, 0.06); }
.menu .sq { width: 22px; height: 22px; border-radius: 7px; background: var(--tone); }
.menu b { font-family: var(--display); font-weight: 600; font-size: 16.5px; display: block; letter-spacing: -0.02em; }
.menu small { color: var(--ink-soft); font-weight: 500; font-size: 13.5px; display: block; }
.menu .more { margin-top: 7px; padding: 16px 13px 14px; border-top: 1px solid var(--edge); }
.menu .more b { margin-bottom: 5px; }
.menu .ask { display: inline-block; margin-top: 11px; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--coral); text-decoration: none; }
.menu .ask:hover { color: var(--ink); }

@media (max-width: 560px) {
  .navBtn { padding: 9px 12px; font-size: 14.5px; }
  .menu { right: auto; left: 0; }
}

/* ---------- clients ---------- */

.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(22px, 3vw, 44px); margin-top: 34px; }
.client { border-top: 3px solid var(--tone); padding-top: 18px; }
.client .years { display: inline-block; font-family: var(--display); font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tone); margin-bottom: 10px; }
.client h3 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 10px; line-height: 1.05; }
.client p { margin: 0; font-weight: 500; color: var(--ink-soft); font-size: 16.5px; }

/* ---------- speed race ---------- */

.race { display: grid; gap: 14px; }
.lane { display: grid; grid-template-columns: 74px minmax(0, 1fr) 84px; gap: 14px; align-items: center; }
.laneName { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.track { height: 26px; border-radius: 13px; background: rgba(26, 21, 36, 0.07); position: relative; overflow: hidden; }
.runner { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 13px; background: var(--coral); }
#laneAfter .runner { background: var(--mint); }
.clock { font-family: var(--display); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; text-align: right; }

@media (max-width: 560px) { .lane { grid-template-columns: 60px minmax(0, 1fr) 70px; gap: 10px; } }

/* ---------- client case rows ---------- */

.caseRow { padding-block: clamp(26px, 3.4vw, 46px); border-top: 1px solid var(--edge); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3.4vw, 52px); align-items: start; }
.caseKind { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tone); margin-bottom: 12px; }
.caseKind::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--tone); }
.caseRow h2 { font-size: clamp(26px, 3.6vw, 42px); margin: 0 0 12px; }
.caseRow .does { margin-top: 0; }

@media (max-width: 800px) { .caseRow { grid-template-columns: 1fr; gap: 18px; } }

.toy .more { font-size: 15px; color: var(--ink-soft); font-weight: 500; margin: 0 0 12px; }

/* ---------- legal and long form prose ---------- */

.prose { max-width: 68ch; }
.prose .updated { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 30px; }
.prose h2 { font-size: clamp(22px, 2.8vw, 30px); margin: 38px 0 12px; max-width: none; line-height: 1.1; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose b { font-weight: 600; }
.plainList { margin: 0 0 16px; padding: 0; display: grid; gap: 11px; }
.plainList li { list-style: none; display: flex; gap: 12px; align-items: baseline; }
.plainList li::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--grape); flex: none; }

/* ---------- audit fixes: mobile overflow, heading levels, tap targets ---------- */

.demoHead h2 { font-size: clamp(20px, 2.6vw, 27px); margin: 0; max-width: none; line-height: 1.12; }
footer h2.fcol { font-family: var(--display); font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 16px; color: var(--yellow); max-width: none; line-height: 1.3; }
footer ul a { display: inline-block; padding-block: 3px; }

@media (max-width: 720px) {
  #rebuildWrap { grid-template-columns: 1fr !important; }
  #rebuildShape { max-width: 230px; }
}

/* ---------- mobile menu ---------- */

.lblNarrow, .menuExtra { display: none; }

@media (max-width: 760px) {
  .topbar { padding-block: 16px; }
  .logo .word { font-size: 22px; }
  .logo svg { width: 34px; height: 34px; }
  .wideOnly { display: none; }
  .lblWide { display: none; }
  .lblNarrow { display: inline; }

  .navBtn#svcBtn { background: var(--ink); color: var(--paper); padding: 11px 18px; }
  .navBtn#svcBtn .chev { background: var(--yellow); }

  .menu {
    position: fixed; left: 10px; right: 10px; width: auto;
    top: calc(env(safe-area-inset-top, 0px) + 74px);
    max-height: calc(100vh - env(safe-area-inset-top, 0px) - 92px);
    overflow-y: auto; border-radius: 22px; padding: 8px;
  }

  .menuExtra { display: grid; margin-top: 7px; padding-top: 9px; border-top: 1px solid var(--edge); }
  .menuExtra a {
    display: block; padding: 13px 12px; border-radius: 14px; text-decoration: none;
    font-family: var(--display); font-weight: 600; font-size: 16.5px; letter-spacing: -0.02em;
  }
  .menuExtra a:hover { background: rgba(26, 21, 36, 0.06); }
  .menu .more small { font-size: 14px; }
}

/* service page heroes read better stacked sooner */
@media (max-width: 860px) {
  .svcHero { grid-template-columns: 1fr; gap: 18px; }
  .svcHero .shot { max-width: 170px; }
  .svcHero h1 { font-size: clamp(34px, 8.4vw, 54px); }
}

/* ---------- phones: drop the desktop indent and tighten the illustrations ---------- */

@media (max-width: 760px) {
  .hero { padding-block: 22px 34px; }
  .hero h1 { font-size: clamp(46px, 13vw, 62px); line-height: 0.9; }
  .hero h1 .two,
  .heroFoot,
  .define { padding-left: 0; }
  .heroFoot { margin-top: 24px; }
  .heroFoot p { font-size: 17.5px; margin-bottom: 22px; }
  .heroBtns { display: grid; gap: 9px; }
  .heroBtns .btn { text-align: center; }

  .shot { max-width: 168px; }
  .capRow { padding-block: 26px; gap: 16px; }
  .capRow h3 { font-size: 26px; }
  h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .define { margin-top: 26px; padding-top: 20px; }
  .define .word { font-size: 26px; }
  section { padding-block: 32px; }
  .contact { padding-block: 44px; }
  .toy .mark { width: 62px; }
  .does li { font-size: 16px; }
}

/* ---------- accessible text colours ----------
   The bright palette is for shapes. Coral, mint and yellow fail contrast as text
   on paper, so anything readable uses the darkened pair instead. */

:root {
  --blue-text: #2B57C9;
  --coral-text: #C0304F;
  --mint-text: #0E7A5F;
  --amber-text: #8A6200;
  --grape-text: #6A3BD6;
}

.skip {
  position: absolute; left: 10px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 0 0 14px 14px; text-decoration: none;
  transition: top 140ms ease;
}

.skip:focus { top: 0; }

.capRow .n, .capRow .more, .toy .go, .item .go { color: var(--solid-text, var(--ink-soft)); }
.level .when, .caseKind { color: var(--tone-text, var(--ink-soft)); }
.contact .mail { color: var(--coral-text); }
.contact .mail:hover { color: var(--ink); }
.prose a { color: var(--blue-text); }
.menu .ask { color: var(--coral-text); }
.define p mark { color: var(--coral-text); }
.results li mark { background: #FFE9A8; }
.total .saved { color: var(--mint-text); }
.msg .verdict.ok { background: #BFEEDF; color: #08281F; }
.msg .verdict.flag { background: #FFE6A6; color: #4A3600; }
.recs li.fresh { background: #C9F0E3; }
.inlineLink { color: var(--coral-text); font-weight: 600; text-decoration: none; }
.inlineLink:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- demo controls: selected states need readable text too ---------- */

.chip[aria-pressed="true"], .chip.on { background: var(--tone-text, var(--ink)); color: var(--paper); }
.msg .verdict { background: rgba(26, 21, 36, 0.08); color: #4A4453; }
.recs li { color: var(--ink); }
.recs li.ghost { opacity: 0.45; }

/* ---------- the robot ---------- */

.botWrap { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 46px); align-items: start; }
.botStage { position: sticky; top: 20px; }
.botStage canvas { width: 100%; height: auto; cursor: pointer; }
.botHint { margin: 6px 0 0; font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-soft); text-align: center; }

@media (max-width: 800px) {
  .botWrap { grid-template-columns: 1fr; }
  .botStage { position: static; max-width: 210px; margin-inline: auto; }
}

/* ---------- the line ---------- */

.line { border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, 0.5); }
.line canvas { width: 100%; height: auto; display: block; }
.tallies { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 22px; }
.tally { display: flex; flex-direction: column; gap: 4px; }
.tally b { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tally span { font-weight: 500; font-size: 14.5px; color: var(--ink-soft); }
.lineNote { margin: 22px 0 0; font-weight: 500; color: var(--ink-soft); font-size: 15.5px; max-width: 62ch; }

/* ---------- a bigger mark, and bigger again on a phone ---------- */

.logo { gap: 15px; }
.logo .word { font-size: 30px; letter-spacing: -0.06em; }
.logo .sub { font-size: 12.5px; }
footer .fword { font-size: 29px; }

@media (max-width: 760px) {
  .logo svg { width: 46px; height: 46px; }
  .logo .word { font-size: 27px; }
  .logo .sub { font-size: 11px; letter-spacing: 0.07em; }
}

@media (max-width: 420px) {
  .logo svg { width: 42px; height: 42px; }
  .logo .word { font-size: 25px; }
  .logo { gap: 11px; }
}
