/* ============================================================
   YOUR DAILY DRAIN — Industrial Brutalist Dark Theme
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:           #0A0A0A;
  --bg-card:      #111111;
  --bg-input:     #0D0D0D;
  --yellow:       #00ff87;
  --yellow-dim:   #00cc6a;
  --orange:       #FF4D00;
  --red:          #FF1A1A;
  --green:        #00ff87;
  --white:        #F2F2F2;
  --grey:         #cccccc;
  --border-bright:#00ff87;
  --border-dim:   #222222;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --max-w:        480px;
  --pad:          20px;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ── BASE ────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ── BACKGROUND TEXTURES ─────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg,   rgba(0,255,135,0.018) 0, rgba(0,255,135,0.018) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg,  rgba(0,255,135,0.018) 0, rgba(0,255,135,0.018) 1px, transparent 1px, transparent 48px);
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) 80px;
  position: relative;
  z-index: 1;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px var(--pad) 36px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--yellow);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(58px, 16vw, 90px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-headline .hl {
  color: var(--yellow);
  position: relative;
  display: inline-block;
}

.hero-sub {
  font-size: 15px;
  color: #e0e0e0;
  font-weight: 300;
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: 32px;
}

.hero-scroll-hint {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--grey);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ── CARD SECTIONS — shared tab label ────────────────────── */
.section-label-tab {
  position: absolute;
  top: -20px;
  left: 16px;
  background: var(--yellow);
  color: #000;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.1em;
  padding: 3px 14px;
  line-height: 1.5;
  white-space: nowrap;
}

/* THE DAMAGE label is red — signals cost/danger */
#results .section-label-tab {
  background: var(--red);
  color: #ffffff;
}

/* ── CALCULATOR CARD ─────────────────────────────────────── */
.calc-card {
  background: var(--bg-card);
  border: 2px solid var(--border-bright);
  padding: 28px;
  position: relative;
  margin-top: 32px;
}

/* ── FIELD ───────────────────────────────────────────────── */
.field-group {
  margin-bottom: 28px;
}

.field-label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--grey);
  margin-bottom: 10px;
}

/* ── SELECT ──────────────────────────────────────────────── */
.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  background: var(--bg-input);
  border: 2px solid var(--border-dim);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 44px 14px 14px;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
  line-height: 1.2;
}

.select-wrap select:focus,
.select-wrap select:hover {
  border-color: var(--yellow);
}

.select-wrap select option {
  background: #1a1a1a;
  color: var(--white);
}

.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--yellow);
  font-size: 11px;
  pointer-events: none;
}

.drink-meta {
  font-size: 12px;
  color: #e0e0e0;
  margin-top: 8px;
  font-weight: 300;
  letter-spacing: 0.04em;
  min-height: 16px;
}

/* ── STEPPER ─────────────────────────────────────────────── */
.stepper {
  display: flex;
  width: fit-content;
  border: 2px solid var(--border-dim);
}

.stepper-btn {
  background: var(--bg-input);
  border: none;
  color: var(--yellow);
  font-size: 26px;
  width: 56px;
  height: 60px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 300;
  transition: background 0.1s, color 0.1s;
  line-height: 1;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.stepper-btn:hover  { background: var(--yellow); color: #000; }
.stepper-btn:active { opacity: 0.8; }
.stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.stepper-btn:disabled:hover { background: var(--bg-input); color: var(--yellow); }

#stepper-note { margin-top: 8px; }

.stepper-value {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 60px;
  width: 84px;
  text-align: center;
  color: var(--white);
  border-left: 2px solid var(--border-dim);
  border-right: 2px solid var(--border-dim);
  height: 60px;
  display: block;
}

/* ── NUMBER INPUT ────────────────────────────────────────── */
.input-wrap {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--border-dim);
  background: var(--bg-input);
  transition: border-color 0.15s;
}

.input-wrap:focus-within { border-color: var(--yellow); }

.input-prefix {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--yellow);
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-right: 2px solid var(--border-dim);
  height: 60px;
}

.input-wrap input {
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  padding: 0 14px;
  height: 60px;
  flex: 1;
  outline: none;
  min-width: 0;
  -moz-appearance: textfield;
}

