/* reinhale — website styles
 * Visual tokens copied verbatim from BRAND_KIT.md.
 * No gradients, no shadows (except as specified), no glassmorphism.
 */

/* Self-host the same Fraunces Variable file the mobile app uses so the website
 * and the app render the display type identically. */
/* Variable Fraunces — uses 'truetype' for broad browser support. The previous
 * 'truetype-variations' string was not recognized in most browsers, so the page
 * silently fell back to Georgia. Loading the same TTF the app ships keeps the
 * display type pixel-identical between web and the welcome screen. */
@font-face {
  font-family: 'Fraunces';
  src: url('Fraunces-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces-Light';
  src: url('Fraunces-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --pine: #1F3A34;
  --pine-soft: #2E4A43;
  --pine-deep: #152822;
  --mist: #E8EDE7;
  --linen: #F5F2EC;
  --ink: #0F1714;
  --ink-muted: #4A5550;
  --ink-faint: #8A9590;
  --fog: #B8C2BC;
  --ember: #D97757;

  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --space-section: clamp(64px, 10vw, 128px);
  --container: 1200px;
}

* { box-sizing: border-box; }

/* Smooth in-page scroll for the menu's anchor links. Disabled under
 * prefers-reduced-motion further down. */
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

.fraunces {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--space-section) 0; }

/* ---------- Hero ---------- */
.hero {
  background: #355C53; /* lifted pine so dark phone bodies don't blend in */
  color: var(--mist);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.hero-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 40px 32px 0;
  position: relative;
  z-index: 3;
}

.hero-header img {
  width: 52px;
  height: 52px;
  filter: brightness(0) invert(1); /* tint to mist */
  opacity: 0.95;
}

.hero-header .wordmark {
  font-family: 'Fraunces-Light', 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--mist);
}

/* Top-right controls: globe (language) + hamburger (menu), pushed to the
 * header's right edge. Two independent popovers. */
.hero-nav {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.popover { position: relative; }

/* Round, ghosted icon buttons that sit on the dark pine hero. */
.icon-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-full);
  border: 1px solid rgba(232, 237, 231, 0.22);
  background: rgba(232, 237, 231, 0.06);
  color: var(--mist);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.icon-btn:hover { background: rgba(232, 237, 231, 0.14); }
.icon-btn[aria-expanded="true"] { background: rgba(232, 237, 231, 0.18); border-color: rgba(232, 237, 231, 0.4); }
.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Light card popovers (linen) for contrast against the dark hero. Anchored to
 * the right edge of their trigger. script.js toggles the [hidden] attribute. */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  min-width: 180px;
  padding: 6px;
  background: var(--linen);
  border: 1px solid rgba(15, 23, 20, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(15, 23, 20, 0.18);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: dropdown-in 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.dropdown[hidden] { display: none; }
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.menu-panel { min-width: 210px; }

.dropdown-item {
  appearance: none;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.dropdown-item:hover { background: rgba(31, 58, 52, 0.08); text-decoration: none; }

/* Active language gets a pine fill + a trailing check. */
.lang-dropdown .lang-btn.active {
  background: var(--pine);
  color: var(--mist);
}
.lang-dropdown .lang-btn { display: flex; align-items: center; justify-content: space-between; }
.lang-dropdown .lang-btn.active::after {
  content: '';
  width: 14px; height: 8px;
  border-left: 2px solid var(--mist);
  border-bottom: 2px solid var(--mist);
  transform: rotate(-45deg) translateY(-2px);
}

.dropdown-sep {
  height: 1px;
  margin: 6px 8px;
  background: rgba(15, 23, 20, 0.1);
}

.menu-play-badge {
  display: block;
  line-height: 0;
  margin: 8px 4px 4px;
  border-radius: 6px;
  transition: opacity 150ms ease, transform 200ms ease;
}
.menu-play-badge svg { width: 150px; height: auto; display: block; }
.menu-play-badge:hover { opacity: 0.88; text-decoration: none; transform: translateY(-1px); }

.hero-body {
  flex: 1;
  display: grid;
  /* Wider copy column so "Take your breath back." fits cleanly on two lines
   * at the chosen display size. */
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 24px 32px 80px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--fog);
  opacity: 0.08;
  left: -120px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  filter: blur(0.5px);
  will-change: transform, opacity;
}

/* Matches the mobile app's welcome title exactly. The Fraunces-Variable.ttf
 * the app ships defaults to: wght=900 (Black), opsz=9 (display-contrast),
 * SOFT=0, WONK=1 (quirky alternates ON). React Native ignores variable axes
 * and renders that default master, so we set the same axis values explicitly
 * here to match pixel-for-pixel. */
.hero-tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-variation-settings: 'wght' 900, 'opsz' 9, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 1.04;
  white-space: nowrap;
  letter-spacing: -0.02em;
  color: var(--mist);
  margin: 0 0 32px;
  opacity: 0;
  transform: translateX(-80px);
  animation: slide-fade-from-left 1200ms 200ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fog);
  max-width: 460px;
  margin: 0 0 24px;
  opacity: 0;
  transform: translateX(-80px);
  animation: slide-fade-from-left 1200ms 500ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.play-badge {
  display: block;
  line-height: 0;
  border-radius: 8px;
  transition: opacity 150ms ease, transform 200ms ease;
  opacity: 0;
  animation: fade-only 1000ms 1100ms ease-out forwards;
  /* Sit inside the body-text column (max 460px) and push to its right edge. */
  width: 460px;
  max-width: 100%;
  text-align: right;
}
.play-badge svg { margin-left: auto; }
.play-badge svg { width: 220px; height: auto; display: block; }
.play-badge:hover { opacity: 0.88; text-decoration: none; transform: translateY(-1px); }

