/* ═══════════════════════════════════════════════════════════════════════════
   Pillr — Rebuilt Stylesheet v3 (9-step features)
   Layout: euveka / Whispry cinematic scroll narrative
   Colours: 100% original Pillr brand palette
   Fonts:   Cormorant Garamond (display) + Inter (body)
═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:             #f5f1e8;
  --surface:        rgba(255,255,255,0.72);
  --surface-strong: #ffffff;
  --surface-tint:   #fbf8f2;
  --text:           #183235;
  --muted:          #5e7475;
  --line:           rgba(24,50,53,0.12);
  --line-strong:    rgba(24,50,53,0.22);
  --accent:         #183235;
  --accent-soft:    #ddebe7;
  --highlight:      #c3a35d;
  --shadow-sm:      0 12px 32px rgba(24,50,53,0.08);
  --shadow-lg:      0 28px 80px rgba(24,50,53,0.12);
  --radius-sm:      12px;
  --radius-md:      20px;
  --radius-lg:      28px;
  --font-body:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display:   "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --header-height:  88px;
  --container:      1180px;
  --space-md:       2rem;
  --space-lg:       4rem;
  --space-xl:       8rem;
  --space-2xl:      clamp(4rem, 8vw, 10rem);
  --transition:     0.32s ease;
  --transition-slow:0.65s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); font-size: 16px; }
body {
  background: radial-gradient(circle at top left, rgba(195,163,93,0.14), transparent 24%),
              linear-gradient(180deg, #f7f3eb 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container { width: min(var(--container), calc(100% - 2rem)); margin-inline: auto; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible, .reveal.is-visible { opacity: 1; transform: translateY(0); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: rgba(255,255,255,0.6); border: 1px solid var(--line);
  color: var(--muted); font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}

.section { position: relative; padding: var(--space-2xl) 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06)); }

.section-heading { margin-bottom: var(--space-lg); }
.section-heading.centered { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: var(--space-lg); }
.section-heading .eyebrow { margin-bottom: 0.75rem; }
.section-heading h2 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.0;
  color: var(--text); margin: 0.5rem 0 0.8rem;
}
.section-heading p { font-size: 1.05rem; color: var(--muted); line-height: 1.7; max-width: 580px; }
.section-heading.centered p { margin-inline: auto; }
.section-heading p a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--highlight); text-underline-offset: 2px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.5rem; border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.02em; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition); }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(24,50,53,0.2); }
.button-primary:hover { box-shadow: 0 12px 32px rgba(24,50,53,0.28); }
.button-secondary { background: rgba(255,255,255,0.56); color: var(--text); border: 1px solid var(--line); }
.button-secondary:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

.app-store-btn img { height: 50px; width: auto; }
.header-actions .app-store-btn img { height: 38px; }

.text-link { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.9rem; font-size: 0.85rem; font-weight: 600; color: var(--text); transition: gap var(--transition); }
.text-link::after { content: "→"; transition: transform var(--transition); }
.text-link:hover::after { transform: translateX(3px); }

/* ── NAV ──────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  opacity: 0;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}
.site-header.is-visible { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
.site-header.nav-solid { background: rgba(245,241,232,0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom-color: var(--line); }

.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 1.5rem; color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.nav a { position: relative; transition: color var(--transition); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1.5px; border-radius: 999px; background: var(--highlight); transform: scaleX(0); transform-origin: center; transition: transform var(--transition); }
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: clip; padding: 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; max-width: 960px; margin-inline: auto; padding: calc(var(--header-height) + 2rem) var(--space-md) var(--space-xl); text-align: center; }
.hero-copy { position: relative; z-index: 2; max-width: 880px; margin-inline: auto; }
.hero-brand { font-family: var(--font-display); font-size: clamp(8.5rem, 17vw, 13.5rem); font-weight: 700; line-height: 0.82; letter-spacing: -0.055em; color: var(--text); margin: 0 0 2.4rem; transition-delay: 0.04s; }
.hero-logo { display: flex; justify-content: center; margin-bottom: 1.2rem; transition-delay: 0s; }
.hero-logo img { width: 120px; height: 120px; object-fit: contain; }
.hero-copy .eyebrow { margin-bottom: 1.2rem; transition-delay: 0.05s; }
.hero-copy h1 { font-family: var(--font-display); font-size: clamp(3.6rem, 7.4vw, 6.6rem); font-weight: 700; line-height: 0.96; letter-spacing: -0.04em; color: var(--text); margin: 0 0 1.4rem; transition-delay: 0.15s; }
.hero-intro { font-size: clamp(1rem, 2vw, 1.18rem); color: var(--muted); line-height: 1.7; max-width: 58ch; margin: 0 auto 1.2rem; font-weight: 400; transition-delay: 0.28s; }
.cta-group { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.75rem; transition-delay: 0.38s; }
.hero-note { width: 100%; text-align: center; font-size: 0.82rem; color: var(--muted); }
.hero-trust-strip { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; transition-delay: 0.44s; }
.hero-trust-chip { padding: 0.45rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.62); color: var(--text); font-size: 0.78rem; font-weight: 500; }
.hero-hint { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; width: 100%; text-align: center; }
.hero-scroll { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; transition-delay: 0.5s; opacity: 0.6; }
.scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--muted), transparent); animation: scrollPulse 2.2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.25; transform: scaleY(1); } 50% { opacity: 0.8; transform: scaleY(1.15); } }

/* ── PROOF STRIP ─────────────────────────────────────────────────────────── */
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.proof-card { border-radius: var(--radius-md); padding: 1.35rem; border: 1px solid var(--line); background: rgba(255,255,255,0.78); box-shadow: var(--shadow-sm); }
.proof-card h3 { margin: 0 0 0.55rem; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.proof-card p { margin: 0 0 0.85rem; font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.proof-card a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--highlight); text-underline-offset: 2px; }

