/* ============================================================
   Judgy — marketing site
   Direction: "the comment card, reborn" — the page borrows the
   restaurant's own printed matter: comment cards, menu dot
   leaders, a guest check, an awning stripe.
   ============================================================ */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/figtree-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/caveat-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #fffcf7;
  --card: #ffffff;
  --card-edge: #eee5d4;
  --ink: #211d16;
  --ink-soft: #6e6659;
  --rule: #ddd3bf;
  --judgy: #f15a24;
  --judgy-deep: #c53e0e;
  --judgy-tint: #faeee4;
  --awning: #1e4433;
  --awning-deep: #142f21;
  --cream: #f4efe2;
  --star-off: #e6dcc8;
  --radius: 10px;
  --max: 1120px;
  --header-h: 72px;
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;
  --mono: "IBM Plex Mono", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* keep the page horizontally fixed on touch devices; `clip` (where
     supported) avoids creating a scroll container, `hidden` is the fallback */
  overflow-x: hidden;
  overflow-x: clip;
  /* stop iOS/Android from inflating text on rotation */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-weight: 600;
  transform: translateY(-64px);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  padding: 0 clamp(16px, 4vw, 44px);
  background: var(--paper);
  border-bottom: 1px solid var(--card-edge);
  transition: box-shadow 200ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(46, 36, 20, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.brand-logo {
  display: block;
  width: 108px;
  height: auto;
  overflow: visible;
}

.brand-logo .logo-orange {
  fill: var(--judgy);
}

.brand-logo .logo-black {
  fill: var(--ink);
}

.site-nav {
  justify-self: center;
  display: flex;
  gap: clamp(6px, 2vw, 26px);
}

.site-nav a {
  padding: 6px 4px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--judgy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-of-type {
  transform: translateY(-3.5px) rotate(-45deg);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button-solid {
  background: var(--judgy);
  color: var(--ink);
}

.button-solid:hover,
.button-solid:focus-visible {
  background: #ff7a44;
}

.button-ghost {
  border-color: var(--rule);
  color: var(--ink);
  background: transparent;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--ink);
}

.button-quiet {
  color: var(--ink);
  background: transparent;
  font-weight: 700;
}

.button-quiet::after {
  content: "→";
  margin-left: 8px;
  color: var(--judgy);
  transition: transform 160ms ease;
}

.button-quiet:hover::after,
.button-quiet:focus-visible::after {
  transform: translateX(4px);
}

.button-large {
  min-height: 50px;
  padding: 0 24px;
  font-size: 1rem;
}

/* ---------- shared section bits ---------- */

.section-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

h1,
h2,
h3,
p,
dl {
  margin: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.7rem, 5.8vw, 4.4rem);
  margin-bottom: 22px;
}

h1 em {
  font-style: normal;
  color: var(--judgy);
  text-decoration: underline wavy var(--judgy) 3px;
  text-underline-offset: 8px;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 18px;
}

h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--judgy-deep);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.section-heading {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.06rem;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--judgy-deep);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-lede {
  max-width: 540px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.88rem;
}

.offer-price {
  color: var(--judgy-deep);
  font-weight: 600;
}

.offer-note {
  color: var(--ink-soft);
}

/* the signature: a comment card that fills itself in */

.hero-stage {
  position: relative;
  margin: 0;
  display: grid;
  justify-items: center;
}

.comment-card {
  position: relative;
  width: min(420px, 100%);
  padding: 26px 28px 30px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 12px;
}

.card-front {
  box-shadow: 0 24px 60px rgba(46, 36, 20, 0.14);
  transform: rotate(0.8deg);
  transition: opacity 380ms ease, transform 380ms ease;
}

.card-stack {
  position: relative;
  width: min(420px, 100%);
}

.card-stack .comment-card {
  width: 100%;
}

.card-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fdf6e9;
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  transform: rotate(-2.6deg) translateY(6px);
  box-shadow: 0 14px 34px rgba(46, 36, 20, 0.08);
}