/* CTA sits inline in the hero copy column, right under the body text.
 * (Older layout put it in a separate centered row beneath the hero, which
 * was much further from the paragraph than the reference image asked for.) */
.hero-cta-row { display: none; }

/* ---------- Hero scroll cue ---------- */
/* Pinned to the bottom-center of the full-height hero so first-time visitors
 * know there's more below the fold. Real link to #mission. */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--fog);
  opacity: 0;
  animation: fade-only 900ms 1700ms ease-out forwards;
  transition: opacity 400ms ease, color 180ms ease;
}
.scroll-cue:hover { color: var(--mist); text-decoration: none; }
.scroll-cue-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-cue-chevron {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: scroll-bob 2.2s ease-in-out infinite;
}
/* Once the user scrolls, script.js adds .hidden and the cue fades away. */
.scroll-cue.hidden { opacity: 0 !important; pointer-events: none; }

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ---------- 3D phone stack ---------- */
/* Sized so the whole three-phone stack fits on first paint without scrolling
 * on a typical laptop viewport. Was 620px tall with 272x588 phones, which
 * pushed the CTA below the fold on 13" screens. */
.phones {
  position: relative;
  perspective: 1600px;
  height: 560px;
  /* Fade the whole trio in as ONE compositing layer. With opacity on the
   * parent, the browser composites all three phones together first (so the
   * front phone fully covers the back ones), then fades the composite. The
   * staggered slide on each phone still plays — but no see-through bleed. */
  opacity: 0;
  animation: fade-only 1000ms 350ms ease-out forwards;
}

.phone {
  position: absolute;
  width: 252px;
  height: 544px;
  border-radius: 30px;
  background: var(--ink);
  padding: 5px;
  transform-style: preserve-3d;
  transition: transform 600ms ease;
  /* All three phones start and END at the same time — but they travel
   * different distances, so they move at noticeably different speeds. The
   * front phone has the longest journey (and feels fastest), the back ones
   * the shortest. Reads as depth without anyone landing late. Opacity is
   * NOT animated here; the parent .phones fades the whole composite. */
  animation-delay: 350ms;
  animation-duration: 1300ms;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  animation-fill-mode: forwards;
}
.phone-1 { translate: 60px 0;  animation-name: phone-slide-in-1; }
.phone-3 { translate: 90px 0;  animation-name: phone-slide-in-3; }
.phone-2 { translate: 140px 0; animation-name: phone-slide-in-2; }

