/* PeePal static site — direction 1b, translated from the design handoff. */

/* ── Design Tokens ───────────────────────────────── */
:root {
  /* Colours */
  --primary:            #097A6F;
  --primary-dark:       #064E47;
  --primary-light:      #DCEFEB;
  --primary-10:         rgba(9, 122, 111, 0.10);
  --primary-15:         rgba(9, 122, 111, 0.15);
  --primary-20:         rgba(9, 122, 111, 0.20);
  --primary-30:         rgba(9, 122, 111, 0.30);
  --terracotta:         #E8895A;
  --terracotta-text:    #B85C32;
  --honey:              #F2B441;
  --accent:             var(--terracotta);
  /* Decorative sage for fills and soft surfaces; not status text. */
  --sage:               #6E9F80;
  /* Semantic success for positive status text and icons. */
  --success:            #2D8A4E;
  --warning:            #9A6418;
  --error:              #B04436;

  /* Semantic aliases */
  --ring:               var(--primary);
  --bg-primary-soft:    var(--primary-10);
  --surface:            #FFFFFF;
  --surface-raised:     #FFFDF9;

  /* Warm elevation */
  --shadow-sm:          0 8px 22px rgba(68, 49, 31, 0.08);
  --shadow-md:          0 14px 34px rgba(68, 49, 31, 0.11);
  --shadow-lg:          0 18px 46px rgba(68, 49, 31, 0.14);

  /* Backgrounds */
  --bg:                 #FBF8F3;
  --bg-warm:            #F4EEE4;
  --bg-muted:           #EFE7DB;

  /* Text */
  --fg:                 #2B211A;
  --fg-muted:           #5F5148;
  --fg-subtle:          #7B6F65;

  /* Borders */
  --border:             #DED4C6;
  --border-strong:      #C9BAA8;

  /* Primary foreground (text on primary bg) */
  --primary-fg:         #FFFFFF;

  /* Typography */
  --font:               -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Shape */
  --radius-sm:          8px;
  --radius-md:          14px;
  --radius-lg:          20px;
  --radius-pill:        999px;

  /* Spacing */
  --max-w:              1024px;
  --max-w-prose:        768px;
  --max-w-narrow:       640px;
  --px:                 1.5rem;
  --section-py:         4rem;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  text-wrap: pretty;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { list-style: none; }
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  text-wrap: balance;
}

/* ── Skip link ────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; }

/* ── Layout helpers ─────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.container--prose  { max-width: var(--max-w-prose);  margin-inline: auto; padding-inline: var(--px); }
.container--narrow { max-width: var(--max-w-narrow); margin-inline: auto; padding-inline: var(--px); }

main { flex: 1; }

section { padding-block: var(--section-py); }

/* ── Browser diary ─────────────────────────────── */
.diary-hero { background: var(--primary-light); padding-block: 4.5rem 3rem; }
.diary-hero p:last-child { margin-top: 1rem; color: var(--fg-muted); font-size: 1.1rem; }
.eyebrow { color: var(--primary-dark); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.diary-section { padding-top: 2rem; }
.diary-root > h2 { font-size: 1.6rem; }
.diary-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 1.75rem; }
.diary-status { min-height: 1.5rem; color: var(--success); font-weight: 600; }
.diary-status--error, .diary-error { color: var(--error); }
.diary-days { display: grid; gap: 1rem; }
.diary-day, .diary-secondary, .diary-fallback { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.25rem; }
.diary-day__heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.diary-day__heading h2, .diary-secondary h2 { font-size: 1.1rem; }
.diary-day__heading p, .diary-empty-day { color: var(--fg-muted); font-size: 0.95rem; }
.diary-entry-list { display: grid; gap: 0.6rem; margin-top: 1rem; }
.diary-entry-list li { align-items: center; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; justify-content: space-between; padding-top: 0.6rem; }
.diary-entry-actions { display: flex; gap: 0.35rem; }
.diary-text-button { align-items: center; background: transparent; border: 0; color: var(--primary); cursor: pointer; display: inline-flex; font: inherit; justify-content: center; min-height: 44px; min-width: 44px; padding: 0.4rem; text-decoration: underline; text-underline-offset: 2px; }
.diary-secondary { margin-top: 1.25rem; }
.diary-secondary > p { color: var(--fg-muted); margin: 0.5rem 0 1rem; }
.diary-secondary--danger { border-color: rgba(176, 68, 54, 0.4); }
.share-window { border: 0; display: flex; gap: 1rem; margin: 0 0 1rem; }
.share-window legend { font-weight: 700; margin-bottom: 0.4rem; }
.share-window label { display: flex; gap: 0.35rem; align-items: center; }
.share-output { display: block; min-height: 8rem; margin-top: 1rem; padding: 0.75rem; resize: vertical; width: 100%; }
.btn--danger { background: var(--error); border-color: var(--error); color: var(--primary-fg); }
.btn--danger:hover { background: #8f342a; color: var(--primary-fg); text-decoration: none; }
.diary-dialog { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); color: var(--fg); max-width: min(30rem, calc(100vw - 2rem)); padding: 1.5rem; width: 100%; }
.diary-dialog::backdrop { background: rgba(43, 33, 26, 0.45); }
.diary-dialog form { display: grid; gap: 0.7rem; }
.diary-dialog input[type="datetime-local"], .diary-dialog input[type="number"] { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--fg); font: inherit; padding: 0.65rem; }
.diary-error { min-height: 1.5rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; margin-top: 0.75rem; }
.diary-root--unavailable .diary-actions, .diary-root--unavailable .diary-secondary { display: none; }
.diary-retention-note { color: var(--fg-muted); font-size: 0.95rem; margin: 1rem 0; }

