/* ============================================================
   Six Pockets — landing site styles
   Brand system per LANDING_SITE_SPEC.md
   ============================================================ */

:root {
  /* Colors */
  --purple: #7C3AED;
  --purple-light: #A78BFA;
  --purple-tint: #F5F3FF;
  --white: #FFFFFF;
  --text: #111827;
  --text-gray: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --pdf-red: #EF4444;

  /* Layout */
  --max-width: 1100px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-pill: 999px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  font-size: 17px;            /* base bumped from the 16px default for readability */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 768px) {
  html { font-size: 18.5px; } /* a touch larger on desktop */
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1rem; color: var(--text-gray); }

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

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

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

.section { padding: 64px 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  margin: 0 0 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-play {
  background: var(--text);
  color: #fff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.18);
}
.btn-play:hover { background: #000; }
.btn-play .btn-sub { font-size: 0.7rem; line-height: 1; opacity: 0.8; font-weight: 500; }
.btn-play .btn-main { font-size: 1rem; line-height: 1.2; font-weight: 700; }
.btn-play .btn-label { display: flex; flex-direction: column; text-align: left; }

/* On purple backgrounds */
.on-purple .btn-play { background: #fff; color: var(--text); }
.on-purple .btn-play:hover { background: var(--purple-tint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; border-radius: 8px; }
.brand-name { font-size: 1.05rem; }

.header-cta { font-weight: 600; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 50% -10%, var(--purple-tint), transparent 70%);
  padding: 56px 0 32px;
  text-align: center;
}
.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.25);
}
.hero h1 { margin-bottom: 0.25em; }
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple);
  margin: 0 0 0.9rem;
}
.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text);
  font-weight: 600;
  max-width: 36ch;
  margin: 0 auto 1rem;
}
.hero .subline {
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 auto 28px;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; margin-top: 24px; }

/* Wide primary CTA (the "Join the waitlist" button) */
.btn-wide {
  padding-left: 40px;
  padding-right: 40px;
  justify-content: center;
}

/* Trust row (hero) */
.trust-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 500;
}
.trust-row svg { width: 18px; height: 18px; color: var(--purple); flex: none; }

.form-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.playbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.playbadge svg { width: 16px; height: 16px; }

/* On purple backgrounds (final CTA) */
.on-purple .form-note { color: rgba(255,255,255,0.85); }
.on-purple .playbadge { color: rgba(255,255,255,0.8); }
.on-purple .playbadge svg { color: #fff; }

/* ---------- Animated phone demo ---------- */
.phone {
  position: relative;
  width: 260px;
  max-width: 70vw;
  aspect-ratio: 300 / 600;
  margin: 48px auto 12px;
  background: #111827;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.28);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 33px;
  overflow: hidden;
}
.phone-cap {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 30ch;
  margin: 0 auto;
}

/* Home screen: the 2x3 grid */
.demo-grid {
  position: absolute;
  inset: 0;
  padding: 9% 8%;
}
.demo-grid .demo-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin-bottom: 7%;
}
.demo-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
}
.demo-tile {
  aspect-ratio: 1 / 1.15;
  border-radius: 12px;
  background: var(--purple-tint);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.demo-tile.auto {
  background: var(--purple);
  border-color: var(--purple);
}
.demo-tile.auto::after {
  content: "Auto Open";
  position: absolute;
  left: 10%;
  bottom: 8%;
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
}
.demo-tile .lines { position: absolute; inset: 14% 12% auto 12%; }
.demo-tile .lines span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--purple-light);
  margin-bottom: 6px;
}
.demo-tile .lines span:last-child { width: 70%; background: var(--border); }
.demo-tile.auto .lines span { background: rgba(255,255,255,0.85); }
.demo-tile.auto .lines span:last-child { background: rgba(255,255,255,0.5); }

/* Fullscreen document that "auto opens" */
.demo-fs {
  position: absolute;
  inset: 0;
  background: var(--purple-tint);
  padding: 12%;
  opacity: 0;
  transform: scale(0.4);
  transform-origin: 24% 26%;
  animation: autoOpen 6s ease-in-out infinite;
}
.demo-fs .doc-card {
  height: 100%;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(17,24,39,0.10);
  padding: 12%;
  display: flex;
  flex-direction: column;
  gap: 8%;
}
.demo-fs .doc-photo {
  width: 38%;
  aspect-ratio: 1 / 1.2;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
}
.demo-fs .doc-line { height: 8px; border-radius: 4px; background: var(--border); }
.demo-fs .doc-line.short { width: 55%; }
.demo-fs .doc-line.accent { background: var(--purple-light); width: 75%; }

