/* ============================================================
   Buy Me Later — landing styles
   Static, no tracking. System fonts only. Mobile-first.
   ============================================================ */

:root {
  --bg:        #F6F5F1;   /* soft off-white */
  --surface:   #FFFFFF;
  --band:      #EFEEE8;   /* alternating section tint */
  --ink:       #182420;   /* primary text */
  --muted:     #5F6E68;   /* secondary text */
  --accent:    #2E7D6B;   /* calm teal-green */
  --accent-deep:#1F5A4C;
  --accent-soft:#E6F1EC;
  --line:      #E4E2DB;   /* hairline borders */
  --minus:     #A8938A;   /* neutral warm-grey for "plain wishlist" */

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1080px;
  --pad:       20px;

  --shadow-sm: 0 1px 2px rgba(24,36,32,.05);
  --shadow-md: 0 10px 30px rgba(24,36,32,.08);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 4.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
p  { margin: 0 0 1rem; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.narrow { max-width: 720px; }
.center { text-align: center; }
.accent { color: var(--accent); }

.section { padding-block: clamp(56px, 9vw, 96px); }
.band { background: var(--band); }

.section-lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--ink); margin-bottom: 1rem; }
.muted-block  { color: var(--muted); }
.fine  { font-size: .9rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,245,241,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: var(--surface);
}
.brand-name { letter-spacing: -0.01em; }
.site-nav { display: none; gap: 26px; }
.site-nav a { color: var(--muted); font-size: .95rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

@media (min-width: 760px) {
  .site-nav { display: flex; }
}

/* ---------- Buttons / CTA ---------- */
.cta-group { margin-top: 28px; }
.center-group { display: flex; flex-direction: column; align-items: center; }
.secondary-note { color: var(--muted); font-size: .95rem; margin: 12px 0 0; }

.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #111514; color: #F6F5F1;
  padding: 12px 22px; border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-store:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-store-icon { display: inline-grid; place-items: center; }
.btn-store-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn-store-text small { font-size: .72rem; color: #B9C1BE; }
.btn-store-text strong { font-size: 1.15rem; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-deep);
  background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { margin-bottom: 18px; }
.lead { font-size: clamp(1.15rem, 3vw, 1.45rem); font-weight: 500; margin-bottom: 12px; }
.support { color: var(--muted); max-width: 46ch; }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* ---------- iPhone mockup ---------- */
.hero-visual { display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative; margin: 0;
  width: min(300px, 82vw); aspect-ratio: 300 / 610;
  background: #101613;
  border-radius: 44px; padding: 12px;
  box-shadow: var(--shadow-md), 0 0 0 2px rgba(24,36,32,.06);
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 22px; background: #101613; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone-screen {
  height: 100%; background: var(--bg); border-radius: 34px;
  padding: 40px 16px 20px; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
}
.app-topbar { display: flex; align-items: center; justify-content: space-between; }
.app-title { font-weight: 700; font-size: 1.1rem; }
.app-timer { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--accent-deep); font-weight: 600; }
.ring {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid var(--accent-soft); border-top-color: var(--accent);
  animation: spin 6s linear infinite;
}
.item-card {
  background: var(--surface); border-radius: var(--radius-sm);
  padding: 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  box-shadow: var(--shadow-sm);
}
.item-thumb {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft);
  display: grid; place-items: center; font-size: 20px;
}
.item-info { display: flex; flex-direction: column; min-width: 0; }
.item-name { font-weight: 600; font-size: .95rem; }
.item-price { color: var(--muted); font-size: .85rem; }
.status-pill { background: var(--accent-soft); color: var(--accent-deep); font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.reflect-card { background: var(--surface); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow-sm); }
.reflect-q { font-weight: 600; font-size: .95rem; margin: 0 0 10px; }
.decision-list { display: flex; flex-direction: column; gap: 7px; }
.decision {
  font-size: .82rem; padding: 8px 11px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
}
.flow-caption { margin-top: 18px; color: var(--muted); font-size: .9rem; text-align: center; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Problem ---------- */

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; gap: 18px;
}
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent-deep);
  font-weight: 700; margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; }

@media (min-width: 680px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Compare (wishlist vs BML) ---------- */
.compare { display: grid; gap: 18px; margin-top: 36px; }
.compare-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
}
.compare-card.accent-card { background: var(--accent-soft); border-color: transparent; }
.compare-tag {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .03em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
  background: var(--accent); color: #fff;
}
.compare-tag.muted-tag { background: var(--minus); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink); }
.ticks li::before {
  position: absolute; left: 0; top: 0; font-weight: 700;
}
.ticks.plus  li::before { content: "✓"; color: var(--accent); }
.ticks.minus li::before { content: "–"; color: var(--minus); }
.two-col { gap: 12px 24px; }

@media (min-width: 720px) {
  .compare { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
}

.pull-quote {
  margin: 40px auto 0; max-width: 640px; text-align: center;
  font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; color: var(--accent-deep);
  line-height: 1.35;
}

/* ---------- Privacy ---------- */
.privacy-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; margin-top: 26px; box-shadow: var(--shadow-sm);
}