/* ── Header / Nav ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
}
.site-header__brand:hover { text-decoration: none; }
.site-header__brand img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover {
  background: var(--primary-light);
  color: var(--fg);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--fg);
  border-radius: var(--radius-sm);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ── Footer ───────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-warm);
  padding-block: 2.5rem;
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: start;
}

.site-footer__brand {
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.site-footer__brand img { width: 22px; height: 22px; border-radius: var(--radius-sm); }
.site-footer__tagline {
  font-size: 0.85rem;
  color: var(--fg-subtle);
  margin-bottom: 0.75rem;
}
.site-footer__legal {
  font-size: 0.75rem;
  color: var(--fg-subtle);
  line-height: 1.5;
}
.site-footer__legal a { color: var(--fg-subtle); text-decoration: underline; text-underline-offset: 2px; }

.site-footer__nav h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}
.site-footer__nav ul { display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer__nav a {
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.site-footer__nav a:hover { color: var(--primary); text-decoration: none; }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  padding: 0.72rem 1.5rem;
  line-height: 1.3;
}
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.btn:hover { text-decoration: none; box-shadow: var(--shadow-sm); }
.btn:active { transform: scale(0.98); }

.btn--primary  { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--outline  { background: var(--surface); color: var(--primary); border: 1.5px solid var(--primary); }
.btn--outline:hover { background: var(--primary-light); }

/* ── Store badges ────────────────────────────────── */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md);
  transition: opacity 0.15s, transform 0.15s;
}
.store-badge:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.store-badge:hover { opacity: 0.82; transform: scale(1.03); text-decoration: none; }
.store-badge img { height: 44px; width: auto; }

/* ── Trust bar ──────────────────────────────────── */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}
.trust-bar__sep { color: var(--border-strong); }
.trust-bar__muted { color: var(--fg-subtle); }
.trust-bar__strong { font-weight: 700; color: var(--primary); }
.trust-bar a { font-weight: 500; color: var(--primary); }

/* ── Scroll story home page ─────────────────────── */
.scroll-story {
  padding-block: 0;
  overflow: clip;
}

.scroll-story__grid {
  width: min(100% - 3rem, 1100px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(2.5rem, 7vw, 5rem);
}

.scroll-story__copy { min-width: 0; }

.story-panel {
  min-height: 34rem;
  padding-block: 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.story-panel--hero {
  min-height: 43rem;
  border-top: 0;
}

.story-panel h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 6vw, 4.6rem);
  letter-spacing: -0.045em;
}

.story-panel h1 span { color: var(--primary); }
.story-panel h2 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; }
.story-panel p { max-width: 31rem; color: var(--fg-muted); font-size: 1.05rem; }
.story-panel__lead { font-size: 1.2rem !important; }
.story-panel .store-badges { margin-top: 0.65rem; }
.story-facts { font-size: 0.88rem !important; color: var(--fg) !important; font-weight: 600; }
.story-regions { font-size: 0.82rem !important; }

.scroll-story__visual { position: relative; }

.phone-preview {
  position: sticky;
  top: 5.25rem;
  width: 340px;
  height: auto;
  display: block;
  margin: 3rem auto;
  border: 8px solid var(--fg);
  border-radius: 2.8rem;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}

.testimonial-band {
  padding: 5rem 1.5rem;
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
}