.input-wrap input::-webkit-inner-spin-button,
.input-wrap input::-webkit-outer-spin-button { opacity: 0.3; }

/* ── CALCULATE BUTTON ────────────────────────────────────── */
.calc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--yellow);
  border: none;
  color: #000;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  padding: 20px 24px;
  cursor: pointer;
  margin-top: 32px;
  transition: background 0.1s, transform 0.08s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.calc-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.1s;
}

.calc-btn:hover { background: #e0ff26; }

.calc-btn:active {
  transform: scale(0.985);
  background: var(--yellow-dim);
}

.calc-btn-arrow {
  font-size: 24px;
  transition: transform 0.2s var(--ease-out);
}

.calc-btn:hover .calc-btn-arrow { transform: translateX(5px); }

/* ── RESULTS SECTION ─────────────────────────────────────── */
.results-section {
  background: var(--bg-card);
  border: 2px solid var(--border-bright);
  padding: 28px;
  position: relative;
  margin-top: 32px;
}

/* ── ALT + IDEAS SECTIONS ────────────────────────────────── */
.alt-section,
.ideas-section {
  background: var(--bg-card);
  border: 2px solid var(--border-bright);
  padding: 28px;
  position: relative;
  margin-top: 32px;
}


/* ── REVEAL ANIMATION ────────────────────────────────────── */
.results-section.reveal  { animation: revealUp 0.45s var(--ease-out) both; }
.alt-section.reveal      { animation: revealUp 0.45s var(--ease-out) 0.1s both; }
.ideas-section.reveal    { animation: revealUp 0.45s var(--ease-out) 0.15s both; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }

.results-subline {
  font-size: 13px;
  color: #e0e0e0;
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ── PER-CAN AT REGISTER ─────────────────────────────────── */
.price-per-can-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border-dim);
  padding: 10px 16px;
  margin-bottom: 16px;
}

.ppc-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--grey);
}

.ppc-value {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  line-height: 1;
}

/* ── WEEKLY / MONTHLY GRID ───────────────────────────────── */
.results-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.result-cell {
  background: var(--bg);
  border: 1px solid var(--border-dim);
  padding: 14px 16px;
  text-align: center;
}

.result-cell-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--grey);
  margin-bottom: 6px;
  text-align: center;
}

.result-cell-value {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--white);
  line-height: 1;
  text-align: center;
}

/* ── ANNUAL COST ─────────────────────────────────────────── */
.result-annual-block {
  background: var(--bg);
  border: 2px solid var(--border-dim);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.result-annual-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.6;
}

.annual-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--grey);
  margin-bottom: 8px;
}

.annual-number {
  font-family: var(--font-display);
  font-size: clamp(68px, 20vw, 100px);
  color: var(--green);
  line-height: 0.88;
  letter-spacing: 0.01em;
}

.annual-sub {
  font-size: 12px;
  color: #e0e0e0;
  font-weight: 300;
  letter-spacing: 0.12em;
  margin-top: 10px;
  text-transform: uppercase;
  font-style: italic;
}

/* ── HOURS WORKED — horizontal conversion ────────────────── */
.result-hours-block {
  background: var(--bg);
  border: 2px solid var(--orange);
  padding: 22px 20px;
  margin-bottom: 20px;
  position: relative;
}

/* ── SHARE MY RESULT ─────────────────────────────────────── */
.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: -6px 0 20px;
}

.share-btn {
  background: transparent;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.share-btn:hover,
.share-btn:focus-visible {
  background: var(--yellow);
  color: #000;
}

.share-status {
  font-size: 13px;
  color: var(--grey);
}

.hours-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 14px;
  text-align: center;
}

/* ── HOURS → WEEKS CONVERSION ROW ───────────────────────────
   Three equal flex cells: [hours | arrow | weeks]
   Each cell centered H + V. Arrow fixed-width, never squished.
   min-width prevents collapse on very narrow viewports.
   ─────────────────────────────────────────────────────────── */
.hours-conversion-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 220px;
}

/* Hours and weeks each take exactly half the remaining space */
.hcr-left,
.hcr-right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Viewport-relative font — readable at 320 px, large at 1280 px */
.hours-number,
.weeks-count {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 80px);
  color: var(--orange);
  line-height: 1;
}

