/* ============================================
   POUR ONE — styles.css
   ============================================ */

:root {
  --blue:  #0a50a0;
  --lime:  #befc86;
  --red:   #ff1032;
  --pink:  #ffc2eb;
  --cream: #f9f8f7;
  --dark:  #141312;

  --font-display: 'formiga', sans-serif;
  --font-body:    'new-kansas', serif;

  --nav-h: 60px;
  --pad-x: clamp(32px, 5vw, 80px);
  --pad-y: clamp(64px, 10vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--blue);
  color: var(--cream);
  overflow-x: hidden;
}

ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ─────────────────────────────────────────
   Z-INDEX LAYERS
   Canvas is z-index: 10 (fixed, set in JS)
   Sections: NO z-index (backgrounds paint in
     normal flow, below canvas automatically)
   .container / text content: z-index 20
     (above canvas, model appears between
     backgrounds and type)
   Nav: z-index 200
───────────────────────────────────────── */

section {
  position: relative;
  /* No z-index — backgrounds stay below canvas */
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 20; /* text above canvas */
}

/* ─────────────────────────────────────────
   NAV — transparent, no border
───────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: transparent;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 900;
  mix-blend-mode: exclusion;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--pink);
  border-radius: 2px;
  padding: 7px 14px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.2s;
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--pink);
  transform-origin: left center;
  transform: scaleX(var(--fill, 0));
}

.link-label {
  position: relative;
  z-index: 1;
  color: var(--pink);
  pointer-events: none;
  transition: color 0.15s;
}

.nav-links a:hover { border-color: var(--pink); }

/* ─────────────────────────────────────────
   HERO — 100vh intentional
───────────────────────────────────────── */
#hero {
  height: 80vh;
  min-height: 600px;
  background: var(--blue);
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-h);
}

.hero-content {
  position: relative;
  z-index: 20;
  padding: 0 var(--pad-x) clamp(48px, 7vw, 90px);
  max-width: 52vw;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(96px, 18vw, 240px);
  line-height: 0.85;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s 0.5s forwards;
}

.hero-title-outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--lime);
}

.hero-sub {
  margin-top: 24px;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--cream);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s 0.8s forwards;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(28px, 4vw, 48px);
  right: var(--pad-x);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}

.scroll-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.35;
}

.scroll-line {
  width: 1px; height: 64px;
  background: var(--cream);
  opacity: 0.2;
  transform-origin: top;
  animation: scrollPulse 2.2s ease-in-out 1.2s infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(1);   opacity: 0.2; }
  50%  { transform: scaleY(0.3); opacity: 0.05; }
  100% { transform: scaleY(1);   opacity: 0.2; }
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* ─────────────────────────────────────────
   SHARED
───────────────────────────────────────── */
.section-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 100px);
  line-height: 0.88;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

/* ─────────────────────────────────────────
   INTRO — dark
───────────────────────────────────────── */
#intro {
  background: var(--blue);
  padding: var(--pad-y) 0;
}

#intro .section-num  { color: var(--lime); }
#intro .section-title { color: var(--cream); }

.intro-body {
  max-width: 640px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intro-body p {
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.72;
  color: var(--cream);
  opacity: 0.75;
}

.intro-closer {
  font-family: var(--font-display) !important;
  font-size: clamp(18px, 2.8vw, 33px) !important;
  font-weight: 900;
  opacity: 1 !important;
  color: var(--lime) !important;
  text-transform: uppercase;
  line-height: 1;
}

/* ─────────────────────────────────────────
   OVERVIEW — cream
───────────────────────────────────────── */
#overview {
  background: var(--blue);
  padding: var(--pad-y) 0;
}

#overview .container {
  background: var(--dark);
  max-width: 80vw;
  padding-top: 80px;
  padding-bottom: 80px;
  border-radius: 40px;
}

#overview .section-num   { color: var(--red); }
#overview .section-label,
#overview .section-title { color: var(--pink); }

.overview-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.overview-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 24px;
}

.overview-text p {
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.78;
  color: var(--cream);
  opacity: 0.65;
  margin-bottom: 14px;
}

.brewer-title {
  color: var(--pink);
}

.specs-list { border-top: 1px solid rgba(20,19,18,0.15); }

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--blue);
}

.spec-key {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.45;
}

.spec-val {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  color: var(--cream);
}

.spec-badge {
  font-family: var(--font-body) !important;
  font-size: 10px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--cream) !important;
  padding: 5px 11px;
}

.differentiators {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: clamp(40px, 5vw, 72px);
}