.testimonial-band blockquote { max-width: 48rem; margin-inline: auto; }
.testimonial-band p { color: #fff; font-size: clamp(1.55rem, 4vw, 2.25rem); font-weight: 700; line-height: 1.35; }
.testimonial-band footer { margin-top: 1rem; color: rgba(255, 255, 255, 0.76); font-size: 0.9rem; }

.record-uses { background: var(--bg); }
.section-header--left { text-align: left; }
.section-header--left p { margin-inline: 0; }
.record-uses__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.record-use-card { min-height: 12rem; padding: 1.45rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.record-use-card h3 { margin-bottom: 0.65rem; font-size: 1.05rem; }
.record-use-card p { color: var(--fg-muted); font-size: 0.86rem; }

.founder-note { background: var(--bg-warm); text-align: center; }
.founder-note h2, .guides-teaser h2 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.founder-note p, .guides-teaser p { color: var(--fg-muted); font-size: 1.04rem; }
.guides-teaser { text-align: center; }
.guides-teaser .btn { margin-top: 1.5rem; }

/* ── Hero section ──────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 52%, var(--bg-warm) 100%);
  padding-block: 3rem 4rem;
}
@media (min-width: 768px) { .hero { padding-block: 5rem 6rem; } }

.hero blockquote p {
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.hero blockquote p span { color: var(--primary); }
.hero blockquote footer {
  margin-top: 1rem;
}
.hero blockquote cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--fg-subtle);
}

.hero__sub {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 42rem;
  line-height: 1.65;
}
@media (min-width: 768px) { .hero__sub { font-size: 1.0625rem; } }

.hero__badges { margin-top: 1.75rem; }

/* ── Privacy Promise ───────────────────────────── */
.privacy-promise {
  background: var(--primary-dark);
  color: #fff;
  overflow: hidden;
}
.privacy-promise h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.15;
}
.privacy-promise h2 span { display: block; color: rgba(255,255,255,0.65); }
.privacy-promise p { color: rgba(255,255,255,0.8); }

.privacy-promise__grid {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .privacy-promise__grid { grid-template-columns: 1.4fr 1fr; }
}

.privacy-promise__left { display: flex; flex-direction: column; gap: 1rem; }
.privacy-promise__sub { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 0.5rem; }

.privacy-promise__cards { display: flex; flex-direction: column; gap: 0.75rem; }

.promise-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
}
.promise-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.promise-card__icon svg { width: 18px; height: 18px; }
.promise-card h3 { font-size: 0.9375rem; color: #fff; font-weight: 600; margin-bottom: 0.2rem; }
.promise-card p  { font-size: 0.8125rem; color: rgba(255,255,255,0.68); line-height: 1.5; }

/* ── How It Works ──────────────────────────────── */
.how-it-works { background: var(--bg); }

.steps {
  max-width: 38rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  position: relative;
}

.step__badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.step__badge {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
  z-index: 1;
}
.step__line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 0.5rem;
}

.step__content { flex: 1; padding-bottom: 0.5rem; }
.step__content h3 { font-size: 1.1875rem; font-weight: 700; color: var(--fg); margin-bottom: 0.2rem; }
.step__subtitle { font-size: 0.875rem; font-weight: 600; color: var(--primary); margin-bottom: 0.5rem; }
.step__desc { color: var(--fg-muted); line-height: 1.6; font-size: 0.9375rem; }

/* ── User Types ─────────────────────────────────── */
.user-types { background: var(--bg-warm); }

.use-cases-primary {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .use-cases-primary { grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; } }

.use-case-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.use-case-card:hover { border-color: var(--primary-30); box-shadow: var(--shadow-md); }

.use-case-card__icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-10);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.use-case-card__icon svg { width: 24px; height: 24px; }
.use-case-card h3 { font-size: 1.0625rem; font-weight: 600; color: var(--fg); margin-bottom: 0.25rem; }
.use-case-card p  { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.5; }

.use-cases-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (min-width: 1024px) { .use-cases-secondary { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

.use-case-card--sm {
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: border-color 0.15s;
  flex-direction: column;
}
.use-case-card--sm:hover { border-color: var(--primary-15); }
.use-case-card--sm .use-case-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}
.use-case-card--sm .use-case-card__icon svg { width: 18px; height: 18px; }
.use-case-card--sm h3 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.use-case-card--sm p  { font-size: 0.8125rem; color: var(--fg-muted); }

.user-types__note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-top: 2rem;
}
.user-types__note strong { font-weight: 600; color: var(--fg); }