.hcr-unit,
.hcr-weeks-unit {
  font-family: var(--font-display);
  font-size: clamp(11px, 2.5vw, 15px);
  color: var(--orange);
  letter-spacing: 0.16em;
  opacity: 0.65;
  margin-top: 2px;
}

/* Arrow: fixed flex-basis keeps it centred regardless of number width */
.hcr-arrow {
  flex: 0 0 clamp(36px, 8vw, 68px);
  height: clamp(24px, 5vw, 44px);
  position: relative;
  opacity: 0.95;
  align-self: center;
}

.hcr-arrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: calc(100% - 18px);
  height: 6px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255, 77, 0, 0.2), var(--orange) 18%, #ff7a33 100%);
  box-shadow: 0 0 14px rgba(255, 77, 0, 0.25);
}

.hcr-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 18px solid #ff7a33;
  filter: drop-shadow(0 0 8px rgba(255, 77, 0, 0.25));
}

/* Lives outside the flex row — full-width, centred below */
.hcr-weeks-label {
  font-size: 10px;
  color: #e0e0e0;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-top: 12px;
  line-height: 1.4;
  text-align: center;
}

/* ── CAFFEINE COST INDEX ─────────────────────────────────── */
.caff-section {
  background: var(--bg-card);
  border: 2px solid var(--border-bright);
  padding: 28px;
  position: relative;
  margin-top: 32px;
}

.caff-section.reveal { animation: revealUp 0.45s var(--ease-out) 0.08s both; }

.caff-callout {
  background: var(--bg);
  border: 1px solid var(--border-dim);
  padding: 12px 16px;
  margin-bottom: 22px;
  font-size: 14px;
  color: #e0e0e0;
  line-height: 1.55;
}

.caff-callout-expensive { color: var(--red); font-weight: 600; }
.caff-callout-cheap     { color: var(--yellow); font-weight: 600; }
.caff-callout-mult      { font-family: var(--font-display); font-size: 22px; color: var(--orange); }

/* Channel-break divider between c-store and warehouse tier */
.caff-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 8px;
}

.caff-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-dim);
}

.caff-divider-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--grey);
  white-space: nowrap;
}

.caff-row {
  margin-bottom: 10px;
}

.caff-row:last-child { margin-bottom: 0; }

.caff-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.caff-name {
  font-size: 12px;
  color: #e0e0e0;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

/* Parenthesised size label — smaller, muted, feels like a subtitle */
.caff-size {
  font-size: 10px;
  color: #777;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Can price lives in the meta row (secondary, grey) */
.caff-can-price {
  font-size: 11px;
  color: var(--grey);
  white-space: nowrap;
  flex-shrink: 0;
}

.caff-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.caff-bar-track {
  flex: 1;
  height: 9px;
  background: rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}

.caff-bar {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  min-width: 4px;
  transition: width 0.4s ease;
}

/* CPM lives beside the bar — prominent stat column */
.caff-cpm {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 76px;
  text-align: right;
}

/* ── TAX SLIDER ──────────────────────────────────────────── */
.tax-block {
  background: var(--bg);
  border: 1px solid var(--border-dim);
  padding: 16px;
}

.tax-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.tax-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--grey);
}

.tax-pct {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--yellow);
  line-height: 1;
}

.tax-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: var(--border-dim);
  outline: none;
  cursor: pointer;
  display: block;
  margin-bottom: 6px;
  border-radius: 0;
}

.tax-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  background: var(--yellow);
  cursor: pointer;
  border: 3px solid #000;
  outline: 2px solid var(--yellow);
  border-radius: 0;
  transition: transform 0.1s;
}

.tax-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.tax-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: var(--yellow);
  cursor: pointer;
  border: 3px solid #000;
  outline: 2px solid var(--yellow);
  border-radius: 0;
}

.tax-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--grey);
  font-family: var(--font-display);
  margin-bottom: 6px;
}

.tax-note {
  font-size: 11px;
  color: #e0e0e0;
  font-weight: 300;
}

/* ── SECTION SUBTITLE ────────────────────────────────────── */
.section-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: #e0e0e0;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

