/*
 * ============================================================
 *  brew&good. — INDEX PAGE DESIGN LAYER · Direction A "Ritual"
 *  css/index-design.css   (loaded ONLY by index.html, after
 *  tokens.css + base.css)
 * ============================================================
 *  Index-only visual layer from claude.ai/design (index-a).
 *  Additive: no other page links this. Every value references a
 *  token. Photographic,
 *  warm-editorial rhythm: full-bleed hero band, alternating
 *  colour blocks, oversized index numerals, section photos.
 * ============================================================
 */

/* ── §01 · HERO — "Bild + Farbband" (Option 3, index-a only) ─
   Full-bleed: photo fills the screen, wordmark + stage label
   overlaid on it, type pinned to a flat cobalt caption band at
   the bottom. One yellow per viewport = the CTA pill. */
.hero--band {
  position: relative;
  min-height: 100dvh; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--cobalt);
  padding: 0;
}
.hero--band .hero__top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-5) var(--container-pad);
}
.hero--band .hero__wordmark { color: var(--cream); }
.hero--band .hero__media {
  order: 1;
  position: relative;
  flex: 1; min-height: 0;
  width: 100%; max-width: none; padding: 0; margin: 0;
}
/* soft scrim so the overlaid logo stays legible over the photo */
.hero--band .hero__media::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 160px;
  background: linear-gradient(180deg, rgba(26,35,54,0.32), transparent);
  z-index: 1; pointer-events: none;
}
.hero--band .hero__img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
  border-radius: 0;
}
.hero--band .hero__caption {
  order: 2; flex: none;
  background: var(--cobalt); color: var(--cream);
  display: grid; grid-template-columns: 1fr; gap: var(--space-5);
  padding: var(--space-6) var(--container-pad) var(--space-7);
}
.hero--band .hero__body {
  margin: 0; padding: 0; max-width: none; flex: none; text-align: left;
}
.hero--band .hero__eyebrow { color: var(--cream); opacity: 0.72; display: block; margin-bottom: var(--space-3); }
.hero--band .hero__headline {
  color: var(--cream); font-size: clamp(32px, 7vw, 52px);
  line-height: 0.98; letter-spacing: -0.03em; overflow-wrap: break-word;
}
.hero--band .hero__accent { color: var(--cream); font-style: italic; }
.hero--band .hero__subline { color: var(--cream); opacity: 0.82; padding-top: var(--space-3); font-size: 16px; }
.hero--band .hero__cta {
  display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
  padding: 0; margin: 0;
}
.hero--band .hero__cta-primary {
  width: auto; background: var(--yellow); color: var(--midnight);
  font-family: var(--font-body); font-weight: 600;
  font-size: 17px; padding: 16px 30px;
  transition: filter 220ms cubic-bezier(0.2,0.6,0.2,1), transform 80ms;
}
.hero--band .hero__cta-primary:hover { filter: brightness(0.96); }
.hero--band .hero__cta-primary:active { transform: scale(0.985); }
.hero--band .hero__secondary { color: var(--cream); opacity: 0.85; }

@media (min-width: 769px) {
  .hero--band .hero__caption {
    grid-template-columns: 1fr auto; align-items: end; gap: var(--space-6);
    padding: var(--space-7) var(--container-pad);
  }
  /* Headline stays on ONE line beside the CTA. Its size scales with the
     viewport, so a narrower window shrinks the text instead of wrapping
     to a second line — that keeps the cobalt caption band short and the
     photo above it large. */
  .hero--band .hero__headline {
    white-space: nowrap;
    font-size: clamp(20px, 2.6vw, 52px);
  }
  .hero--band .hero__subline { font-size: 19px; }
  .hero--band .hero__cta { flex-direction: column; align-items: flex-end; gap: var(--space-3); }
}

/* ── Photo slot ──────────────────────────────────────────────
   Holds a section image (add .is-filled with a real <img>). The
   empty state falls back to a hatched cream-deep panel. */
