@charset "utf-8";

/* =========================================================
   wabi consulting — site stylesheet
   1. Tokens
   2. Base
   3. Layout
   4. Components
   5. Header
   6. Sections (hero → proof → issues → service → tools → why →
      flow → pricing → FAQ → final CTA → footer)
   7. Mobile CTA bar
   8. 404
   9. Tablet  (min-width: 640px)
  10. Desktop (min-width: 1024px)
   ========================================================= */

/* 1. Tokens --------------------------------------------- */
:root {
  --accent: #556229;
  --accent-dark: #3f4a1f;
  --ink: #22241c;
  --ink-soft: #3c3e33;
  --ink-muted: #4a4c40;
  --muted: #6e7061;
  --faint: #8b8a78;
  --bg: #f7f6f0;
  --surface: #ffffff;
  --tint: #fbfaf5;
  --border: #e6e3d6;
  --border-strong: #d6d3c4;
  --cta: #d2700d;
  --cta-hover: #e88a21;
  --cta-edge: #a85606;
  --sumi: #1c1d17;
  --paper: #f4f3ea;
  --danger: #a63d2a;
  --mark: #f2e7c8;
  --mark-ink: #8a6a1c;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --mobile-bar-h: 96px;
}

/* 2. Base ----------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1 { font-size: min(26px, 6.6vw); font-weight: 700; line-height: 1.45; letter-spacing: -0.01em; }
h2 { font-size: 22px; font-weight: 700; line-height: 1.4; }
h3 { font-size: 15px; font-weight: 700; line-height: 1.5; }

/* Narrow phones: keep the longest .nb heading fragment inside the viewport
   (.hero__title already scales with the viewport). */
@media (max-width: 359px) {
  h2 { font-size: 20px; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

b, strong { font-weight: 700; }

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

table { border-collapse: collapse; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 10px;
  font-weight: 700;
}

/* 3. Layout --------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 32px; }
.section--tight { padding-top: 0; }
.section--panel {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--cta { padding-block: 44px; }

.section__head { display: flex; flex-direction: column; gap: 8px; }
.section__lead { font-size: 14px; color: var(--ink-soft); }

main {
  flex: 1 0 auto;
  padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
}

/* 4. Components ----------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--faint);
  text-transform: uppercase;
}
.eyebrow--accent { color: var(--accent); }

.note { font-size: 12px; color: var(--faint); line-height: 1.7; }

.num { font-variant-numeric: tabular-nums; }

.nb { white-space: nowrap; display: inline-block; }

/* Launch blockers the owner still has to resolve. */
.todo {
  background: var(--mark);
  color: var(--mark-ink);
  border-radius: 4px;
  padding: 0 5px;
  font-weight: 600;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
}
.icon--sm { width: 16px; height: 16px; }

.btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn--primary {
  background: var(--cta);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 0 var(--cta-edge), 0 6px 18px rgba(210, 112, 13, 0.28);
}
.btn--primary:hover { background: var(--cta-hover); color: #ffffff; }
.btn--outline { background: #ffffff; color: var(--accent); border-color: #bbc4a9; }
.btn--outline:hover { border-color: var(--cta); color: var(--cta); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* Inline form errors (field-errors.js). Spans and a div, so the flow cards' `.step p` rule never applies. */
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--danger);
}
.field-error::before {
  content: "!";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--danger);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.field-error-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #e0bdb4;
  border-radius: 12px;
  background: #fbf2f0;
  color: #7e2e1f;
  font-size: 13px;
  line-height: 1.7;
  padding: 12px 16px;
}
.field-error-summary__title { font-weight: 700; }
.field-error-summary ul { margin: 0; padding-left: 1.2em; }
.field-error-summary a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* "Did you mean …?" under email fields (email-assist.js) */
.email-hint { display: block; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.email-hint[hidden] { display: none; }
.email-hint b { font-weight: 700; color: var(--ink); }
.email-hint button {
  font: inherit;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  margin-left: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* 5. Header --------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 56px;
}

.brand {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.brand__name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--sumi);
  line-height: 1.4;
}
.brand__name:hover { color: var(--accent); }

/* Phones: the toggle is the only item beside the brand, so it pushes itself to the right edge.
   From 1024px it is hidden and .site-nav takes the auto margin. */
.nav-toggle {
  order: 2;
  width: 44px;
  height: 44px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  margin-left: auto;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle__bar {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.site-nav {
  order: 3;
  flex-basis: 100%;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0 4px;
  border-top: 1px solid var(--border);
}
.site-nav__link { color: var(--ink-muted); font-size: 14px; padding: 8px 0; }

.site-header__cta {
  order: 4;
  flex-basis: 100%;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
}

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

/* 6. Sections ------------------------------------------- */
/* S1 hero */
.hero { padding-block: 28px 32px; }
.hero__inner { display: grid; gap: 24px; }
.hero__body { display: flex; flex-direction: column; gap: 18px; }
.hero__kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; line-height: 1.6; color: var(--muted); }
/* Each title line is a .nb span, so the size is capped to keep the longest line
   (about 15em) inside a phone viewport. */
.hero__title { font-size: min(26px, calc((100vw - 32px) / 15)); }
.hero__accent { color: var(--cta); }
.hero__lead { font-size: 15px; color: var(--ink-soft); line-height: 1.9; }
.hero__actions { display: flex; flex-direction: column; gap: 10px; }
.hero__actions .btn { width: 100%; }

.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}
.checklist__item { display: flex; align-items: flex-start; gap: 6px; }
.checklist__item .icon { margin-top: 4px; }

/* Hero diagram: documents → AI → property database → daily use.
   A vertical list on phones, one row from 640px. */
.hero-flow { padding: 20px; }
.hero-flow__list { display: flex; flex-direction: column; gap: 6px; }
.hero-flow__node { display: flex; align-items: flex-start; gap: 14px; }
.hero-flow__icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--border-strong);
}
.hero-flow__node--use .hero-flow__icon { background: var(--accent); border-color: var(--accent); }
.hero-flow__node--use .hero-flow__icon .icon { color: var(--surface); }
.hero-flow__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 1px; }
.hero-flow__title { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.hero-flow__sub { font-size: 12px; line-height: 1.6; color: var(--muted); }
.hero-flow__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.hero-flow__pill {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--tint);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px 10px;
}
/* centred under the 44px icon circle */
.hero-flow__arrow { margin-left: 14px; color: var(--faint); transform: rotate(90deg); }

