/* BrewMate — brewmateapp.com
   One stylesheet. Desktop (1025px+) is the base; the tablet (768–1024px)
   and mobile (≤767px) overrides are grouped in two media queries near the end. */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-sans-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/instrument-sans-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/instrument-sans-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/instrument-sans-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/instrument-sans-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/silkscreen-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/silkscreen-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: italic; font-weight: 600; font-display: swap; src: url(../fonts/instrument-sans-600-italic.woff2) format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  /* Brand colours */
  --paper: #F5F2EC;
  --bone: #E9E4DA;
  --ink: #0D0C0B;
  --coral: #E8542A;
  --coral-deep: #C4401D;
  --coral-hover: #9E3316;
  --muted: #6B645B;
  --muted-on-bone: #5A544C;
  --muted-on-ink: #B8B0A4;
  --line: rgba(13, 12, 11, 0.15);
  --line-on-ink: rgba(245, 242, 236, 0.15);
  --white: #FFFFFF;
  --body-text: #3F3A34;
  --line-soft: rgba(13, 12, 11, 0.1);
  --header-bg: rgba(245, 242, 236, 0.9);

  --font: 'Instrument Sans', system-ui, sans-serif;
  --font-pixel: 'Silkscreen', 'Instrument Sans', system-ui, sans-serif;
  /* Stepped 12px corners for pixel buttons (3 steps of 4px). */
  --pixel-clip: polygon(0 12px,4px 12px,4px 8px,8px 8px,8px 4px,12px 4px,12px 0,calc(100% - 12px) 0,calc(100% - 12px) 4px,calc(100% - 8px) 4px,calc(100% - 8px) 8px,calc(100% - 4px) 8px,calc(100% - 4px) 12px,100% 12px,100% calc(100% - 12px),calc(100% - 4px) calc(100% - 12px),calc(100% - 4px) calc(100% - 8px),calc(100% - 8px) calc(100% - 8px),calc(100% - 8px) calc(100% - 4px),calc(100% - 12px) calc(100% - 4px),calc(100% - 12px) 100%,12px 100%,12px calc(100% - 4px),8px calc(100% - 4px),8px calc(100% - 8px),4px calc(100% - 8px),4px calc(100% - 12px),0 calc(100% - 12px));
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  /* Layout. Desktop values equal the 1440px artboard and shrink
     proportionally down to 1025px so nothing overflows. */
  --pad-x: clamp(48px, 6.944vw, 100px);
  --header-h: 88px;
  --hero-gap: clamp(40px, 4.444vw, 64px);
  /* The hero accent ("LOCAL CAFÉ.") can't wrap, so the panel and headline
     shrink together below 1440px to keep it beside the phone. */
  --hero-panel-w: clamp(360px, 36.111vw, 520px);
  --h1: clamp(58px, 5.833vw, 84px);
  --split-gap: clamp(48px, 6.667vw, 96px);
  --feature-panel-w: clamp(400px, 41.667vw, 600px);
  --privacy-list-w: clamp(360px, 30.556vw, 440px);
  /* 420px at 1440 fits "QUESTIONS."; column and heading scale together below that. */
  --faq-title-w: clamp(330px, 29.167vw, 420px);
  --faq-col-gap: clamp(32px, 3.889vw, 56px);

  /* Motion distances (tablet and mobile use smaller values) */
  --float-y: -12px;
  --par-y: 60px;
  --hero-phone-y: -70px;
  --hero-text-y: 90px;
  --slide-x: 64px;
  /* Durations keep the designed ticker speed (34.1 / 35.6 / 30.3 px/s at
     desktop / tablet / mobile) for the current brewer list and Silkscreen
     labels. Re-measure if the list or its font changes: npm run check:motion. */
  --marquee-dur: 38.43s;
  --hero-scroll: 700px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); font-family: var(--font); color: var(--ink); }
img, svg { display: block; }
a { color: var(--coral-deep); }
a:hover { color: var(--coral-hover); }
em { font-style: italic; }
main { display: block; overflow-x: clip; }
:where(ul, ol)[role='list'] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 3px; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; color: var(--paper); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Shared type ---------- */
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral-deep); }
/* Headline accent phrases: pixel face, kept on one line (except where marked). */
.accent { display: inline-block; font-family: var(--font-pixel); font-weight: 700; font-style: normal; text-transform: uppercase; letter-spacing: -0.06em; white-space: nowrap; color: var(--coral-deep); }
/* inline-block: Safari won't break at the space before a nowrap inline, so the
   phrase is laid out as one unit that every engine can move to the next line. */
.accent--wrap { display: inline; white-space: normal; }
.h2 { margin: 0; font-size: 56px; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 60px; padding: 0 32px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 17px; font-weight: 600; white-space: nowrap; }
.btn:hover { color: var(--paper); }
.btn--sm { height: 48px; padding: 0 24px; font-size: 15px; }

