/* Brew Me Up — marketing site
   Light theme only (the app never runs in dark mode). No external requests. */

@font-face {
  font-family: "Abril Fatface";
  src: url("../fonts/abril-fatface-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f7edde;
  --cream-2: #f1e3cf;
  --milk: #fffaf2;
  --espresso: #4a2c2a;
  --espresso-2: #2f1b19;
  --ink: #3a2220;
  --muted: #6b5149;          /* 6.1:1 on cream */
  --caramel: #8a4b1f;        /* 5.9:1 on cream */
  --crema: #d9a066;          /* decorative / on espresso only */
  --foam: #f3dcc0;
  --green: #2f6b3a;
  --line: rgba(74, 44, 42, .14);
  --shadow: 0 1px 2px rgba(47, 27, 25, .06), 0 12px 32px -12px rgba(47, 27, 25, .28);
  --shadow-lg: 0 2px 4px rgba(47, 27, 25, .08), 0 40px 80px -30px rgba(47, 27, 25, .45);
  --display: "Abril Fatface", "Didot", "Bodoni 72", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 28px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--caramel); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--crema); }
::selection { background: var(--foam); color: var(--espresso-2); }

h1, h2, h3, .display { font-family: var(--display); font-weight: 400; color: var(--espresso); line-height: 1.04; letter-spacing: .005em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.8vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.15; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--caramel); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 36em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--caramel); margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.small { font-size: .9rem; color: var(--muted); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section-tight { padding-block: clamp(48px, 7vw, 96px); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--espresso); color: var(--milk); padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 237, 222, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(47,27,25,.4); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--espresso); }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 2px 8px rgba(47,27,25,.25); }
.brand span { font-family: var(--display); font-size: 1.35rem; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav-links a:hover { background: rgba(74, 44, 42, .07); }
.nav-links a[aria-current="page"] { color: var(--caramel); }
.nav-toggle {
  display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--milk);
  border-radius: 12px; color: var(--espresso); cursor: pointer; font: 700 .9rem var(--sans); padding: 0 14px;
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    box-shadow: 0 20px 30px -20px rgba(47,27,25,.35);
  }
  .js .nav-links:not(.is-open) { display: none; }
  .nav-links a { min-height: 48px; font-size: 1.05rem; }
  .nav-links .btn { justify-content: center; margin-top: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--espresso);
  background: var(--espresso); color: var(--milk) !important; font: 700 1rem/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s;
  box-shadow: 0 10px 24px -12px rgba(47,27,25,.6);
}
.btn:hover { transform: translateY(-2px); background: var(--espresso-2); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--espresso) !important; box-shadow: none; }
.btn-ghost:hover { background: rgba(74,44,42,.06); }
.btn-light { background: var(--milk); border-color: var(--milk); color: var(--espresso) !important; }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--milk); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,107,58,.15); }

/* ---------- Device frame ---------- */
.device {
  position: relative; width: min(100%, var(--w, 300px)); aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w, 300px) * .16); padding: calc(var(--w, 300px) * .035);
  background: linear-gradient(145deg, #3b2422, #1d100f 60%, #3b2422);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.12);
  margin: 0;
}
.device::after { /* side button */
  content: ""; position: absolute; right: -3px; top: 24%; width: 3px; height: 12%; border-radius: 0 3px 3px 0; background: #2a1715;
}
.device .screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--cream);
  border-radius: calc(var(--w, 300px) * .13);
}
.device .screen img, .device .screen picture { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device .island {
  position: absolute; top: 2.2%; left: 50%; transform: translateX(-50%); width: 31%; height: 3.4%;
  border-radius: 999px; background: #0d0706; z-index: 2;
}
figcaption.cap { margin-top: 14px; font-size: .85rem; color: var(--muted); text-align: center; }
.illus-tag {
  position: absolute; z-index: 3; left: 50%; bottom: 4%; transform: translateX(-50%);
  font: 700 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(74,44,42,.88); color: var(--milk); padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(217,160,102,.38), rgba(217,160,102,0)); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero h1 { margin-top: .3em; }
.hero .lede { margin-bottom: 1.8rem; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.hero-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-stage .device { --w: 300px; z-index: 2; }
.hero-stage .device.back { position: absolute; --w: 250px; transform: translate(-58%, 8%) rotate(-8deg); z-index: 1; opacity: .96; }
.hero-stage .ring {
  position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px dashed rgba(74,44,42,.22);
  animation: spin 80s linear infinite;
}
.hero-stage .ring::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--crema); }
.float-badge {
  position: absolute; z-index: 3; width: 96px; filter: drop-shadow(0 14px 18px rgba(47,27,25,.35));
  animation: bob 7s ease-in-out infinite;
}
.float-badge.b1 { right: 2%; top: 8%; }
.float-badge.b2 { right: -2%; bottom: 18%; width: 80px; animation-delay: -2.5s; }
.float-badge.b3 { left: 4%; top: 2%; width: 72px; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 0; padding-top: 24px; }
  .hero-stage .device { --w: 250px; }
  .hero-stage .device.back { --w: 200px; transform: translate(-52%, 8%) rotate(-8deg); }
  .hero-stage .ring { width: 380px; height: 380px; }
}
@media (max-width: 420px) {
  .hero-stage .device.back, .float-badge.b3 { display: none; }
  .hero-stage .ring { width: 300px; height: 300px; }
  .float-badge { width: 70px; } .float-badge.b2 { width: 60px; right: 0; }
}

