/* Cuplio website — the apps' palette, type and shapes (lib/theme/tokens.dart). Light and dark follow the device. */

:root {
  --espresso: #3B2418;
  --roast: #6F4E37;
  --caramel: #D9974A;
  --honey: #F2C14E;
  --latte: #F7EFE5;
  --foam: #FFFBF6;
  --matcha: #7FB77E;
  --cherry: #D96C5F;

  --bg: var(--latte);
  --surface: var(--foam);
  --surface-2: #EFE3D3;
  --text: var(--espresso);
  --sub: #7A675B;
  --link: #A8672A;
  --ok: #3F7A45;
  --cherry-text: #B4473B;
  --line: rgba(59, 36, 24, 0.1);
  --tint: rgba(217, 151, 74, 0.14);
  --header-bg: rgba(247, 239, 229, 0.82);
  --shadow-1: 0 1px 2px rgba(59, 36, 24, 0.06), 0 8px 24px rgba(59, 36, 24, 0.07);
  --shadow-2: 0 2px 6px rgba(59, 36, 24, 0.08), 0 24px 60px rgba(59, 36, 24, 0.16);

  --r-sm: 14px;
  --r: 22px;
  --r-lg: 32px;
  --pill: 999px;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --round: 'Fredoka', 'Manrope', system-ui, sans-serif;

  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --fast: 150ms;
  --base: 250ms;
  --slow: 600ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1410;
    --surface: #2A1E17;
    --surface-2: #35271F;
    --text: #F7EFE5;
    --sub: #BFAE9F;
    --link: #E8B06A;
    --ok: #A4D6A3;
    --cherry-text: #F0A096;
    --line: rgba(247, 239, 229, 0.1);
    --tint: rgba(217, 151, 74, 0.16);
    --header-bg: rgba(28, 20, 16, 0.8);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

/* ───────────────────────── base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 76px); }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(242, 193, 78, 0.45); }

.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--espresso); color: var(--foam); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }
.sub { color: var(--sub); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────────────────────── buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--pill); border: 0;
  font: 800 16px/1 var(--sans); letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  transition: transform var(--fast) var(--ease), box-shadow var(--base) var(--ease), background-color var(--base) var(--ease), opacity var(--fast);
  -webkit-tap-highlight-color: transparent;
}
.btn .i { font-size: 19px; stroke-width: 2.4; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.96); opacity: 0.92; transition-duration: 90ms; }
.btn-primary { background: linear-gradient(135deg, var(--roast), var(--espresso)); color: var(--foam); box-shadow: 0 10px 24px rgba(59, 36, 24, 0.28); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(59, 36, 24, 0.34); }
.btn-reward { background: linear-gradient(135deg, var(--caramel), var(--honey)); color: var(--espresso); box-shadow: 0 10px 24px rgba(217, 151, 74, 0.35); }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-1); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: linear-gradient(135deg, var(--caramel), var(--honey)); color: var(--espresso); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px 0 16px;
  border-radius: 16px; text-decoration: none; color: var(--foam); background: #120c09;
  box-shadow: 0 10px 22px rgba(18, 12, 9, 0.22); transition: transform var(--fast) var(--ease);
}
.store:hover { transform: translateY(-2px); }
.store .i { font-size: 26px; }
.store small { display: block; font: 700 11px/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.store b { display: block; font: 800 17px/1.2 var(--sans); }
.store.soon { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); cursor: default; }
.store.soon:hover { transform: none; }
.store.soon small { color: var(--link); opacity: 1; }
@media (prefers-color-scheme: dark) { .store { background: var(--foam); color: var(--espresso); } }

/* ───────────────────────── header */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color var(--base), box-shadow var(--base); }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(59, 36, 24, 0.06); }
.bar { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand svg { width: 38px; height: 38px; }
.brand span { font: 600 23px/1 var(--round); letter-spacing: -0.01em; }
.brand em { font-style: normal; color: var(--link); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 700; font-size: 15.5px; padding: 10px 14px; border-radius: var(--pill); transition: background-color var(--fast); }
.nav a:not(.btn):hover { background: var(--tint); }
.nav a[aria-current='page'] { background: var(--tint); color: var(--link); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .i { font-size: 22px; }
.menu-btn .close { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(59, 36, 24, 0.12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), visibility var(--base);
  }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 18px; border-radius: 14px; }
  .nav .btn { margin-top: 8px; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .menu-open .menu-btn .open { display: none; }
  .menu-open .menu-btn .close { display: block; }
}

/* ───────────────────────── sections */

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section.tight { padding-top: clamp(40px, 6vw, 72px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--pill); background: var(--tint); color: var(--link); font: 800 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow .i { font-size: 15px; stroke-width: 2.4; }
.head { max-width: 720px; display: grid; gap: 16px; justify-items: start; margin-bottom: clamp(36px, 5vw, 56px); }
.head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.lead { font-size: clamp(18px, 1.7vw, 20.5px); color: var(--sub); line-height: 1.55; }

/* ───────────────────────── hero */

.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: clip; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.32), rgba(242, 193, 78, 0) 62%); pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 em { font-style: italic; color: var(--link); font-weight: 500; }
.hero .lead { max-width: 560px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--sub); font-size: 15px; font-weight: 700; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note .i { color: var(--ok); stroke-width: 2.6; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 560px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; padding: 12px 0 8px; }
}

