/*
 * PopOnBy Marketing Site — shared styles
 * Brand tokens mirror the app (src/app/globals.css + kwip-ui skill).
 * Warm cream surfaces, warm-dark chalkboard accents. No pure black/white on surfaces.
 */

:root {
  /* Surfaces */
  --bg: #FCFAF6;
  --card: #FFFFFF;
  --card-warm: #F8F6F2;
  --chalkboard: #1A1612;

  /* Text on light */
  --text-primary: #2A2118;
  --text-secondary: #6B5D4F;
  --text-tertiary: #9C8E7E;
  --text-muted: #B8AA9A;

  /* Text on dark */
  --on-dark: #F5F0E5;
  --on-dark-sec: #A89E92;

  /* Chalk + vibe accents */
  --teal: #7DD4CC;
  --pink: #F7948A;
  --green: #7DD49A;
  --yellow: #FFD954;
  --blue: #7DC4E0;

  /* Lines + shadow (warm-tinted, never pure black) */
  --hairline: rgba(42, 33, 24, 0.10);
  --hairline-soft: rgba(42, 33, 24, 0.06);
  --shadow-card: 0 2px 14px rgba(42, 33, 24, 0.08);
  --shadow-lift: 0 8px 30px rgba(42, 33, 24, 0.12);

  --radius: 14px;
  --radius-pill: 999px;
  --maxw: 1080px;
  --maxw-doc: 720px;

  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Lora", Georgia, serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─────────────── Layout ─────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-doc { width: 100%; max-width: var(--maxw-doc); margin: 0 auto; padding: 0 20px; }

/* ─────────────── Site header ─────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 250, 246, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.wordmark {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}
.nav a:hover { color: var(--text-primary); }

/* ─────────────── Hero (full-bleed photo + overlaid tagline) ─────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 64vh;
  max-height: 760px;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 64vh;
  max-height: 760px;
  object-fit: cover;
  /* Portrait photo (832x1248): subjects' heads sit ~18-34% down. On wide viewports
     cover scales by width and the visible vertical window shrinks, so anchor HIGH
     (small %) to keep heads in frame. center 22% keeps clearance above the tallest
     head at iPhone, tablet, and desktop widths. */
  object-position: center 22%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 36px;
  /* Dark wash rising from the bottom so the tagline reads cleanly and faces up top stay clear */
  background: linear-gradient(to top,
    rgba(26, 22, 18, 0.82) 0%,
    rgba(26, 22, 18, 0.42) 26%,
    rgba(26, 22, 18, 0.06) 52%,
    rgba(26, 22, 18, 0) 70%);
}
.tagline-hero {
  font-family: var(--font-display);
  font-weight: 700;
  /* Sized so the longer second line stays on one line down to ~360px wide */
  font-size: clamp(20px, 5.4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.tagline-hero span {
  display: block;
  white-space: nowrap;
}
.hero-swoosh {
  display: block;
  width: 190px;
  max-width: 62%;
  height: auto;
  margin: 12px auto 0;
  color: var(--pink);
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.4));
}

/* ─────────────── Intro band (lede + store badges) — centered ─────────────── */
.intro { padding: 32px 0 8px; text-align: center; }
.intro .lede {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 38em;
  margin-inline: auto;
}

/* Store badges (official artwork; CSS sets height + width:auto so each SVG keeps its own aspect ratio) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; justify-content: center; }
.store-badge { display: inline-block; transition: transform 0.12s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 40px; width: auto; display: block; }

/* Availability caption below the badges */
.stores-note { font-size: 13px; color: var(--text-tertiary); margin-top: 14px; max-width: 38em; margin-inline: auto; }

/* Warm conversational close, its own beat with breathing room */
.intro-close {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  text-align: center;
  margin-top: 48px;
  margin-bottom: 16px;
}

/* ─────────────── Brand mantra sign-off ─────────────── */
.mantra { padding: 16px 0 56px; }
.mantra-line {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  text-align: center;
}

/* ─────────────── Section scaffolding ─────────────── */
.section { padding: 48px 0; }
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.section-sub { font-size: 16px; color: var(--text-secondary); margin-top: 12px; max-width: 36em; }

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}
.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--accent, var(--blue));
}
.feature .ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, var(--blue)) 22%, #FFFFFF);
  color: var(--text-primary);
  margin-bottom: 14px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; font-weight: 700; }
.feature p { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }

/* Business block (chalkboard) */
.biz {
  background: radial-gradient(circle at 30% 0%, #241f1a, var(--chalkboard));
  color: var(--on-dark);
  border-radius: 20px;
  padding: 40px 28px;
  box-shadow: var(--shadow-lift);
}
.biz .section-eyebrow { color: var(--yellow); }
.biz .section-title { color: var(--on-dark); }
.biz p { color: var(--on-dark-sec); font-size: 16px; margin-top: 14px; max-width: 40em; }
.biz ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.biz li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--on-dark); }
.biz li svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 1px; }

/* Community strip */
.community {
  background: var(--card-warm);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
}
.community .section-title { font-size: clamp(22px, 4.5vw, 28px); }
.community p { font-size: 16px; color: var(--text-secondary); margin-top: 12px; max-width: 42em; }
/* Three-beat copy: generous space so each line lands on its own */
.community .community-beat { font-size: 17px; margin-top: 24px; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  text-decoration: none;
}
.link-arrow:hover { gap: 10px; }

/* ─────────────── Document pages (privacy / sms-terms / about) ─────────────── */
.doc { padding: 44px 0 64px; }
.doc h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.doc .meta { color: var(--text-tertiary); font-size: 13px; margin-top: 10px; }
.doc h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  margin: 38px 0 12px;
  color: var(--text-primary);
}
.doc h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.doc p { font-size: 16px; color: var(--text-secondary); margin: 12px 0; }
.doc ul { margin: 12px 0 12px 4px; padding-left: 20px; }
.doc li { font-size: 16px; color: var(--text-secondary); margin: 8px 0; }
.doc strong { color: var(--text-primary); font-weight: 700; }
.doc a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; }
.doc blockquote {
  margin: 18px 0;
  padding: 18px 20px;
  background: var(--card-warm);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  font-style: italic;
  color: var(--text-primary);
}
.doc .tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 4.5vw, 28px);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 34px 0 6px;
  font-style: normal;
}

/* ─────────────── Footer ─────────────── */
.site-footer {
  background: radial-gradient(circle at 50% 0%, #241f1a, var(--chalkboard));
  color: var(--on-dark-sec);
  margin-top: 64px;
  padding: 40px 0 48px;
}
.site-footer .wordmark { color: var(--on-dark); font-size: 30px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}
.footer-links a {
  color: var(--on-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.footer-links a:hover { color: var(--teal); }
.footer-meta { margin-top: 20px; font-size: 13px; line-height: 1.7; color: var(--on-dark-sec); }
.footer-meta a { color: var(--on-dark); }

/* ─────────────── Responsive ─────────────── */
@media (min-width: 720px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 880px) {
  .hero { min-height: 72vh; }
  .hero-img { height: 72vh; }
  .hero-overlay { padding-bottom: 56px; }
  .intro { padding: 44px 0 8px; }
  .biz { padding: 56px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