/* Pixel buttons: stepped corners, pixel label. Size and colours come from .btn. */
.btn-pixel { border-radius: 0; clip-path: var(--pixel-clip); font-family: var(--font-pixel); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.btn-pixel--text { font-family: var(--font); font-weight: 600; text-transform: none; letter-spacing: normal; }
.btn-pixel.bm-btn:hover { transform: translateY(-2px); box-shadow: none; }
.btn-pixel:active, .btn-pixel.bm-btn:active { transform: translateY(1px); }
/* clip-path hides anything outside the shape, so the focus ring sits inside it. */
.btn-pixel:focus-visible { outline: 2px solid var(--pixel-ring, var(--paper)); outline-offset: -3px; }
.btn--coral { --pixel-ring: var(--ink); }

.bm-btn { transition: transform .2s ease, box-shadow .2s ease; }
.bm-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13, 12, 11, .18); }
.bm-link { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 3px; transition: background-size .25s ease; }
.bm-link:hover { background-size: 100% 1.5px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-h); padding: 0 var(--pad-x); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--header-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bm-progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 3px; background: var(--coral); }
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 40px; width: 203px; }
/* 16px type and 40px gaps at 1440+; the wide pixel face eases down to 14px and
   ~28px gaps by 1025 so the nav keeps clear of the logo and button. */
