/* ==========================================================================
   Basky — design system
   Tokens shared by the marketing landing page (body.home) and the legal pages
   (body.legal). Warm, sunny, pixel-accented; accessible by default.
   ========================================================================== */

@font-face {
  font-family: "Press Start 2P";
  src: url("/press-start-2p.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color */
  --cream: #fff8ec;
  --panel: #fffdf8;
  --warm: #ffe9bd;
  --sky: #bcd6ec;
  --sky-deep: #9cc3e6;
  --gold: #f3a712;
  --gold-deep: #d8830a;       /* decorative / button-hover bg only (fails AA as text) */
  --link: #9c5800;            /* link + accent TEXT — 5.2:1 on cream (AA) */
  --link-hover: #7a4400;      /* 7.5:1 on cream */
  --ink: #2a2118;
  --muted: #6b5d4a;
  --line: #efe2c8;
  --green: #2d7d4a;

  /* radius */
  --r-chip: 8px;
  --r-card: 14px;
  --r-panel: 18px;
  --r-soft: 28px;
  --r-pill: 999px;

  /* shadow (warm-tinted, never gray) */
  --shadow-sm: 0 2px 8px rgba(216, 131, 10, 0.06);
  --shadow-card: 0 10px 30px rgba(216, 131, 10, 0.08);
  --shadow-device: 0 30px 60px -20px rgba(120, 72, 8, 0.28), 0 8px 20px rgba(216, 131, 10, 0.1);
  --glow-sun: 0 0 60px 10px rgba(243, 167, 18, 0.28);

  /* type */
  --font-pixel: "Press Start 2P", "Courier New", ui-monospace, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* layout */
  --container: 1080px;
  --measure: 60ch;
  --section-y: clamp(48px, 10vw, 96px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

strong { font-weight: 700; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--r-chip) 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ==========================================================================
   HOME / landing page
   ========================================================================== */

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

.home .eyebrow {
  font-family: var(--font-pixel);
  font-size: clamp(9px, 2.2vw, 11px);
  line-height: 1.7;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--link);
  margin: 0 0 18px;
}

.home h1 {
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  font-weight: 800;
  margin: 0 0 14px;
}
.home h2 {
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.3px;
  font-weight: 800;
  margin: 0 0 12px;
}
.home h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.home p { margin: 0 0 14px; }
.home .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink); }
.home .muted { color: var(--muted); }

/* --- wordmark / logo lockup --- */
.logo-lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-lockup:hover { color: var(--ink); }
.logo-mark { width: 32px; height: 32px; border-radius: 7px; image-rendering: pixelated; }
.wordmark { font-family: var(--font-pixel); font-size: 17px; color: var(--ink); }

/* --- site header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 248, 236, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom-color: var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-header nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: var(--r-chip);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover { color: var(--ink); background: rgba(216, 131, 10, 0.06); }

/* --- buttons / CTA unit --- */
.cta-unit { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 26px 0 10px; }

.badge-soon {
  font-family: var(--font-pixel);
  font-size: clamp(9px, 2.3vw, 11px);
  line-height: 1.6;
  letter-spacing: 0.5px;
  color: var(--ink);
  background: var(--warm);
  border: 1px solid #f0d28a;
  border-radius: var(--r-pill);
  padding: 12px 20px;
  max-width: 100%;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.badge-soon .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--gold-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  background: var(--gold);
  border: none;
  border-radius: var(--r-pill);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { color: var(--ink); background: var(--gold-deep); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn:active { transform: translateY(0); }

.cta-note { font-size: 13px; color: var(--muted); margin: 0; max-width: 40ch; text-align: center; }
.link-quiet { color: var(--muted); font-size: 15px; text-decoration: none; border-bottom: 1px dotted var(--line); padding-bottom: 1px; }
.link-quiet:hover { color: var(--link-hover); border-bottom-color: currentColor; }

/* --- trust strip --- */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  font-size: 13.5px; color: var(--muted);
  margin: 16px auto 0; max-width: 640px;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 7px; }
.trust-strip .tick { color: var(--green); font-weight: 800; }

/* --- hero --- */
.hero {
  position: relative;
  text-align: center;
  padding: 18px 0 40px;
  background:
    radial-gradient(900px 500px at 50% 6%, rgba(243, 167, 18, 0.28), transparent 70%),
    linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 22%, var(--cream) 68%);
}
.hero .container { position: relative; }
.hero-mascot {
  width: clamp(96px, 18vw, 150px);
  height: auto;
  margin: 8px auto 18px;
  image-rendering: pixelated;
  filter: drop-shadow(var(--glow-sun));
}
.hero .subhead { font-size: clamp(17px, 2.6vw, 21px); color: var(--ink); margin: 0 auto 8px; max-width: 34ch; }
.hero .lede { max-width: 56ch; margin: 0 auto; color: var(--ink); }
.hero-disclaimer { font-size: 13px; color: var(--muted); font-style: italic; margin: 14px 0 0; }