/* ───────────────────────── phone mock-up (the app's Home: greeting, a stamp card, a reward) */

.phone {
  position: relative; width: min(318px, 80vw); aspect-ratio: 9 / 19; border-radius: 48px; padding: 11px;
  background: linear-gradient(160deg, #3a2a20, #120c09); box-shadow: var(--shadow-2), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.screen { height: 100%; border-radius: 38px; background: var(--latte); color: var(--espresso); overflow: hidden; position: relative; padding: 46px 16px 16px; display: grid; align-content: start; gap: 14px; font-size: 13px; }
.screen::before { content: ''; position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #120c09; }
.greet { display: flex; align-items: center; justify-content: space-between; }
.greet small { display: block; color: #7A675B; font-weight: 700; font-size: 12px; }
.greet b { font: 600 22px/1.1 var(--serif); letter-spacing: -0.01em; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--caramel), var(--honey)); font: 700 16px var(--serif); }
.lcard { border-radius: 22px; padding: 16px; color: var(--foam); background: linear-gradient(135deg, #7A573F, #3B2418); box-shadow: 0 14px 30px rgba(59, 36, 24, 0.3); position: relative; overflow: hidden; }
.lcard::after { content: ''; position: absolute; inset: -40% -30% auto auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%); }
.lcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.lcard-top b { display: block; font: 600 18px/1.15 var(--serif); }
.lcard-top small { color: rgba(255, 251, 246, 0.75); font-weight: 700; font-size: 11.5px; }
.count { font: 700 15px var(--serif); padding: 4px 10px; border-radius: var(--pill); background: rgba(255, 251, 246, 0.14); white-space: nowrap; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 16px 0 12px; }
.stamp { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 2px dashed rgba(255, 251, 246, 0.42); }
.stamp.on { border: 0; background: #E3A55E; color: var(--espresso); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.stamp.on .i { font-size: 17px; stroke-width: 2.3; }
.stamp.new { animation: stamp-in 0.7s var(--spring) 0.9s both; }
.lcard-foot { font-weight: 700; font-size: 12px; color: rgba(255, 251, 246, 0.85); }
.bar-track { height: 6px; border-radius: 6px; background: rgba(255, 251, 246, 0.18); margin-top: 8px; overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 70%; border-radius: 6px; background: linear-gradient(90deg, var(--caramel), var(--honey)); }
.mini { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--foam); box-shadow: 0 6px 18px rgba(59, 36, 24, 0.08); }
.mini .tile { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--caramel), var(--honey)); color: var(--espresso); }
.mini .tile .i { font-size: 18px; stroke-width: 2.3; }
.mini b { display: block; font-size: 13.5px; }
.mini small { color: #7A675B; font-weight: 700; font-size: 11.5px; }
.mini .go { margin-left: auto; color: #A8672A; }
.tabbar { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 56px; border-radius: 22px; background: var(--foam); box-shadow: 0 10px 26px rgba(59, 36, 24, 0.14); display: flex; align-items: center; justify-content: space-around; color: #9C8A7E; }
.tabbar .i { font-size: 20px; }
.tabbar .qr { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--foam); background: linear-gradient(135deg, var(--roast), var(--espresso)); margin-top: -26px; box-shadow: 0 10px 20px rgba(59, 36, 24, 0.3); }
.tabbar .on { color: var(--espresso); }

.float { position: absolute; pointer-events: none; }
.float.cup { width: clamp(110px, 14vw, 150px); left: -2%; bottom: 8%; animation: bob 3.2s ease-in-out infinite; }
.float.bean { width: 30px; animation: drift 6s ease-in-out infinite; }
.float.spark { width: 22px; animation: twinkle 2.6s ease-in-out infinite; }
.toast {
  position: absolute; right: -6%; top: 6%; display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 12px; border-radius: 18px;
  background: var(--foam); color: var(--espresso); box-shadow: var(--shadow-2); font-size: 14px; animation: bob 4s ease-in-out infinite reverse;
}
.toast .tile { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--matcha), #A8D5A2); }
.toast b { display: block; }
.toast small { color: #7A675B; font-weight: 700; }
@media (max-width: 520px) {
  .toast { right: 0; top: 4%; transform: scale(0.88); transform-origin: top right; }
  .float.cup { left: -4px; bottom: 2%; width: 92px; }
}

/* ───────────────────────── till mock-up (cafés): the scanner with a stamp just added */

.till { width: min(360px, 86vw); border-radius: 40px; padding: 11px; background: linear-gradient(160deg, #3a2a20, #120c09); box-shadow: var(--shadow-2); }
.till-screen { border-radius: 30px; overflow: hidden; background: #15100c; color: var(--foam); position: relative; aspect-ratio: 9 / 15; display: grid; grid-template-rows: auto 1fr auto; }
.till-top { display: flex; align-items: center; gap: 10px; padding: 18px 18px 0; font-weight: 800; font-size: 14px; }
.till-top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--matcha); box-shadow: 0 0 0 4px rgba(127, 183, 126, 0.25); }
.till-top small { margin-left: auto; color: rgba(255, 251, 246, 0.7); font-weight: 700; }
.frame { margin: auto; width: 58%; aspect-ratio: 1; position: relative; }
.frame::before, .frame::after { content: ''; position: absolute; inset: 0; border: 4px solid var(--caramel); border-radius: 26px; clip-path: polygon(0 0, 30% 0, 30% 4px, 4px 4px, 4px 30%, 0 30%, 0 70%, 4px 70%, 4px calc(100% - 4px), 30% calc(100% - 4px), 30% 100%, 70% 100%, 70% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 70%, 100% 70%, 100% 30%, calc(100% - 4px) 30%, calc(100% - 4px) 4px, 70% 4px, 70% 0); }
.frame .qrcode { position: absolute; inset: 18%; color: rgba(255, 251, 246, 0.85); }
.frame .qrcode .i { width: 100%; height: 100%; stroke-width: 1.4; }
.scanline { position: absolute; left: 8%; right: 8%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--honey), transparent); animation: scan 2.4s ease-in-out infinite; }
.sheet { margin: 0 10px 10px; border-radius: 24px; background: var(--foam); color: var(--espresso); padding: 16px; display: grid; gap: 12px; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3); animation: sheet-up 0.8s var(--ease) 0.5s both; }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head .ok { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--matcha), #A8D5A2); color: var(--espresso); }
.sheet-head .ok .i { font-size: 20px; stroke-width: 3; }
.sheet-head b { display: block; font: 600 19px/1.1 var(--serif); }
.sheet-head small { color: #7A675B; font-weight: 700; font-size: 12.5px; }
.sheet .stamps { margin: 0; gap: 6px; grid-template-columns: repeat(10, 1fr); }
.sheet .stamp { border-color: rgba(59, 36, 24, 0.22); }
.sheet .stamp.on { background: var(--caramel); }
.sheet .stamp.on .i { font-size: 11px; }
.sheet-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-btns span { display: grid; place-items: center; height: 40px; border-radius: var(--pill); font-weight: 800; font-size: 13.5px; background: rgba(59, 36, 24, 0.07); }
.sheet-btns span:last-child { background: linear-gradient(135deg, var(--roast), var(--espresso)); color: var(--foam); }

/* ───────────────────────── steps, cards, grids */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); counter-reset: step; }
.step { position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 28px 26px 30px; box-shadow: var(--shadow-1); display: grid; gap: 10px; align-content: start; overflow: hidden; }
.step img { width: 112px; height: 112px; margin: -6px 0 6px -8px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 22px; right: 24px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font: 700 17px var(--serif); background: var(--tint); color: var(--link); }
.step p { color: var(--sub); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step { grid-template-columns: 92px 1fr; column-gap: 18px; align-items: center; } .step img { grid-row: span 2; width: 92px; height: 92px; margin: 0; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-1); display: grid; gap: 10px; align-content: start; transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card p { color: var(--sub); font-size: 16px; }
.tile { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--tint); color: var(--link); margin-bottom: 6px; }
.tile .i { font-size: 24px; }
.card .pro { justify-self: start; font: 800 11.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--pill); background: linear-gradient(135deg, var(--caramel), var(--honey)); color: var(--espresso); }