.site-nav { display: flex; align-items: center; gap: clamp(24px, 2.778vw, 40px); font-family: var(--font-pixel); font-size: clamp(14px, 1.1112vw, 16px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.site-nav a, .site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current='page'] { color: var(--coral-deep); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; clip-path: var(--pixel-clip); background: var(--bone); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.menu-btn__close, .menu-btn[aria-expanded='true'] .menu-btn__open { display: none; }
.menu-btn[aria-expanded='true'] .menu-btn__close { display: block; }
.menu-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 8px var(--pad-x) 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(13, 12, 11, 0.12); flex-direction: column; }
.menu-panel a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--font-pixel); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.menu-panel a[aria-current='page']:not(.btn) { color: var(--coral-deep); }
.menu-panel__cta { margin-top: 20px; height: 56px; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { min-height: 120px; padding: 0 var(--pad-x); display: grid; grid-template-columns: auto auto 1fr auto; grid-template-areas: 'logo copy . links'; align-items: center; align-content: center; column-gap: 24px; background: var(--ink); color: var(--muted-on-ink); font-size: 15px; }
.site-footer__logo { grid-area: logo; height: 32px; width: 162px; }
.site-footer__copy { grid-area: copy; }
.site-footer__copy-name { display: none; }
.site-footer__links { grid-area: links; display: flex; gap: 32px; }
.site-footer__links a, .site-footer__links a:hover { color: var(--paper); text-decoration: none; }

/* ---------- Phone mockups ---------- */
.phone { flex-shrink: 0; background: var(--ink); }
.phone img { object-fit: cover; object-position: top; }
.phone--hero { margin-top: 56px; width: 300px; height: 624px; padding: 12px; border-radius: 52px; }
.phone--hero img { width: 276px; height: 600px; border-radius: 41px; }
.phone--feature { width: 250px; height: 520px; padding: 10px; border-radius: 44px; }
.phone--feature img { width: 230px; height: 500px; border-radius: 35px; }

/* ---------- Checklists ---------- */
.checklist { display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.checklist li { display: flex; align-items: center; gap: 12px; }
.checklist svg { flex-shrink: 0; }
.check { color: var(--coral-deep); }
.privacy-band .check, .plan--pro .check { color: var(--coral); }
.plan--free .check { color: var(--ink); }

/* ---------- Home: hero ---------- */
.hero { padding: 64px var(--pad-x); display: flex; align-items: center; gap: var(--hero-gap); }
.hero__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero h1 { margin: 0; font-size: var(--h1); font-weight: 600; line-height: 1; letter-spacing: -0.035em; }
.hero__lede { margin: 0; max-width: 540px; font-size: 21px; line-height: 1.5; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 8px; }
.hero__note { font-size: 15px; line-height: 1.5; color: var(--muted); }
.hero__visual { width: var(--hero-panel-w); height: 632px; flex-shrink: 0; border-radius: 32px; background: var(--bone); overflow: hidden; display: flex; justify-content: center; }
.hero__phone { flex-shrink: 0; }

/* ---------- Home: brewer ticker ---------- */
.brewers { min-height: 88px; padding-left: var(--pad-x); display: flex; align-items: center; gap: 40px; background: var(--ink); color: var(--paper); font-size: 17px; font-weight: 500; overflow: hidden; }
.brewers__label { flex-shrink: 0; font-family: var(--font-pixel); font-weight: 700; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); }
.bm-marquee { flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.bm-track { display: flex; width: max-content; }
.brewers__group { display: flex; flex-shrink: 0; gap: 56px; padding-right: 56px; font-family: var(--font-pixel); font-weight: 400; font-style: normal; text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------- Home: features ---------- */
.section-intro { min-height: 220px; padding: 82px var(--pad-x) 40px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 16px; text-align: center; }
@media (min-width: 1025px) { .section-intro .h2, .cta h2 { text-wrap: balance; } }
.section-intro p { margin: 0; font-size: 19px; color: var(--muted); }

.feature { padding: 30px var(--pad-x); display: flex; align-items: center; gap: var(--split-gap); }
.feature__visual { position: relative; overflow: hidden; width: var(--feature-panel-w); height: 540px; flex-shrink: 0; border-radius: 32px; background: var(--bone); display: flex; align-items: center; justify-content: center; }
.feature__visual .bm-par { position: relative; --p: 40px; }
.feature__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.feature__text h3 { margin: 0; font-size: 44px; font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; }
.feature__text p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--muted); }
.feature__text .checklist { margin-top: 8px; }
.feature__text .eyebrow, .hero .eyebrow { font-family: var(--font-pixel); font-weight: 700; letter-spacing: 0.04em; }
.eyebrow-row { display: flex; align-items: center; gap: 12px; }
.badge { padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; }

/* ---------- Home: privacy band ---------- */
.privacy-band { margin-top: 30px; min-height: 400px; padding: 0 var(--pad-x); display: flex; align-items: center; gap: var(--split-gap); background: var(--ink); color: var(--paper); }
.privacy-band__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.privacy-band .eyebrow { color: var(--coral); }
.privacy-band h2 { margin: 0; font-size: clamp(42px, 3.611vw, 52px); /* 52px at 1440; "ON YOUR PHONE." stays on one line */ font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.privacy-band h2 .accent { color: var(--coral); }
.privacy-band__link, .privacy-band__link:hover { color: var(--paper); font-size: 17px; font-weight: 600; }
.privacy-band__list { width: var(--privacy-list-w); flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; font-size: 18px; }
.privacy-band__list li { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line-on-ink); }
.privacy-band__list li:last-child { padding-bottom: 0; border-bottom: 0; }

/* ---------- Home: pricing ---------- */
.pricing { min-height: 700px; padding: 100px var(--pad-x) 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 56px; }
.pricing__intro { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.pricing__intro p { margin: 0; font-size: 19px; color: var(--muted); }
.pricing__grid { width: min(960px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { min-height: 360px; padding: 40px; border-radius: 28px; display: flex; flex-direction: column; gap: 28px; }
.plan--free { background: var(--white); border: 1px solid var(--line); }
.plan--pro { background: var(--ink); color: var(--paper); }
.plan__head { display: flex; flex-direction: column; gap: 8px; }
.plan__name-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__name { margin: 0; font-size: 20px; font-weight: 600; line-height: normal; }
.plan__trial { padding: 6px 12px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__amount { font-size: 56px; font-weight: 600; letter-spacing: -0.03em; }
.plan__per { font-size: 17px; color: var(--muted-on-ink); }
.plan .checklist { flex-grow: 1; gap: 14px; }

/* ---------- Home: FAQ ---------- */
.faq { min-height: 640px; padding: 100px var(--pad-x); background: var(--bone); display: flex; gap: var(--split-gap); }
.faq > .h2 { width: var(--faq-title-w); flex-shrink: 0; font-size: clamp(44px, 3.889vw, 56px); }
.faq__grid { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--faq-col-gap); }
.faq__item { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.faq__item h3 { margin: 0; font-size: 21px; font-weight: 600; }
.faq__item p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted-on-bone); }

/* ---------- Home: download CTA ---------- */
.cta { position: relative; overflow: hidden; min-height: 400px; padding: 0 var(--pad-x); background: var(--coral); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; text-align: center; }
.cta h2 .accent { color: inherit; }
.cta h2 { margin: 0; max-width: 900px; font-size: 72px; font-weight: 600; line-height: 1; letter-spacing: -0.035em; color: var(--ink); }

/* ---------- Privacy policy ---------- */
.policy-hero { min-height: 320px; padding: 80px var(--pad-x) 48px; display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; }
.policy-hero h1 { margin: 0; font-size: 72px; font-weight: 600; line-height: 1; letter-spacing: -0.035em; }
.policy-hero p { margin: 0; font-size: 17px; color: var(--muted); }

.summary { padding: 0 var(--pad-x); }
.summary__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.summary__card { min-height: 180px; padding: 28px; border-radius: 20px; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; }
.summary__card svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--coral); }
.summary__card span { font-size: 19px; font-weight: 600; line-height: 1.3; }
.summary__card:nth-child(1) { --delay: .43s; }
.summary__card:nth-child(2) { --delay: .51s; }
.summary__card:nth-child(3) { --delay: .59s; }
.summary__card:nth-child(4) { --delay: .67s; }
@media (min-width: 1025px) { .summary__card .bm-pop { animation: none; } } /* desktop design has no pop here */

.policy { padding: 80px var(--pad-x); display: flex; gap: clamp(56px, 8.333vw, 120px); }
.toc { position: sticky; top: calc(var(--header-h) + 40px); align-self: flex-start; width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.toc__label { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.toc a, .toc a:hover { padding: 10px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.toc a:last-child { border-bottom: 0; }
.policy__body { flex: 0 1 760px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.policy__section { display: flex; flex-direction: column; gap: 16px; }
.policy__section:not(:first-child) { padding-top: 48px; border-top: 1px solid var(--line); }
.policy__section--loose { gap: 20px; }
.policy__section h2 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.policy__section p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--body-text); }
.policy__section ul:not(.chips) { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 18px; line-height: 1.6; color: var(--body-text); }
.services { margin: 0; display: flex; flex-direction: column; border-radius: 16px; background: var(--white); border: 1px solid var(--line); font-size: 17px; }
.services > div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line-soft); }
.services > div:last-child { border-bottom: 0; }
.services dt { font-weight: 600; }
.services dd { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border-radius: 999px; background: var(--bone); font-size: 15px; font-weight: 500; }

/* Coral "Questions?" card (privacy policy) */
.contact-card { padding: 32px; border-radius: 20px; background: var(--coral); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact-card__text { display: flex; flex-direction: column; gap: 6px; }
.contact-card h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.contact-card__text span { font-size: 17px; }
.contact-card__btn { height: 54px; padding: 0 26px; font-size: 16px; }

/* ---------- Contact ---------- */
.btn--coral, .btn--coral:hover { background: var(--coral); color: var(--ink); }
.contact-hero { min-height: 520px; padding: 80px var(--pad-x); display: flex; align-items: center; gap: clamp(48px, 5.556vw, 80px); }
.contact-hero__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-hero h1 { margin: 0; font-size: 72px; font-weight: 600; line-height: 1; letter-spacing: -0.035em; }
.contact-hero__text p { margin: 0; max-width: 520px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.email-card { --delay: .25s; width: clamp(420px, 33.333vw, 480px); min-height: 340px; flex-shrink: 0; padding: 40px; border-radius: 28px; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; }
.contact-hero__icon { color: var(--coral); }
.email-card__address { display: flex; flex-direction: column; gap: 8px; }
.email-card__label { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-ink); }
.email-card__link, .email-card__link:hover { color: var(--paper); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; }
.email-card__btn { align-self: flex-start; height: 54px; padding: 0 28px; font-size: 16px; }

.bugs { min-height: 572px; padding: 88px var(--pad-x); background: var(--bone); display: flex; flex-direction: column; gap: 48px; }
.bugs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.bugs__head h2 { margin: 0; font-size: 48px; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.bugs__head p { margin: 0; font-size: 18px; color: var(--muted-on-bone); }
.bugs__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bug-card { min-height: 240px; padding: 32px; border-radius: 24px; background: var(--white); display: flex; flex-direction: column; justify-content: space-between; }
.bug-card__num { width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; }
.bug-card__num--accent { background: var(--coral); color: var(--ink); }
.bug-card__text { display: flex; flex-direction: column; gap: 8px; }
.bug-card h3 { margin: 0; font-size: 22px; font-weight: 600; }
.bug-card p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted-on-bone); }
/* Desktop cards lift on hover like buttons; tablet and mobile stagger in instead. */
@media (min-width: 1025px) {
  .bug-card { transition: transform .2s ease, box-shadow .2s ease; }
  .bug-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13, 12, 11, .18); }
}

