/* ============================================================
   Molar Bear — design tokens & utility classes
   ============================================================ */

:root {
  /* Palette */
  --cream: #FFF6E8;
  --cream-2: #FBEED4;
  --ink: #2A1810;
  --ink-soft: #4a3326;
  --brown: #A0522D;
  --brown-dark: #7a3e22;
  --coral: #F4845F;
  --coral-dark: #c75a3a;
  --mint: #6FCFB2;
  --mint-dark: #4ea98e;
  --sun: #F2C94C;

  /* Type */
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

/* Boot / loading screen — shown until React mounts (replaced on render) */
.boot {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  background: #FFF6E8;
  z-index: 9999;
}
.boot-bear { animation: boot-bob 1.1s ease-in-out infinite; }
.boot-text {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.3px; color: #7a3e22;
}
@keyframes boot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .boot-bear { animation: none; }
}

html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}

.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 4px 0 var(--coral-dark);
}
.btn-coral:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--coral-dark); }
.btn-coral:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--coral-dark); }

.btn-mint {
  background: var(--mint);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--mint-dark);
}
.btn-mint:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--mint-dark); }
.btn-mint:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--mint-dark); }

.btn-ink {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 4px 0 #000;
}
.btn-ink:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #000; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 12px 22px;
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.btn-sm { padding: 10px 16px; font-size: 14px; box-shadow: 0 3px 0 var(--coral-dark); }
.btn-sm.btn-mint { box-shadow: 0 3px 0 var(--mint-dark); }

/* Eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* Sticker */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 2px solid var(--ink);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}

/* Always-single-line elements */
.nowrap { white-space: nowrap; }

/* Section spacing */
section { padding: 96px 0; position: relative; }
section.compact { padding: 64px 0; }
section.tight { padding: 40px 0; }

/* Section headers */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(36px, 5vw, 56px); margin-top: 12px; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--ink-soft); }

/* Card */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 24px rgba(42,24,16,0.06);
  border: 1px solid rgba(42,24,16,0.06);
}

/* Image placeholder */
.img-placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(160, 82, 45, 0.08) 0px,
      rgba(160, 82, 45, 0.08) 8px,
      rgba(160, 82, 45, 0.14) 8px,
      rgba(160, 82, 45, 0.14) 16px
    ),
    var(--cream-2);
  display: grid;
  place-items: center;
  color: var(--brown-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Disable focus outline globally for prototype look */
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

/* Decorative wavy underline */
.wavy { position: relative; display: inline-block; white-space: nowrap; }
.wavy::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8'><path d='M0 4 Q 15 0 30 4 T 60 4 T 90 4 T 120 4' fill='none' stroke='%23F4845F' stroke-width='3' stroke-linecap='round'/></svg>") repeat-x;
  background-size: 80px 8px;
}

/* Mobile responsiveness */
@media (max-width: 800px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .section-head h2 { font-size: 32px; }
}

/* ============================================================
   Landing-page mobile polish — applies at <=768px
   - Reduce hard-shadow offsets 8→5 / 6→4 / 10→6
   - Bump button tap targets, headline reflow, etc.
   ============================================================ */
@media (max-width: 768px) {
  body { padding-bottom: 88px; }

  section { padding: 48px 0; }

  /* Larger tap targets on every CTA */
  .btn { min-height: 48px; padding: 14px 22px; }
  .btn-sm { min-height: 40px; }

  /* Hero headline reflow */
  section[data-screen-label="01 Hero"] h1 {
    font-size: clamp(1.85rem, 7vw, 2.4rem) !important;
    line-height: 1.12 !important;
    text-wrap: balance;
    letter-spacing: -0.02em !important;
  }

  /* Trust strip wraps, never horizontal-scrolls */
  .lp-trust {
    grid-template-columns: 1fr 1fr !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
  }

  /* Reduce hard-shadow chunk on common sticker cards */
  .lp-photoslot,
  .lp-stat-card,
  .lp-step-card,
  .lp-verifier,
  .lp-book-card {
    box-shadow: 5px 5px 0 var(--ink) !important;
  }
  .lp-hero-img > div,
  .lp-picture-img > div {
    box-shadow: 5px 5px 0 var(--ink) !important;
  }
}

/* FAQ trigger tap targets */
@media (max-width: 768px) {
  section[data-screen-label="08 FAQ"] button {
    min-height: 56px !important;
    padding: 18px 16px !important;
  }
}

/* Smallest screens: insurance logos horizontal-snap */
@media (max-width: 480px) {
  .lp-ins-logo { min-width: 158px; }
}