.diff-card {
  background: var(--dark);
  border: 1px solid var(--blue);
  border-radius: 30px;
  padding: clamp(18px, 2.0vw, 32px);
  margin: 0 10px;
}

.diff-label {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}

.diff-card p {
  font-size: clamp(11px, 1.3vw, 14px);
  line-height: 1.78;
  color: var(--cream);
  opacity: 0.6;
}

/* ─────────────────────────────────────────
   GUIDES — two cards on blue background
───────────────────────────────────────── */
#guides {
  background: var(--blue);
  padding: var(--pad-y) 0;
}

/* Card wrapper — sits inside the container flow */
.guides-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.guide-col {
  padding: clamp(36px, 4vw, 64px);
  position: relative;
  z-index: 20;
}

.guide-inner {
  position: relative;
  z-index: 20;
}

.brew-col {
  background: var(--dark);
  border-radius: 40px;
}
.brew-col .section-num   { color: var(--lime); }
.brew-col .section-title { color: var(--cream); }

.ombre-col {
  background: linear-gradient(
    175deg, #112244 0%, var(--blue) 70%, var(--pink) 100%
  );
  border-radius: 40px;
}
.ombre-col .section-num   { color: var(--pink); }
.ombre-col .section-title { color: var(--cream); }

/* Guides section titles smaller so cards stay balanced */
#guides .section-title {
  font-size: clamp(28px, 4.5vw, 64px);
  margin-bottom: 32px;
}

.guide-preamble {
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.7;
  color: var(--cream);
  opacity: 0.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.ombre-preamble { opacity: 0.85; }

.recipe-strip {
  display: flex;
  border: 1px solid rgba(249,248,247,0.1);
  margin-bottom: 48px;
}

.recipe-param {
  flex: 1;
  padding: 16px 10px;
  border-right: 1px solid rgba(249,248,247,0.1);
  text-align: center;
}
.recipe-param:last-child { border-right: none; }

.param-val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.2vw, 26px);
  font-weight: 900;
  color: var(--lime);
  margin-bottom: 5px;
}

.param-key {
  display: block;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.35;
}

/* ── Brew steps ── */
.brew-steps { display: flex; flex-direction: column; }

.brew-step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 24px 0;
  border-top: 1px solid rgba(249,248,247,0.1);
}
.brew-step:last-child { border-bottom: 1px solid rgba(249,248,247,0.1); }

.step-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  padding-top: 3px;
}

.brew-col .step-num  { color: var(--lime); }
.ombre-col .step-num { color: var(--pink); }

.step-content h4 {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--cream);
  margin-bottom: 7px;
  line-height: 1.1;
}

.step-content p {
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.72;
  color: var(--cream);
  opacity: 0.6;
}

.ombre-steps .brew-step { border-color: rgba(249,248,247,0.15); }

/* ── Ombré viz ── */
.ombre-vis { margin-bottom: 32px; }

.ombre-bar { display: flex; flex-direction: column; border-radius: 2px; overflow: hidden; }

.ombre-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  min-height: 74px;
}

.layer-fine   { background: rgba(11, 79, 143, 0.33); mix-blend-mode: multiply; }
.layer-mid    { background: rgba(11, 79, 143, 0.66); mix-blend-mode: multiply; }
.layer-coarse { background: rgba(11, 79, 143, 1.0); mix-blend-mode: multiply; }

.ombre-layer-info { display: flex; flex-direction: column; gap: 4px; }

.ombre-layer-name {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--cream);
}

.ombre-layer-desc {
  font-size: 11px;
  color: var(--cream);
  opacity: 0.9;
}

.ombre-layer-frac {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--cream);
  opacity: 0.75;
}

.ombre-vis-note {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cream);
  opacity: 0.8;
  margin-top: 10px;
  line-height: 1.5;
}

.ombre-result {
  margin-top: 36px;
  padding: 24px 28px;
  background: rgba(249,248,247,0.06);
  border-left: 2px solid var(--pink);
}

.ombre-result p {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.78;
  color: var(--cream);
  opacity: 0.95;
}

/* ─────────────────────────────────────────
   NOTES — blue (not lime)
───────────────────────────────────────── */
#notes {
  background: var(--blue);
  padding: var(--pad-y) 0;
}

#notes .section-num   { color: var(--lime); }
#notes .section-label { color: var(--cream); }
#notes .section-title { color: var(--cream); }