/* S1b proof — the section itself also carries .proof, so the tiles are styled through .proof-grid */
.proof__inner { display: flex; flex-direction: column; gap: 16px; }
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.proof-grid > .proof { padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.proof__value { font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.proof__unit { font-size: 13px; margin-inline: 1px; color: var(--ink-soft); }
.proof__label { font-size: 12px; line-height: 1.6; color: var(--ink-muted); }

/* S2 issues */
.issues__inner { display: flex; flex-direction: column; gap: 18px; }
.issue-list { display: flex; flex-direction: column; gap: 12px; }
.issue { padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--tint); }
.issue__q,
.issue__a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* auto-phrase (here and on .faq__q) keeps short bold lines from breaking mid-word in Chrome; others ignore it */
.issue__q { font-size: 15px; font-weight: 700; line-height: 1.7; color: var(--ink); word-break: auto-phrase; }
.issue__a {
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-muted);
}
.issue__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  white-space: nowrap;
  color: var(--muted);
  background: var(--paper);
  border-radius: 999px;
  padding: 1px 9px;
}
.issue__label--answer { color: var(--surface); background: var(--accent); }
.issue__arrow { display: none; color: var(--faint); }

/* S3 service — the card scrolls sideways when the 4-column table (640px and up) is wider than it */
.service__inner { display: flex; flex-direction: column; gap: 18px; }
.service__table { overflow-x: auto; overscroll-behavior-x: contain; }
.service__table:focus-visible { border-radius: 16px; }
/* Comparison table. Below 640px: every row becomes a block (row header + three cells captioned
   from data-label, the wabi consulting cell tinted). From 640px (section 9): a real 4-column table,
   at least 640px wide, that scrolls sideways inside .service__table when the card is narrower. */