/* split: text beside an illustration or mock-up */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .i { margin-top: 3px; font-size: 20px; color: var(--ok); stroke-width: 2.6; }

/* dark band */
.band { background: linear-gradient(160deg, #4a3020, var(--espresso) 60%); color: var(--foam); border-radius: clamp(28px, 4vw, 48px); padding: clamp(36px, 6vw, 72px); position: relative; overflow: hidden; }
.band h2 { color: var(--foam); }
.band .lead { color: rgba(255, 251, 246, 0.8); }
.band .eyebrow { background: rgba(242, 193, 78, 0.16); color: var(--honey); }
.band-art { position: absolute; right: -2%; bottom: -6%; width: min(46%, 520px); opacity: 0.95; }
.band-copy { max-width: 560px; display: grid; gap: 18px; justify-items: start; position: relative; }
@media (max-width: 760px) { .band-art { position: static; width: 100%; margin-top: 24px; } }
@media (prefers-color-scheme: dark) { .band { background: linear-gradient(160deg, #3a2618, #241811 60%); box-shadow: inset 0 0 0 1px var(--line); } }

/* privacy promise */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.promise div { padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); display: grid; gap: 4px; }
.promise b { display: flex; gap: 8px; align-items: center; }
.promise .i { color: var(--ok); stroke-width: 2.6; }
.promise .no .i { color: var(--cherry); }
.promise small { color: var(--sub); font-size: 14.5px; font-weight: 600; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }

/* ───────────────────────── pricing */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 22px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border-radius: var(--r-lg); padding: 32px 28px; box-shadow: var(--shadow-1); display: grid; gap: 16px; align-content: start; position: relative; }
.plan.featured { box-shadow: inset 0 0 0 2.5px var(--caramel), var(--shadow-2); }
.plan .flag { position: absolute; top: -14px; left: 28px; font: 800 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; border-radius: var(--pill); background: linear-gradient(135deg, var(--caramel), var(--honey)); color: var(--espresso); }
.plan h3 { font-size: 26px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font: 600 56px/1 var(--serif); letter-spacing: -0.03em; }
.price span { color: var(--sub); font-weight: 700; }
.plan .ticks { margin: 4px 0 8px; }
.fineprint { text-align: center; color: var(--sub); font-size: 15px; font-weight: 600; margin-top: 22px; }

/* ───────────────────────── FAQ */

.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-1); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 20px 22px; font-weight: 800; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { margin-left: auto; font-size: 20px; color: var(--sub); transition: transform var(--base) var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 22px 20px; color: var(--sub); }
.faq h3 { font: 800 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub); margin: 18px 6px 2px; }

/* ───────────────────────── CTA */

.cta { text-align: center; display: grid; justify-items: center; gap: 20px; }
.cta img { width: 140px; height: 140px; animation: bob 3.2s ease-in-out infinite; }

/* ───────────────────────── legal + simple pages */

.page-head { padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); display: grid; gap: 14px; justify-items: start; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 60px); }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 44px 0 14px; display: flex; gap: 14px; align-items: baseline; }
.prose h2 .n { flex: none; width: 34px; height: 34px; border-radius: 11px; display: inline-grid; place-items: center; font-size: 16px; background: var(--tint); color: var(--link); translate: 0 -3px; }
.prose p, .prose li { color: var(--text); opacity: 0.92; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 8px; margin: 12px 0; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ''; position: absolute; left: 4px; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--caramel); }
.prose mark { background: rgba(217, 151, 74, 0.2); color: var(--link); font-weight: 800; padding: 1px 5px; border-radius: 6px; }
.draft { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: rgba(217, 108, 95, 0.1); box-shadow: inset 0 0 0 1.5px rgba(217, 108, 95, 0.45); max-width: 760px; }
.draft .i { color: var(--cherry); font-size: 22px; margin-top: 2px; }
.draft b { display: block; font-size: 12px; letter-spacing: 0.12em; color: var(--cherry); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; max-width: 760px; }
.toc a { text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 9px 14px; border-radius: var(--pill); background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.toc a:hover { background: var(--tint); }
.tabs { display: inline-flex; padding: 4px; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); gap: 4px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 10px 16px; border-radius: var(--pill); font-weight: 800; font-size: 14.5px; color: var(--sub); }
.tabs a[aria-current='page'] { background: var(--espresso); color: var(--foam); }
@media (prefers-color-scheme: dark) { .tabs a[aria-current='page'] { background: var(--foam); color: var(--espresso); } }