.card-front.card-swap {
  opacity: 0;
  transform: rotate(0.8deg) translateY(-14px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-question {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 16px;
}

.card-stars {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--star-off);
}

.card-stars .star {
  transition: color 120ms ease, transform 120ms ease;
}

.card-stars .star.lit {
  color: var(--judgy);
  animation: starPop 320ms cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes starPop {
  0% {
    transform: scale(0.5) rotate(-14deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.card-prompt {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-note {
  min-height: 108px;
  padding-top: 2px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 35px,
    var(--rule) 35px,
    var(--rule) 36px
  );
  font-family: var(--hand);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 36px;
  color: var(--ink);
}

.card-caret {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--judgy);
  animation: caretBlink 1s steps(1) infinite;
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

.card-stamp {
  position: absolute;
  right: 22px;
  bottom: 18px;
  padding: 6px 10px;
  border: 2px solid var(--judgy-deep);
  border-radius: 5px;
  color: var(--judgy-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: rotate(-7deg);
  opacity: 0.9;
}

.card-stamp.stamp-in {
  animation: stampIn 340ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes stampIn {
  0% {
    opacity: 0;
    transform: rotate(-7deg) scale(1.7);
  }

  100% {
    opacity: 0.9;
    transform: rotate(-7deg) scale(1);
  }
}

.hero-stage-caption {
  margin-top: 26px;
  max-width: 380px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: center;
}

/* ---------- features as a menu ---------- */

.menu-section {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 100px);
  border-top: 1px solid var(--card-edge);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(26px, 4vw, 40px) clamp(36px, 5vw, 72px);
}

.menu-item-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.menu-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
}

.menu-leader {
  flex: 1;
  min-width: 24px;
  border-bottom: 2px dotted var(--rule);
  transform: translateY(-5px);
}

.menu-tag {
  color: var(--judgy-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.menu-item p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  max-width: 52ch;
}

/* ---------- placement ---------- */

.placement-section {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 120px);
}

.placement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.placement-card {
  margin: 0;
  padding: 12px 12px 6px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(46, 36, 20, 0.07);
}

.placement-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.placement-card figcaption {
  padding: 14px 6px 10px;
}

.placement-tag {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--judgy-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.placement-card figcaption p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- dashboard band ---------- */

.dashboard-band {
  position: relative;
  padding: clamp(72px, 10vw, 124px) 0;
  background: var(--awning);
  color: var(--cream);
}

.dashboard-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--judgy) 0 36px,
    var(--paper) 36px 72px
  );
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.dashboard-band .section-kicker {
  color: var(--cream);
  opacity: 0.75;
}

.dashboard-copy p {
  max-width: 520px;
  color: rgba(244, 239, 226, 0.82);
  font-size: 1.05rem;
}

.dashboard-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(244, 239, 226, 0.6);
}

.service-log {
  padding: 24px 26px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  color: var(--ink);
}

.log-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.log-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
}

.log-avg {
  color: var(--judgy-deep);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.log-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.log-rows li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 0;
}

.log-day {
  font-weight: 600;
  font-size: 0.97rem;
}

.log-leader {
  flex: 1;
  min-width: 20px;
  border-bottom: 2px dotted var(--rule);
  transform: translateY(-4px);
}

.log-count {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.84rem;
}

.log-stars {
  min-width: 52px;
  text-align: right;
  color: var(--judgy-deep);
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 600;
}

.log-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 2px dashed var(--rule);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- workflow ---------- */

.workflow-section {
  padding: clamp(64px, 9vw, 120px) 0;
}

/* The steps as a carousel of real product screenshots. The track is a
   scroll-snap strip, so it swipes natively on touch and degrades to a plain
   horizontal scroller without JS; arrows and dots are wired in script.js. */

.hiw-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  column-gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline-offset: 4px;
}

.hiw-track::-webkit-scrollbar {
  display: none;
}

.hiw-slide {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(22px, 3.5vw, 44px);
  align-items: center;
  padding: clamp(18px, 3vw, 34px);
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 24px 50px -38px rgba(33, 29, 22, 0.4);
}

/* browser-chrome frame around the desktop screenshots */
.hiw-browser {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-edge);
  background: var(--ink);
  box-shadow: 0 20px 44px -26px rgba(33, 29, 22, 0.45);
}

.hiw-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
}

.hiw-b-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #57503f;
}

.hiw-b-dot:first-child {
  background: var(--judgy);
}

.hiw-url {
  margin-left: 10px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #cfc7ba;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.hiw-shot {
  position: relative;
  background: var(--paper);
}

.hiw-shot img {
  width: 100%;
  height: auto;
}

/* phone frame for the guest-form slide */
.hiw-media-phone {
  display: flex;
  justify-content: center;
}

.hiw-phone {
  width: min(42%, 206px);
  padding: 9px;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: 0 20px 44px -26px rgba(33, 29, 22, 0.45);
}

.hiw-phone .hiw-shot {
  border-radius: 20px;
  overflow: hidden;
}

/* numbered callout pins over the screenshots, echoed by the caption notes */
.hiw-pin,
.hiw-note-n {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--judgy);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
}