.compare { width: 100%; font-size: 13px; line-height: 1.7; border-collapse: collapse; }
.compare thead { display: none; }
.compare tbody,
.compare tr { display: block; }
.compare tr { padding: 14px 16px 12px; border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child { border-bottom: 0; }
.compare tbody th { display: block; padding: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--ink); text-align: left; }
.compare td {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 10px;
  padding: 5px 0;
  color: var(--ink-muted);
}
.compare td::before { content: attr(data-label); font-size: 12px; line-height: 1.8; color: var(--muted); }
.compare td.compare__us { margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: var(--tint); color: var(--ink); }
.compare td.compare__us::before { color: var(--accent-dark); font-weight: 700; }

/* S4 tools */
.tools__inner { display: flex; flex-direction: column; gap: 18px; }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tool { padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--tint); }
.tool__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool p { font-size: 13px; color: var(--ink-muted); }

/* S5 why */
.why__inner { display: flex; flex-direction: column; gap: 20px; }
.why__grid { display: grid; gap: 20px; }
.reason-list { display: flex; flex-direction: column; gap: 18px; }
.reason { display: flex; gap: 12px; }
.reason .icon { margin-top: 2px; }
.reason__body { display: flex; flex-direction: column; gap: 4px; }
.reason__body p { font-size: 13px; color: var(--ink-muted); }

/* S6 flow */
.flow__inner { display: flex; flex-direction: column; gap: 18px; }
.step { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.step__head { display: flex; align-items: center; justify-content: space-between; }
.step p { font-size: 13px; color: var(--ink-muted); }
.flow .step { background: var(--tint); }
.flow__cta { width: 100%; }

/* Flow: consult → start on whichever of the two plans fits → hand over.
   One column on phones; from 1024px the middle step (the plan choice) is the wide one. */
.flow-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.plan-choice { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 6px; }
.plan-choice__or { justify-self: center; align-self: center; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); }
.plan-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}
.plan-option__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.plan-option__name { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.plan-option__head .step__term { align-self: center; }
.flow .plan-option__for { font-size: 13px; font-weight: 700; line-height: 1.7; color: var(--accent-dark); }
.plan-option__spec {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.7;
}
.plan-option__spec div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 8px; }
.plan-option__spec dt { font-size: 12px; line-height: 1.85; color: var(--muted); }
.plan-option__spec dd { margin: 0; color: var(--ink-muted); }

.flow-example { padding: 16px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: var(--tint); }
/* stacked with a downward arrow on phones (the two pills do not fit one row), one row from 640px */
.flow-example__path { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.flow-example__path .icon { margin-left: 14px; color: var(--faint); transform: rotate(90deg); }
.flow-example__node {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  white-space: nowrap;
}
.flow-example__node small { font-size: 12px; font-weight: 500; color: var(--muted); }
.flow-example p { font-size: 13px; color: var(--ink-muted); }

@media (min-width: 640px) {
  .plan-choice { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; }
  .flow-example { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
  .flow-example__path { flex-direction: row; align-items: center; gap: 8px; }
  .flow-example__path .icon { margin-left: 0; transform: none; }
  .flow-example p { flex: 1 1 320px; }
}
@media (min-width: 1024px) {
  .flow-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 1fr); gap: 14px; }
  .plan-option { padding: 16px; }
  .flow-example { padding: 18px 22px; }
}

/* duration pills on the flow steps and the price cards */
.step__term,
.price__term {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  white-space: nowrap;
  color: var(--accent-dark);
  background: var(--paper);
  border-radius: 999px;
  padding: 2px 10px;
}

/* S7 pricing */
.pricing__inner { display: flex; flex-direction: column; gap: 18px; }
.price-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.price { padding: 20px 18px; display: flex; flex-direction: column; gap: 4px; }
.price__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.price__name { font-size: 17px; }
.price__term { align-self: center; }
.price__value { font-size: 28px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.price__ex { font-size: 12px; line-height: 1.5; color: var(--muted); }
.price__list {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-muted);
}
.price__list li,
.pricing__notes li { position: relative; padding-left: 14px; }
.price__list li::before,
.pricing__notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(0.85em - 2.5px);
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}
.pricing__notes { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-muted); }
.pricing__notes li::before { background: var(--faint); }