.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 820px; }
.contact a { text-decoration: none; color: var(--text); }
.contact .card b { font-size: 19px; }
@media (max-width: 620px) { .contact { grid-template-columns: 1fr; } }

.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.center-page .box { display: grid; gap: 18px; justify-items: center; max-width: 560px; }
.center-page img { width: 160px; height: 160px; animation: bob 3.2s ease-in-out infinite; }

/* ───────────────────────── sign-up pages (/join/, /cafes/join/): the apps' fields, code boxes and checklist */

.join { padding: clamp(28px, 5vw, 72px) 0 clamp(24px, 4vw, 48px); position: relative; overflow: clip; }
.join::before {
  content: ''; position: absolute; inset: -30% auto auto -20%; width: 70vw; height: 70vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.26), rgba(242, 193, 78, 0) 62%); pointer-events: none; z-index: -1;
}
.join-grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.join-copy { display: grid; gap: 20px; justify-items: start; padding-top: clamp(0px, 3vw, 36px); }
.join-copy h1 { font-size: clamp(40px, 5.6vw, 64px); }
@media (max-width: 900px) {
  .join-grid { grid-template-columns: 1fr; }
  .join-copy .ticks { display: none; }
}

.join-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: clamp(22px, 4vw, 36px); scroll-margin-top: 96px; }
.join-step { display: grid; gap: 18px; }
.join-step[hidden] { display: none; }
.join-step h2 { font-size: clamp(28px, 3vw, 34px); }
.join-step .sub { font-weight: 600; line-height: 1.5; }
.join-step .sub b { color: var(--text); overflow-wrap: anywhere; }
.join-note { color: var(--sub); font-size: 14.5px; font-weight: 600; text-align: center; line-height: 1.5; }
.form-error { padding: 12px 14px; border-radius: 14px; background: rgba(217, 108, 95, 0.12); color: var(--cherry-text); font-weight: 700; font-size: 15px; }
.form-error[hidden] { display: none; }

