/* D01 Landing, smilescooter.com/d01/
   Hand-authored, dependency-free. System font stack (no web-font load). */

:root {
  --ink: #15181c;
  --ink-soft: #3f464e;
  --muted: #6b7280;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --brand: #111827;
  --accent: #c8a24a;      /* muted gold, echoes "augment" box livery */
  --accent-ink: #8a6d22;
  --ok: #1f7a4d;
  --radius: 12px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(16,24,40,.06);
}

* { box-sizing: border-box; }

/* Ensure [hidden] always wins over component display rules
   (fixes cookie banner / form-success toggling). */
[hidden] { display: none !important; }

/* 17px root so every rem-based size is a clean multiple of the body size
   (avoids the 16px-rem vs 17px-body mismatch). */
html { font-size: 17px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink-soft);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

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

/* ---------- Headings ---------- */
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 0 0 .5em; font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); margin: 0 0 .35em; font-weight: 750; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 650; font-size: 1rem;
  padding: 14px 26px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .05s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: #000; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #fbfbfc 0%, #fff 100%); border-bottom: 1px solid var(--line); padding: clamp(40px, 7vw, 84px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin: 0 0 14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); margin: 0 0 28px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-signals { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.hero-signals li { position: relative; padding-left: 20px; }
.hero-signals li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 16 / 9; background: var(--bg-alt); }