/* ── Founder Story ─────────────────────────────── */
.founder-story { background: var(--bg-warm); }
.founder-story blockquote { text-align: center; position: relative; padding-top: 1.5rem; }
.founder-story blockquote::before {
  content: '\201C';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  color: var(--primary-30);
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}
.founder-story blockquote p {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.founder-story blockquote footer { margin-top: 1.5rem; }
.founder-story blockquote cite {
  font-style: normal;
  color: var(--fg-muted);
}
.founder-story blockquote cite strong { color: var(--fg); font-weight: 600; }

/* ── CTA Section ───────────────────────────────── */
.cta-section {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  text-align: center;
}
.cta-section__icon {
  width: 5rem;
  height: 5rem;
  background: var(--primary-10);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  color: var(--primary);
}
.cta-section__icon svg { width: 40px; height: 40px; }
.cta-section h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.cta-section p  { font-size: 1.0625rem; color: var(--fg-muted); margin-bottom: 2rem; line-height: 1.65; max-width: 36rem; margin-inline: auto; }
.cta-section .store-badges { justify-content: center; }
.cta-section__sub { font-size: 0.875rem; color: var(--fg-subtle); margin-top: 1.25rem; }
.cta-section__sub a { color: var(--primary); }
.cta-section__disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--fg-subtle);
}
.cta-section__disclaimer a { color: var(--fg-subtle); text-decoration: underline; text-underline-offset: 2px; }

/* ── Section headers ───────────────────────────── */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.375rem); margin-bottom: 0.75rem; }
.section-header p  { font-size: 1.0625rem; color: var(--fg-muted); max-width: 30rem; margin-inline: auto; }

/* ── Page hero (inner pages) ──────────────────────── */
.page-hero {
  background: var(--bg-warm);
  padding-block: 3rem 2.5rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.page-hero p  { font-size: 1.0625rem; color: var(--fg-muted); max-width: 38rem; margin-inline: auto; }

/* ── Guides page ───────────────────────────────── */
.guides-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px)  { .guides-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .guides-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }

.guide-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.guide-card:hover { border-color: var(--primary-15); box-shadow: var(--shadow-sm); }
.guide-card h3 { font-size: 0.9375rem; font-weight: 600; color: var(--fg); margin-bottom: 0.4rem; line-height: 1.35; }
.guide-card p  { font-size: 0.8125rem; color: var(--fg-muted); line-height: 1.55; }

.guides-cta-box {
  margin-top: 3rem;
  background: var(--bg-primary-soft);
  border: 1px solid var(--primary-15);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.guides-cta-box h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.guides-cta-box p  { font-size: 0.9375rem; color: var(--fg-muted); margin-bottom: 1.5rem; max-width: 30rem; margin-inline: auto; }

/* ── Support / FAQ ────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--fg);
  gap: 1rem;
  transition: background 0.15s;
  user-select: none;
}
.faq-item summary:hover { background: var(--bg-warm); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--fg-subtle);
  transition: transform 0.2s;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item[open] summary { color: var(--primary); }
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--fg-muted);
  line-height: 1.65;
  font-size: 0.9375rem;
}
.faq-answer a { color: var(--primary); }

.contact-box {
  margin-top: 3rem;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2rem;
  text-align: center;
}
.contact-box__icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-10);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1rem;
  color: var(--primary);
}
.contact-box__icon svg { width: 24px; height: 24px; }
.contact-box h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-box p  { font-size: 0.9375rem; color: var(--fg-muted); margin-bottom: 1.25rem; }

/* ── Legal / Privacy ───────────────────────────── */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.legal-nav a {
  padding: 0.4rem 1rem;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: background 0.15s, color 0.15s;
}
.legal-nav a:hover { background: var(--primary-10); color: var(--primary); text-decoration: none; }

.legal-section {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
}
.legal-section:first-of-type { border-top: none; padding-top: 0; }
.legal-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.25rem; scroll-margin-top: 5rem; }
.legal-section h3 { font-size: 1.0625rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-section p  { font-size: 0.9375rem; color: var(--fg-muted); line-height: 1.7; margin-bottom: 0.875rem; }
.legal-section ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 0.875rem; }
.legal-section li { font-size: 0.9375rem; color: var(--fg-muted); line-height: 1.65; margin-bottom: 0.3rem; }
.legal-section a  { color: var(--primary); }

.legal-updated {
  font-size: 0.8125rem;
  color: var(--fg-subtle);
  margin-bottom: 2rem;
  text-align: center;
}

/* ── Peedle page ───────────────────────────────── */
.peedle-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 52%, var(--bg-warm) 100%);
  padding-block: 3.5rem 4rem;
}
@media (min-width: 768px) { .peedle-hero { padding-block: 5rem 5.5rem; } }

.peedle-hero__grid {
  display: grid;
  gap: 2rem 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .peedle-hero__grid { grid-template-columns: 1fr 1fr; } }