.hiw-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(255, 252, 247, 0.9), 0 5px 12px rgba(33, 29, 22, 0.35);
}

.hiw-step {
  margin: 0 0 10px;
  color: var(--judgy-deep);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hiw-step span {
  color: var(--ink-soft);
}

.hiw-caption h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.15;
}

.hiw-caption > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.hiw-notes {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 2px dashed var(--rule);
  display: grid;
  gap: 10px;
}

.hiw-notes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
}

.hiw-note-n {
  flex: none;
  margin-top: 2px;
  width: 21px;
  height: 21px;
}

.hiw-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 22px);
  margin-top: 24px;
}

.hiw-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.hiw-arrow:hover:not(:disabled),
.hiw-arrow:focus-visible {
  background: var(--judgy);
  border-color: var(--judgy);
}

.hiw-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.hiw-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hiw-dot-btn {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1.5px solid var(--judgy-deep);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: width 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.hiw-dot-btn[aria-current="true"] {
  width: 28px;
  background: var(--judgy);
  border-color: var(--judgy);
}

/* ---------- devices: the same dashboard, every screen ----------
   A CSS-built device trio (desktop, laptop, phone). The screens
   reproduce the real app dashboard, so the on-screen palette below
   deliberately uses the product's own colors, not the site tokens. */

.devices-section {
  padding: 0 0 clamp(40px, 6vw, 72px);
}

.device-stage {
  margin: 0;
}

.device-scene {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 100 / 52;
  background: linear-gradient(180deg, #f8f3e8, var(--cream));
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  overflow: hidden;
  --app-bg: #ffffff;
  --app-ink: #171717;
  --app-graphite: #2a2926;
  --app-muted: #6d6a62;
  --app-line: #ece8e1;
  --app-orange: #ff6a00;
  --app-orange-strong: #ff4d00;
  --app-orange-soft: #fff1e7;
  --alu: #ded7c6;
  --alu-deep: #cbc3ae;
  --bezel: #26221a;
}

.device {
  position: absolute;
}

/* desktop */

.device-imac {
  left: 50%;
  top: 3.5cqw;
  width: 56cqw;
  transform: translateX(-50%);
  z-index: 1;
  filter: drop-shadow(0 1.6cqw 2.8cqw rgba(46, 36, 20, 0.2));
}

.imac-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 0.9cqw solid var(--bezel);
  border-bottom: 0;
  border-radius: 1.2cqw 1.2cqw 0 0;
  background: var(--app-bg);
  overflow: hidden;
}

.imac-chin {
  height: 3.2cqw;
  background: linear-gradient(180deg, #ece5d4, var(--alu));
  border-radius: 0 0 1.2cqw 1.2cqw;
}

.imac-neck {
  width: 6cqw;
  height: 4.8cqw;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--alu-deep), var(--alu));
}

.imac-foot {
  width: 16cqw;
  height: 1.1cqw;
  margin: 0 auto;
  background: var(--alu-deep);
  border-radius: 0.5cqw 0.5cqw 0.9cqw 0.9cqw;
}

/* keyboard + mouse under the monitor */

