/* BlueWater Reserve - storefront styles
   Warm ivory, sand and coastal teal. A consistently light storefront. */

:root {
  --bg: #fdfaf5;
  --bg-alt: #f5efe5;
  --cream: #f7f0e3;
  --card: #fffdf9;
  --text: #253e43;
  --muted: #6e685f;
  --line: rgba(108, 83, 49, 0.13);
  --line-strong: rgba(108, 83, 49, 0.25);
  --accent: #28656a;
  --accent-hover: #1e5156;
  --accent-soft: #e8f0ec;
  --on-accent: #ffffff;
  --navy: #234c53;
  --success: #1f7a3a;
  --danger: #b3261e;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 980px;
  --shadow: 0 3px 18px rgba(108, 83, 49, 0.055);
  --shadow-lift: 0 12px 30px rgba(108, 83, 49, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Inter, Arial, sans-serif;
  --max: 1080px;
  --nav-h: 48px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.wordmark { display: inline-flex; align-items: baseline; gap: 6px; color: var(--text); letter-spacing: 0.14em; font-size: 13px; text-transform: uppercase; text-decoration: none; }
.wordmark:hover { text-decoration: none; }
.wordmark b { font-weight: 700; }
.wordmark span { font-weight: 300; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.nav-links a { color: var(--text); opacity: 0.85; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav-order { display: inline-flex; align-items: center; gap: 6px; }
.badge { display: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.badge.show { display: inline-block; }
@media (max-width: 600px) { .nav-links { gap: 16px; } .nav-links .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 640px;
  padding: 88px 0;
  overflow: hidden;
  color: #fff;
  background: #071a2e;
  text-align: left;
}
.hero .hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 19, 33, 0.94) 0%, rgba(5, 19, 33, 0.82) 32%, rgba(5, 19, 33, 0.28) 52%, transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.hero > .wrap { width: 100%; }
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 14px; }
.hero .eyebrow { color: #d9e1e5; }
.hero h1 { max-width: 440px; font-size: clamp(52px, 5.2vw, 74px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 24px; }
.hero .hero-line { display: block; color: #ead1ac; }
.hero .lede { max-width: 400px; font-size: 20px; line-height: 1.5; color: #edf1f3; margin: 0 0 30px; font-weight: 400; }
.hero .facts { display: flex; flex-wrap: wrap; justify-content: flex-start; max-width: 440px; gap: 8px 16px; font-size: 12px; color: #d9e1e5; margin-top: 34px; letter-spacing: 0.02em; }
.hero .facts span::before { content: "\2014"; color: #a0b0bb; margin-right: 10px; }
.hero .facts span:first-child::before { content: none; }
.hero .actions { justify-content: flex-start; }
@media (max-width: 900px) {
  .hero { min-height: 620px; padding: 64px 0; }
  .hero .hero-photo { object-position: 90% center; }
  .hero::before { background: linear-gradient(90deg, rgba(5, 19, 33, 0.9) 0%, rgba(5, 19, 33, 0.78) 40%, rgba(5, 19, 33, 0.22) 78%, rgba(5, 19, 33, 0.08) 100%); }
  .hero h1 { font-size: clamp(46px, 7.6vw, 62px); max-width: 400px; margin-bottom: 18px; }
  .hero .lede { max-width: 340px; font-size: 18px; }
  .hero .facts { margin-top: 28px; }
}
@media (max-width: 480px) {
  .hero { align-items: flex-start; min-height: 650px; padding: 36px 0; }
  .hero::before { background: linear-gradient(180deg, rgba(5, 19, 33, 0.86) 0%, rgba(5, 19, 33, 0.78) 48%, rgba(5, 19, 33, 0.3) 76%, rgba(5, 19, 33, 0.08) 100%); }
  .hero .eyebrow { font-size: 10px; letter-spacing: 0.14em; }
  .hero h1 { font-size: 44px; }
  .hero .lede { font-size: 17px; margin-bottom: 24px; }
  .hero .facts { margin-top: 24px; }
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: var(--radius-pill);
  border: 1px solid transparent; background: var(--accent); color: var(--on-accent);
  font-size: 16px; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, transform 0.08s ease, opacity 0.15s ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.985); }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: default; pointer-events: none; }
.btn.light { background: #fff; color: #0a1e35; }
.btn.light:hover { background: #eaf1fb; }
.btn.ghost { background: transparent; color: var(--accent); border-color: transparent; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.outline:hover { background: var(--bg-alt); }
.btn.full { width: 100%; }
.btn.lg { min-height: 52px; font-size: 17px; padding: 12px 28px; }
.link-arrow::after { content: "\203A"; margin-left: 4px; font-size: 1.15em; line-height: 1; }
.hero .btn.light { background: #fff; color: #071a2e; }
.hero .btn.light:hover { background: #eaf1fb; }
.hero .link-arrow { color: #e4edf4; font-size: 17px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.cream { background: var(--cream); }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 6px; }
.sub { font-size: 19px; color: var(--muted); margin: 0; }
@media (max-width: 600px) { .section { padding: 64px 0; } .sub { font-size: 17px; } }

/* Brushed titanium headings: a quiet highlight passes once per cycle. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .section-head h2, .brand-values h2, .band h2, .split .aside h2 {
    background-image:
      linear-gradient(110deg, transparent 42%, rgba(176, 186, 193, 0.18) 49%, rgba(176, 186, 193, 0.18) 51%, transparent 58%),
      linear-gradient(178deg, #34424b 6%, #5a6872 38%, #66727c 46%, #3c4b55 53%, #56646e 75%, #34424b 100%);
    background-size: 260% 100%, 100% 100%;
    background-position: 110% 0, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.12);
    animation: heading-shimmer 12s ease-in-out infinite;
  }
}
@keyframes heading-shimmer {
  0%, 20% { background-position: 110% 0, 0 0; }
  60%, 100% { background-position: -10% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .section-head h2, .brand-values h2, .band h2, .split .aside h2 { animation: none; }
}
@media (forced-colors: active) {
  .section-head h2, .brand-values h2, .band h2, .split .aside h2 {
    background: none;
    -webkit-text-fill-color: CanvasText;
    text-shadow: none;
    animation: none;
  }
}

/* ---------- Roast cards ---------- */
.roasts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .roasts { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.roast {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.roast:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.roast.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.roast .art { height: 170px; display: flex; align-items: flex-end; justify-content: center; margin: 4px 0 18px; }
.roast .art svg { height: 160px; width: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.14)); }
.roast .kind { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.roast h3 { font-size: 24px; }
.roast p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.roast .tag { position: absolute; top: 16px; left: 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: 4px 9px; border-radius: var(--radius-pill); }
.notes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.notes li { font-size: 12.5px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--bg-alt); color: var(--text); border: 1px solid var(--line); }
.meter { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.meter .dots { display: inline-flex; gap: 4px; }
.meter .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.meter .dots i.on { background: var(--roast, #8b5a2b); box-shadow: 0 0 0 1px rgba(127, 127, 127, 0.35); }
.roast .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.roast .from { font-size: 15px; color: var(--muted); }
.roast .from b { color: var(--text); font-weight: 600; font-size: 17px; }

/* ---------- Teach row ---------- */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; gap: 26px; } }
.three h3 { font-size: 20px; margin-bottom: 8px; }
.three p { margin: 0 0 10px; color: var(--muted); font-size: 16px; }
.three a { font-size: 15px; }

/* ---------- Subscription band ---------- */
.band {
  background: linear-gradient(125deg, #faf6ef 0%, #f2e7d5 100%);
  color: var(--text); border: 1px solid #e4d8c8; border-radius: 24px; padding: 48px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .85fr); gap: 48px; align-items: center;
}
.band h2 { color: var(--text); max-width: 14ch; margin-bottom: 18px; font-size: clamp(32px, 3.5vw, 42px); line-height: 1.12; }
.band .eyebrow { color: var(--accent); font-size: 11px; margin-bottom: 16px; }
.band .sub { color: var(--muted); max-width: 32ch; font-size: 17px; line-height: 1.6; }
.subscription-benefits { margin: 26px 0 22px; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 15px; }
.subscription-benefits li { display: flex; gap: 13px; align-items: flex-start; }
.subscription-benefits li::before { content: ""; flex: none; width: 5px; height: 9px; margin: 4px 2px 0 3px; border-right: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(45deg); }
.subscription-details { font-size: 14px; font-weight: 500; }
.subscription-offer { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: 0 8px 24px rgba(108, 83, 49, .05); }
.offer-label { margin: 0 0 18px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.offer-value { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0; color: var(--accent); font-size: 68px; font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.offer-unit { font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.offer-caption { margin: 12px 0 0; color: var(--text); font-size: 15px; }
.offer-divider { height: 1px; background: var(--line); margin: 24px 0 18px; }
.offer-format { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.subscription-offer .btn { min-height: 48px; padding: 12px 14px; font-size: 15px; }
.subscription-offer .btn span { margin-left: 3px; }
@media (min-width: 761px) and (max-width: 1000px) { .band { padding: 32px; gap: 28px; } .subscription-offer { padding: 24px; } }
@media (max-width: 760px) {
  .band { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .band h2 { max-width: 16ch; }
  .subscription-offer { padding: 24px; }
  .offer-value { font-size: 56px; }
}
@media (max-width: 380px) { .band { padding: 22px; border-radius: 20px; } .subscription-offer { padding: 22px 16px; } .subscription-offer .btn { font-size: 14px; padding-inline: 10px; } }

/* ---------- Order builder ---------- */
.order-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 20px; }
.step { margin-bottom: 26px; }
.step:last-child { margin-bottom: 0; }
.step-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.step-label .hint { text-transform: none; letter-spacing: 0; font-weight: 400; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  flex: 1 1 auto; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--card); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: 15px; font-weight: 500; transition: border-color 0.12s ease, background 0.12s ease;
}
.seg button small { font-size: 12px; font-weight: 400; color: var(--muted); }
.seg button:hover { border-color: var(--accent); }
.seg button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.seg.roast-seg button { flex-direction: row; gap: 8px; }
.seg .swatch { width: 12px; height: 12px; border-radius: 50%; flex: none; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; }
.qty button:hover { background: var(--bg-alt); }
.qty output { min-width: 44px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.add-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.add-row .line-price { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.add-row .line-price small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }

/* Order list */
.lines { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .name { font-weight: 600; }
.line .detail { color: var(--muted); font-size: 14px; grid-column: 1; }
.line .amt { font-weight: 600; font-variant-numeric: tabular-nums; grid-row: 1; grid-column: 2; }
.line .tools { grid-column: 2; display: flex; gap: 10px; justify-content: flex-end; font-size: 13px; }
.line .tools button { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }
.line .tools button:hover { text-decoration: underline; }
.empty { color: var(--muted); font-size: 15px; padding: 18px 0 14px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); margin-bottom: 18px; }

.totals { display: grid; gap: 8px; font-size: 15px; margin: 6px 0 18px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .muted { color: var(--muted); }
.totals .save { color: var(--success); }
.totals .grand { font-size: 20px; font-weight: 600; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.totals .grand small { font-size: 13px; color: var(--muted); font-weight: 400; }
.note { font-size: 13px; color: var(--muted); margin: 12px 0 0; line-height: 1.45; }
.note.free-gap { color: var(--accent); }
.err { color: var(--danger); font-size: 14px; margin: 10px 0 0; min-height: 1.2em; }
.pay-row { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------- Mobile sticky bar ---------- */
.stickybar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--navy); color: #fff; border-radius: 16px; padding: 10px 12px 10px 18px;
  box-shadow: var(--shadow-lift);
}
.stickybar.show { display: flex; }
.stickybar b { font-variant-numeric: tabular-nums; }
.stickybar .btn { background: #fff; color: #0a1e35; min-height: 40px; padding: 8px 16px; font-size: 15px; }
@media (min-width: 901px) { .stickybar { display: none !important; } }

/* ---------- Footer ---------- */
.footer { background: var(--cream); border-top: 1px solid var(--line); padding: 34px 0 40px; font-size: 13px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); text-decoration: none; }

/* ---------- Long-form (The Coffee page) ---------- */
.page-head { padding: 84px 0 34px; }
.page-head h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 14px; }
.page-head .sub { max-width: 640px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.toc a { font-size: 13px; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--text); }
.toc a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.prose { max-width: 700px; }
.prose p { margin: 0 0 18px; font-size: 18px; line-height: 1.6; }
.prose p.small { font-size: 15px; color: var(--muted); }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 30px; }
.prose ul { padding-left: 20px; margin: 0 0 18px; font-size: 17px; line-height: 1.6; }
.prose li { margin-bottom: 6px; }
.prose .callout { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 16px; color: var(--text); margin: 0 0 20px; border: 1px solid var(--line); }
.prose .cta-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.article { padding: 64px 0; border-top: 1px solid var(--line); }
.article:first-of-type { border-top: 0; }
.article.cream { background: var(--cream); }
.article.alt { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.split .aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.split .aside .eyebrow { margin-bottom: 8px; }
.split .aside h2 { font-size: clamp(28px, 3.4vw, 36px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 12px; } .split .aside { position: static; } }

.table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 22px; }
.table th, .table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.table td:first-child { font-weight: 600; white-space: nowrap; }

.roast-story { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; padding: 24px 0; border-top: 1px solid var(--line); }
.roast-story:first-of-type { border-top: 0; padding-top: 0; }
.roast-story .art svg { height: 120px; width: auto; }
.roast-story .kind { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.roast-story h3 { margin-top: 0; font-size: 24px; }
.roast-story dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 15px; margin: 12px 0 14px; }
.roast-story dt { color: var(--muted); }
.roast-story dd { margin: 0; }
@media (max-width: 600px) { .roast-story { grid-template-columns: 1fr; } .roast-story .art { display: none; } }

.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 24px; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--muted); font-size: 16px; max-width: 640px; }

/* ---------- Small pages (account / success) ---------- */
.mini { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 56px 0; }
.card { width: min(520px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.mini h1 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 8px; }
.mini p { color: var(--muted); margin: 0 0 18px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { font: inherit; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); min-height: 46px; }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.status { margin-top: 14px; font-size: 15px; min-height: 1.4em; }
.status.ok { color: var(--success); }
.status.bad { color: var(--danger); }
.summary-box { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; margin: 0 0 18px; border: 1px solid var(--line); }
.summary-box b { display: block; margin-bottom: 4px; }

/* ---------- My Subscription (manage view) ---------- */
#main:not(.mini) { padding: 72px 0 80px; }
#main:not(.mini) .wrap { max-width: 720px; }
.manage-head { margin-bottom: 26px; }
.manage-head h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; margin: 0 0 8px; }
.manage-head .sub { font-size: 16px; }
.subcard { margin-bottom: 18px; }
#main:not(.mini) .card { width: 100%; }
.sub-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sub-head .kind { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.sub-head h2 { font-size: 26px; margin: 0; }
.sub-head h2 small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.pill { flex: none; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--bg-alt); border: 1px solid var(--line); }
.pill.ok { color: var(--success); }
.pill.warn { color: #9a6700; }
.pill.bad { color: var(--danger); }
.subcard .next { margin: 10px 0 14px; color: var(--muted); font-size: 15px; }
.sub-lines { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: 16px; }
.sub-lines .muted { color: var(--muted); font-size: 13px; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sub-actions .btn { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.manage-foot { margin-top: 8px; }
.manage-foot h3 { margin-bottom: 6px; }
.manage-foot p { margin-bottom: 14px; }
.note.center { text-align: center; margin-top: 22px; }
.editor { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.editor h3 { margin-bottom: 12px; }
.ed-line { display: grid; grid-template-columns: 1.3fr 1.4fr 1.1fr 64px 36px; gap: 8px; margin-bottom: 8px; align-items: center; }
.ed-line select, .ed-line input { font: inherit; font-size: 14px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--text); width: 100%; }
.ghost-btn { border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }
.ghost-btn:disabled { opacity: 0.3; cursor: default; }
.ed-plan { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 14px 0; font-size: 15px; }
.ed-plan .step-label { margin: 0 6px 0 0; }
.ed-plan label { display: inline-flex; align-items: center; gap: 6px; }
.ed-total { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.ed-total b { color: var(--text); }
@media (max-width: 600px) { .ed-line { grid-template-columns: 1fr 1fr; } .ed-line select[data-f="grind"] { grid-column: 1; } }

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .roast, .btn { transition: none; }
  .roast:hover { transform: none; }
}

/* Catalog launch preview and account history share the existing navy/cream palette. */
[hidden] { display: none !important; }
.store-status { background: #f2e8d8; color: #253b48; padding: 10px 20px; text-align: center; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .04em; border-bottom: 1px solid #e2d4c0; }
.coming-cup { width: 92px; height: 116px; margin: 25px auto; background: var(--roast, #526e80); border-radius: 10px 10px 24px 24px; color: #fff; display: grid; place-items: center; font-size: 34px; font-weight: 300; border-top: 8px solid #c7d0d5; }
.pack-prices { list-style: none; padding: 0; margin: 0 0 8px; }
.pack-prices li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.roast { display: flex; flex-direction: column; }
.roast .foot { margin-top: auto; padding-top: 20px; }
.account-section-title { margin: 30px 0 16px; font-size: 24px; }
.order-history { margin: 0 0 18px; }
.order-history .sub-head { gap: 14px; }
.order-history .order-id { font-size: 11px; overflow-wrap: anywhere; }
.pending-change { padding: 15px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; }
.ed-line { grid-template-columns: minmax(0, 1fr) 80px 36px; }
.ed-line select { min-width: 0; }
#cart-notice { background: #f8e8bb; color: #493819; padding: 12px; border-radius: 6px; }
#billing-profile { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); }

/* BlueWater discovery: values, flavor, then a clear next step. */
.brand-values { padding: 44px 0; border-bottom: 1px solid var(--line); }
.brand-values .three { align-items: start; gap: 40px; }
.values-intro { align-self: center; }
.value-art { width: 72px; height: 72px; margin: 0 0 16px -4px; }
.brand-values h2 { font-size: 29px; margin: 0; }
.brand-values h3 { font-size: 20px; }
.brand-values p { font-size: 15px; }
.brand-values .eyebrow { font-size: 11px; margin-bottom: 10px; }
@media (max-width: 860px) {
  .value-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .value-art { width: 64px; height: 64px; margin: -4px 0 0 -4px; }
}
#roasts .section-head { max-width: 760px; margin-bottom: 28px; }
.taste-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.taste-filters button { min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--card); padding: 10px 17px; font-size: 14px; cursor: pointer; }
.taste-filters button:hover { border-color: var(--accent); }
.taste-filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.collection-count { margin: 18px 0 30px; text-align: center; color: var(--muted); font-size: 13px; }
.roast .profile { color: var(--text); font-weight: 600; margin: 0 0 10px; font-size: 16px; }
.roast .card-copy { margin-bottom: 4px; }
.roast .card-copy .kind { font-size: 10px; letter-spacing: .12em; }
.roast .foot .btn { font-size: 14px; padding-inline: 15px; }
.builder-choice { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.builder-choice .eyebrow { margin-bottom: 6px; }
.builder-choice h3 { font-size: 28px; }
.builder-choice > p:last-child { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
#add-confirmation { margin: 12px 0 0; font-size: 14px; color: var(--success); }
#add-confirmation:empty { display: none; }
.nav .wrap { gap: 12px; }
.wordmark { flex-shrink: 0; white-space: nowrap; }
.nav-links a { white-space: nowrap; }
@media (min-width: 640px) and (max-width: 1000px) {
  .roasts { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}
@media (max-width: 639px) {
  .brand-values { padding: 34px 0; }
  .brand-values .three { gap: 24px; }
  .taste-filters { justify-content: flex-start; }
  .taste-filters button { font-size: 12px; padding: 9px 12px; }
  .collection-count { text-align: left; margin-bottom: 22px; }
  .roast { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 0 16px; padding: 20px; }
  .roast .art { height: 120px; margin: 0; align-items: center; align-self: start; }
  .roast .art svg { height: 114px; }
  .roast .card-copy { min-width: 0; }
  .roast .card-copy h3 { font-size: 22px; }
  .roast .card-copy .profile { font-size: 15px; }
  .roast .card-copy p { font-size: 14px; }
  .roast .notes, .roast .meter, .roast .pack-prices, .roast .foot { grid-column: 1 / -1; }
  .roast .notes { margin: 12px 0 14px; }
  .roast .meter { margin-bottom: 0; }
  .roast .foot { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
  .roast .pack-prices { margin-top: 16px; }
  .coming-cup { width: 66px; height: 86px; margin: 0; font-size: 24px; border-top-width: 6px; }
  .roast .from { font-size: 13px; }
  .panel { padding: 22px 18px; }
  .add-row .line-price small { display: block; margin: 3px 0 0; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 11px; letter-spacing: .1em; }
  .nav-links { gap: 12px; font-size: 12px; }
}
@media (max-width: 600px) { .nav-links { gap: 12px; font-size: 12px; } .nav-links .hide-sm { display: none; } .ed-line { grid-template-columns: minmax(0, 1fr) 65px 28px; } }