/* stat strip (re-typeset from the real Home screen) */
.stat-strip {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
  margin: 26px auto 0; max-width: 620px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px 18px;
  min-width: 150px;
  box-shadow: var(--shadow-sm);
}
.stat .num { font-family: var(--font-pixel); font-size: 20px; color: var(--ink); line-height: 1.2; }
.stat .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 8px; }

/* hero phone */
.hero-phone { margin: 34px auto 0; max-width: 300px; }

/* --- phone frame --- */
.phone {
  border-radius: var(--r-soft);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-device);
  transition: transform 0.25s ease;
}
.phone img { width: 100%; height: auto; display: block; }
.tilt-l { transform: rotate(-4deg); }
.tilt-r { transform: rotate(3deg); }
.phone:hover, .phone:focus-within { transform: rotate(0deg); }

/* --- generic section --- */
.section { padding: var(--section-y) 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }
.section-head .eyebrow { display: block; }
.band-cream { background: var(--cream); }
.band-warm { background: linear-gradient(180deg, var(--warm) 0%, #fff2d6 100%); }

/* promise */
.promise { text-align: center; }
.promise .body { max-width: 60ch; margin: 0 auto 22px; font-size: clamp(17px, 2vw, 19px); }
.checklist { list-style: none; padding: 0; margin: 0 auto; max-width: 52ch; text-align: left; }
.checklist li { position: relative; padding: 7px 0 7px 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 16px; height: 16px; border-radius: 4px;
  background: var(--gold);
  box-shadow: inset 0 0 0 3px var(--warm);
}

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}
.step-ico { width: 44px; height: 44px; margin-bottom: 14px; }
.step-num {
  font-family: var(--font-pixel); font-size: 12px; color: var(--link);
  display: block; margin-bottom: 8px;
}
.step-card p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* feature two-up */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: var(--section-y); }
.feature .copy { max-width: 52ch; }
.feature.reverse .media { order: -1; }
.feature .media { display: flex; justify-content: center; }
.feature .phone { max-width: 290px; width: 100%; }
.feature ul { list-style: none; padding: 0; margin: 18px 0 0; }
.feature ul li { position: relative; padding: 6px 0 6px 28px; color: var(--ink); }
.feature ul li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 14px; height: 14px; border-radius: 3px; background: var(--gold);
}

/* phone fan (pricing) */
.phone-fan { position: relative; display: flex; justify-content: center; align-items: center; min-height: 360px; }
.phone-fan .phone { position: absolute; max-width: 250px; }
.phone-fan .back { transform: rotate(6deg) translate(28px, 8px); opacity: 0.96; z-index: 1; }
.phone-fan .front { transform: rotate(-3deg) translate(-22px, 0); z-index: 2; }
.phone-fan .back:hover, .phone-fan .front:hover { z-index: 3; }

/* pixel icons (inline svg) */
.pixel-ico { display: block; image-rendering: pixelated; }

/* decorative circle suns */
.circle-suns { display: flex; gap: 10px; margin-bottom: 18px; }
.circle-suns .pixsun { width: 30px; height: 30px; border-radius: 7px; image-rendering: pixelated; }