/* ---------- Credentials band ---------- */
.creds { background: var(--brand); color: #fff; padding: 28px 0; }
.creds-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.creds-grid li { display: flex; flex-direction: column; gap: 4px; }
.creds-grid strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; color: #fff; line-height: 1.1; }
.creds-grid span { font-size: .92rem; color: #aeb4bd; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); }
.section-lead { font-size: 1rem; color: var(--ink-soft); max-width: 70ch; margin: 0 0 1.4em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.figure { margin: 0; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 40px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.section.alt .card { background: #fff; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #eef0f3; border-bottom: 1px solid var(--line); }
.card-body { padding: 22px 24px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.card h3 { border-left: 3px solid var(--accent); padding-left: 12px; }

.product-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.product-shots img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-alt); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th[scope="row"] { width: 38%; font-weight: 650; color: var(--ink); background: #fcfcfd; }
.spec-table td { color: var(--ink-soft); }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.quotes blockquote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.section.alt .quotes blockquote { background: #fff; }
.quotes p { margin: 0 0 14px; color: var(--ink); font-size: 1rem; }
.quotes cite { font-style: normal; font-weight: 650; color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 20px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 650; padding: 18px 0; list-style: none; position: relative; padding-right: 30px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.4rem; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- Form ---------- */
#quote-form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
#quote-form .btn { justify-self: start; }
.form-notice { background: #fff7e6; border: 1px solid #f2d28a; color: #7a5400; border-radius: var(--radius); padding: 16px 20px; margin-top: 16px; font-size: .95rem; }
.form-notice code { background: #fdecc4; padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.form-success { background: #eef7f1; border: 1px solid #cce6d6; color: #145c39; border-radius: var(--radius); padding: 22px 24px; }
.form-success p { margin: 0 0 8px; }
.form-success p:last-child { margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--brand); color: #cfd4da; padding: 48px 0; font-size: .95rem; }
.footer a { color: #fff; }
.footer-name { font-weight: 700; color: #fff; font-size: 1.05rem; margin: 0 0 8px; }
.footer p { margin: 0 0 8px; }
.footer .tagline { color: var(--accent); font-style: italic; margin-top: 14px; }

/* ---------- Cookie consent ---------- */
.cookie-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(16,24,40,.18);
  padding: 16px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookie-consent p { margin: 0; font-size: .92rem; color: var(--ink-soft); flex: 1 1 320px; }
.cookie-actions { display: flex; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  /* text first on mobile: headline leads, and nothing above hero-copy can shift it */
  .split { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  html { font-size: 16px; }
  .cards, .product-shots { grid-template-columns: 1fr; }
  .creds-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .creds-grid strong { font-size: 1.35rem; }
  .cta-row .btn { flex: 1 1 100%; }
}

/* ============================================================
   v2 — conversion architecture, motion, mobile-first
   ============================================================ */

:root {
  --wa: #25D366;
  --wa-dark: #1da851;
  --z-sticky: 60;
  --z-fab: 55;
  --z-cookie: 50;
}

/* ---------- WhatsApp button (hero, form-alt) ---------- */
.btn-whatsapp {
  background: var(--wa); color: #fff; border-color: var(--wa);
  display: inline-flex; align-items: center; gap: 9px;
}
.btn-whatsapp:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: #fff; box-shadow: var(--shadow); }
.wa-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.form-alt { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.form-alt a { font-weight: 650; }

/* ---------- Sticky conversion bar ---------- */
.sticky-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-sticky);
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(16,24,40,.06);
  transform: translateY(-100%); transition: transform .25s ease;
}
.sticky-bar.is-on { transform: translateY(0); }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 56px; }
.sticky-label { font-weight: 700; color: var(--ink); font-size: .95rem; letter-spacing: -0.01em; }
.sticky-actions { display: flex; align-items: center; gap: 10px; }
.sticky-wa {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px;
  background: var(--wa); color: #fff; border-radius: 10px; font-weight: 650; font-size: .92rem;
  transition: background .15s ease, transform .12s ease;
}
.sticky-wa:hover { background: var(--wa-dark); text-decoration: none; transform: scale(1.04); }
.sticky-wa .wa-icon { width: 18px; height: 18px; }

/* ---------- Floating WhatsApp bubble ---------- */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: var(--z-fab);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.22); transition: background .15s ease, transform .15s ease;
}
.wa-fab:hover { background: var(--wa-dark); transform: scale(1.06); text-decoration: none; }
.wa-fab svg { width: 30px; height: 30px; }
/* avoid the cookie banner: lift the fab while the banner is shown */
body:has(.cookie-consent:not([hidden])) .wa-fab { bottom: 92px; }

/* ---------- Certification badge band ---------- */
.cert-band { background: var(--bg); border-bottom: 1px solid var(--line); padding: 18px 0; }
.cert-badges {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  gap: 10px; justify-content: center;
}
.cert-badges li {
  font-size: .82rem; font-weight: 650; letter-spacing: .02em; color: var(--ink-soft);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; background: #fff;
}

/* ---------- Hero MOQ signal emphasis ---------- */
.hero-signals .sig-moq { font-weight: 700; color: var(--ink); }
.hero-signals .sig-moq::before { content: "▪"; color: var(--accent-ink); }

/* ---------- Review cards: flag + dimension ---------- */
.quotes cite .flag { font-style: normal; margin-right: 4px; }

/* ---------- Product gallery captions ---------- */
.shot { margin: 0; }
.shot img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-alt); }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }

/* ---------- Image zoom-in-frame: clip the container, scale the image ---------- */
/* Frame carries the rounding + shadow so the hover zoom can be clipped to it. */
.shot, .figure, .hero-media { border-radius: var(--radius); box-shadow: var(--shadow); }
.card, .shot, .figure, .hero-media { overflow: hidden; }
.shot img, .figure img, .hero-media img { box-shadow: none; }
.card img, .shot img, .figure img, .hero-media img { transform-origin: center; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* zoomable content images: noticeable, smooth zoom on hover */
  .card img, .shot img, .figure img, .hero-media img {
    transition: transform .45s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
  }
  .card:hover img,
  .shot:hover img,
  .figure:hover img,
  .hero-media:hover img { transform: scale(1.08); }

  /* card lift + shadow alongside the image zoom */
  .btn-primary { transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
  .btn-primary:hover { transform: translateY(-2px); }
  .card { transition: transform .2s ease, box-shadow .2s ease; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(16,24,40,.12); }
  /* gallery + warehouse frames also lift slightly so the zoom reads as interactive */
  .shot, .figure { transition: box-shadow .2s ease, transform .2s ease; }
  .shot:hover, .figure:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(16,24,40,.14); }

  .quotes blockquote { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
  .quotes blockquote:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(16,24,40,.1); }
  .spec-table tbody tr { transition: background .15s ease; }
  .spec-table tbody tr:hover td, .spec-table tbody tr:hover th { background: var(--bg-alt); }
  details { transition: background .2s ease; }
  details:hover { background: #fcfcfd; }
  details summary::after { transition: transform .2s ease; }
  details[open] summary::after { transform: rotate(0deg); }
}

/* ---------- Scroll reveal (JS adds .reveal, then .is-in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease; transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Mobile-first hardening (P0-5) ---------- */
@media (max-width: 760px) {
  /* sticky bar: drop the label, keep two thumb-reachable buttons */
  .sticky-label { display: none; }
  .sticky-inner { justify-content: stretch; gap: 10px; }
  .sticky-actions { flex: 1; gap: 10px; }
  .sticky-actions .btn-primary { flex: 1; }
  .sticky-wa { flex: 0 0 auto; min-height: 44px; }
  .sticky-actions .btn-sm { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 620px) {
  /* first screen: keep H1 + MOQ + CTA together, image follows the copy */
  .hero { padding: 26px 0 32px; }
  .hero-grid { gap: 22px; }
  .lead { margin-bottom: 20px; }
  .cta-row { gap: 10px; margin-bottom: 18px; }
  .hero-signals { gap: 8px 16px; font-size: .9rem; }

  /* touch targets >= 44px */
  .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 44px; }
  .wa-fab { right: 14px; bottom: 14px; }

  /* form: taller inputs, single column, correct keyboards already set in HTML */
  .field input, .field textarea { padding: 14px; min-height: 48px; font-size: 16px; }

  /* spec & terms tables: no horizontal scroll, compact two-column */
  .table-scroll { overflow-x: visible; }
  .spec-table { table-layout: fixed; }
  .spec-table th[scope="row"] { width: 42%; padding: 12px 12px; font-size: .92rem; }
  .spec-table td { padding: 12px 12px; font-size: .92rem; word-break: break-word; }

  /* cert badges stay readable */
  .cert-badges { gap: 8px; }
  .cert-badges li { font-size: .78rem; padding: 5px 11px; }
}
