/* The Usual — marketing site.
   Palette and card skins match the app exactly, so the site and the product
   read as one thing. Two recurring devices: the stamp row (the punch card is
   the subject) and the " quotation mark (the brand mark — the regular's order,
   already known). Warm cream ground everywhere; white is reserved for cards. */

:root {
  --orange-700: #a8490f;
  --orange-600: #c75a1e;
  --orange-500: #d96e31;
  --orange-100: #f7dfc9;
  --orange-050: #fbf0e4;

  --cream: #fcf8f2;

  --ink-900: #2a1e12;
  --ink-800: #3c2e1e;
  --ink-600: #6e5c48;
  --ink-500: #8a7660;
  --ink-400: #ab9880;
  --ink-200: #eae0d2;
  --ink-100: #f7f1e8;
  --white: #fff;

  --green-600: #12855f;
  --gold-500: #f0b429;

  --espresso-a: #241708;
  --espresso-b: #2c1d12;
  --espresso-c: #3a2718;

  --coffee-a: #4a2c1a;
  --coffee-b: #7a5030;
  --slate-a: #2c1d12;
  --slate-b: #53381f;

  --shell: min(1140px, 100% - 3rem);
  --radius: 20px;

  --shadow-card: 0 20px 50px -30px rgba(42, 30, 18, 0.35);
  --shadow-pop: 0 30px 70px -30px rgba(42, 30, 18, 0.5);

  --serif: "Fraunces", Georgia, serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 1.06rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.55rem, 1.35rem + 0.9vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.65rem + 2vw, 3.2rem);
  --step-4: clamp(2.85rem, 2rem + 4vw, 5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-900);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
}
h1 em, h2 em { font-style: italic; font-weight: 600; color: var(--orange-600); }

p { margin: 0; }
a { color: inherit; }

.shell { width: var(--shell); margin-inline: auto; }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: "\201C";
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.5em;
  line-height: 0.4;
  transform: translateY(0.28em);
  letter-spacing: 0;
}

.lede { font-size: var(--step-1); color: var(--ink-600); line-height: 1.55; max-width: 58ch; }
.muted { color: var(--ink-600); }

/* ---------- reveal on scroll (only when JS tags <html class="js">) ---------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- stamp row: the motif ---------- */

.stamps { display: flex; gap: 6px; flex-wrap: wrap; }
.stamps i {
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--ink-200); display: grid; place-items: center;
  font-style: normal; font-size: 12px; color: transparent;
}
.stamps i.on {
  background: var(--orange-600); color: #fff; font-weight: 700;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14);
}
.stamps.sm i { width: 15px; height: 15px; font-size: 9px; }
.stamps.on-dark i { background: rgba(255, 255, 255, 0.2); }
.stamps.on-dark i.on { background: var(--orange-500); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.55rem; border-radius: 999px; font-weight: 650;
  font-size: var(--step-0); text-decoration: none; border: 1px solid transparent;
  transition: transform 0.14s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--orange-500), var(--orange-600));
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(199, 90, 30, 0.75);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--orange-600), var(--orange-700)); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--ink-900); border-color: var(--ink-200); }
.btn-ghost:hover { border-color: var(--ink-400); transform: translateY(-1px); }
.btn-cream { background: var(--cream); color: var(--ink-900); }
.btn-cream:hover { background: var(--white); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--orange-600); outline-offset: 3px; }

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