.notes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.note-card {
  background: var(--dark);
  padding: clamp(24px, 2.8vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.note-card--wide { grid-column: 1 / -1; }

.note-icon {
  font-size: 26px;
  color: var(--lime);
  line-height: 1;
  display: block;
}

.note-card h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.1;
}

.note-card p {
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.78;
  color: var(--cream);
  opacity: 0.6;
}

.troubleshoot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.trouble-item {
  background: rgba(249,248,247,0.04);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.trouble-symptom {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--red);
}

.trouble-fix {
  font-size: 12px;
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.55;
}

/* ─────────────────────────────────────────
   FEEDBACK — blue
───────────────────────────────────────── */
#feedback {
  background: var(--blue);
  padding: var(--pad-y) 0 0;
}

#feedback .section-num   { color: var(--lime); }
#feedback .section-title { color: var(--cream); }

.feedback-inner { padding-bottom: var(--pad-y); }

.feedback-questions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.fq-group {
  background: rgba(249,248,247,0.05);
  padding: clamp(22px, 2.8vw, 38px);
  border-radius: 40px;
}

.fq-group-title {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lime);
  margin-bottom: 18px;
  line-height: 1.1;
}

.fq-list { display: flex; flex-direction: column; gap: 12px; }

.fq-list li {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.85;
  color: var(--cream);
  opacity: 0.9;
  padding-left: 20px;
  position: relative;
}

.fq-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--pink);
  opacity: 0.6;
  font-size: 12px;
  top: 3px;
}

.feedback-body {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.72;
  color: var(--cream);
  opacity: 0.7;
  max-width: 520px;
  margin-bottom: 40px;
}

.feedback-cta {
  display: inline-block;
  background: var(--lime);
  color: var(--dark);
  font-family: var(--font-display);
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 36px;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 24px;
}

.feedback-cta:hover { background: var(--pink); color: var(--dark); }

.feedback-contact {
  font-size: 13px;
  color: var(--cream);
  opacity: 0.4;
  display: block;
}

.feedback-contact a {
  border-bottom: 1px solid rgba(249,248,247,0.25);
  transition: border-color 0.2s;
}

.feedback-contact a:hover { border-color: var(--cream); opacity: 0.8; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(249,248,247,0.08);
  padding: 24px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.28;
}

.footer-sep { opacity: 0.4; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .overview-layout { grid-template-columns: 1fr; }
  .differentiators { grid-template-columns: 1fr; }
  .guides-cards    { grid-template-columns: 1fr; }
  .notes-grid      { grid-template-columns: repeat(2, 1fr); }
  .feedback-questions { grid-template-columns: 1fr; }
  .troubleshoot-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links       { display: none; }
  .hero-content    { max-width: 90vw; }
  .notes-grid      { grid-template-columns: 1fr; }

  .recipe-strip    { flex-wrap: wrap; }
  .recipe-param    { flex: 0 0 50%; }
  .recipe-param:nth-child(even) { border-right: none; }
  .diff-card { margin: 10px 0; padding: 34px 34px; }

  /* ── Accordion — mobile guide cards ── */
  .accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    margin-bottom: 0;
  }

  .accordion-label {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .accordion-label .section-num {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
  }

  .accordion-title {
    font-family: var(--font-display);
    font-size: clamp(13px, 3.5vw, 16px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cream);
  }

  .accordion-icon {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    color: var(--cream);
    line-height: 1;
    transition: transform 0.35s ease;
    flex-shrink: 0;
    margin-left: 12px;
  }

  .accordion-trigger[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
  }

  /* Body hidden by default on mobile */
  .accordion-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .accordion-body.is-open {
    max-height: 9999px;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Hide desktop section-meta and title inside body (shown in trigger) */
  .accordion-body .section-meta { display: none; }
  .accordion-body .section-title { margin-top: 28px; }
}

/* Desktop — accordion trigger hidden, body always visible */
@media (min-width: 641px) {
  .accordion-trigger { display: none; }
  .accordion-body    { max-height: none !important; overflow: visible; }
}

/* ─────────────────────────────────────────
   MOBILE DOT NAV
───────────────────────────────────────── */
.mobile-nav {
  display: none; /* hidden on desktop */
}

@media (max-width: 640px) {
  .mobile-nav {
    display: flex;
    gap: 6px;
    position: fixed;
    top: 0;
    right: var(--pad-x);
    height: var(--nav-h);
    align-items: center;
    z-index: 200;
  }

  .mobile-dot {
    width: 28px;
    height: 6px;
    border-radius: 3px;
    border: 1px solid var(--pink);
    position: relative;
    overflow: hidden;
    transition: width 0.2s ease;
  }

  .mobile-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pink);
    transform-origin: left center;
    transform: scaleX(var(--fill, 0));
  }

  .mobile-dot.is-active {
    width: 36px;
  }
}