.phone::before {
  /* Samsung Galaxy punch-hole camera (centered, top) */
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  background: #000;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6);
  z-index: 5;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: var(--mist);
}

.phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Rotations sit in the per-phone keyframe so they survive the animation,
 * which also drives `translate` and opacity. */
@keyframes phone-slide-in-1 {
  from { translate: 60px 0; }
  to   { translate: 0 0; }
}
@keyframes phone-slide-in-2 {
  from { translate: 140px 0; }
  to   { translate: 0 0; }
}
@keyframes phone-slide-in-3 {
  from { translate: 90px 0; }
  to   { translate: 0 0; }
}
.phone-1 {
  left: 8%;
  top: 30px;
  transform: rotateY(18deg) rotateX(4deg) rotateZ(-3deg);
  z-index: 1;
}
.phone-2 {
  left: 32%;
  top: 0;
  transform: rotateY(-6deg) rotateX(2deg);
  z-index: 3;
}
.phone-3 {
  left: 56%;
  top: 50px;
  transform: rotateY(-22deg) rotateX(4deg) rotateZ(3deg);
  z-index: 2;
}

/* ---------- App screen mockups inside phones ---------- */
.app-screen { width: 100%; height: 100%; padding: 40px 18px 18px; display: flex; flex-direction: column; font-family: 'Inter', sans-serif; }

/* Screen A: Home with breath circle (pine bg) */
.screen-home { background: var(--pine); color: var(--mist); align-items: center; }
.screen-home .day { font-family: 'Fraunces', serif; font-size: 14px; color: var(--fog); margin-top: 12px; }
.screen-home .breath-circle {
  width: 180px; height: 180px; border-radius: 50%;
  border: 2px solid var(--mist); background: rgba(232,237,231,0.08);
  margin: 60px auto 24px;
  animation: breathe 13s ease-in-out infinite;
}
.screen-home .breath-text {
  font-family: 'Fraunces', serif; font-size: 22px; color: var(--mist); margin-top: 20px;
}
.screen-home .breath-sub { font-size: 12px; color: var(--fog); margin-top: 6px; }
.screen-home .tabs {
  margin-top: auto; display: flex; justify-content: space-around; padding-top: 14px;
  border-top: 1px solid rgba(184,194,188,0.18); width: 100%;
}
.screen-home .tab-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fog); opacity: 0.4; }
.screen-home .tab-dot.active { background: var(--mist); opacity: 1; }

/* Screen B: Pattern map (mist bg) */
.screen-pattern { background: var(--mist); color: var(--ink); }
.screen-pattern .h { font-family: 'Fraunces', serif; font-size: 22px; color: var(--ink); margin: 8px 0 4px; }
.screen-pattern .sub { font-size: 11px; color: var(--ink-muted); margin-bottom: 16px; }
.heatmap { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 18px; }
.heatmap .cell { aspect-ratio: 1; border-radius: 3px; background: var(--fog); opacity: 0.35; }
.heatmap .cell.l2 { opacity: 0.5; background: var(--pine); }
.heatmap .cell.l3 { opacity: 0.7; background: var(--pine); }
.heatmap .cell.l4 { opacity: 0.95; background: var(--pine); }
.heatmap .cell.slip { background: var(--ember); opacity: 0.85; }
.screen-pattern .legend { font-size: 10px; color: var(--ink-faint); display: flex; gap: 12px; }
.screen-pattern .legend .swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.screen-pattern .insight {
  margin-top: 18px; padding: 14px; background: var(--linen); border-radius: 12px;
  font-family: 'Fraunces', serif; font-size: 14px; color: var(--ink); line-height: 1.4;
}