.photo-slot {
  position: relative;
  background:
    repeating-linear-gradient(-45deg,
      transparent 0 22px,
      rgba(26,35,54,0.035) 22px 23px),
    var(--cream-deep);
  border-radius: var(--radius-image);
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 100%;
}
.photo-slot::after {
  content: "";
  position: absolute; inset: 14px;
  border: 1px dashed rgba(26,35,54,0.20);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
/* Filled state — real <img> inside .photo-slot with .is-filled added */
.photo-slot.is-filled { background: var(--cream-deep); }
.photo-slot.is-filled::after {
  border-color: rgba(26,35,54,0.10);
  inset: 0; border-radius: var(--radius-image);
}
.photo-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Photo slots on dark grounds get an inverted frame */
.on-cobalt .photo-slot,
.on-midnight .photo-slot {
  background:
    repeating-linear-gradient(-45deg,
      transparent 0 22px,
      rgba(250,241,224,0.05) 22px 23px),
    rgba(250,241,224,0.06);
}
.on-cobalt .photo-slot::after,
.on-midnight .photo-slot::after { border-color: var(--line-inv); }

/* ── Colour-blocked section grounds (rhythm) ─────────────────
   The whole page was one cream field. Give alternating sections
   their own ground so scrolling has a pulse. */
.on-cream-deep { background: var(--cream-deep); border-top-color: transparent; }
.on-cobalt   { background: var(--cobalt);   color: var(--cream); border-top-color: transparent; }
.on-midnight { background: var(--midnight); color: var(--cream); border-top-color: transparent; }

/* Recolour section chrome on dark grounds */
.on-cobalt .section-num, .on-midnight .section-num { color: var(--yellow); }
.on-cobalt h2 em, .on-midnight h2 em { color: var(--yellow); }
.on-cobalt .lead, .on-midnight .lead { color: var(--cream); }

/* ── Oversized index numeral (graphic anchor) ────────────────
   Sits in the left rail where the §-label lives, big and quiet. */
.section-header { position: relative; align-items: start; }
.sec-figure {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 8vw, 116px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: var(--cobalt);
  opacity: 0.16;
  display: block;
  margin-top: var(--space-3);
  user-select: none;
}
.on-cobalt .sec-figure, .on-midnight .sec-figure { color: var(--cream); opacity: 0.20; }
.on-cream-deep .sec-figure { color: var(--cobalt); opacity: 0.14; }

/* ── §02 · Schmeckt das? — text + tall taste photo ───────────*/
.sec--taste .section-body {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  gap: var(--space-8);
  align-items: center;
  max-width: none;
  margin-left: 0;
}
.sec--taste .taste-copy > * + * { margin-top: var(--space-5); }
.sec--taste .taste-copy { max-width: 560px; }
.sec--taste .photo-slot { min-height: 440px; }

/* Statement gets a pull-quote treatment */
.sec--taste .statement {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  padding-left: var(--space-5);
  border-left: 3px solid var(--yellow);
}

/* ── §03 · Unterschied — cream-deep block, side photo of grain */
.sec--diff .section-body {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: var(--space-8);
  align-items: center;
  max-width: none;
  margin-left: 0;
}
.sec--diff .photo-slot { min-height: 320px; }
.sec--diff .diff-copy { max-width: 520px; }
.sec--diff .diff-copy > * + * { margin-top: var(--space-5); }

/* ── §04 · Herkunft — cobalt full band, wide photo + text ─────*/
.sec--origin .section-body {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;   /* photo left, text right */
  gap: var(--space-8);
  align-items: center;
  max-width: none;
  margin-left: 0;
}
.sec--origin .photo-slot { aspect-ratio: 1 / 1; min-height: 0; }   /* square, like the other sections */
.sec--origin .origin-copy > * + * { margin-top: var(--space-5); }
.sec--origin .origin-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--midnight);
  background: var(--yellow); padding: 8px 14px; border-radius: var(--radius-full);
}

/* ── §05 · Angebot — tiers become numbered cards ─────────────*/
.sec--offer .tier:not(.tier--waitlist) {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  position: relative;
  row-gap: var(--space-4);
}
.sec--offer .tier:first-child { padding-top: var(--space-6); }
/* Badge: a mono header row across the top, never over the pill */
.sec--offer .tier__badge {
  position: static;
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cobalt); opacity: 0.55;
}
.sec--offer .tier__cta { justify-self: end; align-self: center; }

/* Tone down the waitlist tier: a quiet cream card, not a dark block */
.sec--offer .tier--waitlist {
  background: var(--cream);
  color: var(--midnight);
  border: 1px solid var(--line);
  padding: var(--space-6);
}
.sec--offer .tier--waitlist .tier__desc { opacity: 0.7; }
.sec--offer .tier--waitlist .input {
  background: var(--cream-deep);
  color: var(--midnight);
  border: 1px solid var(--line);
  flex: 1 1 240px;
}
.sec--offer .tier--waitlist .input::placeholder { color: rgba(26,35,54,0.45); }
.sec--offer .tier--waitlist .waitlist-consent { opacity: 0.65; }
.sec--offer .tier--waitlist .waitlist-consent a { color: var(--cobalt); }

/* ── §06 · Nebenton — sage ground, big quiet lines ───────────*/
.sec--quiet .nebenton { max-width: 820px; }
.sec--quiet .nebenton li {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  border-left-color: var(--yellow);
  padding-left: var(--space-5);
}

/* ── §07 · FAQ — kept, but paired with a quiet aside ─────────*/
.sec--faq .section-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-8);
  max-width: none;
  align-items: start;
  margin-left: 0;
}
.sec--faq .faq-aside {
  font-family: var(--font-display);
  font-size: 20px; line-height: 1.3;
  color: var(--midnight); opacity: 0.55;
  position: sticky; top: var(--space-6);
}
.sec--faq .faq { border-top: none; }
.sec--faq .faq__item:first-child { border-top: 1px solid var(--line); }

/* ── Responsive collapse for the new two-col section bodies ──*/
@media (max-width: 900px) {
  .sec--taste .section-body,
  .sec--diff .section-body,
  .sec--origin .section-body,
  .sec--faq .section-body { grid-template-columns: 1fr; gap: var(--space-6); }
  .sec--diff .photo-slot { order: 2; }
  .sec--origin .photo-slot { order: 2; }   /* text first when stacked on mobile */
  .sec-figure { font-size: 72px; margin-top: 0; }
  .sec--faq .faq-aside { position: static; }
}