/* ── STRATEGY CARDS (Cheaper Hits section) ───────────────── */
.alt-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.strategy-card {
  background: var(--bg);
  border: 1px solid var(--border-dim);
  padding: 24px;
  transition: border-color 0.15s;
}

.strategy-card:hover { border-color: var(--yellow); }

.strategy-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 16px;
  margin-bottom: 16px;
}

.strategy-label {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
  min-width: 0;
}

.strategy-savings-badge {
  background: var(--yellow);
  color: #000;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  /* Was white-space: nowrap + flex-shrink: 0: the long Discount Grocery
     badge ("Up to $2.84/can saved vs Monster Original (16oz)") ran off
     the right edge on phones. Let it wrap and let the header wrap the
     badge below the label on narrow screens. */
  white-space: normal;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  line-height: 1.4;
  align-self: flex-start;
}

.strategy-options {
  border-top: 1px solid var(--border-dim);
  margin-bottom: 16px;
}

.strategy-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-dim);
  gap: 12px;
}

.strategy-item-name {
  font-size: 13px;
  color: #e0e0e0;
  font-weight: 400;
  flex: 1;
}

.strategy-item-price {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--yellow);
  line-height: 1;
  white-space: nowrap;
}

.strategy-item-unit {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--grey);
  font-weight: 300;
}

/* ── ALDI detailed option rows ───────────────────────────── */
.strategy-item--detailed {
  align-items: flex-start;
}

.strategy-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.strategy-item-size {
  font-size: 11px;
  color: var(--grey);
  font-weight: 300;
  font-family: var(--font-body);
}

.strategy-item-vs {
  font-size: 11px;
  color: var(--yellow);
  font-weight: 500;
  line-height: 1.35;
}

.strategy-item-note {
  font-size: 10px;
  color: var(--grey);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
}

.strategy-annual {
  font-size: 13px;
  color: var(--yellow);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}

.strategy-tip {
  font-size: 12px;
  color: #e0e0e0;
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-left: 2px solid var(--border-dim);
}

.strategy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--grey);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s;
}

.strategy-link::after { content: ' →'; }
.strategy-card:hover .strategy-link { color: var(--yellow); }

/* Inline per-option link (e.g. Venom at Walmart) */
.strategy-opt-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--grey);
  text-decoration: none;
  text-transform: uppercase;
  margin-top: 3px;
  transition: color 0.15s;
}
.strategy-opt-link::after { content: ' →'; }
.strategy-opt-link:hover  { color: var(--yellow); }

/* ── SAVINGS IDEA CARDS ──────────────────────────────────── */
.ideas-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.idea-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border-dim);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

.idea-card:hover {
  border-color: var(--yellow);
  background: #111;
}

.idea-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.idea-icon { font-size: 26px; line-height: 1; }

.idea-tag {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  background: #1e1e1e;
  color: #ffffff;
  border: 1px solid #666666;
  padding: 3px 10px;
}

.idea-name {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.idea-desc {
  font-size: 13px;
  color: #e0e0e0;
  font-weight: 300;
  margin-bottom: 14px;
  line-height: 1.4;
}

.idea-amount {
  font-size: 13px;
  color: var(--yellow);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}

.idea-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--grey);
  text-transform: uppercase;
  transition: color 0.15s;
}

.idea-card:hover .idea-cta { color: var(--yellow); }
.idea-cta::after { content: '→'; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) 48px;
  position: relative;
  z-index: 1;
}

.site-footer p {
  font-size: 11px;
  color: #e0e0e0;
  font-weight: 300;
  line-height: 1.6;
}