header.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(252, 248, 242, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-200);
}
.nav-in { display: flex; align-items: center; gap: 1.4rem; padding: 0.85rem 0; }
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none;
}
.brand .mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--orange-050);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 900; font-size: 1.7rem;
  color: var(--orange-600); line-height: 0;
  padding-top: 0.75rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.04em;
  color: var(--ink-900); text-decoration: none;
}
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-600); font-size: var(--step--1); font-weight: 550; }
.nav-links a:hover { color: var(--ink-900); }
.nav-cta { display: flex; gap: 0.6rem; margin-left: auto; }
.nav-links + .nav-cta { margin-left: 0; }
.nav-signin { align-self: center; margin-right: 0.4rem; font-size: var(--step--1); font-weight: 600; color: var(--ink-800); text-decoration: none; }
.nav-signin:hover { color: var(--orange-700); }
.nav-cta .btn { padding: 0.62rem 1.15rem; font-size: var(--step--1); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 560px) { .nav-cta .btn-ghost { display: none; } }

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

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto auto;
  width: 70%; height: 120%;
  background:
    radial-gradient(42% 48% at 72% 38%, rgba(247, 223, 201, 0.9), transparent 70%),
    radial-gradient(30% 34% at 88% 72%, rgba(240, 180, 41, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: var(--step-4); max-width: 15ch; margin-top: 1.1rem; }
.hero .lede { margin-top: 1.35rem; }
.hero-cta { display: flex; gap: 0.75rem; margin-top: 2.1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.1rem; font-size: var(--step--1); color: var(--ink-500); }

.hero-points {
  display: flex; gap: 1.4rem; flex-wrap: wrap;
  margin-top: 1.9rem; padding-top: 1.5rem;
  border-top: 1px solid var(--ink-200);
}
.hero-points span {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: var(--step--1); font-weight: 550; color: var(--ink-600);
}
.hero-points b { color: var(--green-600); font-weight: 800; }

/* phone + floating chips */

.phone-wrap { position: relative; width: min(340px, 100%); margin-inline: auto; }
.ghost-q {
  position: absolute; top: -3.5rem; left: -4.5rem; z-index: 0;
  font-family: var(--serif); font-weight: 900;
  font-size: 17rem; line-height: 1; color: var(--orange-100);
  pointer-events: none; user-select: none;
}
@media (max-width: 900px) { .ghost-q { left: -1.5rem; font-size: 12rem; } }

.phone {
  position: relative; z-index: 1;
  background: var(--ink-900); border-radius: 40px; padding: 10px;
  box-shadow: var(--shadow-pop);
}
.phone-screen { background: var(--cream); border-radius: 31px; overflow: hidden; padding: 1.15rem; }
.phone-notch {
  width: 86px; height: 8px; border-radius: 999px;
  background: var(--ink-200); margin: 0 auto 0.95rem;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; }
.phone-top .wm {
  font-family: var(--serif); font-weight: 800; color: var(--orange-600);
  font-size: 1.02rem; letter-spacing: -0.03em;
}
.phone-top .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange-100); color: var(--orange-700);
  display: grid; place-items: center; font-size: 0.66rem; font-weight: 700;
}
.phone-greet { font-size: 1.3rem; font-weight: 750; letter-spacing: -0.03em; }
.phone-sub {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 0.95rem; color: var(--orange-600); margin: 0.1rem 0 1rem;
}