.device-keyboard {
  position: absolute;
  left: 50%;
  bottom: 2.6cqw;
  width: 26cqw;
  height: 2.4cqw;
  transform: translateX(-46%);
  background: linear-gradient(180deg, #f0e9d8, var(--alu));
  border-radius: 0.7cqw;
  box-shadow: 0 0.7cqw 1.4cqw rgba(46, 36, 20, 0.14);
  z-index: 1;
}

.device-keyboard::before {
  content: "";
  position: absolute;
  inset: 0.45cqw 0.6cqw;
  background: repeating-linear-gradient(
    90deg,
    rgba(46, 36, 20, 0.1) 0 1.1cqw,
    transparent 1.1cqw 1.4cqw
  );
  border-radius: 0.3cqw;
  opacity: 0.55;
}

.device-mouse {
  position: absolute;
  left: calc(50% + 16.5cqw);
  bottom: 2.7cqw;
  width: 3.6cqw;
  height: 2.2cqw;
  background: linear-gradient(180deg, #f0e9d8, var(--alu-deep));
  border-radius: 1.8cqw 1.8cqw 1.4cqw 1.4cqw;
  box-shadow: 0 0.6cqw 1.2cqw rgba(46, 36, 20, 0.16);
  z-index: 1;
}

/* laptop */

.device-laptop {
  left: 0.5cqw;
  bottom: 2.2cqw;
  width: 39cqw;
  z-index: 2;
  filter: drop-shadow(0 1.4cqw 2.4cqw rgba(46, 36, 20, 0.22));
}

.laptop-screen {
  position: relative;
  margin: 0 2.6cqw;
  aspect-ratio: 16 / 10;
  border: 0.8cqw solid var(--bezel);
  border-bottom-width: 1cqw;
  border-radius: 1.3cqw 1.3cqw 0 0;
  background: var(--app-bg);
  overflow: hidden;
}

.laptop-base {
  position: relative;
  height: 1.5cqw;
  background: linear-gradient(180deg, #f0e9d8, var(--alu-deep));
  border-radius: 0.4cqw 0.4cqw 1.4cqw 1.4cqw;
}

.laptop-base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 6cqw;
  height: 0.55cqw;
  transform: translateX(-50%);
  background: rgba(46, 36, 20, 0.18);
  border-radius: 0 0 0.8cqw 0.8cqw;
}

/* phone */

.device-phone {
  right: 11cqw;
  bottom: 2.2cqw;
  width: 11.6cqw;
  z-index: 3;
  filter: drop-shadow(0 1.2cqw 2.2cqw rgba(46, 36, 20, 0.24));
}

.phone-body {
  position: relative;
  aspect-ratio: 10 / 20.4;
  border: 0.55cqw solid var(--bezel);
  border-radius: 1.9cqw;
  background: var(--app-bg);
  overflow: hidden;
}

.phone-body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.5cqw;
  width: 3.6cqw;
  height: 0.8cqw;
  transform: translateX(-50%);
  background: var(--bezel);
  border-radius: 999px;
  z-index: 1;
}

/* the app itself, at miniature scale (all inner sizes in em) */

.app-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 106, 0, 0.08), transparent 32%),
    linear-gradient(245deg, rgba(20, 169, 148, 0.05), transparent 34%),
    linear-gradient(90deg, rgba(255, 106, 0, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 106, 0, 0.04) 1px, transparent 1px),
    var(--app-bg);
  background-size: auto, auto, 4.5em 4.5em, 4.5em 4.5em;
  color: var(--app-ink);
  font-family: var(--body);
  line-height: 1.35;
}

.imac-screen .app-ui {
  font-size: 1.05cqw;
}

.laptop-screen .app-ui {
  font-size: 0.9cqw;
}

.app-ui-phone {
  font-size: 0.8cqw;
}

.wapp-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.8em;
  padding: 0.55em 1.1em;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 0.08em solid var(--app-line);
}

.wapp-logo {
  display: block;
  flex: none;
  width: 4.6em;
  height: auto;
}

.wapp-logo .logo-orange {
  fill: var(--judgy);
}

.wapp-logo .logo-black {
  fill: var(--app-ink);
}

.wapp-nav {
  display: flex;
  gap: 0.25em;
  margin-left: auto;
  padding: 0.25em;
  color: var(--app-muted);
  background: rgba(255, 255, 255, 0.68);
  border: 0.08em solid var(--app-line);
  border-radius: 0.55em;
  white-space: nowrap;
}

.wapp-nav-pill {
  padding: 0.4em 0.9em;
  border-radius: 0.45em;
  font-size: 0.74em;
  font-weight: 600;
}

.wapp-nav-pill.is-on {
  color: var(--app-orange-strong);
  background: var(--app-orange-soft);
}

.wapp-logout {
  padding: 0.5em 0.9em;
  color: var(--app-graphite);
  background: #ffffff;
  border: 0.08em solid var(--app-line);
  border-radius: 0.55em;
  font-size: 0.74em;
  font-weight: 700;
  white-space: nowrap;
}

.wapp-body {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  min-height: 0;
  padding: 1em 1.2em;
}

/* overflowing screens crop at the bezel instead of squashing rows */
.wapp-body > * {
  flex: none;
}

.wapp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--app-orange-strong);
  font-size: 0.66em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wapp-eyebrow::before {
  content: "";
  width: 2em;
  height: 0.18em;
  background: var(--app-orange);
  box-shadow: 0 0 0.9em rgba(255, 106, 0, 0.7);
}

.wapp-title {
  overflow: hidden;
  font-size: 1.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wapp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.08em;
  margin: 0.2em 0 0.25em;
  overflow: hidden;
  background: var(--app-line);
  border: 0.08em solid var(--app-line);
  border-radius: 0.55em;
}

.wapp-stats-stack {
  grid-template-columns: 1fr;
}

.wapp-stat {
  position: relative;
  display: grid;
  gap: 0.2em;
  padding: 0.8em 0.9em;
  background: #ffffff;
}