.site-freshness {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.site-footer p:last-child {
  border-top: 1px solid var(--border-dim);
  padding-top: 20px;
}

/* ── TIP BUTTON (Ko-fi, plain link — no widget script) ───── */
.tip-wrap {
  text-align: center;
  margin: 0 0 20px;
}

.tip-button {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: transparent;
  border: 2px solid var(--green);
  padding: 10px 22px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.tip-button:hover {
  background: var(--green);
  color: #000;
}

/* ── EMAIL SIGNUP (Kit form renders its own styles) ─────── */
/* ── EMAIL SIGNUP (Kit form) ─────────────────────────────────
   Compact, quiet card: the Kit form renders with its own bright
   defaults (white input, blue button), so these overrides — scoped
   under .signup-section and using [data-uid] for specificity —
   pull it back into the dark theme. Kit also sets a few inline
   styles on the input/button, which is why color/background need
   !important there; everything else wins on specificity alone.
   Kit's "clean" wrapper div also ships 56px of top padding (room
   for a heading the form doesn't have) — the rule below zeroes it.
   The input is near-black (#141414) so it recedes into the card
   instead of reading as a light patch; its border stays visible
   so the field is still findable.
   The section spans the full width of the container like the
   sibling sections (results, Cheaper Hits, Redirect) — no max-width,
   so its left/right edges line up with theirs. */
.signup-section {
  background: #1c1c1c;
  border: 2px solid var(--border-dim);
  padding: 16px 16px 12px;
  position: relative;
  margin-top: 32px;
}

.signup-section .section-subtitle {
  font-size: 14px;
  margin-bottom: 10px;
}

/* Kit form shell: never wider than the card */
.signup-section .formkit-form[data-uid="93db58418c"] {
  max-width: 100%;
}

/* Kill the dead space: Kit's "clean" wrapper carries 56px of top
   padding (padding:10px;padding-top:56px) at specificity (0,4,0);
   this selector goes one further to win. */
.signup-section .formkit-form[data-uid="93db58418c"][min-width~="700"] [data-style="clean"],
.signup-section .formkit-form[data-uid="93db58418c"][min-width~="800"] [data-style="clean"] {
  padding: 0;
}

/* Tighter stacking, smaller gaps between input / button.
   Kit's min-width~700 rules (always on for this form) set
   0 5px 15px with higher specificity, so this selector goes one
   further to win while keeping the 5px side margins. */
.signup-section .formkit-form[data-uid="93db58418c"] .seva-fields.formkit-fields[data-stacked="false"] .formkit-field,
.signup-section .formkit-form[data-uid="93db58418c"] .seva-fields.formkit-fields[data-stacked="false"] .formkit-submit {
  margin: 0 5px 8px;
}

/* Near-black input, light text, smaller type */
.signup-section .formkit-form[data-uid="93db58418c"] .formkit-input {
  background: #141414;
  color: #f2f2f2 !important;
  border-color: #3a3a3a !important;
  font-size: 13px;
  padding: 9px 12px;
}

.signup-section .formkit-form[data-uid="93db58418c"] .formkit-input:focus {
  border-color: var(--green);
}

/* Green button to match the theme, smaller */
.signup-section .formkit-form[data-uid="93db58418c"] .formkit-submit {
  background-color: var(--green) !important;
  color: #000 !important;
  font-size: 13px;
  font-weight: 600 !important;
}

.signup-section .formkit-form[data-uid="93db58418c"] .formkit-submit > span {
  padding: 9px 18px;
}

/* "Built with Kit" badge: smaller and quieter */
.signup-section .formkit-form[data-uid="93db58418c"] .formkit-powered-by-convertkit-container {
  margin: 4px 0 0;
}

.signup-section .formkit-form[data-uid="93db58418c"] .formkit-powered-by-convertkit {
  height: 28px;
  width: 105px;
  background-size: contain;
  opacity: 0.55;
}

/* Success / error messages in dark-theme colors */
.signup-section .formkit-form[data-uid="93db58418c"] .formkit-alert {
  font-size: 13px;
  padding: 10px;
}

.signup-section .formkit-form[data-uid="93db58418c"] .formkit-alert-success {
  background: #0e2a1c;
  border-color: var(--green);
  color: var(--green);
}

.signup-section .formkit-form[data-uid="93db58418c"] .formkit-alert-error {
  background: #2a1a1a;
  border-color: #5c2a1e;
  color: #f0b0a0;
}

/* ── SIGNUP AS A SLIM STRIP (desktop ≥900px) ────────────────
   One row when it fits: label + description on the left, the
   email field + Subscribe on the right, badge inline at the end
   of the form row — roughly half the stacked height (~53px vs
   ~137px). The tab stops overlapping the top edge and becomes
   inline text, smaller (16px) so JOIN THE LIST reads quiet.
   The strip lives in the right column (max ~908px wide), so the
   section wraps gracefully where one row can't fit: below
   ~1430px viewports the form drops to a second line, and on
   narrow desktop widths the description may take its own line —
   still tighter than the stacked layout (no dead space, 8px
   padding). Below 900px the stacked mobile layout (base rules
   above) is unchanged. */
@media (min-width: 900px) {
  .signup-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 8px 16px;
  }

  /* Tab: inline, smaller, no longer overlapping the top edge */
  .signup-section .section-label-tab {
    position: static;
    flex: none;
    font-size: 16px;
    padding: 2px 10px;
  }

  /* Description sits next to the label; one line where it fits */
  .signup-section .section-subtitle {
    margin-bottom: 0;
    flex: 0 1 auto;
    min-width: 0;
  }

  /* Form takes the remaining width; wraps below the text when
     the column is too narrow for one row */
  .signup-section .formkit-form[data-uid="93db58418c"] {
    flex: 1 1 330px;
    min-width: 0;
    margin-left: auto;
  }

  /* Form internals in one row: fields + badge side by side */
  .signup-section .formkit-form[data-uid="93db58418c"] [data-style="clean"] {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .signup-section .formkit-form[data-uid="93db58418c"] .seva-fields.formkit-fields {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* No space below the Email/Subscribe row in the strip */
  .signup-section .formkit-form[data-uid="93db58418c"] .seva-fields.formkit-fields[data-stacked="false"] .formkit-field,
  .signup-section .formkit-form[data-uid="93db58418c"] .seva-fields.formkit-fields[data-stacked="false"] .formkit-submit {
    margin: 0 5px;
  }

  /* Input + button on ONE row: Kit stacks them by default — its
     base rule gives both `flex: 1 0 100%` (each item takes a full
     row) and its min-width~700 rule gives the field `flex: 100 1
     auto` (it hogs the row, the button wraps below). These
     selectors beat Kit's (0,4,0) at (0,7,0)/(0,6,0): the fields
     container stops wrapping, the field flexes to fill the row,
     the button keeps its natural width beside it. */
  .signup-section .formkit-form[data-uid="93db58418c"] .seva-fields.formkit-fields[data-stacked="false"] {
    flex-wrap: nowrap;
    align-items: center;
  }

  .signup-section .formkit-form[data-uid="93db58418c"] .seva-fields.formkit-fields[data-stacked="false"] .formkit-field {
    flex: 1 1 0;
  }

  .signup-section .formkit-form[data-uid="93db58418c"] .seva-fields.formkit-fields[data-stacked="false"] .formkit-submit {
    flex: none;
  }

  /* Field + input must be allowed to shrink so the row fits */
  .signup-section .formkit-form[data-uid="93db58418c"] .formkit-field,
  .signup-section .formkit-form[data-uid="93db58418c"] .formkit-input {
    min-width: 0;
  }

  /* Badge inline at the end of the form row, a touch smaller.
     Kit's own variant rule sets width:133px at (0,4,0) and its
     <style> comes after ours, so this selector adds
     [data-variant] to win the tie; the container's width:100%
     from Kit is also neutralised so it doesn't swallow the row. */
  .signup-section .formkit-form[data-uid="93db58418c"] .formkit-powered-by-convertkit-container {
    margin: 0;
    flex: none;
    width: auto;
  }

  .signup-section .formkit-form[data-uid="93db58418c"] .formkit-powered-by-convertkit[data-variant] {
    height: 22px;
    width: 84px;
  }
}

/* ── SELECTION ───────────────────────────────────────────── */
::selection {
  background: var(--yellow);
  color: #000;
}

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-dim); }
::-webkit-scrollbar-thumb:hover { background: var(--yellow); }

/* ── FOCUS VISIBLE ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 360px) {
  :root { --pad: 14px; }
  .hero-headline { font-size: 52px; }
  .stepper-value { width: 70px; font-size: 36px; }
  .stepper-btn   { width: 48px; }
}

@media (min-width: 520px) {
  .hero-headline { font-size: 90px; }
}

/* ── DESKTOP TWO-COLUMN LAYOUT ───────────────────────────── */
@media (min-width: 900px) {

  /* Expand page container */
  :root { --pad: 40px; }

  .container {
    max-width: 1440px;
    padding-left: var(--pad);
    padding-right: var(--pad);
  }

  /* Hero: full width, bigger type */
  .hero {
    max-width: none;
    padding: 64px var(--pad) 52px;
  }

  .hero-headline {
    font-size: clamp(80px, 9vw, 128px);
  }

  .hero-sub { max-width: 480px; }

  /* Hide scroll hint — results are always visible on desktop */
  .hero-scroll-hint { display: none; }

  /* Two-column grid */
  .app-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    column-gap: 32px;
    align-items: start;
  }

  /* Left column: sticky so calculator stays in view while scrolling results */
  .col-left {
    position: sticky;
    top: 24px;
  }

  /* Right column */
  .col-right {
    min-width: 0;
  }

  /* Strategy cards: 2×2 grid for 4 tiles */
  .alt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: unset;
    gap: 16px;
  }

  /* Idea cards: 2-column grid */
  .ideas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: unset;
    gap: 10px;
  }

  /* Annual number: cap size for right column */
  .annual-number {
    font-size: clamp(60px, 7vw, 92px);
  }

  /* Desktop: numbers scale with viewport; arrow larger */
  .hours-number,
  .weeks-count {
    font-size: clamp(44px, 5vw, 80px);
  }

  .hcr-unit,
  .hcr-weeks-unit {
    font-size: 14px;
  }

  .hcr-arrow {
    flex-basis: 72px;
    height: 46px;
  }

  /* Hide button — results update live on desktop */
  .calc-btn { display: none; }

  /* Footer: match container width */
  .site-footer {
    max-width: 1440px;
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
}