/* ---------- 404 ---------- */
.not-found { min-height: calc(100vh - var(--header-h) - 120px); min-height: calc(100svh - var(--header-h) - 120px); padding: 80px var(--pad-x); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; }
.not-found h1 { margin: 0; font-size: 72px; font-weight: 600; line-height: 1; letter-spacing: -0.035em; }
.not-found p { margin: 0; max-width: 520px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.not-found__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 8px; }
.not-found__link, .not-found__link:hover { color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none; }

/* ---------- Tablet: 768–1024px (also the base for mobile) ---------- */
@media (max-width: 1024px) {
  :root {
    --pad-x: 48px;
    --header-h: 80px;
    --header-bg: rgba(245, 242, 236, 0.92);
    --h1: 64px;
    --float-y: -10px;
    --par-y: 40px;
    --hero-phone-y: -60px;
    --hero-text-y: 70px;
    --slide-x: 48px;
    --marquee-dur: 32.44s;
    --hero-scroll: 600px;
  }
  .eyebrow { font-size: 14px; }

  .site-logo img { height: 36px; width: 182px; }
  .site-nav { display: none; }
  .header-actions .btn--sm { height: 44px; padding: 0 20px; }
  .menu-btn { display: flex; }
  .site-header.is-open .menu-panel { display: flex; }

  .site-footer { min-height: 0; padding: 40px var(--pad-x) 48px; grid-template-columns: 1fr auto; grid-template-areas: 'logo copy' 'links links'; row-gap: 24px; }
  .site-footer__logo { height: 30px; width: 152px; }
  .site-footer__copy-name { display: inline; }
  .site-footer__links { flex-wrap: wrap; gap: 28px; }

  .hero { flex-direction: column; align-items: stretch; padding: 56px var(--pad-x) 64px; gap: 48px; }
  .hero__text { flex: none; gap: 24px; }
  .hero h1 { line-height: 1.02; }
  .hero__lede { max-width: 560px; font-size: 19px; }
  .hero__cta { gap: 20px; margin-top: 4px; }
  .hero__cta .btn { padding: 0 30px; }
  .hero__visual { width: 100%; height: 560px; }
  .hero__phone { margin-top: 56px; }
  .phone--hero { margin-top: 0; width: 260px; height: 537px; border-radius: 46px; }
  .phone--hero img { width: 236px; height: 513px; border-radius: 34px; }

  .brewers { min-height: 72px; gap: 32px; font-size: 16px; }
  .brewers__label { font-size: 13px; }
  .bm-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .brewers__group { gap: 44px; padding-right: 44px; }

  .section-intro { min-height: 0; padding: 88px var(--pad-x) 40px; gap: 12px; }
  .section-intro .h2 { font-size: 44px; line-height: 1.08; }
  .section-intro p { font-size: 18px; line-height: 1.5; }

  .feature { padding: 24px var(--pad-x); gap: 40px; }
  .feature__visual { width: 316px; height: 460px; border-radius: 28px; }
  .feature__visual .bm-par { --p: 30px; }
  .phone--feature { width: 200px; height: 416px; padding: 8px; border-radius: 36px; }
  .phone--feature img { width: 184px; height: 400px; border-radius: 28px; }
  .feature__text { gap: 16px; }
  .feature__text h3 { font-size: 30px; line-height: 1.1; }
  .feature__text p { font-size: 17px; line-height: 1.5; }
  .feature__text .checklist { gap: 10px; margin-top: 4px; font-size: 16px; }
  .feature__text .checklist li { align-items: flex-start; gap: 10px; line-height: 1.4; }
  .eyebrow-row { gap: 10px; }
  .badge { font-size: 11px; }

  .privacy-band { margin-top: 24px; min-height: 0; padding: 72px var(--pad-x); flex-direction: column; align-items: stretch; gap: 40px; }
  .privacy-band__text { gap: 14px; }
  .privacy-band h2 { font-size: 40px; line-height: 1.08; }
  .privacy-band__link, .privacy-band__link:hover { font-size: 16px; }
  .privacy-band__list { width: auto; gap: 16px; font-size: 17px; }
  .privacy-band__list li { padding-bottom: 16px; }

  .pricing { min-height: 0; padding: 88px var(--pad-x) 72px; align-items: stretch; gap: 40px; }
  .pricing__intro { gap: 12px; }
  .pricing__intro .h2 { font-size: 44px; }
  .pricing__intro p { font-size: 18px; }
  .pricing__grid { width: auto; gap: 16px; }
  .plan { padding: 32px; border-radius: 24px; gap: 24px; }
  .plan__head { gap: 6px; }
  .plan__name-row { gap: 8px; }
  .plan__name { font-size: 19px; }
  .plan__trial { font-size: 12px; }
  .plan__amount { font-size: 48px; }
  .plan__per { font-size: 16px; }
  .plan .checklist { gap: 12px; font-size: 16px; }

  .faq { min-height: 0; padding: 80px var(--pad-x); flex-direction: column; gap: 32px; }
  .faq > .h2 { width: auto; font-size: 44px; }
  .faq__grid { display: flex; flex-direction: column; gap: 24px; }
  .faq__item { gap: 8px; padding-top: 20px; }
  .faq__item h3 { font-size: 19px; line-height: 1.3; }
  .faq__item p { font-size: 16px; }

  .cta { min-height: 340px; gap: 28px; }
  .cta h2 { font-size: 56px; line-height: 1.02; }
  .policy-hero { min-height: 0; padding: 64px var(--pad-x) 40px; gap: 18px; }
  .policy-hero h1 { font-size: 56px; line-height: 1.02; }
  .policy-hero p { font-size: 16px; line-height: 1.5; }
  .summary__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .summary__card { min-height: 150px; padding: 24px; }
  .summary__card span { font-size: 18px; }
  .summary__card:nth-child(1) { --delay: .40s; }
  .summary__card:nth-child(2) { --delay: .48s; }
  .summary__card:nth-child(3) { --delay: .56s; }
  .summary__card:nth-child(4) { --delay: .64s; }
  .policy { display: block; padding: 56px var(--pad-x) 72px; }
  .toc { display: none; }
  .policy__body { gap: 44px; }
  .policy__section, .policy__section--loose { gap: 14px; }
  .policy__section:not(:first-child) { padding-top: 40px; }
  .policy__section h2 { font-size: 28px; }
  .policy__section p { font-size: 17px; line-height: 1.6; }
  .policy__section ul:not(.chips) { padding-left: 20px; font-size: 17px; line-height: 1.55; }
  .services > div { padding: 16px 22px; }
  .chips { gap: 8px; }
  .chips li { padding: 9px 14px; line-height: 1.3; }
  .contact-card { padding: 28px; gap: 20px; }
  .contact-card h2 { font-size: 24px; }
  .contact-card__text span { font-size: 16px; }
  .contact-card__btn { height: 52px; padding: 0 24px; }
  .contact-hero { min-height: 0; flex-direction: column; align-items: stretch; padding: 64px var(--pad-x) 56px; gap: 40px; }
  .contact-hero__text { flex: none; gap: 20px; }
  .contact-hero h1 { font-size: 56px; line-height: 1.02; }
  .contact-hero__text p { max-width: 560px; font-size: 19px; }
  .email-card { --delay: .4s; width: auto; min-height: 0; padding: 36px; border-radius: 24px; justify-content: flex-start; gap: 28px; }
  .contact-hero__icon { width: 36px; height: 36px; }
  .email-card__address { gap: 6px; }
  .email-card__label { font-size: 13px; }
  .email-card__link, .email-card__link:hover { font-size: 30px; }
  .email-card__btn { height: 52px; }
  .bugs { min-height: 0; padding: 72px var(--pad-x); gap: 32px; }
  .bugs__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bugs__head h2 { font-size: 40px; }
  .bugs__head p { font-size: 17px; line-height: 1.5; }
  .bugs__list { display: flex; flex-direction: column; gap: 16px; }
  .bug-card { min-height: 0; padding: 28px; border-radius: 20px; flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 20px; }
  .bug-card__num { width: 40px; height: 40px; font-size: 16px; }
  .bug-card__text { gap: 6px; }
  .bug-card h3 { font-size: 20px; }
  .bug-card p { font-size: 16px; }
  .not-found { padding: 64px var(--pad-x); gap: 20px; }
  .not-found h1 { font-size: 56px; line-height: 1.02; }
  .not-found p { font-size: 19px; }
}