@keyframes autoOpen {
  0%, 6%   { opacity: 0; transform: scale(0.4); }
  16%, 84% { opacity: 1; transform: scale(1); }
  94%,100% { opacity: 0; transform: scale(0.4); }
}

/* ---------- FAQ ---------- */
.faq { background: var(--purple-tint); }
.faq .container { max-width: 760px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--purple);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 20px; }
.faq-item .faq-body p { margin: 0; }

/* ---------- Problem ---------- */
.problem {
  background: var(--purple-tint);
}
.problem .container { max-width: 760px; text-align: center; }
.problem p {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}
.problem .problem-sub {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-gray);
  margin: 18px auto 0;
  max-width: 56ch;
}

/* ---------- How it works ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { font-size: 1.05rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  text-align: center;
  padding: 0 8px;
}
.step-num {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}
.step h3 { margin-bottom: 0.35em; }
.step p { margin: 0; font-size: 0.97rem; }

/* ---------- Features ---------- */
.features { background: var(--purple-tint); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--purple-tint);
  color: var(--purple);
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 0.35em; }
.feature-card p { margin: 0; font-size: 0.95rem; }

/* ---------- Privacy section ---------- */
.privacy-block .container {
  max-width: 760px;
  text-align: center;
}
.privacy-icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--purple-tint);
  color: var(--purple);
}
.privacy-icon svg { width: 34px; height: 34px; }
.privacy-block p { font-size: 1.1rem; }

/* ---------- Final CTA ---------- */
.cta {
  background: var(--purple);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  margin: 0 20px 64px;
  padding: 56px 24px;
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 0.92rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a, .footer-links span { color: var(--text-gray); }
.footer-copy { color: var(--text-muted); }

/* ---------- Legal / privacy page ---------- */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 0.25em; }
.legal .effective { color: var(--text-muted); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal h3 { margin-top: 1.5rem; }
.legal ul { color: var(--text-gray); padding-left: 1.25rem; }
.legal li { margin-bottom: 0.5rem; }
.legal .back { display: inline-block; margin-bottom: 2rem; font-weight: 600; }

/* ---------- Examples chips (concreteness) ---------- */
.examples .container { text-align: center; }
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.chips li {
  background: var(--purple-tint);
  color: var(--purple);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Social proof ---------- */
.proof-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.proof-point { padding: 0 8px; }
.proof-point strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 6px;
}
.proof-point span { color: var(--text-gray); font-size: 0.97rem; }

/* Ready-to-use styles for the social proof you'll add later (counter + quotes) */
.proof-count {
  text-align: center;
  margin: 32px 0 0;
  font-size: 1.1rem;
  color: var(--text);
}
.proof-count strong { color: var(--purple); }
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.quote {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
  text-align: left;
}
.quote p { color: var(--text); font-size: 1.02rem; margin: 0 0 12px; }
.quote cite { color: var(--text-muted); font-style: normal; font-size: 0.9rem; font-weight: 600; }

/* ---------- Mobile sticky CTA (thumb zone) ---------- */
/* Hidden on desktop; shown only on small screens (see media query below). */
.mobile-cta {
  display: none;
  position: fixed;
  z-index: 40;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.18);
  text-decoration: none;
  /* start hidden, slide up when .is-visible is toggled on */
  transform: translateY(160%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.mobile-cta.is-visible { transform: none; opacity: 1; }
.mobile-cta:hover { text-decoration: none; }
.mobile-cta .mc-mark { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.mobile-cta .mc-text {
  flex: 1 1 auto;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.mobile-cta .mc-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: var(--purple);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .section { padding: 48px 0; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }

  /* On the landing page, the hero carries the brand — drop the redundant top bar
     and use the bottom thumb-zone CTA instead. (Privacy page keeps its top bar.) */
  .page-home .site-header { display: none; }
  .page-home .mobile-cta { display: flex; }
  /* Reserve room so the fixed bar never covers the footer at the bottom of the page. */
  .page-home { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .btn-wide { width: 100%; max-width: 320px; }
  .proof-points { grid-template-columns: 1fr; gap: 28px; }
  .quotes { grid-template-columns: 1fr; }

  /* Trust pill + Play badge: keep tidy when text wraps on narrow screens */
  .trust-row {
    align-items: center;
    padding: 9px 14px;
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
    margin-top: 0px;
  }
  .trust-row svg { margin-top: 2px; }
  .playbadge {
    align-items: flex-start;
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
  }
  .playbadge svg { margin-top: 2px; }
}

@media (min-width: 761px) and (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  /* Freeze the looping demo on the home-grid screen */
  .demo-fs { animation: none; opacity: 0; }
  .mobile-cta { transition: opacity 0.2s ease; transform: none; }
}