/* ── PAGE NAV (FIVE SECTIONS) ─────────────────────────────
   Five boxes at the top; the same nav goes on every page so
   visitors can switch sections. Each box is its own page
   (index.html, world-prices.html, caffeine-alternatives.html,
   how-expensive.html, market-share.html) so Google can index
   them separately. */
.page-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--pad) 28px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
/* One shared tile spec — the same rules live in the four other
   pages' inline styles, so the five tiles are the same size,
   shape and position on every page. */
.page-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 16px 14px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  color: var(--white);
  text-decoration: none;
  min-height: 196px;
  transition: border-color 0.2s ease;
}
.page-box:hover,
.page-box:focus-visible {
  border-color: var(--border-bright);
}
.page-box-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--grey);
  overflow-wrap: normal;
  word-break: normal;
}
.page-box-title {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
}
.page-box-sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--grey);
  overflow-wrap: normal;
  word-break: normal;
}
.page-box-cta {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: normal;
  word-break: normal;
}
.page-box.is-active {
  background: var(--white);
  border-color: var(--white);
  color: #000;
  padding-top: 36px;
}
.page-box.is-active .page-box-kicker,
.page-box.is-active .page-box-sub {
  color: #333;
}
.page-box.is-active .page-box-cta {
  color: #0A0A0A;
}
.page-box.is-active::after {
  content: "You're here";
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0A0A0A;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}

