/* ============================================================================
   Relio — marketing site stylesheet

   Separate from app.css on purpose. The dashboard is dense, square and built
   for speed behind a login; this is the shop window and follows different
   rules — rounded corners, air, a warm accent, editorial type.

   Loading them separately also means a change here can never break a page a
   restaurant is trying to work in.

   Hand-written, no build step: the production host has no Node.
   ============================================================================ */

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

:root {
  --ink:        #16161a;
  --ink-2:      #33333c;
  --muted:      #6a6a75;
  --faint:      #97979f;

  --paper:      #ffffff;
  --sand:       #f7f5f1;
  --sand-2:     #efece5;
  --line:       #e3dfd7;
  --line-2:     #d3cec3;

  --dark:       #101013;
  --dark-2:     #1c1c21;
  --dark-line:  #2e2e36;

  /* One accent. A warm clay that sits well next to food photography and
     does not read as a generic SaaS blue. */
  --accent:     #bf4a24;
  --accent-2:   #a33d1c;
  --accent-3:   #fbeee8;

  --good:       #1d6b3a;
  --good-3:     #e8f3ec;

  --r-s:   8px;
  --r:     14px;
  --r-l:   22px;
  --r-pill: 999px;

  --shell: 1140px;

  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --shadow-s: 0 1px 2px rgba(22, 22, 26, .05), 0 2px 8px rgba(22, 22, 26, .04);
  --shadow:   0 2px 4px rgba(22, 22, 26, .05), 0 12px 32px rgba(22, 22, 26, .07);
  --shadow-l: 0 8px 20px rgba(22, 22, 26, .08), 0 32px 64px rgba(22, 22, 26, .10);
}

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

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

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

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

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

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 620;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); letter-spacing: -0.034em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); letter-spacing: -0.028em; }
h3 { font-size: 1.18rem; letter-spacing: -0.014em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.05rem; padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--accent); color: #fff; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--r-s) 0; z-index: 200;
}
.skip:focus { left: 0; text-decoration: none; }

/* ------------------------------------------------------------------ layout */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}
.shell-narrow { max-width: 760px; }