/* ---------- Saved / stat ---------- */
.saved-grid { display: grid; gap: 32px; align-items: center; }
.stat-card {
  background: var(--accent); color: #fff;
  border-radius: var(--radius); padding: 34px; text-align: center;
  box-shadow: var(--shadow-md);
}
.stat-label { display: block; font-size: .95rem; opacity: .85; }
.stat-value { display: block; font-size: clamp(2.4rem, 7vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 10px; }
.stat-foot  { display: block; font-size: .88rem; opacity: .82; max-width: 30ch; margin: 0 auto; }

@media (min-width: 820px) {
  .saved-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 18px; margin: 36px 0 8px; }
.price-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow-sm);
}
.price-card.highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.price-name  { display: block; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.price-value { display: block; font-size: 1.5rem; font-weight: 700; }
.price-sub   { display: block; color: var(--muted); margin-top: 6px; font-size: .95rem; }

@media (min-width: 640px) { .price-grid { grid-template-columns: 1fr 1fr; max-width: 720px; margin-inline: auto; } }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 28px; display: grid; gap: 12px; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.faq-list summary {
  cursor: pointer; list-style: none; font-weight: 600;
  padding: 16px 30px 16px 0; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent); font-weight: 400; line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--muted); margin: 0 0 16px; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--accent-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D8DED9; padding-block: 48px 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: var(--accent); }
.footer-grid { display: grid; gap: 26px; }
.footer-tag { color: #9FAAA4; margin: 12px 0 0; max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.footer-links a { color: #D8DED9; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-fine { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-fine p { color: #8C978F; font-size: .82rem; margin: 0 0 8px; }

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .footer-links { justify-content: flex-end; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring { animation: none; }
  .btn-store { transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; }
}

/* ============================================================
   Legal / policy pages
   ============================================================ */
.legal-main { padding-block: clamp(40px, 7vw, 72px); }
.legal-hero { margin-bottom: 32px; }
.legal-hero .eyebrow { margin-bottom: 14px; }
.legal-hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.legal-updated { color: var(--muted); font-size: .92rem; margin-top: 6px; }

.legal-note {
  background: var(--accent-soft); border-radius: var(--radius-sm);
  padding: 14px 18px; color: var(--accent-deep); font-size: .92rem; margin: 0 0 28px;
}

.legal-body { max-width: 760px; }
.legal-body h2 {
  font-size: 1.3rem; margin: 40px 0 12px; padding-top: 8px;
}
.legal-body h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal-body p { color: #2C3A35; margin: 0 0 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 20px; color: #2C3A35; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--accent-deep); word-break: break-word; }
.legal-body hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: .95rem; margin-bottom: 22px;
}
.legal-back:hover { color: var(--ink); text-decoration: none; }

.legal-toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 22px; margin: 0 0 30px; max-width: 760px;
}
.legal-toc p { font-weight: 600; margin: 0 0 10px; font-size: .95rem; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legal-toc a { color: var(--accent-deep); font-size: .92rem; }

/* Support page cards */
.support-grid { display: grid; gap: 18px; margin-top: 28px; max-width: 760px; }
.support-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.support-card h2 { font-size: 1.15rem; margin: 0 0 8px; }
.support-card p { color: var(--muted); margin: 0 0 8px; }
@media (min-width: 720px) { .support-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   Refactor: softer blocks, example card, premium, footer status
   ============================================================ */

/* "Built for the moment before buying" — soft centered block */
.soft-block {
  max-width: 680px; margin: 0 auto; text-align: center;
}
.soft-block p { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.2rem); }

/* Example app-screen card (replaces the old "kept this month" stat) */
.example-wrap { display: grid; gap: 28px; align-items: center; margin-top: 8px; }
.example-copy .section-lead { margin-bottom: 10px; }
.example-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-md);
  max-width: 360px; width: 100%; justify-self: center;
}
.example-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--muted); background: var(--band); padding: 5px 10px; border-radius: 999px;
  margin-bottom: 16px;
}
.example-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.example-thumb { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; font-size: 22px; }
.example-name { font-weight: 600; }
.example-price { color: var(--muted); font-size: .9rem; }
.example-status { background: var(--accent-soft); color: var(--accent-deep); font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.example-foot { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

@media (min-width: 820px) {
  .example-wrap { grid-template-columns: 1.1fr .9fr; gap: 44px; }
  .example-card { justify-self: end; }
}

/* Premium (features, no prices) */
.premium-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
  max-width: 760px; margin: 28px auto 0;
}
.premium-card .section-lead { margin-bottom: 20px; }
.premium-features { margin-top: 4px; }
.premium-note { color: var(--muted); font-size: .9rem; margin: 18px 0 0; }

/* Footer status line */
.footer-status { color: #8C978F; font-size: .85rem; margin: 6px 0 0; }