.field { display: grid; gap: 8px; }
.field > label:not(.check) { font-weight: 800; font-size: 14.5px; }
.input {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 6px 0 16px; border-radius: 16px;
  background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--sub);
  transition: box-shadow var(--fast) var(--ease), background-color var(--fast);
}
.input .i { font-size: 20px; }
.input input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; outline: none; color: var(--text); font: 600 17px var(--sans); padding: 0 10px 0 0; }
.input input::placeholder { color: var(--sub); opacity: 0.7; }
.input:focus-within { background: var(--surface); box-shadow: inset 0 0 0 2px var(--caramel), 0 0 0 4px rgba(217, 151, 74, 0.2); color: var(--link); }
.field.bad .input { box-shadow: inset 0 0 0 2px var(--cherry); background: rgba(217, 108, 95, 0.08); color: var(--cherry-text); }
.field-error { display: flex; gap: 6px; color: var(--cherry-text); font-weight: 700; font-size: 14px; line-height: 1.4; }
.field-error[hidden] { display: none; }
.field.shake { animation: shake 0.42s var(--ease); }
.peek { width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--sub); display: grid; place-items: center; cursor: pointer; }
.peek:hover { background: var(--tint); }
.peek[aria-pressed='true'] { color: var(--link); }

.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.check .box {
  flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; margin-top: 1px;
  box-shadow: inset 0 0 0 2px var(--line); background: var(--bg); color: transparent; transition: background-color var(--fast), box-shadow var(--fast);
}
.check .box .i { font-size: 16px; stroke-width: 3; }
.check input:checked + .box { background: linear-gradient(135deg, var(--roast), var(--espresso)); box-shadow: none; color: var(--foam); }
.check input:focus-visible + .box { outline: 3px solid var(--caramel); outline-offset: 3px; }
.field.bad .check .box { box-shadow: inset 0 0 0 2px var(--cherry); }
.check a { font-weight: 800; }