/* Screen C: Slip logger (linen bg) */
.screen-slip { background: var(--linen); color: var(--ink); }
.screen-slip .h { font-family: 'Fraunces', serif; font-size: 22px; margin: 12px 0 4px; }
.screen-slip .sub { font-size: 11px; color: var(--ink-muted); margin-bottom: 22px; line-height: 1.4; }
.screen-slip .chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--fog); font-size: 11px; color: var(--ink-muted); background: transparent; }
.chip.selected { background: var(--pine); color: var(--mist); border-color: var(--pine); }
.screen-slip .label { font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; margin: 10px 0 6px; }
.screen-slip .reassure {
  margin-top: auto; padding: 12px; background: var(--mist); border-radius: 10px;
  font-family: 'Fraunces', serif; font-size: 12px; color: var(--ink-muted); line-height: 1.4;
}

/* ---------- Section: Mission ---------- */
.mission { background: var(--linen); }
.mission-inner { max-width: 760px; margin: 0 auto; text-align: left; }
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--ink-faint); text-transform: uppercase; margin-bottom: 20px;
}
.section-title {
  font-family: 'Fraunces', serif; font-weight: 900; font-variation-settings: 'wght' 900, 'opsz' 9, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.015em;
  color: var(--ink); margin: 0 0 28px;
}
.section-lead { font-size: 19px; line-height: 1.65; color: var(--ink-muted); margin: 0; }

/* ---------- Section: Five things ---------- */
.five { background: var(--mist); }
.five-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  margin-top: 48px;
}
.five-item h3 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: 26px; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 10px;
}
.five-item p { font-size: 16px; line-height: 1.6; color: var(--ink-muted); margin: 0; }
.five-item .rule-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.five-item .num {
  font-family: 'Fraunces', serif; font-size: 14px; color: var(--ink-faint);
  letter-spacing: 0.04em; margin: 0;
}
.rule-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 40px;
  background: transparent;
}
.rule-icon svg {
  width: 40px; height: 40px; fill: none; stroke: var(--pine);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Section: Inside ---------- */
.inside { background: var(--linen); }
.inside-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--mist); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.feature-card .feat-icon { width: 24px; height: 24px; stroke: var(--pine); stroke-width: 1.5; fill: none; }

/* ---------- Real app screenshot in feature cards ----------
 * Shows the top slice of a real capture, top corners rounded like a phone
 * screen, with the lower edge dissolved via a mask gradient so it melts into
 * the card and hands off to the tool's title + description below. */
.mini-shot {
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  margin-bottom: 4px;
  background: var(--linen);
  /* Fade the bottom ~third so the screenshot blends into the card. */
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 99%);
          mask-image: linear-gradient(to bottom, #000 58%, transparent 99%);
}
.mini-shot img { width: 100%; height: auto; display: block; }

/* ---------- Mini app-style mockups in feature cards ---------- */
.mini {
  border-radius: 14px; padding: 16px; margin-bottom: 4px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 160px;
}
.mini-light { background: var(--linen); color: var(--ink); border: 1px solid rgba(15,23,20,0.06); }
.mini-dark { background: var(--pine); color: var(--mist); }
.mini-eyebrow {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600;
}
.mini-eyebrow.on-dark { color: var(--fog); opacity: 0.8; }
.mini-meta { font-size: 11px; color: var(--ink-faint); margin-top: auto; }
.mini-meta.on-dark { color: var(--fog); opacity: 0.7; }

/* Breath circle mock */
.mini-breath {
  background: var(--pine); color: var(--mist);
  align-items: center; justify-content: center; text-align: center;
}
.mini-breath .mini-eyebrow { color: var(--fog); opacity: 0.85; }
.mini-breath .mini-meta { color: var(--fog); opacity: 0.7; margin: 0; }
.mini-orb {
  width: 78px; height: 78px; border-radius: 50%;
  border: 1.5px solid var(--mist); background: rgba(232,237,231,0.08);
  animation: breathe 9s ease-in-out infinite;
}

/* Craving logger chips */
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chip {
  padding: 5px 10px; border-radius: 999px; font-size: 11px;
  border: 1px solid var(--fog); color: var(--ink-muted); background: transparent;
}
.mini-chip.on { background: var(--pine); border-color: var(--pine); color: var(--mist); }