/* ── STATS BAR ────────────────────────────────────────────────────────────── */
.stats-bar { padding: clamp(2rem, 4vw, 3.5rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.35); }
.stats-inner { display: flex; align-items: center; justify-content: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; flex: 1; text-align: center; padding: 0 var(--space-md); }
.stat-num { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1; }
.stat-label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); line-height: 1.35; }
.stat-divider { width: 1px; height: 44px; background: var(--line); flex-shrink: 0; }

/* ── FEATURES — PINNED SCROLL (9 steps = 900vh) ───────────────────────────── */
.features-section { background: transparent; }
.features-sticky-wrapper { height: 900vh; position: relative; }
.features-pin {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 20% 50%, rgba(195,163,93,0.07), transparent 50%),
              linear-gradient(180deg, var(--bg) 0%, #f0ece2 100%);
}
.step-panel { position: absolute; inset: 0; opacity: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: clamp(3rem, 6vw, 8rem); padding: 0 6vw; transition: opacity 0.55s ease; }
.step-panel.active { opacity: 1; pointer-events: auto; }
.step-content { flex: 1; max-width: 480px; }
.step-counter { font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); opacity: 0.6; margin-bottom: 1.2rem; }
.step-headline { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 700; line-height: 1.0; letter-spacing: -0.03em; color: var(--text); margin-bottom: 1.4rem; }
.step-body { font-size: 1.05rem; color: var(--muted); line-height: 1.75; max-width: 42ch; margin-bottom: 1.6rem; font-weight: 300; }
.step-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--highlight); border: 1px solid rgba(195,163,93,0.4); padding: 0.3rem 0.85rem; border-radius: 999px; background: rgba(195,163,93,0.07); }
.step-visual { flex: 1; display: flex; align-items: center; justify-content: center; max-width: 440px; }