.wapp-stat::after {
  content: "";
  position: absolute;
  right: 0.8em;
  bottom: 0.8em;
  width: 1.6em;
  height: 0.16em;
  background: var(--app-orange);
  box-shadow: 0 0 0.8em rgba(255, 106, 0, 0.65);
}

.wapp-stat-value {
  font-size: 1.45em;
  font-weight: 800;
  line-height: 1;
}

.wapp-stat-label {
  color: var(--app-muted);
  font-size: 0.7em;
}

.wapp-crumbs {
  display: flex;
  gap: 0.5em;
  overflow: hidden;
  color: var(--app-muted);
  font-size: 0.72em;
  font-weight: 600;
  white-space: nowrap;
}

.wapp-crumb-link {
  color: var(--app-orange-strong);
  font-weight: 700;
}

.wapp-crumb-sep {
  color: var(--app-line);
}

.wapp-crumb-here {
  overflow: hidden;
  color: var(--app-ink);
  text-overflow: ellipsis;
}

.wapp-row {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.75em 1em;
  background: rgba(255, 255, 255, 0.88);
  border: 0.08em solid var(--app-line);
  border-radius: 0.55em;
  box-shadow: 0 0.5em 1.6em rgba(28, 25, 21, 0.05);
}

.wapp-row-main {
  display: grid;
  flex: 1;
  gap: 0.12em;
  min-width: 0;
}

.wapp-row-title {
  overflow: hidden;
  font-size: 0.85em;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wapp-row-sub {
  color: var(--app-muted);
  font-size: 0.72em;
  white-space: nowrap;
}

.wapp-pill {
  flex: none;
  padding: 0.4em 0.75em;
  color: var(--app-orange-strong);
  background: var(--app-orange-soft);
  border-radius: 999px;
  font-size: 0.68em;
  font-weight: 800;
  white-space: nowrap;
}

.wapp-arrow {
  color: var(--app-orange);
  font-weight: 800;
}

.wapp-card {
  position: relative;
  display: grid;
  gap: 0.55em;
  padding: 1em 1.1em;
  background: rgba(255, 255, 255, 0.9);
  border: 0.08em solid var(--app-line);
  border-radius: 0.55em;
  box-shadow: 0 0.6em 1.9em rgba(28, 25, 21, 0.06);
}

.wapp-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1em;
  width: 3.2em;
  height: 0.18em;
  background: linear-gradient(90deg, var(--app-orange), transparent);
  box-shadow: 0 0 0.9em rgba(255, 106, 0, 0.65);
}

.wapp-answer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6em;
}

.wapp-answer-block {
  display: grid;
  gap: 0.25em;
}

.wapp-atitle {
  color: var(--app-muted);
  font-size: 0.66em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wapp-stars {
  color: var(--app-orange);
  font-size: 0.8em;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.wapp-stars .off {
  color: var(--app-line);
}

.wapp-quote {
  color: var(--app-graphite);
  font-size: 0.8em;
  font-style: italic;
  line-height: 1.45;
}

.wapp-time {
  color: var(--app-muted);
  font-size: 0.64em;
  text-align: right;
}

/* phone-size adjustments */

.app-ui-phone .wapp-bar {
  padding: 1.8em 0.9em 0.6em;
}

.app-ui-phone .wapp-logo {
  width: 4em;
}

.app-ui-phone .wapp-logout {
  margin-left: auto;
}

.wapp-nav-scroll {
  flex: none;
  margin: 0.55em 0.9em 0;
  overflow: hidden;
}

.app-ui-phone .wapp-body {
  gap: 0.55em;
  padding: 0.8em 0.9em;
}

.app-ui-phone .wapp-title {
  font-size: 1.25em;
}

.app-ui-phone .wapp-stat {
  padding: 0.6em 0.8em;
}

.device-caption {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: center;
}

.device-cta {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: clamp(40px, 6vw, 72px);
}

.device-cta-note {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- coverage band: the neon USA sign ---------- */

.coverage-band {
  --neon-core: #ffe3c8;
  --neon-mid: #ffa068;
  position: relative;
  padding: clamp(72px, 10vw, 124px) 0;
  background:
    radial-gradient(
      ellipse 62% 52% at 50% 58%,
      rgba(241, 90, 36, 0.13),
      transparent 70%
    ),
    var(--awning-deep);
  color: var(--cream);
}

/* one stretched neon tube as the top edge */
.coverage-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--judgy) 18%,
    var(--judgy) 82%,
    transparent
  );
  box-shadow: 0 0 12px rgba(241, 90, 36, 0.55);
}