/* ---------- Brew-ism ---------- */
.brewism {
  position: relative; background: var(--espresso); color: var(--milk); overflow: hidden;
}
.brewism .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center; }
.brewism .label { font: 700 .75rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--crema); }
.brewism blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.15; color: var(--milk); min-height: 2.3em; display: flex; align-items: center; }
.brewism blockquote.swap { animation: pour .7s var(--ease); }
@keyframes pour { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.brewism .btn-light { white-space: nowrap; }
@media (max-width: 760px) { .brewism .wrap { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.pillar { background: var(--milk); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow); }
.pillar .num { font-family: var(--display); font-size: 2.6rem; color: var(--crema); line-height: 1; display: block; margin-bottom: 14px; }
.pillar p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Feature tour ---------- */
.tour { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 6vw, 96px); }
.tour-steps { list-style: none; margin: 0; padding: 0; }
.tour-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.tour-step .kicker { font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--caramel); margin-bottom: 14px; }
.tour-step h3 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.tour-step p { color: var(--muted); max-width: 32em; font-size: 1.08rem; }
.tour-step ul.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--espresso) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffaf2' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}
.tour-step .step-figure { display: none; }
.tour-stage { position: sticky; top: 90px; height: calc(100vh - 110px); display: grid; place-items: center; }
.tour-stage .device { --w: 330px; }
.tour-stage .layer { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); transform: scale(1.03); }
.tour-stage .layer.is-active { opacity: 1; transform: none; }
.tour-progress { position: absolute; left: -36px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tour-progress li { width: 6px; height: 22px; border-radius: 6px; background: rgba(74,44,42,.18); transition: background .3s, height .3s; }
.tour-progress li.is-active { background: var(--caramel); height: 38px; }
@media (max-width: 960px) {
  .tour { grid-template-columns: 1fr; }
  .tour-stage { display: none; }
  .tour-step { min-height: 0; padding: 48px 0; border-top: 1px solid var(--line); }
  .tour-step .step-figure { display: block; margin: 28px auto 0; }
  .tour-step .step-figure .device { --w: 260px; margin-inline: auto; }
}

/* Illustration screens built in HTML (clearly tagged) */
.mock { position: absolute; inset: 0; background: var(--cream); padding: 16% 7% 8%; font-size: clamp(9px, 2.6vw, 12px); color: var(--ink); }
.device .mock { font-size: calc(var(--w, 300px) * .04); }
.mock h4 { font-family: var(--display); font-weight: 400; font-size: 1.9em; margin: 0 0 .6em; color: var(--espresso); }
.mock .row { display: flex; align-items: center; gap: .7em; background: var(--milk); border-radius: .9em; padding: .75em .9em; margin-bottom: .5em; }
.mock .row b { display: block; font-size: 1.05em; }
.mock .row small { color: var(--muted); font-size: .85em; }
.mock .sec { font-weight: 700; color: var(--muted); font-size: .85em; margin: .9em 0 .35em .3em; }
.mock .rail { position: absolute; right: 2.5%; top: 22%; display: grid; gap: .1em; font-weight: 700; font-size: .78em; color: var(--espresso); text-align: center; }
.mock .badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.mock .badge-grid img { width: 100%; aspect-ratio: 1; }
.mock .badge-grid .locked { filter: saturate(0) opacity(.45); }
.mock .chip { display: inline-block; padding: .3em .7em; border-radius: 999px; background: var(--espresso); color: var(--milk); font-weight: 700; font-size: .8em; }
.mock .avatar { width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--crema); display: grid; place-items: center; font-weight: 700; color: var(--espresso-2); flex: none; }
.mock svg.route { width: 100%; height: auto; border-radius: .9em; background: #e9dcc6; margin-bottom: .6em; }

/* ---------- Badge showcase ---------- */
.badges-band { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); overflow: hidden; }
.badge-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 20px 14px; margin-top: 44px; list-style: none; padding: 0; }
.badge-wall li { text-align: center; }
.badge-wall figure { margin: 0; }
.badge-wall img { width: 100%; max-width: 128px; margin: 0 auto; aspect-ratio: 1; transition: transform .4s var(--ease), filter .4s; filter: drop-shadow(0 10px 14px rgba(47,27,25,.22)); }
.badge-wall li:hover img { transform: translateY(-6px) rotate(-4deg) scale(1.05); }
.badge-wall figcaption { font-size: .82rem; font-weight: 600; margin-top: 8px; color: var(--ink); line-height: 1.25; }
.badge-wall .kind { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }
.badge-count { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; }
.badge-count div { font-size: .95rem; color: var(--muted); }
.badge-count strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2.8rem; color: var(--espresso); line-height: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filters button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--espresso); background: transparent;
  color: var(--espresso); font: 700 .92rem var(--sans); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--espresso); color: var(--milk); }