.peedle-hero h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); margin-bottom: 1rem; }
.peedle-hero p   { font-size: 1.0625rem; color: var(--fg-muted); line-height: 1.65; margin-bottom: 0.875rem; }

.peedle-visual {
  display: flex;
  justify-content: center;
}

.peedle-status-card {
  width: 100%;
  max-width: 360px;
  padding: 1.25rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.peedle-card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.peedle-card-head span {
  display: block;
  color: var(--fg-subtle);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.peedle-card-head strong {
  display: block;
  color: var(--primary-dark);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.15;
}

.peedle-mark {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--primary-light);
  border: 1px solid var(--primary-20);
}

.peedle-mark__drop {
  position: absolute;
  left: 19px;
  top: 10px;
  width: 20px;
  height: 26px;
  background: var(--primary);
  border-radius: 14px 14px 14px 4px;
  transform: rotate(45deg);
}

.peedle-mark__wave {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  height: 8px;
  border-top: 2px solid var(--primary-dark);
  border-radius: 999px;
}

.peedle-status-card > p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.peedle-rhythm {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 0.45rem;
  height: 86px;
  padding: 0.75rem;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.peedle-rhythm span {
  display: block;
  min-height: 1rem;
  border-radius: var(--radius-pill) var(--radius-pill) 0.35rem 0.35rem;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  opacity: 0.86;
}

.peedle-rhythm__bar--1 { height: 44%; }
.peedle-rhythm__bar--2 { height: 56%; }
.peedle-rhythm__bar--3 { height: 50%; }
.peedle-rhythm__bar--4 { height: 62%; }
.peedle-rhythm__bar--5 { height: 58%; }
.peedle-rhythm__bar--6 { height: 66%; }
.peedle-rhythm__bar--7 { height: 60%; }

.peedle-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.peedle-comparison div { padding: 0.65rem; background: var(--surface); border-radius: var(--radius-md); }
.peedle-comparison span, .peedle-comparison strong { display: block; }
.peedle-comparison span { color: var(--fg-muted); font-size: 0.72rem; }
.peedle-comparison strong { margin-top: 0.2rem; color: var(--fg); font-size: 1rem; }

.peedle-context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.peedle-context span {
  padding: 0.35rem 0.65rem;
  background: var(--primary-10);
  border-radius: var(--radius-pill);
  color: var(--primary-dark);
  font-size: 0.8125rem;
  font-weight: 700;
}

.peedle-content { background: var(--bg); }
.peedle-section { margin-bottom: 3rem; }
.peedle-section:last-child { margin-bottom: 0; }
.peedle-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.peedle-section p  { font-size: 0.9375rem; color: var(--fg-muted); line-height: 1.7; margin-bottom: 0.875rem; }
.peedle-section p:last-child { margin-bottom: 0; }
.peedle-section p strong { color: var(--fg); font-weight: 600; }

/* FAQs on peedle page reuse .faq-* */

/* ── 404 page ──────────────────────────────────── */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
  min-height: 60vh;
}
.not-found__code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 700;
  color: var(--primary-10);
  line-height: 1;
  letter-spacing: -0.05em;
}
.not-found h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0.5rem; margin-bottom: 0.75rem; }
.not-found p  { font-size: 1rem; color: var(--fg-muted); margin-bottom: 1.5rem; max-width: 28rem; }

/* ── Utilities ──────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.surface-section { padding-block: 3rem 4rem; background: var(--bg-warm); }
.section-title { margin-bottom: 1.5rem; font-size: 1.5rem; text-align: center; }
.centred-badges { justify-content: center; }
.small-meta { margin-top: 1rem !important; color: var(--fg-subtle) !important; font-size: 0.875rem !important; }
.peedle-prose { padding-block: 3rem 1rem; }
.faq-section { padding-block: 2rem 3rem; background: var(--bg-warm); }
.faq-heading { margin-bottom: 1.25rem; font-size: 1.375rem; }

/* ── Responsive: mobile nav ───────────────────────── */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-raised);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.65rem 0.75rem; border-radius: var(--radius-md); font-size: 1rem; }

  .site-header { position: relative; }
  .site-header__inner { position: relative; }

  .scroll-story__grid { width: min(100% - 2rem, 38rem); display: block; }
  .story-panel, .story-panel--hero { min-height: auto; padding-block: 4.5rem; }
  .story-panel h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .scroll-story__visual { display: none; }
  .record-uses__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --section-py: 3rem; }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .record-uses__grid { grid-template-columns: 1fr; }
  .record-use-card { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