/* Slip logger stats */
.mini-stats { display: flex; gap: 18px; padding: 6px 0; }
.mini-stats > div { display: flex; flex-direction: column; }
.mini-stats strong {
  font-family: 'Fraunces', serif; font-size: 26px; font-weight: 400;
  color: var(--ink); line-height: 1;
}
.mini-stats span {
  font-size: 10px; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px;
}

/* Pattern map heatmap (cells inlined in HTML, controlled here) */
.mini-heatmap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.mini-heatmap .cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--fog);
  opacity: 0.3;
}
.mini-heatmap .cell.l1 { background: var(--pine); opacity: 0.35; }
.mini-heatmap .cell.l2 { background: var(--pine); opacity: 0.6; }
.mini-heatmap .cell.l3 { background: var(--pine); opacity: 0.9; }
.mini-heatmap .cell.slip { background: var(--ember); opacity: 0.9; }

/* Step-down ladder (kept for any future use; no longer rendered) */
.mini-ladder { display: flex; gap: 6px; align-items: stretch; }
.mini-ladder .step {
  flex: 1; text-align: center;
  padding: 8px 0; border-radius: 6px;
  font-size: 11px; font-weight: 600; color: var(--ink-faint);
  background: rgba(31,58,52,0.06);
}
.mini-ladder .step.done { background: var(--pine); color: var(--mist); opacity: 0.5; }
.mini-ladder .step.now { background: var(--pine); color: var(--mist); }

/* Journal mock — faux handwritten "lines" suggesting a written entry. */
.mini-journal {
  display: flex; flex-direction: column; gap: 7px;
  padding: 2px 0;
}
.mini-journal .journal-line {
  height: 6px; width: 100%;
  border-radius: 3px;
  background: linear-gradient(to right, rgba(31,58,52,0.18), rgba(31,58,52,0.08));
}
.mini-journal .journal-line.medium { width: 70%; }
.mini-journal .journal-line.short  { width: 45%; }

/* "Work in progress" tag inside a mini eyebrow */
.mini-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--linen);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Coach message bubble */
.mini-msg {
  font-family: 'Fraunces', serif; font-size: 14px; line-height: 1.4;
  color: var(--mist); padding: 10px 12px;
  background: rgba(232,237,231,0.10); border-radius: 10px;
}
.feature-card h4 {
  font-family: 'Fraunces', serif; font-weight: 400; font-size: 20px;
  color: var(--ink); margin: 0; letter-spacing: -0.01em;
}
.feature-card p { font-size: 14px; line-height: 1.55; color: var(--ink-muted); margin: 0; }

/* ---------- Section: Closing ---------- */
.closing { background: var(--mist); text-align: center; padding: var(--space-section) 24px; }
.closing .tagline {
  font-family: 'Fraunces', serif; font-weight: 900; font-variation-settings: 'wght' 900, 'opsz' 9, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 24px;
}
.closing .quiet { font-size: 16px; color: var(--ink-muted); margin: 0 0 36px; }

/* ---------- Section: Pricing ----------
 * Dark pine, echoing the app's Pro upgrade screen. Cards are informational
 * (subscriptions aren't live yet); the CTA is the Google Play badge. */
.pricing { background: var(--pine-deep); color: var(--mist); }
.pricing-head { max-width: 680px; margin: 0 auto; text-align: center; }
.pricing .section-title.on-dark { color: var(--mist); margin: 0 0 18px; }
.pricing .section-lead.on-dark { color: var(--fog); margin: 0 auto; max-width: 560px; }