.card {
  border-radius: 18px; padding: 1.05rem; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--coffee-a), var(--coffee-b));
  box-shadow: 0 14px 30px -20px rgba(42, 30, 18, 0.55);
}
.card.slate { background: linear-gradient(135deg, var(--slate-a), var(--slate-b)); margin-top: 0.75rem; }
.card-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.logo-tile {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: rgba(255, 255, 255, 0.16);
  display: grid; place-items: center;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em;
}
.card-name { font-weight: 700; font-size: 0.95rem; }
.card-count { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.card-note {
  margin-top: 0.8rem; padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.76rem; color: rgba(255, 255, 255, 0.82);
}
.card-note b { color: var(--gold-500); letter-spacing: 0.03em; }

.float-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--white); border: 1px solid var(--ink-200);
  border-radius: 999px; padding: 0.5rem 0.95rem;
  font-size: 0.8rem; font-weight: 650; color: var(--ink-800);
  box-shadow: var(--shadow-card);
  animation: bob 5.5s ease-in-out infinite;
}
.float-chip i {
  font-style: normal; font-weight: 800; font-size: 0.7rem;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
}
.chip-a { top: 10%; right: -3rem; }
.chip-a i { background: var(--green-600); color: #fff; }
.chip-b { bottom: 3.5%; left: -3.2rem; animation-delay: 2.2s; }
.chip-b i { background: var(--gold-500); color: var(--ink-900); }
@media (max-width: 1020px) { .chip-a { right: -0.5rem; } .chip-b { left: -0.5rem; } }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- ticker ---------- */

.ticker {
  border-block: 1px solid var(--ink-200);
  background: var(--white);
  overflow: hidden; padding: 0.95rem 0;
}
.ticker-track {
  display: flex; gap: 2.6rem; width: max-content;
  animation: slide 36s linear infinite;
}
.ticker span {
  display: inline-flex; align-items: center; gap: 2.6rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.02rem;
  color: var(--ink-600); white-space: nowrap;
}
.ticker span::after {
  content: "\201C";
  font-weight: 900; color: var(--orange-600); font-size: 1.3rem;
  line-height: 0; transform: translateY(0.3em);
}
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

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

section { padding: clamp(3.5rem, 8vw, 6.25rem) 0; }
.section-head { max-width: 62ch; display: grid; gap: 0.95rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: var(--step-3); }

.band { background: var(--ink-100); border-block: 1px solid var(--ink-200); }

.band-dark {
  position: relative;
  background: linear-gradient(160deg, var(--espresso-a), var(--espresso-b) 45%, var(--espresso-c));
  color: #fff; overflow: hidden;
}
.band-dark::before {
  content: "\201C";
  position: absolute; top: -6rem; right: -2rem;
  font-family: var(--serif); font-weight: 900;
  font-size: 30rem; line-height: 1; color: rgba(247, 223, 201, 0.05);
  pointer-events: none;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lede, .band-dark .muted { color: #c9b79e; }
.band-dark .eyebrow { color: #f0b46e; }

/* problem / fix */

.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 900px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-card {
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem);
  display: grid; gap: 0.9rem; align-content: start;
}
.pf-card h2 { font-size: var(--step-2); }
.pf-card .lede { font-size: var(--step-0); }
.pf-card.problem { background: var(--white); border: 1px solid var(--ink-200); }
.pf-card.fix { background: var(--ink-900); color: #fff; }
.pf-card.fix .lede { color: #c9b79e; }
.pf-card.fix .eyebrow { color: #f0b46e; }

.paper-card {
  position: relative; margin-top: 0.6rem;
  background: var(--cream);
  border: 1.5px dashed var(--ink-400); border-radius: 12px;
  padding: 0.9rem 1rem; transform: rotate(-2deg);
  color: var(--ink-600); font-size: 0.8rem; max-width: 300px;
}
.paper-card::after {
  content: "";
  position: absolute; top: -14px; right: 18px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 5px solid rgba(122, 80, 48, 0.14);
  pointer-events: none;
}
.paper-card .row { display: flex; gap: 6px; margin-top: 0.5rem; }
.paper-card .row i {
  width: 19px; height: 19px; border-radius: 50%;
  border: 1.5px dashed var(--ink-400);
  display: grid; place-items: center;
  font-style: normal; font-size: 10px; color: var(--ink-500);
}
.paper-card .lost {
  position: absolute; bottom: -12px; right: -10px;
  background: var(--white); border: 1px solid var(--ink-200); border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #b42318; padding: 0.3rem 0.7rem; transform: rotate(3deg);
}

.mini-card {
  margin-top: 0.6rem; max-width: 300px;
  background: linear-gradient(135deg, var(--coffee-a), var(--coffee-b));
  border-radius: 14px; padding: 0.9rem 1rem; color: #fff;
}
.mini-card .card-top { margin-bottom: 0.6rem; }
.mini-card .synced {
  margin-top: 0.65rem; font-size: 0.72rem; font-weight: 650;
  color: #7fd6b2; display: flex; align-items: center; gap: 0.4rem;
}

/* steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius);
  padding: 1.7rem; display: grid; gap: 0.65rem; align-content: start; counter-increment: step;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--orange-100); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-weight: 900;
  font-size: 2.1rem; line-height: 1; color: var(--orange-100);
  -webkit-text-stroke: 1.2px var(--orange-600);
}
.step h3 { font-size: var(--step-1); }
.step p { color: var(--ink-600); font-size: var(--step--1); line-height: 1.55; }

.step-visual {
  margin-top: 0.4rem; border-radius: 12px; background: var(--ink-100);
  border: 1px solid var(--ink-200); padding: 0.8rem; min-height: 74px;
  display: flex; align-items: center; gap: 0.8rem;
}
.qr {
  width: 52px; height: 52px; flex: none;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  background: var(--white); border: 1px solid var(--ink-200);
  border-radius: 8px; padding: 5px;
}
.qr b { background: var(--ink-900); border-radius: 1.5px; }
.qr s { background: transparent; }
.step-visual .cap { font-size: 0.74rem; color: var(--ink-500); line-height: 1.4; }
.prog { flex: 1; display: grid; gap: 0.45rem; }
.prog .bar { height: 8px; border-radius: 999px; background: var(--ink-200); overflow: hidden; }
.prog .bar span { display: block; height: 100%; width: 70%; border-radius: 999px; background: linear-gradient(90deg, var(--orange-500), var(--orange-600)); }
.tapline { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 650; color: var(--ink-800); }
.tapline i {
  font-style: normal; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--green-600); color: #fff; font-size: 0.66rem; font-weight: 800;
  display: grid; place-items: center;
}

/* features */

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; position: relative; }
.feature {
  border: 1px solid rgba(247, 223, 201, 0.14); border-radius: var(--radius);
  padding: 1.7rem; display: grid; gap: 0.55rem; align-content: start;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(217, 110, 49, 0.55); background: rgba(255, 255, 255, 0.07); }
.feature h3 { font-size: var(--step-1); }
.feature p { color: #c9b79e; font-size: var(--step--1); line-height: 1.55; }
.feature .tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: #f0b46e;
}

/* counters (photo gallery) */

.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 860px) { .counters { grid-template-columns: 1fr; } }
.counter {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-card);
  display: grid; align-content: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.counter:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.counter img { width: 100%; height: auto; display: block; aspect-ratio: 8 / 7; object-fit: cover; }
.counter figcaption { padding: 0.95rem 1.2rem 1.1rem; display: grid; gap: 0.15rem; }
.counter figcaption b { font-family: var(--serif); font-size: 1.08rem; letter-spacing: -0.02em; }
.counter figcaption span { font-size: var(--step--1); color: var(--ink-500); }

/* split + ledger */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.ledger {
  background: linear-gradient(160deg, var(--espresso-a), var(--espresso-b));
  border-radius: var(--radius); padding: 1.4rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.78rem; color: #e8d9c4;
  overflow-x: auto; box-shadow: var(--shadow-card);
}
.ledger table { border-collapse: collapse; width: 100%; min-width: 380px; }
.ledger th {
  text-align: left; font-weight: 600; color: #8a7660; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.07em; padding-bottom: 0.6rem;
}
.ledger td { padding: 0.45rem 0; border-top: 1px solid rgba(247, 223, 201, 0.09); white-space: nowrap; }
.ledger td:first-child { color: #f0b46e; padding-right: 1.2rem; }
.ledger .ok { color: #4ade80; }
.ledger .no { color: #fb7185; }

/* pricing */

.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; max-width: 820px; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  position: relative;
  border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 2rem;
  background: var(--white); display: grid; gap: 1rem; align-content: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.tier.featured { border-color: var(--orange-600); box-shadow: 0 0 0 4px var(--orange-050), var(--shadow-card); }
.tier .pill {
  position: absolute; top: -0.85rem; left: 1.6rem;
  background: var(--orange-600); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px; padding: 0.35rem 0.85rem;
}
.tier .name { font-weight: 700; font-size: var(--step-1); font-family: var(--serif); }
.tier .price { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.04em; font-family: var(--serif); }
.tier .price span { font-size: var(--step-0); font-weight: 500; color: var(--ink-500); letter-spacing: 0; font-family: "Instrument Sans", sans-serif; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.tier li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.6rem; font-size: var(--step--1); color: var(--ink-600); }
.tier li::before { content: "✓"; color: var(--green-600); font-weight: 800; }

/* faq */

.faq { display: grid; gap: 0.8rem; max-width: 780px; }
details {
  border: 1px solid var(--ink-200); border-radius: 16px; background: var(--white);
  padding: 1.15rem 1.35rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
details[open] { border-color: var(--orange-600); box-shadow: var(--shadow-card); }
summary {
  cursor: pointer; font-weight: 650; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--orange-600); font-weight: 700; font-size: 1.35rem; line-height: 1; flex: none; }
details[open] summary::after { content: "–"; }
details p { margin-top: 0.8rem; color: var(--ink-600); font-size: var(--step--1); line-height: 1.6; }

/* cta */

.cta-band {
  position: relative;
  background: linear-gradient(150deg, var(--espresso-a), var(--espresso-b) 50%, var(--espresso-c));
  border-radius: 30px; padding: clamp(2.6rem, 6vw, 4.2rem); color: #fff;
  display: grid; gap: 1.25rem; justify-items: start;
  overflow: hidden; box-shadow: var(--shadow-pop);
}
.cta-band::before {
  content: "\201C";
  position: absolute; top: -5rem; right: 0.5rem;
  font-family: var(--serif); font-weight: 900;
  font-size: 22rem; line-height: 1; color: rgba(247, 223, 201, 0.06);
  pointer-events: none;
}
.cta-band .eyebrow { color: #f0b46e; }
.cta-band h2 { font-size: var(--step-3); max-width: 18ch; }
.cta-band p { color: #c9b79e; max-width: 52ch; }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* footer */

footer { border-top: 1px solid var(--ink-200); padding: 3rem 0 3.5rem; background: var(--white); }
.foot-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { display: grid; gap: 0.35rem; }
.foot-brand .tag {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  color: var(--orange-600); font-size: 1.02rem;
}
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a { font-size: var(--step--1); color: var(--ink-500); text-decoration: none; }
.foot-links a:hover { color: var(--ink-900); }
.foot-base {
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--ink-100);
  font-size: 0.8rem; color: var(--ink-400);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- signup ---------- */

.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .signup-grid { grid-template-columns: 1fr; } }

.signup-form {
  position: relative;
  background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius);
  padding: 2rem 1.9rem 1.9rem; display: grid; gap: 1rem;
  box-shadow: var(--shadow-pop);
  border-top: 5px solid var(--orange-600);
}
.field { display: grid; gap: 0.35rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--ink-800); }
.field input, .field select {
  font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--ink-200);
  border-radius: 11px; background: var(--cream); color: var(--ink-900); width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:hover, .field select:hover { border-color: var(--ink-400); }
.field input:focus, .field select:focus {
  outline: 2px solid var(--orange-600); outline-offset: 1px;
  border-color: var(--orange-600); background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-note { font-size: 0.78rem; color: var(--ink-500); }
.form-error { color: #b42318; font-size: var(--step--1); font-weight: 550; }
.signup-form button[disabled] { opacity: 0.65; cursor: default; }

.signup-done {
  background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius);
  border-top: 5px solid var(--gold-500);
  padding: 2.1rem; display: grid; gap: 0.75rem; align-content: start;
  box-shadow: var(--shadow-pop);
}
.signup-done h3 { font-size: var(--step-2); font-family: var(--serif); }

.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start;
  font-size: var(--step--1); color: var(--ink-600); cursor: pointer;
}
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--orange-600); }
.form-note a { color: var(--ink-600); }
.form-note a:hover { color: var(--ink-900); }

/* ---------- legal pages ---------- */

.legal { max-width: 46rem; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.legal h1 { font-family: var(--serif); font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.02em; margin: 0.4rem 0 0.6rem; }
.legal h2 { font-family: var(--serif); font-size: var(--step-1); margin: 2.4rem 0 0.6rem; scroll-margin-top: 5rem; }
.legal h3 { font-size: var(--step-0); margin: 1.4rem 0 0.3rem; color: var(--ink-800); }
.legal p, .legal li { color: var(--ink-800); }
.legal ul, .legal ol { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.legal a { color: var(--orange-700); text-underline-offset: 2px; }
.legal a:hover { color: var(--ink-900); }
.legal-meta { color: var(--ink-500); font-size: var(--step--1); margin: 0 0 2rem; }
.legal-summary {
  background: var(--white); border: 1px solid var(--ink-200); border-left: 5px solid var(--orange-600);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow-card);
}
.legal-summary h2 { margin-top: 0; }

[hidden] { display: none !important; }