.section     { padding: 88px 0; }
.section-sm  { padding: 56px 0; }
.section-lg  { padding: 112px 0; }
.section-sand { background: var(--sand); }
.section-dark {
  background: var(--dark);
  color: #e9e7e2;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .lede, .section-dark .muted { color: #a5a3a0; }
.section-line { border-top: 1px solid var(--line); }

.head { max-width: 660px; margin-bottom: 48px; }
.head-center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-dark .eyebrow { color: #e08a63; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  line-height: 1.6;
  margin-top: 18px;
}

.muted { color: var(--muted); }
.tiny  { font-size: 13px; }
.center { text-align: center; }

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 560;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--sand); color: var(--ink); border-color: var(--ink); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0ede8; color: var(--ink); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { background: rgba(255,255,255,.09); color: #fff; border-color: rgba(255,255,255,.55); }

.btn-sm { padding: 9px 17px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row-center { justify-content: center; }

.arrow { font-size: 1.05em; line-height: 1; transition: transform .16s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.textlink {
  font-weight: 560;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 70px;
}

.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand img { height: 28px; width: auto; display: block; }
.brand span {
  font-size: 1.22rem;
  font-weight: 620;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1;
}
.brand:hover { text-decoration: none; }
.brand-light span { color: #fff; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 8px;
}
.site-nav a {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.site-nav a.on { color: var(--ink); border-bottom-color: var(--accent); }

.site-head-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Mobile menu, opened with a checkbox so the page needs no JavaScript. */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-s);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.nav-burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-burger span::before,
.nav-burger span::after {
  content: ""; position: absolute; left: 0;
  width: 17px; height: 1.5px; background: var(--ink);
}
.nav-burger span::before { top: -5.5px; }
.nav-burger span::after  { top:  5.5px; }

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

.hero {
  position: relative;
  padding: 84px 0 96px;
  background:
    radial-gradient(900px 420px at 82% -8%, var(--accent-3) 0%, rgba(251,238,232,0) 62%),
    linear-gradient(180deg, #fffdfb 0%, var(--paper) 100%);
  overflow: hidden;
}
.hero::after {
  /* Hairline grid. Structure without decoration. */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .34;
  mask-image: radial-gradient(760px 420px at 20% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(760px 420px at 20% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 64px;
  align-items: center;
}

.hero h1 span { color: var(--accent); }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 10px;
}
.hero-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-2);
  margin: 0;
}
.hero-points .tick {
  flex-shrink: 0;
  width: 19px; height: 19px;
  margin-top: 2px;
  border-radius: var(--r-pill);
  background: var(--good-3);
  color: var(--good);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.hero-note { margin-top: 20px; font-size: 13.5px; color: var(--faint); }

/* Wallet-pass mock. Pure CSS — no screenshot to go stale. */
.pass-stack { position: relative; padding: 8px 0 8px 18px; }

.pass {
  background: var(--dark);
  color: #fff;
  border-radius: var(--r-l);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-l);
  max-width: 340px;
  margin-left: auto;
}
.pass-brandline {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dark-line);
}
.pass-brandline img { height: 15px; opacity: .95; }
.pass-brandline .who { font-size: 11px; letter-spacing: .12em; color: #8b8890; font-family: var(--mono); }

.pass-body { padding: 20px 0 4px; }
.pass-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: #8b8890;
  margin-bottom: 7px;
}
.pass-count { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.pass-count small { font-size: 15px; color: #8b8890; font-weight: 400; letter-spacing: 0; }

.stamps {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
  margin: 18px 0 16px;
}
.stamp {
  aspect-ratio: 1;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--dark-line);
}
.stamp.on { background: var(--accent); border-color: var(--accent); }

.pass-reward {
  background: var(--dark-2);
  border-radius: var(--r-s);
  padding: 11px 13px;
  font-size: 13px;
  color: #cfcdc9;
}
.pass-reward strong { color: #fff; font-weight: 560; }

.pass-code {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--dark-line);
  display: flex; align-items: center; gap: 12px;
}
.pass-barcode {
  flex: 1;
  height: 42px;
  border-radius: 5px;
  background: repeating-linear-gradient(90deg,
    #fff 0 2px, var(--dark) 2px 4px, #fff 4px 5px, var(--dark) 5px 9px,
    #fff 9px 11px, var(--dark) 11px 12px);
}
.pass-code .t { font-family: var(--mono); font-size: 10.5px; color: #8b8890; }

.pass-float {
  position: absolute;
  left: 0; bottom: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 12px 15px;
  display: flex; align-items: center; gap: 11px;
  max-width: 232px;
}
.pass-float .dot {
  width: 9px; height: 9px; border-radius: var(--r-pill);
  background: var(--good); flex-shrink: 0;
}
.pass-float .t { font-size: 13px; line-height: 1.35; }
.pass-float .t b { display: block; font-weight: 600; }
.pass-float .t span { color: var(--muted); font-size: 12px; }

/* ------------------------------------------------------------- stats strip */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
}
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-size: 1.9rem;
  font-weight: 620;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.stat span { font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------------------- cards */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.card-hover:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); }

.card-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-s);
  background: var(--accent-3);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 21px; height: 21px; }

.section-dark .card {
  background: var(--dark-2);
  border-color: var(--dark-line);
}
.section-dark .card p { color: #a5a3a0; }
.section-dark .card-icon { background: rgba(191, 74, 36, .16); color: #e08a63; }

/* ------------------------------------------------------------------- steps */

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  counter-increment: step;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  padding-top: 3px;
}
.step-n::before { content: "0" counter(step); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15.5px; max-width: 620px; }

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split + .split { margin-top: 88px; }
.split-flip .split-media { order: -1; }

.split-media {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 30px;
}
.section-dark .split-media { background: var(--dark-2); border-color: var(--dark-line); }

.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.checklist li { display: flex; gap: 11px; font-size: 15.5px; color: var(--ink-2); margin: 0; }
.checklist .tick {
  flex-shrink: 0; width: 19px; height: 19px; margin-top: 2px;
  border-radius: var(--r-pill); background: var(--good-3); color: var(--good);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.section-dark .checklist li { color: #c9c7c3; }
.section-dark .checklist .tick { background: rgba(29,107,58,.22); color: #6fbc8b; }

/* Little UI mocks used inside .split-media */
.mock-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 13px 15px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  margin-bottom: 9px;
}
.mock-row:last-child { margin-bottom: 0; }
.mock-row .who { font-weight: 560; }
.mock-row .when { margin-left: auto; color: var(--faint); font-size: 12.5px; font-family: var(--mono); }
.mock-av {
  width: 30px; height: 30px; border-radius: var(--r-pill);
  background: var(--sand-2); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 560;
  background: var(--sand-2);
  color: var(--ink-2);
}
.pill-good { background: var(--good-3); color: var(--good); }
.pill-warn { background: var(--accent-3); color: var(--accent-2); }

/* ----------------------------------------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan-featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-l);
  position: relative;
}
.plan-tag {
  position: absolute;
  top: -12px; left: 30px;
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
}
/* h2s, sized down. The three plans are the first sections of the pricing page
   and follow the h1 directly, so h3 here would skip a level. */
.plan .plan-name { font-size: 1.05rem; }
.plan-for { color: var(--muted); font-size: 14px; margin-top: 5px; min-height: 42px; }

.plan-price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amt { font-size: 2.3rem; font-weight: 620; letter-spacing: -.035em; line-height: 1; }
.plan-price .cur { font-size: 15px; color: var(--muted); font-weight: 560; }
.plan-price .per { font-size: 14px; color: var(--muted); }
.plan-annual { font-size: 13px; color: var(--faint); margin-bottom: 22px; }

.plan .btn { width: 100%; }

.plan-feats { list-style: none; padding: 22px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.plan-feats li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); margin: 0; }
.plan-feats .tick {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px;
  border-radius: var(--r-pill); background: var(--good-3); color: var(--good);
  font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.plan-feats .cross {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px;
  border-radius: var(--r-pill); background: var(--sand-2); color: var(--faint);
  font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.plan-feats li.off { color: var(--faint); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 14.5px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--sand); font-size: 13px; letter-spacing: -.005em; }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare th[scope="row"] { font-weight: 500; color: var(--ink-2); }
table.compare td { color: var(--muted); }
table.compare td.yes { color: var(--good); font-weight: 600; }
table.compare td.no  { color: var(--faint); }
table.compare .group th {
  background: var(--sand);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

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

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-weight: 560;
  font-size: 16.5px;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 21px; font-weight: 300; color: var(--muted);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--accent); }
.faq .answer { padding: 0 48px 22px 0; color: var(--muted); font-size: 15.5px; }

/* ----------------------------------------------------------------- CTA band */

.cta-band {
  background: var(--dark);
  border-radius: var(--r-l);
  padding: 56px 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #a5a3a0; margin-top: 12px; max-width: 520px; }

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

.site-foot {
  background: var(--dark);
  color: #9d9b98;
  padding: 64px 0 30px;
  font-size: 14.5px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--dark-line);
}
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: #7e7c79; font-size: 14px; max-width: 280px; }
/* Class, not a tag selector: these are h2s. The footer columns sit alongside
   the page's own sections rather than under them, and an h4 that follows an h2
   skips a level in the outline on every single page. */
.site-foot .foot-head {
  color: #fff;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-links a { color: #9d9b98; text-decoration: none; }
.foot-links a:hover { color: #fff; text-decoration: none; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 13px;
  color: #6f6d6a;
}
.foot-bottom a { color: #6f6d6a; }
.foot-bottom a:hover { color: #fff; }

/* ------------------------------------------------------------------- forms */

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 560;
  margin-bottom: 7px;
  color: var(--ink);
}
.field .hint { font-size: 13px; color: var(--faint); margin-top: 6px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-s);
  background: #fff;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-3);
}
.field textarea { min-height: 140px; resize: vertical; }
.field.err input, .field.err textarea, .field.err select { border-color: var(--accent-2); }
.field .err-msg { font-size: 13px; color: var(--accent-2); margin-top: 6px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin-bottom: 20px; }
.check input { margin-top: 3px; }

/* Bot trap. Never shown, never focusable by keyboard. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Visually gone, still read aloud. Not the same thing as .hp above, which
   hides content from everyone including screen readers — used for table
   captions and other labels a sighted user gets from the layout itself. */
.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;
}

.notice {
  border-radius: var(--r-s);
  padding: 14px 16px;
  font-size: 14.5px;
  margin-bottom: 22px;
  border: 1px solid;
}
.notice-good { background: var(--good-3); border-color: #bcdcc7; color: #14522c; }
.notice-bad  { background: var(--accent-3); border-color: #f0cbbb; color: var(--accent-2); }

/* The sign-in pages share partials/flash with the dashboard, which speaks in
   .alert rather than .notice. Rather than fork the partial, teach this
   stylesheet the same three words. */
.alert {
  border-radius: var(--r-s);
  padding: 13px 16px;
  font-size: 14.5px;
  margin-bottom: 20px;
  border: 1px solid;
}
.alert ul { margin: 6px 0 0; padding-left: 1.15rem; }
.alert li { font-size: 14px; }
.alert-ok    { background: var(--good-3);   border-color: #bcdcc7; color: #14522c; }
.alert-warn  { background: #fdf4e3;         border-color: #ead9b4; color: #7a5410; }
.alert-error { background: var(--accent-3); border-color: #f0cbbb; color: var(--accent-2); }

/* -------------------------------------------------------------------- auth */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-side {
  background: var(--dark);
  color: #e9e7e2;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* A <p>, not a heading. It reads like one, but it sits before the page's h1 in
   the source, and a heading that opens the document at level two and then drops
   to level one is a broken outline for anyone tabbing through by headings. */
.auth-side .auth-tag {
  color: #fff;
  max-width: 420px;
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
  font-weight: 620;
  text-wrap: balance;
  margin: 0;
}
.auth-side p { color: #a5a3a0; max-width: 420px; margin-top: 16px; }
.auth-side .checklist li { color: #c9c7c3; }
.auth-side .checklist .tick { background: rgba(29,107,58,.22); color: #6fbc8b; }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--paper);
}
.auth-box { width: 100%; max-width: 400px; }
.auth-box .brand-mobile { display: none; margin-bottom: 32px; }
.auth-box h1 { font-size: 1.9rem; margin-bottom: 8px; }
.auth-box .lede { font-size: 15.5px; margin-top: 0; margin-bottom: 30px; }
.auth-foot { margin-top: 26px; font-size: 14px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------------- prose */

.prose { max-width: 760px; font-size: 16.5px; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose a { text-decoration: underline; }
.prose > p:first-child { font-size: 1.06rem; color: var(--muted); }

.toc {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.toc .toc-head {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 12px;
}
.toc ol { margin: 0; padding-left: 1.15rem; columns: 2; column-gap: 32px; }
.toc li { font-size: 14.5px; margin-bottom: 7px; break-inside: avoid; }

.updated {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px 13px;
  margin-top: 18px;
}

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

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .pass-stack { padding-left: 0; max-width: 380px; }
  .pass { margin-left: 0; }
  .pass-float { left: auto; right: 0; bottom: -14px; }
  .split, .split-flip .split-media { grid-template-columns: 1fr; order: 0; }
  .split { gap: 36px; }
  .plans { grid-template-columns: 1fr; }
  .plan-featured { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-box .brand-mobile { display: inline-flex; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 30px; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-lg { padding: 76px 0; }
  .hero { padding: 56px 0 68px; }

  .nav-burger { display: flex; }

  /* The open menu is a wrapped flex row, not a floating panel. Two absolutely
     positioned panels cannot stack unless the first one's height is known in
     advance, and the nav's height changes with the page — which is how the
     buttons ended up sitting on top of the header. Letting the bar grow costs
     a downward shift of the page, which is what a mobile menu does anyway. */
  .site-head-inner { flex-wrap: wrap; height: auto; gap: 0; }
  /* min-height on the container would only pad the wrapper once the menu is
     open; it is the brand that has to hold the top row open to 70px so the bar
     is the same height whether the menu is up or down. */
  .site-head-inner > .brand { min-height: 70px; }
  .site-nav, .site-head-actions {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
  }
  .nav-toggle:checked ~ .site-nav,
  .nav-toggle:checked ~ .site-head-actions { display: flex; }
  .site-nav { border-top: 1px solid var(--line); }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:hover, .site-nav a.on { border-bottom-color: var(--line); }
  .site-head-actions { padding: 14px 0 18px; }
  .site-head-actions .btn { width: 100%; margin-bottom: 8px; }

  /* Exactly 16px, not a rounder-looking 15.5: iOS Safari zooms the page in on
     any field it thinks is too small to read, and then leaves it zoomed. On a
     sign-in form that is the first thing an owner ever does with us. */
  .field input, .field select, .field textarea { font-size: 16px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card-hover:hover { transform: none; }
}

@media print {
  .site-head, .site-foot, .cta-band, .btn { display: none !important; }
  body { font-size: 12pt; }
}