/* ---------- Mobile: up to 767px ---------- */
@media (max-width: 767px) {
  :root {
    --pad-x: 20px;
    --header-h: 64px;
    --marquee-dur: 32.99s;
    /* 44px at 390 and up; narrower phones shrink it so "LOCAL CAFÉ." fits. */
    --h1: min(44px, calc((100vw - 40px) / 7.9));
  }
  .eyebrow { font-size: 13px; }

  .site-logo img { height: 30px; width: 152px; }
  .header-actions .btn--sm { display: none; }
  .menu-panel a:not(.btn) { font-size: 20px; }

  .site-footer { padding: 36px var(--pad-x) 40px; grid-template-columns: 1fr; grid-template-areas: 'logo' 'links' 'copy'; }
  .site-footer__logo { height: 28px; width: 142px; }
  .site-footer__links { flex-direction: column; align-items: flex-start; gap: 14px; font-size: 16px; }

  .hero { padding: 32px var(--pad-x) 40px; gap: 32px; }
  .hero__text { gap: 20px; }
  .hero__lede { font-size: 17px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__cta .btn { height: 56px; }
  .hero__note { text-align: center; }
  .hero__note br { display: none; }
  .hero__visual { height: 440px; border-radius: 24px; }
  .hero__phone { margin-top: 40px; }
  .phone--hero { width: 220px; height: 455px; padding: 10px; border-radius: 40px; }
  .phone--hero img { width: 200px; height: 435px; border-radius: 30px; }

  .brewers { min-height: 60px; gap: 20px; font-size: 15px; }
  .brewers__label { font-size: 12px; }
  .brewers__group { gap: 32px; padding-right: 32px; }

  .section-intro { padding: 64px var(--pad-x) 24px; }
  .section-intro .h2 { font-size: 32px; }
  .section-intro p { font-size: 16px; }

  /* Every feature stacks image-first; rows are a fixed rhythm in the design. */
  .feature { min-height: 770px; flex-direction: column; align-items: stretch; padding: 20px var(--pad-x) 36px; gap: 28px; }
  .feature--flip .feature__visual { order: -1; }
  .feature__visual { width: auto; height: 400px; border-radius: 24px; }
  .feature__visual .bm-par { --p: 24px; }
  .phone--feature { width: 184px; height: 381px; border-radius: 34px; }
  .phone--feature img { width: 168px; height: 365px; border-radius: 26px; }
  .feature__text { gap: 14px; }
  .feature__text h3 { font-size: 28px; }

  .privacy-band { margin-top: 16px; padding: 56px var(--pad-x); gap: 32px; }
  .privacy-band h2 { font-size: min(32px, calc((100vw - 40px) / 10.6)); } /* "ON YOUR PHONE." stays on one line */

  .pricing { padding: 72px var(--pad-x) 56px; gap: 32px; }
  .pricing__intro .h2 { font-size: 36px; }
  .pricing__intro p { font-size: 16px; }
  .pricing__grid { grid-template-columns: minmax(0, 1fr); }
  .plan { min-height: 330px; padding: 28px; }

  .faq { padding: 64px var(--pad-x); gap: 24px; }
  .faq > .h2 { font-size: 36px; }
  .faq__grid { gap: 20px; }
  .faq__item h3 { font-size: 18px; }

  .cta { min-height: 320px; align-items: stretch; gap: 24px; }
  .cta h2 { font-size: 40px; }
  .cta .btn { height: 56px; }
  .policy-hero { padding: 40px var(--pad-x) 28px; gap: 14px; }
  .policy-hero h1 { font-size: 40px; }
  .policy-hero p { font-size: 15px; }
  .summary__list { display: flex; flex-direction: column; gap: 10px; }
  .summary__card { min-height: 0; padding: 20px; border-radius: 18px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }
  .summary__card svg { width: 22px; height: 22px; }
  .summary__card span { font-size: 17px; }
  .policy { padding: 48px var(--pad-x) 56px; }
  .policy__body { gap: 36px; }
  .policy__section:not(:first-child) { padding-top: 36px; }
  .policy__section h2 { font-size: 24px; }
  .policy__section p, .policy__section ul:not(.chips) { font-size: 16px; }
  .services { font-size: 16px; }
  .services > div { flex-direction: column; gap: 2px; padding: 14px 18px; }
  .chips li { font-size: 14px; }
  .contact-card { padding: 24px; flex-direction: column; align-items: stretch; gap: 18px; }
  .contact-card h2 { font-size: 22px; }
  .contact-hero { padding: 40px var(--pad-x) 48px; gap: 32px; }
  .contact-hero__text { gap: 16px; }
  .contact-hero h1 { font-size: 40px; }
  .contact-hero__text p { font-size: 17px; }
  .email-card { padding: 28px; gap: 24px; }
  /* 22px at the 390 artboard; shrinks on narrower phones so the address stays on one line. */
  .email-card__link, .email-card__link:hover { font-size: clamp(17px, 5.9vw, 22px); }
  .email-card__btn { align-self: stretch; }
  .bugs { padding: 56px var(--pad-x); gap: 28px; }
  .bugs__head h2 { font-size: 32px; }
  .bugs__head p { font-size: 16px; }
  .bugs__list { gap: 12px; }
  .bug-card { padding: 24px; flex-direction: column; gap: 16px; }
  .not-found { padding: 48px var(--pad-x); gap: 16px; }
  .not-found h1 { font-size: min(40px, calc((100vw - 40px) / 7.4)); } /* "GONE COLD." stays on one line */
  .not-found p { font-size: 17px; }
  .not-found__actions { align-self: stretch; flex-direction: column; align-items: stretch; gap: 16px; }
  .not-found__actions .btn { height: 56px; }
  .not-found__link { align-self: center; }

  /* In Silkscreen, "DOWNLOAD ON THE APP STORE" is ~20.65px wide per px of font
     size, wider than a full-width phone button at 17px. Shrink only these
     labels enough to stay clear of the 12px stepped corners (~15.5px at 390). */
  .hero__cta .btn-pixel, .cta .btn-pixel { font-size: min(17px, calc((100vw - 40px - 28px) / 20.65)); }
  .menu-panel__cta.btn-pixel { font-size: min(16px, calc((100vw - 40px - 28px) / 20.65)); }
  /* 14px sides (label + padding = button width at these sizes). Safari won't
     shrink a stretched button below its content width, so the usual 30-32px
     padding would push it past the screen edge. */
  .hero__cta .btn-pixel, .cta .btn-pixel, .menu-panel__cta.btn-pixel { padding-left: 14px; padding-right: 14px; }
}

/* ---------- Motion ---------- */
@keyframes bmUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes bmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--float-y)); } }
@keyframes bmMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bmPar { from { translate: 0 var(--p, var(--par-y)); } to { translate: 0 calc(var(--p, var(--par-y)) * -1); } }
@keyframes bmHeroPhone { to { translate: 0 var(--hero-phone-y); } }
@keyframes bmHeroText { to { translate: 0 var(--hero-text-y); opacity: .1; } }
@keyframes bmScaleIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bmLeft { from { opacity: 0; transform: translateX(calc(var(--slide-x) * -1)); } to { opacity: 1; transform: none; } }
@keyframes bmRight { from { opacity: 0; transform: translateX(var(--slide-x)); } to { opacity: 1; transform: none; } }
@keyframes bmPop { from { scale: 0; } 70% { scale: 1.25; } to { scale: 1; } }
@keyframes bmProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bmSpin { to { rotate: 360deg; } }
@keyframes bmMenu { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.bm-in { animation: bmUp .8s var(--ease-out) both; animation-delay: var(--delay, 0s); }
/* Own variable: --delay is inherited, and a parent .bm-in's delay must not shift the float. */
.bm-float { animation: bmFloat 6s ease-in-out infinite; animation-delay: var(--float-delay, 0s); }
.bm-track { animation: bmMarquee var(--marquee-dur) linear infinite; }
.bm-marquee:hover .bm-track { animation-play-state: paused; }
.bm-menu { animation: bmMenu .22s ease-out both; }
.bm-ring { animation: bmSpin 60s linear infinite; }

/* Scroll-driven effects, only where supported. main.js adds an
   IntersectionObserver fallback for .bm-reveal and .bm-stagger. */
.bm-progress { display: none; }
@supports (animation-timeline: view()) {
  .bm-reveal { animation: bmUp linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  .bm-progress { display: block; transform-origin: 0 50%; animation: bmProgress linear both; animation-timeline: scroll(root); }
  .bm-par { animation: bmPar linear both; animation-timeline: view(); animation-range: cover; }
  .bm-hero-phone { animation: bmHeroPhone linear both; animation-timeline: scroll(root); animation-range: 0 var(--hero-scroll); }
  .bm-hero-text { animation: bmHeroText linear both; animation-timeline: scroll(root); animation-range: 0 var(--hero-scroll); }
  .bm-stagger > * { animation: bmUp linear both; animation-timeline: view(); animation-range: entry 0% cover 16%; }
  .bm-stagger > :nth-child(2) { animation-range: entry 8% cover 22%; }
  .bm-stagger > :nth-child(3) { animation-range: entry 16% cover 28%; }
  .bm-stagger > :nth-child(n+4) { animation-range: entry 24% cover 34%; }
  .bm-scale { animation: bmScaleIn linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  .bm-left { animation: bmLeft linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  .bm-right { animation: bmRight linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  .bm-pop { animation: bmPop linear both; animation-timeline: view(); animation-range: entry 30% cover 40%; }
  .bm-ring { animation: bmSpin 60s linear infinite, bmPar linear both; animation-timeline: auto, view(); animation-range: normal, cover; }
}

/* IntersectionObserver fallback (html.io-reveal is set by main.js). */
.io-reveal .bm-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.io-reveal .bm-stagger > :nth-child(2) { transition-delay: .08s; }
.io-reveal .bm-stagger > :nth-child(3) { transition-delay: .16s; }
.io-reveal .bm-stagger > :nth-child(n+4) { transition-delay: .24s; }
.io-reveal .bm-stagger.is-in > * { opacity: 1; transform: none; }
.io-reveal .bm-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.io-reveal .bm-reveal.is-in { opacity: 1; transform: none; }

/* Desktop Contact: the bug cards don't stagger (the section reveals as a whole). */
@media (min-width: 1025px) {
  .bugs__list.bm-stagger > * { animation: none; }
  .io-reveal .bugs__list.bm-stagger > * { opacity: 1; transform: none; transition: transform .2s ease, box-shadow .2s ease; transition-delay: 0s; }
  .io-reveal .bugs__list.bm-stagger > :hover { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .bm-par, .bm-ring, .bm-hero-phone, .bm-hero-text, .bm-stagger > *, .bm-scale, .bm-left, .bm-right, .bm-pop, .bm-progress { animation: none !important; }
  .bm-in, .bm-float, .bm-track, .bm-reveal, .bm-menu { animation: none !important; }
  .bm-btn:hover, .bug-card:hover, .btn-pixel.bm-btn:hover, .btn-pixel:active, .btn-pixel.bm-btn:active { transform: none; }
}