/* S8 FAQ */
.faq__inner { display: flex; flex-direction: column; gap: 18px; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  position: relative;
  display: block;
  padding: 14px 32px 14px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  word-break: auto-phrase;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__q::after { transform: translateY(1px) rotate(-135deg); }
.faq__a {
  padding: 0 0 16px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.8;
}
.faq__a a { text-decoration: underline; text-underline-offset: 2px; }

/* S9 final CTA */
.final-cta__inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.final-cta__lead { font-size: 14px; color: var(--ink-muted); }
.final-cta__btn { width: 100%; }

/* footer */
.site-footer {
  background: var(--sumi);
  color: var(--paper);
  padding-block: 32px 24px;
}
.site-footer__inner { display: flex; flex-direction: column; gap: 24px; }
.site-footer__cols { display: grid; gap: 24px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; }
.site-footer__logo {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.site-footer__company { font-size: 13px; color: rgba(244, 243, 234, 0.75); }
.site-footer__nav { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.site-footer__heading { color: rgba(244, 243, 234, 0.55); font-size: 12px; }
.site-footer__nav a { color: var(--paper); }
.site-footer__nav a:hover { color: #ffffff; text-decoration: underline; }
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(244, 243, 234, 0.15);
  padding-top: 20px;
  font-size: 12px;
  color: rgba(244, 243, 234, 0.6);
}
.site-footer__bottom--bare { border-top: 0; padding-top: 0; }

/* 7. Mobile CTA bar ------------------------------------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-bar__btn { width: 100%; height: 48px; font-size: 15px; }
.mobile-bar__link { font-size: 13px; text-align: center; }

/* 8. 404 ------------------------------------------------ */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding-block: 64px;
}
.error-page__code {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.error-page__lead { font-size: 14px; color: var(--ink-muted); }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* 9. Tablet --------------------------------------------- */
@media (min-width: 640px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }

  .section { padding-block: 56px; }
  .section--tight { padding-top: 0; }
  .section--cta { padding-block: 64px; }
  .hero { padding-block: 48px 40px; }

  main { padding-bottom: 0; }

  .hero__title { font-size: 32px; }
  .hero__actions { flex-direction: row; }
  .hero__actions .btn { width: auto; }
  .checklist { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }

  /* hero diagram: one row, arrows level with the icon circles */
  .hero-flow { padding: 28px 24px; }
  .hero-flow__list { flex-direction: row; align-items: flex-start; gap: 6px; }
  .hero-flow__node { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .hero-flow__node--use { flex-grow: 1.3; }
  .hero-flow__text { align-items: center; padding-top: 0; }
  .hero-flow__pills { flex-direction: column; align-items: center; gap: 5px; margin-top: 6px; }
  .hero-flow__arrow { margin: 14px 0 0; transform: none; }

  .issue {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr);
    align-items: start;
    gap: 18px;
    padding: 20px 22px;
  }
  .issue__a { padding-top: 0; border-top: 0; }
  .issue__arrow { display: block; margin-top: 27px; }

  /* comparison table: a real 4-column table; while the card is narrower than its 640px minimum,
     it scrolls sideways inside .service__table */
  .compare { display: table; min-width: 640px; table-layout: fixed; font-size: 14px; }
  .compare thead { display: table-header-group; }
  .compare tbody { display: table-row-group; }
  .compare tr { display: table-row; padding: 0; border-bottom: 0; }
  .compare th,
  .compare td { display: table-cell; padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
  .compare td::before { content: none; }
  .compare tr > :first-child { padding-left: 28px; }
  .compare tr > :last-child { padding-right: 28px; }
  .compare thead > tr > * { padding-block: 20px 14px; border-bottom-color: var(--border-strong); }
  .compare tbody tr:last-child > * { border-bottom: 0; }
  .compare__corner { width: 150px; }
  .compare th { font-weight: 700; color: var(--ink-soft); font-size: 14px; }
  .compare tbody th { display: table-cell; padding: 16px 20px 16px 28px; }
  .compare td { color: var(--ink-muted); }
  .compare td.compare__us { margin: 0; border-radius: 0; padding: 16px 28px 16px 20px; }
  .compare .compare__us { background: var(--tint); color: var(--ink); }
  .compare thead .compare__us { color: var(--accent-dark); }

  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .flow__cta,
  .final-cta__btn { width: auto; min-width: 280px; align-self: center; }

  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__brand { grid-column: 1 / -1; }

  .mobile-bar { display: none; }
}

/* 10. Desktop ------------------------------------------- */
@media (min-width: 1024px) {
  h1 { font-size: 40px; line-height: 1.35; }
  h2 { font-size: 28px; }
  h3 { font-size: 16px; }

  .section { padding-block: 72px; }
  .section--tight { padding-top: 0; }
  .section--cta { padding-block: 88px; }
  .hero { padding-block: 72px 48px; }

  .section__head { gap: 10px; }
  .section__lead { font-size: 15px; }

  /* header */
  .site-header__bar { flex-wrap: nowrap; gap: 24px; min-height: 64px; }
  .brand { order: 1; flex-direction: row; align-items: center; gap: 14px; }
  .brand__name { font-size: 15px; }
  .site-nav {
    order: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    flex-basis: auto;
    margin-left: auto;
    padding: 0;
    border-top: 0;
  }
  .site-nav__link { padding: 0; }
  .site-header__cta {
    order: 4;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-basis: auto;
    padding-bottom: 0;
  }
  .nav-toggle { display: none; }

  /* hero: the diagram column is the wider one, so the title is capped to fit the text column */
  .hero__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
  .hero__body { gap: 24px; }
  .hero__kicker { font-size: 14px; }
  .hero__title { font-size: clamp(28px, 2.6vw, 33px); }
  .hero__lead { font-size: 17px; }
  .hero__actions { gap: 12px; }
  .checklist { gap: 8px 20px; }
  .checklist__item { align-items: center; }
  .checklist__item .icon { margin-top: 0; }
  .hero-flow { padding: 36px 24px; }
  .hero-flow__icon { width: 52px; height: 52px; }
  .hero-flow__icon .icon { width: 24px; height: 24px; }
  .hero-flow__arrow { margin-top: 18px; }
  .hero-flow__pill { padding: 2px 8px; }

  /* proof */
  .proof__inner { gap: 24px; }
  .proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .proof-grid > .proof { padding: 20px; gap: 8px; }
  .proof__value { font-size: 30px; }
  .proof__unit { font-size: 15px; }
  .proof__label { font-size: 13px; }

  /* issues */
  .issues__inner { gap: 28px; }
  .issue { gap: 24px; padding: 22px 28px; }
  .issue__q { font-size: 16px; }
  .issue__a { font-size: 14px; }
  .issue__arrow { margin-top: 29px; }

  /* service */
  .service__inner { gap: 28px; }

  /* tools */
  .tools__inner { gap: 28px; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .tool { padding: 22px; gap: 10px; }

  /* why */
  .why__inner { gap: 32px; }
  .reason-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .reason { gap: 14px; }
  .reason .icon { margin-top: 0; }

  /* flow */
  .flow__inner { gap: 28px; }
  .step { padding: 22px; gap: 10px; }
  .flow__cta { min-width: 280px; }

  /* pricing */
  .pricing__inner { gap: 28px; }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .price { padding: 24px 22px; }
  .price__value { font-size: 30px; }
  .pricing__notes { flex-direction: row; flex-wrap: wrap; gap: 6px 28px; }

  /* FAQ */
  .faq__inner { gap: 28px; }
  .faq__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
    align-items: start;
  }
  .faq__q { padding: 16px 32px 16px 0; }
  .faq__q::after { top: 24px; }
  .faq__a { padding-bottom: 16px; }

  /* final CTA */
  .final-cta__inner { gap: 20px; }
  .final-cta__lead { font-size: 15px; }
  .final-cta__btn { min-width: 320px; }

  /* footer */
  .site-footer { padding-block: 48px 32px; }
  .site-footer__inner { gap: 32px; }
  .site-footer__cols { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
  .site-footer__brand { grid-column: auto; }

  /* desktop keeps short placeholders on one line */
  .todo { white-space: nowrap; }
}

/* narrow phones */
@media (max-width: 479px) {
  .container { padding-inline: 16px; }
}

@media (max-width: 639px) {
  /* the fixed CTA bar overlaps the end of the page */
  .section--cta { padding-bottom: 0; }
  .site-footer { padding-bottom: calc(24px + var(--mobile-bar-h) + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .faq__q::after { transition: none; }
}