/* "Coming soon" pill — ember on a soft tint, same as the app. */
.pill {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(217, 119, 87, 0.18);
  color: var(--ember);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pricing-trial { color: var(--ember); font-weight: 500; margin: 22px 0 0; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 48px 0 56px;
  align-items: stretch;
}
.plan-card {
  background: var(--pine);
  border: 1px solid rgba(184, 194, 188, 0.16);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-name { font-family: 'Fraunces', serif; font-weight: 400; font-size: 20px; color: var(--mist); letter-spacing: -0.01em; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.plan-price .amount { font-family: 'Fraunces', serif; font-weight: 900; font-variation-settings: 'wght' 900, 'opsz' 9, 'SOFT' 0, 'WONK' 1; font-size: 40px; line-height: 1; color: var(--mist); }
.plan-price .period { font-size: 15px; color: var(--fog); }
.plan-desc { font-size: 13px; line-height: 1.5; color: rgba(184, 194, 188, 0.8); margin: 4px 0 0; }

.save-badge {
  background: var(--pine-soft);
  color: var(--mist);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.once-badge {
  background: rgba(184, 194, 188, 0.16);
  color: var(--fog);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Yearly card: ember outline + flag ribbon to mark the lead SKU. */
.plan-featured {
  padding: 0;
  border: 2px solid var(--ember);
  overflow: hidden;
}
.plan-flag {
  background: var(--ember);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0;
}
.plan-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }

.included-title {
  font-family: 'Fraunces', serif; font-weight: 400; font-size: 26px;
  color: var(--mist); text-align: center; margin: 0 0 32px; letter-spacing: -0.01em;
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  max-width: 880px;
  margin: 0 auto;
}
.included-item { display: flex; gap: 14px; align-items: flex-start; }
.included-item .feat-icon {
  width: 26px; height: 26px; flex: 0 0 26px; margin-top: 2px;
  stroke: var(--ember); stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.included-item h4 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 18px; color: var(--mist); margin: 0 0 4px; letter-spacing: -0.01em; }
.included-item p { font-size: 14px; line-height: 1.55; color: rgba(184, 194, 188, 0.8); margin: 0; }

.pricing-cta { text-align: center; margin-top: 52px; }
.pricing-play-badge {
  display: inline-block;
  width: auto;
  opacity: 1;
  animation: none;
  text-align: center;
}
.pricing-play-badge svg { width: 200px; margin: 0 auto; }
.pricing-cta-note { color: var(--fog); font-size: 14px; margin: 16px 0 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--pine-deep); color: var(--fog);
  padding: 64px 24px 40px;
  font-size: 14px;
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand img { width: 28px; height: 28px; filter: brightness(0) invert(1); opacity: 0.9; vertical-align: middle; margin-right: 8px; }
.footer-brand .wm {
  font-family: 'Fraunces', serif; font-weight: 300; font-size: 22px;
  color: var(--mist); vertical-align: middle;
}
.footer-brand p { margin: 16px 0 0; color: var(--fog); line-height: 1.6; max-width: 320px; }
.footer-col h5 {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mist); margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--fog); }
.footer-col a:hover { color: var(--mist); }
.footer-play-badge {
  display: inline-block;
  margin-top: 18px;
  line-height: 0;
  border-radius: 6px;
  transition: opacity 150ms ease, transform 200ms ease;
}
.footer-play-badge svg { width: 160px; height: auto; display: block; }
.footer-play-badge:hover { opacity: 0.88; text-decoration: none; transform: translateY(-1px); }
.footer-bottom {
  max-width: var(--container); margin: 48px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(184,194,188,0.15);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-faint); font-size: 12px; line-height: 1.5;
}
.footer-bottom .legal { max-width: 720px; }

/* ---------- Animations ---------- */
@keyframes gentle-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Hero copy enters from the right, phones from the left — same easing so they
 * feel like one choreographed reveal, not two separate ones. */
/* Hero copy (positioned on the left half) starts further left and slides
 * inward toward center. Phones (positioned on the right half) start further
 * right and also slide inward — so both halves converge into the center
 * line rather than crossing past each other. */
@keyframes slide-fade-from-left {
  from { opacity: 0; transform: translateX(-80px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slide-fade-from-right {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fade-only {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.85; }
  30% { transform: scale(1.15); opacity: 1; }
  46% { transform: scale(1.15); opacity: 1; }
  92% { transform: scale(0.92); opacity: 0.85; }
}

@keyframes orb-breathe {
  0%, 100% { transform: translateY(-50%) scale(0.95); opacity: 0.06; }
  50% { transform: translateY(-50%) scale(1.1); opacity: 0.12; }
}

.hero-orb { animation: orb-breathe 13s ease-in-out infinite; }

/* fade-in on scroll — base (up) plus directional variants. Slightly longer
 * easing than the hero so scroll reveals feel calm, not punchy. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1000ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 1000ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal.from-left { transform: translateX(-48px); }
.reveal.from-right { transform: translateX(48px); }
.reveal.in { opacity: 1; transform: translate(0, 0); }

/* Stagger reveal of grid children inside revealed sections. */
.reveal.in .five-item,
.reveal.in .feature-card {
  animation: rise-in 900ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.reveal.in .five-item:nth-child(1), .reveal.in .feature-card:nth-child(1) { animation-delay: 120ms; }
.reveal.in .five-item:nth-child(2), .reveal.in .feature-card:nth-child(2) { animation-delay: 220ms; }
.reveal.in .five-item:nth-child(3), .reveal.in .feature-card:nth-child(3) { animation-delay: 320ms; }
.reveal.in .five-item:nth-child(4), .reveal.in .feature-card:nth-child(4) { animation-delay: 420ms; }
.reveal.in .five-item:nth-child(5), .reveal.in .feature-card:nth-child(5) { animation-delay: 520ms; }
.reveal.in .feature-card:nth-child(6) { animation-delay: 620ms; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-body { grid-template-columns: 1fr; padding-bottom: 48px; }
  .phones { height: 480px; margin-top: 24px; transform: scale(0.8); transform-origin: center top; }
  /* Center the phone trio when the hero stacks to a single column. The
   * desktop layout positions phones by percentage inside a narrow grid
   * column; full-width that math pulls the stack off-center, so here we
   * pin each phone relative to the container center with a symmetric fan. */
  .phone-1 { left: 50%; margin-left: -248px; }
  .phone-2 { left: 50%; margin-left: -126px; }
  .phone-3 { left: 50%; margin-left: -4px; }
  .five-grid { grid-template-columns: 1fr; gap: 28px; }
  .inside-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .included-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 560px) {
  .hero-header { padding: 28px 20px 0; }
  .hero-header .wordmark { font-size: 32px; }
  .hero-header img { width: 42px; height: 42px; }
  .hero-body { padding: 16px 20px 32px; }
  .container { padding: 0 20px; }

  /* Body copy under the hero tagline was overflowing the phone screen. */
  .hero-sub { font-size: 15px; line-height: 1.55; max-width: 100%; }

  /* Shrink and center the Google Play badge for narrow screens. */
  .play-badge { width: 100%; text-align: center; }
  .play-badge svg { width: 150px; margin: 0 auto; }

  /* Mission lead ("Built for vape...") was too large to read comfortably. */
  .section-lead { font-size: 15px; line-height: 1.6; }

  /* Smaller, centered phone trio. The fan offsets in the 960px block keep it
   * centered; this just scales the whole stack down to fit a phone width. */
  .phones { transform: scale(0.58); height: 360px; }
  .footer-inner { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Smaller icon buttons + don't let popovers overflow the viewport edge. */
  .icon-btn { width: 38px; height: 38px; }
  .icon-btn svg { width: 20px; height: 20px; }
  .dropdown { min-width: 170px; max-width: calc(100vw - 40px); }

  /* Drop the word on very small screens; the chevron carries the cue. */
  .scroll-cue { bottom: 14px; }
  .scroll-cue-label { display: none; }
}

/* For users with prefers-reduced-motion enabled, calm the looping/parallax
 * effects (breathing orb) but let the brief, one-shot intro animations run.
 * Apple's HIG considers short fades and gentle slides acceptable even under
 * Reduce Motion — what should be suppressed is sustained, bouncy, or
 * parallax-style motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orb,
  .mini-orb,
  .scroll-cue-chevron,
  .dropdown,
  .screen-home .breath-circle { animation: none !important; }
}