.pw-rules { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.pw-rules li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px; border-radius: var(--pill); background: var(--bg); color: var(--sub); font-weight: 700; font-size: 13.5px; transition: background-color var(--base), color var(--base); }
.pw-rules .i { font-size: 14px; stroke-width: 3; opacity: 0.35; }
.pw-rules li.ok { background: rgba(127, 183, 126, 0.18); color: var(--ok); }
.pw-rules li.ok .i { opacity: 1; }

.btn-wide { width: 100%; }
.btn.loading { pointer-events: none; }
.btn .spin { display: none; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
.btn.loading .spin { display: block; }
.btn.loading .label { display: none; }
.btn:disabled { cursor: default; opacity: 0.6; transform: none; }
.btn.resend { font-variant-numeric: tabular-nums; }
.linkish { border: 0; background: none; padding: 0 2px; font: inherit; font-weight: 800; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.badge-mail {
  width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; rotate: -6deg;
  background: linear-gradient(135deg, var(--caramel), var(--honey)); color: var(--espresso); box-shadow: 0 14px 30px rgba(217, 151, 74, 0.35);
}
.badge-mail .i { font-size: 36px; }

.code-boxes { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-boxes input {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; padding: 0; margin: 0;
  background: transparent; color: transparent; caret-color: transparent; font-size: 16px; outline: none; cursor: text;
}
.code-boxes input::selection { background: transparent; }
.code-boxes span {
  height: 64px; border-radius: 16px; display: grid; place-items: center; font: 600 30px/1 var(--serif); color: var(--text);
  background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow var(--fast), background-color var(--fast);
}
.code-boxes span.filled { background: var(--surface); box-shadow: inset 0 0 0 1.5px rgba(217, 151, 74, 0.55); animation: pop 0.42s var(--spring); }
.code-boxes span.active { background: var(--surface); box-shadow: inset 0 0 0 2px var(--caramel), 0 0 0 4px rgba(217, 151, 74, 0.22); }
.code-boxes span.active:empty::after { content: ''; width: 2px; height: 28px; border-radius: 1px; background: var(--caramel); animation: blink 1s steps(1) infinite; }
.field.bad .code-boxes span { box-shadow: inset 0 0 0 2px var(--cherry); background: rgba(217, 108, 95, 0.1); color: var(--cherry-text); }
@media (max-width: 380px) { .code-boxes { gap: 6px; } .code-boxes span { height: 56px; font-size: 26px; } }

.join-done { justify-items: center; text-align: center; }
.join-done:focus { outline: none; }
.join-done img { width: 120px; height: 120px; animation: bob 3.2s ease-in-out infinite; }
.member-no { color: var(--sub); font-weight: 700; }
.member-no b { font: 600 22px var(--serif); color: var(--text); letter-spacing: 0.04em; }
.member-no[hidden] { display: none; }
.next { list-style: none; counter-reset: next; padding: 0; margin: 4px 0; display: grid; gap: 10px; text-align: left; width: 100%; }
.next li { counter-increment: next; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 14px; border-radius: 18px; background: var(--bg); }
.next li::before { content: counter(next); grid-row: span 2; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font: 700 16px var(--serif); background: var(--tint); color: var(--link); }
.next b { font-size: 16px; overflow-wrap: anywhere; }
.next li > span { color: var(--sub); font-size: 14.5px; font-weight: 600; }
.join-done .stores { justify-content: center; }

@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(0.82); } 100% { transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* ───────────────────────── footer */

.site-footer { margin-top: clamp(48px, 8vw, 96px); background: var(--surface-2); padding: clamp(48px, 7vw, 80px) 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid p { color: var(--sub); font-size: 15.5px; max-width: 320px; margin-top: 14px; }
.foot-grid h4 { margin: 4px 0 12px; font: 800 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot-grid a:hover { color: var(--link); text-decoration: underline; }
.legal-line { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--sub); font-size: 14px; font-weight: 600; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ───────────────────────── motion (none with reduced motion) */

/* only hidden while the script runs (html.js); without it, or if it never starts, everything shows */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-12deg); } 50% { transform: translate(6px, -14px) rotate(16deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(0.6); opacity: 0.4; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes stamp-in { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes scan { 0%, 100% { top: 14%; } 50% { top: 84%; } }
@keyframes sheet-up { from { transform: translateY(110%); } to { transform: none; } }

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

/* Feature spotlights (home › What you can do): one feature per row, text beside an illustration, alternating sides. */
.spotlights { display: grid; gap: clamp(44px, 7vw, 96px); }
.spot h3 { font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -0.02em; }
.spot .lead { font-size: 17.5px; }
.spot .tile { margin-bottom: 0; }
.spot img { width: 100%; max-width: 500px; justify-self: center; border-radius: var(--r-lg); }
@media (max-width: 900px) { .spot img { max-width: 440px; } }

/* The account button lives in the bar, not the menu, so phones keep it beside the menu button. */
.bar-cta { flex-shrink: 0; }
@media (max-width: 860px) {
  .bar { gap: 10px; }
  .bar-cta { order: 1; min-height: 40px; padding: 0 14px; font-size: 14px; }
  .menu-btn { order: 2; }
}
@media (max-width: 360px) { .bar-cta { display: none; } }
.plan .eyebrow { justify-self: start; }
.plan .fineprint { text-align: left; }