/* privacy band */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 880px; margin: 8px auto 0; }
.trust-badge {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px 20px;
  display: flex; align-items: flex-start; gap: 12px;
  box-shadow: var(--shadow-sm);
}
.trust-badge .check {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  background: rgba(45, 125, 74, 0.12); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; margin-top: 2px;
}
.trust-badge span.t { font-size: 15.5px; line-height: 1.5; }

/* made by */
.made-by { text-align: center; }
.made-by .checklist { margin: 22px auto 0; }

/* faq */
.faq-list { max-width: 64ch; margin: 0 auto; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 40px 14px 4px;
  position: relative;
  border-radius: var(--r-chip);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--link); font-weight: 700; line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list .answer { padding: 0 4px 16px; color: var(--muted); max-width: 60ch; }

/* final cta */
.final-cta { text-align: center; }
.final-cta .container { max-width: 720px; }
.final-cta .closing-mark { width: 56px; height: 56px; margin: 0 auto 18px; image-rendering: pixelated; }

/* sticky condensed cta */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 248, 236, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s ease;
}
.sticky-cta.show { transform: translateY(0); visibility: visible; }
.sticky-cta .label { font-size: 14px; color: var(--ink); font-weight: 700; }
.sticky-cta .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
@media (max-width: 560px) { .sticky-cta .label { display: none; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; text-align: center; color: var(--muted); }
.site-footer .logo-lockup { margin-bottom: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 4px; margin-bottom: 12px; }
.site-footer .foot-note { font-size: 13px; font-style: italic; margin: 10px auto 0; max-width: 50ch; }

/* --- scroll reveal (progressive enhancement; visible without JS) --- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.5s ease-out, transform 0.5s ease-out; }

/* --- gentle motion --- */
@media (prefers-reduced-motion: no-preference) {
  .hero-mascot { animation: float 6s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .phone { transition: none; }
  .sticky-cta { transition: none; }
}

/* --- responsive --- */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .media { order: 0; }
  .feature .copy { max-width: 60ch; margin: 0 auto; text-align: center; }
  .feature ul { display: inline-block; text-align: left; }
  .steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .tilt-l, .tilt-r { transform: none; }
  .phone-fan { min-height: 0; flex-direction: column; gap: 18px; }
  .phone-fan .phone { position: static; transform: none; max-width: 260px; }
  .phone-fan .back { display: none; }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
  .stat { min-width: 0; flex: 1 1 44%; }
}

/* ==========================================================================
   LEGAL pages (privacy / support) — calm, readable, single column
   ========================================================================== */

.legal {
  background:
    radial-gradient(1200px 600px at 50% -200px, var(--warm) 0%, rgba(255, 233, 189, 0) 70%),
    var(--cream);
}
.legal .wrap { max-width: 720px; margin: 0 auto; padding: 24px 22px 72px; }
.legal header.site { text-align: center; padding: 22px 0 6px; }
.legal .sun { font-size: 40px; line-height: 1; }
.legal .logo-mark { width: 44px; height: 44px; margin: 0 auto; border-radius: 10px; image-rendering: pixelated; }
.legal .brand { font-family: var(--font-pixel); font-size: 17px; font-weight: 400; margin: 12px 0 2px; }
.legal main {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}
.legal h1 { font-size: 26px; margin: 4px 0 6px; letter-spacing: -0.2px; }
.legal .effective { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.legal .lede { font-size: 18px; }
.legal h2 {
  font-size: 19px; margin: 30px 0 8px; padding-top: 6px;
  border-top: 1px solid var(--line);
}
.legal main > .lede + h2, .legal main > h2:first-of-type { border-top: none; }
.legal h3 { font-size: 16px; margin: 22px 0 4px; }
.legal p, .legal li { color: var(--ink); }
.legal .muted { color: var(--muted); }
.legal hr { border: none; border-top: 1px solid var(--line); margin: 26px 0; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal code { background: rgba(216, 131, 10, 0.08); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
.legal .backlink { display: inline-block; margin-bottom: 18px; font-size: 14px; }
.legal footer.site { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }
.legal footer.site a { color: var(--muted); }
.legal .disclaimer {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; font-style: italic;
}