/* Visual card */
.visual-card { width: 100%; max-width: 380px; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 24px; padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem; }
.vc-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.vc-pill-row { display: flex; flex-direction: column; gap: 0.6rem; }
.vc-pill { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; border-radius: 14px; border: 1px solid var(--line); }
.vc-pill.complete { background: var(--accent-soft); }
.vc-pill.active   { background: rgba(195,163,93,0.18); }
.vc-pill.muted    { background: rgba(24,50,53,0.04); }
.vc-name  { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.vc-status { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.vc-action-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.vc-action { flex: 1; text-align: center; padding: 0.65rem 0.5rem; border-radius: 10px; font-size: 0.8rem; font-weight: 600; border: 1px solid var(--line); cursor: pointer; transition: background var(--transition); }
.vc-action.taken   { background: var(--accent-soft); color: var(--text); }
.vc-action.skipped { background: rgba(24,50,53,0.06); color: var(--muted); }
.vc-action.later   { background: rgba(195,163,93,0.15); color: var(--text); }
.vc-timeline { display: flex; flex-direction: column; gap: 0.4rem; }
.vc-tl-bar { height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(24,50,53,0.15), var(--highlight), rgba(24,50,53,0.15)); position: relative; margin-bottom: 1.2rem; }
.vc-tl-onset, .vc-tl-peak, .vc-tl-wearoff { position: absolute; font-size: 0.62rem; color: var(--muted); top: 14px; white-space: nowrap; }
.vc-tl-onset  { left: 0; }
.vc-tl-peak   { left: 50%; transform: translateX(-50%); font-weight: 600; color: var(--highlight); }
.vc-tl-wearoff { right: 0; }
.vc-note { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }
.vc-streak-row { display: flex; gap: 0.4rem; justify-content: center; }
.vc-day { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 600; border: 1px solid var(--line); }
.vc-day.taken   { background: var(--accent); color: #fff; border-color: var(--accent); }
.vc-day.skipped { background: transparent; color: var(--muted); }
.vc-day.active  { background: var(--highlight); color: #fff; border-color: var(--highlight); }
.vc-export-row { display: flex; gap: 0.6rem; }
.vc-export-btn { flex: 1; text-align: center; padding: 0.55rem; border: 1px solid var(--line); border-radius: 10px; font-size: 0.78rem; font-weight: 500; color: var(--text); background: transparent; cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.vc-export-btn:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.5); }

/* Progress dots — 9 dots */
.step-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.38rem; z-index: 10; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background var(--transition), transform var(--transition); }
.dot.active { background: var(--highlight); transform: scale(1.4); }

/* ── EXTENDED VISUAL COMPONENTS (Steps 02–09) ────────────────────────────── */

/* Step 02 — Notification */
.vc-notification { border-left: 3px solid var(--accent); background: rgba(24,50,53,0.04); border-radius: 12px; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.vc-notif-time { font-size: 0.65rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.vc-notif-title { font-size: 0.9rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.vc-notif-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.3rem; }
.vc-notif-chip { font-size: 0.72rem; padding: 0.28rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; transition: border-color var(--transition); }
.vc-notif-chip.taken-chip { background: var(--accent-soft); color: var(--text); border-color: transparent; }

/* Step 03 — Undo */
.vc-undo { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 0.4rem; text-decoration: underline; text-decoration-color: var(--line); cursor: pointer; transition: color var(--transition); }
.vc-undo:hover { color: var(--text); }

/* Step 04 — Time blocks */
.vc-time-blocks { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.4rem; }
.vc-time-chip { font-size: 0.7rem; font-weight: 500; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(24,50,53,0.04); }
.vc-time-chip.peak-chip { background: rgba(195,163,93,0.15); border-color: rgba(195,163,93,0.4); color: var(--text); font-weight: 600; }
.vc-time-chip.muted-chip { opacity: 0.55; }

/* Step 05 — Rating rows */
.vc-rating-row { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 0; border-bottom: 1px solid var(--line); gap: 0.5rem; }
.vc-rating-label { font-size: 0.82rem; color: var(--text); font-weight: 500; }
.vc-rating-dots { display: flex; gap: 0.3rem; }
.vc-rating-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); transition: background var(--transition); }
.vc-rating-dot.filled { background: var(--accent); }
.vc-rating-dot.highlight { background: var(--highlight); }
.vc-side-effect { font-size: 0.73rem; color: var(--muted); font-style: italic; }

/* Step 06 — Supply */
.vc-supply-row { display: flex; flex-direction: column; gap: 1rem; }
.vc-supply-item { display: flex; flex-direction: column; gap: 0.4rem; }
.vc-supply-name { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.vc-supply-bar-wrap { height: 8px; border-radius: 999px; background: rgba(24,50,53,0.1); overflow: hidden; }
.vc-supply-bar { height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.4s ease; }
.vc-supply-bar.warning { background: var(--highlight); }
.vc-supply-note { font-size: 0.7rem; color: var(--muted); line-height: 1.3; }

/* Step 07 — Interactions */
.vc-interaction-row { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--line); gap: 0.6rem; }
.vc-int-name { font-size: 0.82rem; color: var(--text); font-weight: 500; flex: 1; }
.vc-int-badge { font-size: 0.63rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.22rem 0.6rem; border-radius: 999px; white-space: nowrap; text-transform: uppercase; }
.vc-int-badge.moderate { background: rgba(195,163,93,0.2); color: #7a5a10; }
.vc-int-badge.minor    { background: var(--accent-soft); color: var(--accent); }

/* Step 09 — Privacy */
.vc-privacy-center { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 0.5rem 0; }
.vc-privacy-icon { font-size: 3rem; line-height: 1; }
.vc-privacy-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.vc-privacy-chip { font-size: 0.72rem; font-weight: 500; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(24,50,53,0.04); }


/* ── GUIDE GRID ───────────────────────────────────────────────────────────── */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.guide-card { border-radius: var(--radius-md); padding: 1.5rem; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: border-color var(--transition), transform var(--transition); cursor: pointer; }
.guide-card:hover { border-color: var(--highlight); transform: translateY(-3px); }
.guide-kicker { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.guide-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 0.6rem; letter-spacing: -0.01em; line-height: 1.35; }
.guide-card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.6; flex: 1; }
.guide-link-panel { margin-top: 1.1rem; padding: 1.25rem 1.35rem; border-top: 1px solid var(--line); }
.guide-link-heading { margin-bottom: 0.8rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.guide-link-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem 1rem; }
.guide-link-list a { color: var(--muted); font-size: 0.88rem; line-height: 1.45; transition: color var(--transition); }
.guide-link-list a:hover, .guide-link-list a:focus-visible { color: var(--text); text-decoration: underline; text-decoration-color: var(--highlight); text-underline-offset: 2px; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-shell { max-width: 900px; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.faq-item { border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-sm); padding: 1.2rem 1.4rem; cursor: pointer; transition: border-color var(--transition); }
.faq-item:hover { border-color: var(--line-strong); }
.faq-item summary { list-style: none; font-weight: 600; font-size: 0.92rem; letter-spacing: -0.01em; position: relative; padding-right: 1.5rem; cursor: pointer; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.1rem; font-weight: 300; color: var(--muted); transition: transform var(--transition), color var(--transition); }
.faq-item[open] summary::after { content: "−"; color: var(--highlight); }
.faq-item p { margin-top: 0.7rem; font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.faq-actions { display: flex; justify-content: flex-start; }

/* ── CTA PANEL ────────────────────────────────────────────────────────────── */
.cta-section { padding-top: 0; }
.cta-panel { border-radius: var(--radius-lg); padding: clamp(1.75rem, 1rem + 2vw, 3.5rem); display: grid; grid-template-columns: 1.1fr auto; gap: clamp(1.5rem, 3vw, 4rem); align-items: center; border: 1px solid var(--line); background: radial-gradient(circle at top right, rgba(195,163,93,0.18), transparent 32%), linear-gradient(180deg, rgba(255,255,255,0.84), rgba(248,244,236,0.72)); box-shadow: var(--shadow-sm); }
.cta-copy .eyebrow { margin-bottom: 0.8rem; }
.cta-copy h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--text); margin: 0.4rem 0 0.8rem; }
.cta-copy p { font-size: 1rem; color: var(--muted); line-height: 1.7; max-width: 48ch; margin-bottom: 1.4rem; }
.cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta-icon img { width: clamp(80px, 12vw, 130px); height: auto; opacity: 0.9; }

/* ── ARTICLE PAGES ────────────────────────────────────────────────────────── */
.article-hero { position: relative; padding: var(--space-2xl) 0; padding-top: clamp(3rem, 6vw, 5rem); overflow: clip; }
.article-hero-shell { max-width: 800px; }
.hero-title { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; margin-top: 1rem; font-size: clamp(2.8rem, 6vw, 4.5rem); }
.article-intro { max-width: 62ch; margin: 1.2rem 0 0; font-size: clamp(1.04rem, 0.98rem + 0.35vw, 1.18rem); color: var(--muted); }
.article-intro + .article-intro { margin-top: 0.8rem; }
.article-intro + .cta-group { margin-top: 1.8rem; }
.article-meta { margin-top: 1rem; font-size: 0.84rem; color: var(--muted); }
.article-page { position: relative; padding: clamp(2rem, 4vw, 3.5rem) 0 var(--space-2xl); }
.article-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: start; max-width: 860px; margin: 0 auto; }
.article-body { order: 2; border: 1px solid var(--line); background: rgba(255,255,255,0.82); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 3rem); }
.article-body h2 { margin: 2.25rem 0 0.85rem; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-size: clamp(1.65rem, 3vw, 2.15rem); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 1.5rem 0 0.75rem; font-weight: 700; letter-spacing: -0.01em; font-size: 1.25rem; }
.article-body p { margin: 0 0 1rem; color: var(--muted); max-width: 64ch; }
.article-body ul { margin: 0 0 1rem; padding-left: 1.35rem; color: var(--muted); max-width: 58ch; list-style: disc; }
.article-body ol { margin: 0 0 1rem; padding-left: 1.35rem; color: var(--muted); max-width: 58ch; }
.article-body li + li { margin-top: 0.4rem; }
.article-body a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--highlight); text-underline-offset: 2px; }
.article-body a:hover { text-decoration-color: var(--text); }
.article-warning { margin-bottom: 1.25rem; border: 1px solid rgba(195,163,93,0.45); background: rgba(195,163,93,0.12); border-radius: var(--radius-md); padding: 1rem 1.1rem; color: var(--text); }
.article-warning strong { display: block; margin-bottom: 0.25rem; }
.article-aside { order: 1; border: 1px solid var(--line); background: rgba(247,243,233,0.9); box-shadow: none; border-radius: var(--radius-md); padding: 1.25rem 1.35rem; position: static; }
.article-aside h3 { margin: 0 0 1rem; font-weight: 700; letter-spacing: -0.01em; font-size: 1.1rem; }
.article-aside ul { margin: 0 0 0.25rem; padding-left: 1.35rem; color: var(--text); font-size: 0.95rem; list-style: disc; columns: 2; column-gap: 1.5rem; }
.article-aside li + li { margin-top: 0.4rem; }
.article-aside p { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.92rem; max-width: 60ch; }
.article-points { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: var(--space-lg) auto 0; max-width: 860px; }
.article-callout { border: 1px solid var(--line); background: rgba(255,255,255,0.65); box-shadow: none; border-radius: var(--radius-md); padding: 1.2rem 1.25rem; }
.article-callout h2 { margin: 0 0 0.5rem; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.3rem; }
.article-callout p { margin: 0; color: var(--muted); max-width: 60ch; }
.article-faq-list { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: var(--space-lg) auto 0; max-width: 860px; }
.article-faq-item { border: 1px solid var(--line); background: rgba(255,255,255,0.65); box-shadow: none; border-radius: var(--radius-md); padding: 1.2rem 1.25rem; cursor: pointer; }
.article-faq-item summary { list-style: none; font-weight: 700; letter-spacing: -0.02em; position: relative; padding-right: 1.6rem; }
.article-faq-item summary::-webkit-details-marker { display: none; }
.article-faq-item summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--muted); font-size: 1.1rem; }
.article-faq-item[open] summary::after { content: "−"; }
.article-faq-item p { margin: 0.8rem 0 0; color: var(--muted); }
.article-tip { border: 1px solid var(--line); background: rgba(255,255,255,0.65); border-radius: var(--radius-md); padding: 1.2rem 1.25rem; margin-top: 2.25rem; }
.article-tip h3 { margin: 0 0 0.5rem; font-weight: 700; font-size: 1rem; }
.article-tip p  { margin: 0; font-size: 0.95rem; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.site-footer { padding: clamp(3rem, 6vw, 5rem) 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.footer-brand-col .footer-brand { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.footer-note { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col h4, .footer-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.footer-col a { font-size: 0.88rem; color: var(--muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; justify-content: center; }
.footer-bottom p { font-size: 0.75rem; color: var(--muted); }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .step-panel { flex-direction: column; text-align: center; gap: var(--space-lg); padding: calc(var(--header-height) + 1rem) var(--space-md) 0; align-items: center; justify-content: flex-start; overflow-y: auto; }
  .step-content { max-width: 100%; }
  .step-body    { max-width: 52ch; margin-inline: auto; }
  .step-visual  { max-width: 360px; width: 100%; }
  .proof-grid   { grid-template-columns: 1fr; }
  .guide-grid   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-featured-grid, .guide-link-list { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .article-grid, .article-points, .article-faq-list { grid-template-columns: 1fr; }
  .article-aside ul { columns: 1; }
}
@media (max-width: 760px) {
  :root { --header-height: 72px; }
  .nav { display: none; }
  .header-inner { flex-wrap: nowrap; padding: 0.75rem 0; }
  .hero { min-height: 100svh; align-items: stretch; }
  .hero-grid { max-width: 100%; min-height: 100svh; padding: clamp(4rem, 10svh, 6rem) var(--space-md) clamp(3rem, 8svh, 5rem); align-items: stretch; }
  .hero-copy { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
  .hero-brand { font-size: clamp(7.2rem, 31vw, 9.8rem); line-height: 0.82; margin-bottom: clamp(2.8rem, 7svh, 4rem); }
  .hero-copy h1 { font-size: clamp(3.25rem, 14vw, 5.2rem); margin-bottom: clamp(1.8rem, 4svh, 2.5rem); }
  .hero-intro { max-width: 26rem; margin-bottom: clamp(2.2rem, 5svh, 3.25rem); }
  .cta-group { margin-bottom: 0.35rem; }
  .hero-note { margin-top: 0.35rem; }
  .hero-scroll { margin-top: clamp(3.2rem, 8svh, 5.2rem); }
  .hero-trust-strip { gap: 0.5rem; }
  .stats-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .stat-divider { display: none; }
  .features-sticky-wrapper { height: 1400vh; }
  .step-panel { padding: calc(var(--header-height) + 0.5rem) var(--space-md) 0; gap: 1rem; }
  .step-headline { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .capsule-grid, .guide-grid, .faq-list { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; text-align: center; }
  .cta-copy p { max-width: 100%; }
  .cta-icon { display: none; }
  .cta-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .article-faq-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-copy h1 { font-size: clamp(3rem, 16vw, 4rem); }
  .section-heading h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .header-actions .app-store-btn img { height: 32px; }
  .stats-inner { grid-template-columns: 1fr; text-align: center; }
  .article-faq-item { padding: 1.25rem; }
  .article-body { padding: 1.25rem; }
  .article-aside { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
:focus-visible { outline: 3px solid rgba(195,163,93,0.6); outline-offset: 3px; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS — Pillr brand styled testimonials
   ═══════════════════════════════════════════════════════════════════════════ */

.pillr-testimonials {
  padding: var(--space-2xl) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

/* Card */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

/* Stars */
.stars {
  display: flex;
  gap: 4px;
}

.star {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: var(--highlight);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Quote */
.quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
  flex: 1;
}

/* Author row */
.author-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* Avatar */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.av-teal   { background: var(--accent-soft); color: var(--accent); }
.av-blue   { background: rgba(195,163,93,0.15); color: var(--text); }
.av-purple { background: rgba(89,83,177,0.12); color: #534AB7; }
.av-coral  { background: rgba(153,60,29,0.1); color: #993C1D; }

/* Author name & meta */
.author-info {
  flex: 1;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.author-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

/* Verified badge */
.verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 500;
}

.verified-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive — stack to 1 col on mobile
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    padding: 1.25rem;
  }

  .quote {
    font-size: 0.9rem;
  }

  .avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .author-name {
    font-size: 0.85rem;
  }

  .author-meta {
    font-size: 0.72rem;
  }

  .verified {
    font-size: 0.65rem;
    padding: 2px 8px;
  }
}