/* Holiday calendar */
.calendar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; list-style: none; padding: 0; }
.month { background: var(--milk); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 12px; min-height: 150px; }
.month h3 { font-family: var(--sans); font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--caramel); margin: 0 0 10px; }
.month ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.month li { display: flex; align-items: center; gap: 10px; font-size: .86rem; line-height: 1.25; }
.month img { width: 40px; height: 40px; flex: none; }
.month li span small { display: block; color: var(--muted); font-size: .76rem; }
@media (max-width: 960px) { .calendar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .calendar { grid-template-columns: 1fr; } }

/* ---------- Privacy band ---------- */
.dark { background: var(--espresso-2); color: #f1e2cf; }
.dark h2, .dark h3 { color: var(--milk); }
.dark h2 em { color: var(--crema); }
.dark .eyebrow { color: var(--crema); }
.dark .lede, .dark p { color: #e6d3bd; }
.dark a { color: var(--foam); }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--r-lg); overflow: hidden; margin-top: 48px; }
.promise { background: var(--espresso-2); padding: 30px; }
.promise svg { width: 30px; height: 30px; stroke: var(--crema); fill: none; stroke-width: 1.8; margin-bottom: 16px; }
.promise h3 { font-size: 1.35rem; }
.promise p { font-size: .97rem; margin: 0; }
@media (max-width: 860px) { .promise-grid { grid-template-columns: 1fr; } }

/* ---------- Generic cards / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 40px; }
.card { background: var(--milk); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card.feature-card { border-top: 4px solid var(--espresso); }


.steps { counter-reset: s; list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; }
.steps > li { counter-increment: s; position: relative; padding: 24px 24px 24px 84px; background: var(--milk); border: 1px solid var(--line); border-radius: var(--r); }
.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 24px; top: 20px; font-family: var(--display); font-size: 2rem; color: var(--crema); line-height: 1; }
.steps h3 { font-size: 1.3rem; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }

.placeholder { background: #fff0d6; outline: 1px dashed var(--caramel); padding: 0 .25em; border-radius: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--espresso); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2.5px solid var(--caramel); border-bottom: 2.5px solid var(--caramel); transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 44em; }
.faq-group { margin-top: 56px; }
.faq-group > h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; color: var(--espresso); }
.field .hint { display: block; font-size: .86rem; color: var(--muted); margin: -2px 0 8px; font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid rgba(74,44,42,.35);
  background: var(--milk); color: var(--ink); font: inherit;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--caramel); outline-offset: 1px; border-color: var(--caramel); }
.field [aria-invalid="true"] { border-color: #a1271b; }
.field .error { color: #a1271b; font-size: .88rem; font-weight: 600; margin-top: 6px; }
.form-status { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.form-status[data-state="ok"] { background: #e4f0e4; color: #1f4a28; }
.form-status[data-state="err"] { background: #f8e1dc; color: #7a1d12; }
.form-status:empty { display: none; }
.counter { margin: 6px 0 0; font-size: .86rem; color: var(--muted); text-align: right; }
.error-summary { border: 2px solid #a1271b; background: #f8e1dc; color: #7a1d12; border-radius: 12px; padding: 14px 18px; }
.error-summary h2 { font: 800 1rem/1.3 var(--sans); margin: 0 0 6px; color: #7a1d12; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: #7a1d12; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.error-summary:focus { outline: 3px solid var(--caramel); outline-offset: 2px; }
.field select { appearance: auto; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -12vw; top: -20vw; width: 48vw; height: 48vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(217,160,102,.32), transparent); pointer-events: none;
}

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose h3 { font-family: var(--sans); font-weight: 800; font-size: 1.05rem; color: var(--espresso); margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--espresso); }
.prose caption { text-align: left; font-weight: 700; color: var(--espresso); padding: 0 12px 8px; }
.prose tbody th { font-weight: 700; width: 30%; }
.table-scroll { overflow-x: auto; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--espresso); color: var(--milk); border-radius: var(--r-lg); padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.cta-band h2 { color: var(--milk); }
.cta-band h2 em { color: var(--crema); }
.cta-band p { color: #ead8c2; }
.cta-band .art { justify-self: center; width: min(100%, 300px); border-radius: 24px; transform: rotate(4deg); box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .art { width: 200px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-2); border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--caramel); margin: 6px 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; }
.site-footer ul a:hover { color: var(--caramel); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; color: var(--muted); font-size: .86rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.lost { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost .cup { width: 160px; margin: 0 auto 24px; }
.lost h1 { font-size: clamp(3rem, 10vw, 7rem); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tour-stage .layer { transform: none; }
  .badge-wall li:hover img { transform: none; }
}

@media print {
  .site-header, .site-footer, .brewism, .nav-toggle { display: none; }
  body { background: #fff; }
}

/* Long unbroken strings (email addresses, URLs) must never force horizontal scroll at 320px. */
p, li, dd, td, .answer { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .steps > li { padding: 64px 20px 22px; }
  .steps > li::before { left: 20px; top: 18px; }
  .card, .pillar, .promise { padding: 22px; }
  .cards { grid-template-columns: 1fr; }
}