/* ── PAGE NAV ON DESKTOP ───────────────────────────────────
   Five tiles in one row, like the other pages. This block MUST
   stay after the base .page-nav rules above: same specificity,
   so source order decides — the base rule (2 columns, 480px
   max-width) would otherwise beat the min-width:900px block
   that used to live earlier in this file, which is why the
   homepage showed a 2-2-1 grid on desktop. */
@media (min-width: 900px) {
  .page-nav {
    max-width: 1440px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ── STORE CHANNEL TOGGLE ──────────────────────────────── */
.store-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.store-toggle-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-dim);
  color: var(--grey);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}
.store-toggle-btn:hover,
.store-toggle-btn:focus-visible {
  border-color: var(--border-bright);
}
.store-toggle-btn.is-active {
  border-color: var(--border-bright);
  color: var(--green);
}
.store-toggle-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: var(--grey);
}

/* ── MORE PAGES ROW (under the page boxes) ─────────────── */
.page-nav-more{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin:-12px 0 24px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.page-nav-more span{color:#cccccc}
.page-nav-more a{color:#F2F2F2;text-decoration:none;border-bottom:2px solid #00ff87}
.page-nav-more a:hover{color:#00ff87}

/* Homepage: line the row up with the centred page boxes above it */
.page-nav-more {
  max-width: var(--max-w);
  margin: -12px auto 8px;
  padding: 0 var(--pad);
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .page-nav-more { max-width: 1440px; }
}

/* ── COMPACT LAYOUT (Nov 2026) ─────────────────────────────
   The page felt oversized: big numbers, thick padding and tall
   sections. These overrides tighten everything below the hero
   headline by roughly 20-30%, keeping the same look. */
.hero { padding-top: 36px; padding-bottom: 24px; }
.hero-headline { margin-bottom: 18px; }
.hero-sub { margin-bottom: 20px; }

.section-label-tab { font-size: 16px; padding: 2px 12px; }
.section-subtitle { font-size: 14px; margin-bottom: 14px; }

.calc-card,
.results-section,
.alt-section,
.ideas-section,
.caff-section { padding: 20px; margin-top: 20px; }
.signup-section { margin-top: 20px; }

.field-group { margin-bottom: 18px; }
.stepper-value { font-size: 36px; }
.calc-btn { margin-top: 20px; padding: 16px 20px; font-size: 20px; }

.results-subline { margin-bottom: 14px; }
.price-per-can-row { padding: 8px 14px; margin-bottom: 12px; }
.ppc-value { font-size: 22px; }
.results-row-grid { gap: 10px; margin-bottom: 12px; }
.result-cell { padding: 10px 14px; }
.result-cell-value { font-size: 26px; }
.result-annual-block { padding: 18px 16px; margin-bottom: 12px; }
.annual-number { font-size: clamp(52px, 15vw, 76px); }
.annual-sub { margin-top: 6px; }
.result-hours-block { padding: 16px; margin-bottom: 14px; }
.hours-label { margin-bottom: 10px; }
.share-row { margin: -2px 0 14px; }
.share-btn { font-size: 15px; padding: 8px 14px; }
.tax-block { padding: 14px; }
.tax-row { margin-bottom: 10px; }
.tax-pct { font-size: 22px; }

.alt-grid { gap: 12px; }
.strategy-card { padding: 16px 18px; }
.strategy-header { margin-bottom: 8px; }
.strategy-label { font-size: 20px; }
.strategy-savings-badge { font-size: 12px; padding: 3px 10px; }
.strategy-options { margin-bottom: 10px; }
.strategy-item { padding: 6px 0; }
.strategy-item-price { font-size: 20px; }
.strategy-annual { margin-bottom: 8px; }
.strategy-tip { margin-bottom: 10px; padding: 8px 10px; }

.idea-card { padding: 14px 16px; }
.idea-card-top { margin-bottom: 6px; }
.idea-icon { font-size: 20px; }
.idea-name { font-size: 22px; }
.idea-desc { margin-bottom: 8px; }
.idea-amount { margin-bottom: 8px; }

.caff-callout { margin-bottom: 14px; padding: 10px 14px; }
.caff-row { margin-bottom: 8px; }
.caff-chart.is-collapsed .caff-extra { display: none; }
.caff-toggle {
  margin: 12px 0 14px;
  background: none;
  border: 1px solid #333;
  border-radius: 999px;
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 14px;
  cursor: pointer;
}
.caff-toggle:hover,
.caff-toggle:focus-visible { border-color: var(--yellow); color: var(--yellow); }

@media (min-width: 900px) {
  .hero { padding: 40px var(--pad) 28px; }
  .annual-number { font-size: clamp(48px, 5vw, 68px); }
  .hours-number,
  .weeks-count { font-size: clamp(36px, 3.6vw, 56px); }
  .hcr-arrow { height: 36px; }
  .col-left { top: 16px; }

  /* Caffeine index: one line per drink (name and price, then the bar). */
  .caff-row {
    display: grid;
    grid-template-columns: minmax(0, 46%) 1fr;
    align-items: center;
    column-gap: 14px;
    margin-bottom: 6px;
  }
  .caff-meta { margin-bottom: 0; }
}