.coverage-band .section-kicker {
  color: var(--cream);
  opacity: 0.75;
}

.coverage-band .section-sub {
  color: rgba(244, 239, 226, 0.82);
}

.usa-sign {
  margin: 0 auto;
  width: min(100%, 880px);
}

.usa-map {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.map-fill {
  fill: rgba(241, 90, 36, 0.05);
}

/* the halo's blur lives in the SVG itself (feGaussianBlur) — CSS filters
   on inner SVG elements are the WebKit bug that blanked this sign on iOS */
.map-halo use {
  fill: none;
  stroke: var(--judgy);
  stroke-linejoin: round;
  stroke-linecap: round;
}

.halo-outline {
  stroke-width: 9;
  opacity: 0.55;
}

.halo-borders {
  stroke-width: 6;
  opacity: 0.35;
}

.map-tubes use {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.tube-borders {
  stroke: var(--neon-mid);
  stroke-width: 1.7;
  opacity: 0.92;
}

.tube-outline {
  stroke: var(--neon-core);
  stroke-width: 2.6;
}

/* no drop-shadow here: iOS Safari mangles CSS filters on SVG groups
   (dots vanish, only the halo blur survives) — the glow is a rim stroke */
.map-cities circle {
  fill: #fff3e4;
  stroke: rgba(241, 90, 36, 0.6);
  stroke-width: 1.5;
}

/* dot radius is set via SVG attributes + script.js (sizeMapDots), never
   CSS `r`: WebKit doesn't support the geometry properties, r computes 0
   and every dot silently vanishes on iOS */

/* switch-on: the sign sputters alive when scrolled into view */
.usa-sign.will-reveal {
  transform: none;
  transition-duration: 60ms; /* no slide — the flicker carries the entrance */
}

.usa-sign.is-visible .map-neon {
  animation: neonFlicker 1.15s linear 1 both;
}

.usa-sign.is-visible .map-cities circle {
  animation: dotIn 0.5s ease-out both;
  animation-delay: calc(1.05s + var(--dot-i, 0) * 110ms);
}

/* a third of the dots keep twinkling once the map is lit */
.usa-sign.is-visible .map-cities circle:nth-child(3n) {
  animation:
    dotIn 0.5s ease-out both,
    dotTwinkle 3.8s ease-in-out infinite;
  animation-delay:
    calc(1.05s + var(--dot-i, 0) * 110ms),
    calc(2.4s + var(--dot-i, 0) * 470ms);
}

/* DOM order is spatially shuffled, so these buckets scatter the wave */
.map-cities circle:nth-child(8n + 2) {
  --dot-i: 1;
}

.map-cities circle:nth-child(8n + 3) {
  --dot-i: 2;
}

.map-cities circle:nth-child(8n + 4) {
  --dot-i: 3;
}

.map-cities circle:nth-child(8n + 5) {
  --dot-i: 4;
}

.map-cities circle:nth-child(8n + 6) {
  --dot-i: 5;
}

.map-cities circle:nth-child(8n + 7) {
  --dot-i: 6;
}

.map-cities circle:nth-child(8n) {
  --dot-i: 7;
}

@keyframes neonFlicker {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 0.9;
  }
  9% {
    opacity: 0.12;
  }
  15% {
    opacity: 0.95;
  }
  19% {
    opacity: 0.3;
  }
  26% {
    opacity: 1;
  }
  32% {
    opacity: 0.45;
  }
  41%,
  100% {
    opacity: 1;
  }
}

@keyframes dotIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes dotTwinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ---------- pricing: the guest check ---------- */

.pricing-section {
  padding: clamp(72px, 10vw, 124px) 0;
  background: var(--judgy-tint);
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.pricing-copy p {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.receipt {
  position: relative;
  justify-self: center;
  width: min(360px, 100%);
  padding: 30px 28px 34px;
  background: #fff;
  transform: rotate(-1deg);
  filter: drop-shadow(0 22px 34px rgba(88, 48, 15, 0.18));
  font-family: var(--mono);
}

.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 12px;
  background:
    linear-gradient(-45deg, transparent 8.4px, #fff 8.5px),
    linear-gradient(45deg, transparent 8.4px, #fff 8.5px);
  background-size: 17px 12px;
  background-repeat: repeat-x;
}

.receipt-logo {
  display: block;
  width: 128px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.receipt-logo .logo-orange {
  fill: var(--judgy);
}

.receipt-logo .logo-black {
  fill: var(--ink);
}

.receipt-sub {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-align: center;
}

.receipt-rule {
  margin: 16px 0;
  border-top: 2px dashed var(--rule);
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 0;
  font-size: 0.92rem;
}

.receipt-line dd {
  margin: 0;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.receipt-total > span:first-child {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.receipt-amount {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.3rem;
  letter-spacing: -0.01em;
}

.receipt-bonus {
  margin-top: 12px;
  padding: 7px 10px;
  background: var(--judgy-tint);
  border-radius: 5px;
  color: var(--judgy-deep);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.receipt-cta {
  width: 100%;
  margin-top: 2px;
}

.receipt-fine {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-align: center;
}

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

.faq-section {
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 128px);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(26px, 4vw, 38px) clamp(36px, 5vw, 72px);
}

.faq-item {
  padding-top: 18px;
  border-top: 2px dotted var(--rule);
}

.faq-item h3 {
  font-size: 1.05rem;
}

.faq-item p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

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

.site-footer {
  padding: clamp(56px, 8vw, 88px) 0 30px;
  background: var(--awning-deep);
  color: var(--cream);
}

.footer-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.footer-motto {
  margin: 0 0 clamp(36px, 6vw, 56px);
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  text-align: center;
  color: var(--judgy);
}

.footer-brand {
  display: grid;
  gap: 12px;
  max-width: 420px;
  margin-bottom: 34px;
}

.footer-brand .brand-logo {
  width: 118px;
}

.site-footer .brand-logo .logo-black {
  fill: var(--cream);
}

.footer-brand p {
  color: rgba(244, 239, 226, 0.66);
  font-size: 0.95rem;
}

.footer-contact a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--judgy);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 26px 0 32px;
  border-top: 1px solid rgba(244, 239, 226, 0.16);
  border-bottom: 1px solid rgba(244, 239, 226, 0.16);
  font-size: 0.9rem;
}

.legal-links a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--judgy);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 22px;
  color: rgba(244, 239, 226, 0.6);
  font-size: 0.88rem;
}

/* ---------- reveal on scroll (classes added by script.js) ---------- */

.will-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .header-actions {
    order: 2;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    background: var(--card);
    border: 1px solid var(--card-edge);
    border-radius: var(--radius);
    box-shadow: 0 18px 44px rgba(46, 36, 20, 0.14);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 10px;
    border-bottom: 0;
    border-radius: 6px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: var(--judgy-tint);
  }

  .hero,
  .dashboard-layout,
  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-stage {
    justify-self: center;
    width: 100%;
    max-width: 480px;
  }

  .hiw-slide {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .hiw-phone {
    width: min(52%, 230px);
  }

  .receipt {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  /* one clear column per card on phones */
  .menu-grid,
  .placement-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hiw-phone {
    width: min(64%, 230px);
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }

  .site-header {
    gap: 12px;
  }

  .header-actions .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .comment-card {
    padding: 22px 20px 26px;
  }

  .card-stamp {
    position: static;
    display: inline-block;
    margin-top: 16px;
  }

  .receipt {
    width: min(340px, 100%);
  }

  /* the 975-unit viewBox renders ~340px wide here — thicken the tubes */
  .tube-borders {
    stroke-width: 2.4;
  }

  .tube-outline {
    stroke-width: 3.4;
  }

  .halo-outline {
    stroke-width: 12;
  }

  /* dots grow here too — handled by sizeMapDots() in script.js (CSS `r`
     is a no-op in WebKit) */

  .footer-bottom {
    flex-direction: column;
  }
}

/* keep BOTH header buttons (Log in + Get started) visible on phones:
   compact everything instead of hiding the ghost button */
@media (max-width: 430px) {
  .brand-logo {
    width: 92px;
  }

  .site-header {
    gap: 8px;
    padding: 0 12px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 350px) {
  .brand-logo {
    width: 78px;
  }

  .header-actions .button {
    padding: 0 8px;
    font-size: 0.78rem;
  }
}

/* ---------- reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .will-reveal {
    opacity: 1;
    transform: none;
  }

  .card-caret {
    display: none;
  }
}

/* ---------- legal pages (terms, privacy, cookies, legal notice) ---------- */

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  border-bottom: 1px solid var(--card-edge);
}

.legal-home-link {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.legal-home-link:hover,
.legal-home-link:focus-visible {
  color: var(--judgy-deep);
}

.legal-page {
  width: min(calc(100% - 40px), 840px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 60px) 0 clamp(70px, 9vw, 110px);
}

.legal-page h1 {
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  margin-bottom: 12px;
}

.legal-updated {
  margin-bottom: 36px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.88rem;
}

.legal-page h2 {
  margin: 46px 0 12px;
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  line-height: 1.18;
}

.legal-page h3 {
  margin: 28px 0 8px;
}

.legal-page p {
  margin: 0 0 14px;
  font-size: 0.98rem;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 16px;
  padding-left: 24px;
  display: grid;
  gap: 8px;
  font-size: 0.98rem;
}

.legal-page a {
  color: var(--judgy-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover,
.legal-page a:focus-visible {
  color: var(--judgy);
}

.legal-notice-box {
  margin: 18px 0 22px;
  padding: 18px 20px;
  background: var(--judgy-tint);
  border: 1px solid var(--card-edge);
  border-left: 4px solid var(--judgy);
  border-radius: var(--radius);
}

.legal-notice-box p {
  margin: 0;
  font-weight: 600;
}

.legal-table-wrap {
  margin: 0 0 16px;
  overflow-x: auto;
}

.legal-page table {
  width: 100%;
  min-width: 620px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-page th,
.legal-page td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--card-edge);
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: var(--cream);
  font-weight: 700;
}

.legal-page address {
  margin: 0 0 14px;
  font-style: normal;
  font-size: 0.98rem;
}

.legal-footer {
  border-top: 1px solid var(--rule);
  padding: 24px 0 34px;
}

.legal-footer-shell {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-footer a {
  color: var(--ink);
  font-weight: 600;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: var(--judgy-deep);
}

@media (max-width: 720px) {
  .legal-footer-shell {
    flex-direction: column;
  }
}

/* ============================================================
   Cookie consent banner (markup injected by cookie-consent.js)
   — a little comment card pinned to the corner of the table.
   ============================================================ */

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 300;
  width: min(430px, calc(100vw - 40px));
}

/* the .button display rules would otherwise defeat the hidden attribute */
.cookie-banner [hidden] {
  display: none !important;
}

.cookie-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(33, 29, 22, 0.24);
  overflow: hidden;
  outline: none;
  animation: cookie-rise 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-card::before {
  /* awning stripe in brand orange */
  content: "";
  display: block;
  height: 7px;
  background: repeating-linear-gradient(
    -45deg,
    var(--judgy) 0 12px,
    var(--judgy-tint) 12px 24px
  );
}

@keyframes cookie-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-card {
    animation: none;
  }
}

.cookie-body {
  padding: 18px 20px 20px;
}

.cookie-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cookie-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cookie-close {
  flex: none;
  margin-right: -6px;
  border: 0;
  background: none;
  padding: 2px 6px;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.cookie-close:hover,
.cookie-close:focus-visible {
  color: var(--judgy-deep);
}

.cookie-text {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.cookie-text a {
  color: var(--judgy-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-prefs {
  margin-top: 14px;
  border-top: 1px dashed var(--rule);
  padding-top: 4px;
}

.cookie-groups {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cookie-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.cookie-group + .cookie-group {
  border-top: 1px dashed var(--rule);
}

.cookie-group-copy {
  display: grid;
  gap: 2px;
}

.cookie-group-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.cookie-group-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.cookie-always-on {
  flex: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--judgy-deep);
  background: var(--judgy-tint);
  border-radius: 999px;
  padding: 4px 10px;
}

.cookie-switch {
  position: relative;
  flex: none;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cookie-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cookie-slider {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--star-off);
  border-radius: 999px;
  transition: background 160ms ease;
}

.cookie-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--card);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(33, 29, 22, 0.3);
  transition: transform 160ms ease;
}

.cookie-switch input:checked + .cookie-slider {
  background: var(--judgy);
}

.cookie-switch input:checked + .cookie-slider::after {
  transform: translateX(20px);
}

.cookie-switch input:focus-visible + .cookie-slider {
  outline: 2px solid var(--judgy);
  outline-offset: 2px;
}

.cookie-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.cookie-actions .button {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.cookie-customize {
  margin-left: auto;
  border: 0;
  background: none;
  padding: 4px 0;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-customize:hover,
.cookie-customize:focus-visible {
  color: var(--judgy-deep);
}

/* footer "Cookie Preferences" trigger, styled like its sibling links */
.cookie-prefs-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.cookie-prefs-link:hover,
.cookie-prefs-link:focus-visible {
  color: var(--judgy-deep);
}

.legal-links .cookie-prefs-link {
  text-align: left;
  color: var(--cream);
  font-size: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-links .cookie-prefs-link:hover,
.legal-links .cookie-prefs-link:focus-visible {
  color: var(--judgy);
}

@media (max-width: 560px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }

  .cookie-actions .button {
    flex: 1 1 auto;
  }
}
