/* ==========================================================================
   SPAWT — marketing site, Cal AI-inspired system
   Bricolage Grotesque (display) + Inter (body). Airy gradient canvas,
   big bold type, soft white cards, coral accent.
   ========================================================================== */

:root {
  --ink: #1E1A24;
  --ink-2: #56505E;
  --ink-3: #8B8694;
  --line: #ECEAF0;
  --line-2: #E0DDE6;

  --coral: #EE6A4C;
  --coral-hover: #DE5634;
  --coral-ink: #C2451F;
  --coral-tint: #FCE6DE;
  --green: #2E9D5B;

  --card: #FFFFFF;
  --shadow-card: 0 1px 20px 1px rgba(228, 229, 233, .55);
  --shadow-soft: 0 10px 40px -12px rgba(30, 26, 36, .18);
  --shadow-phone: 0 30px 70px -24px rgba(30, 26, 36, .35);

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-pill: 999px;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-color: #FFFDF9;
  background-image: linear-gradient(to bottom, #FFFFFF 0%, #FFF7F1 28%, #FBF6FF 60%, #FFF8F2 100%);
  background-attachment: fixed;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--coral-tint); }

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

/* ---- Layout helpers ---------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 130px); }
.section-head { max-width: 720px; margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-ink);
}
.section-title { font-size: clamp(34px, 4.6vw, 52px); font-weight: 600; margin-top: 16px; }
.section-sub { margin-top: 16px; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 56ch; margin-inline: auto; text-wrap: pretty; }

/* ---- Buttons / badges -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: var(--r-pill);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -8px rgba(238,106,76,.6); }
.btn-primary:hover { background: var(--coral-hover); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-card); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* App Store badge (dark pill, Apple logo) */
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff;
  border-radius: 13px; padding: 10px 20px 10px 17px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .t small { display: block; font-size: 11px; letter-spacing: .02em; opacity: .8; white-space: nowrap; }
.store-badge .t b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.store-badge.lg { padding: 13px 26px 13px 22px; border-radius: 15px; }
.store-badge.lg svg { width: 30px; height: 30px; }
.store-badge.lg .t b { font-size: 20px; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  background: rgba(255,255,255,.55);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.75); }
.header-inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.04em; color: var(--ink); display: inline-flex; align-items: baseline; }
.wordmark .dot { color: var(--coral); }

.nav-links { display: flex; gap: 30px; font-weight: 500; font-size: 15.5px; }
.nav-links a { color: var(--ink-2); transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-pill); background: #fff; box-shadow: var(--shadow-card); }
.menu-toggle svg { width: 22px; height: 22px; }

/* mobile nav panel */
.mobile-nav { display: none; }
@media (max-width: 860px) {
  .nav-links, .header-actions .store-badge { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
  .mobile-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    flex-direction: column; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px;
    box-shadow: var(--shadow-soft);
  }
  .mobile-nav a { padding: 13px 6px; font-family: var(--font-display); font-weight: 600; font-size: 18px; border-bottom: 1px solid var(--line); }
  .mobile-nav .store-badge { margin-top: 14px; width: fit-content; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero { padding-top: clamp(36px, 6vw, 64px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.6);
  border-radius: var(--r-pill); padding: 6px 14px 6px 7px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); width: fit-content;
}
.hero-pill .avatars { display: flex; }
.hero-pill .avatars span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; margin-left: -9px; background-size: cover; background-position: center; }
.hero-pill .avatars span:first-child { margin-left: 0; }
.hero-pill b { color: var(--ink); font-weight: 600; }
.hero h1 { font-size: clamp(40px, 6.2vw, 62px); line-height: .98; font-weight: 700; margin-top: 22px; }
.hero h1 .light { font-weight: 500; }
.hero h1 .hl { color: var(--coral-ink); }
.hero-sub { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 48ch; text-wrap: pretty; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-3); }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(46,157,91,.16); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: ""; position: absolute; inset: -8% -4%;
  background: radial-gradient(60% 55% at 60% 35%, rgba(238,106,76,.20), transparent 70%);
  filter: blur(20px); z-index: 0;
}

/* device shot — raw rounded screenshot, no bezel */
.shot {
  position: relative; z-index: 1;
  border-radius: 40px;
  box-shadow: var(--shadow-phone);
  border: 1px solid rgba(30,26,36,.06);
  background: #fff;
  width: 300px; max-width: 78vw;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
}
.hero-visual .shot { width: 320px; transform: rotate(-2deg); }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* ---- Feature slider ---------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; max-width: 1040px; margin: clamp(36px,5vw,56px) auto 0; }
.feature-visual { position: relative; display: flex; justify-content: center; }
.feature-visual::before {
  content: ""; position: absolute; inset: -6%;
  background: radial-gradient(55% 50% at 50% 45%, rgba(238,106,76,.16), transparent 72%);
  filter: blur(18px);
}
.shot-stack { position: relative; z-index: 1; width: 300px; max-width: 78vw; aspect-ratio: 1206 / 2622; }
.shot-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 40px;
  box-shadow: var(--shadow-phone); border: 1px solid rgba(30,26,36,.06); background: #fff;
  opacity: 0; transition: opacity .55s ease; will-change: opacity;
}
.shot-layer.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .shot-layer { transition: none; } }
.feature-dots { position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 2; }
.feature-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: background-color .25s ease, width .25s ease; }
.feature-dots button.active { background: var(--coral); width: 24px; border-radius: var(--r-pill); }

.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-card {
  padding: 22px 24px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: rgba(255,255,255,.5);
  cursor: pointer; transition: all .25s ease;
}
.feature-card:hover { border-color: var(--line-2); }
.feature-card.active { background: #fff; border-color: transparent; box-shadow: var(--shadow-card); transform: translateY(-1px); }
.feature-card .fc-head { display: flex; align-items: center; gap: 12px; }
.feature-card .fc-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--coral-tint); color: var(--coral-ink); display: flex; align-items: center; justify-content: center; }
.feature-card .fc-ico svg { width: 20px; height: 20px; }
.feature-card h3 { font-size: 19px; font-weight: 700; }
.feature-card p { font-size: 15px; color: var(--ink-2); margin-top: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .25s ease, margin-top .3s ease; }
.feature-card.active p { max-height: 140px; opacity: 1; margin-top: 12px; }

/* ---- Why cards --------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(36px,5vw,56px); }
.why-card { background: #fff; border-radius: var(--r-lg); padding: 32px 28px; box-shadow: var(--shadow-card); }
.why-card .wc-ico { width: 60px; height: 60px; border-radius: 16px; background: #F8F6FB; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.why-card .wc-ico svg { width: 30px; height: 30px; color: var(--coral); }
.why-card h3 { font-size: 21px; font-weight: 700; }
.why-card p { font-size: 15.5px; color: var(--ink-2); margin-top: 10px; text-wrap: pretty; }

/* ---- Steps (how it works, compact) ------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(36px,5vw,56px); counter-reset: step; }
.step { text-align: left; }
.step .num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--coral); letter-spacing: .04em; }
.step h3 { font-size: 19px; font-weight: 700; margin-top: 8px; }
.step p { font-size: 15px; color: var(--ink-2); margin-top: 8px; text-wrap: pretty; }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-card {
  position: relative; overflow: hidden;
  max-width: 1040px; margin-inline: auto;
  background: var(--ink); color: #fff;
  border-radius: clamp(28px, 4vw, 44px);
  padding: clamp(48px, 7vw, 84px) var(--gutter);
}
.cta-card::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(238,106,76,.5), transparent 68%); top: -160px; right: -120px; filter: blur(20px); }
.cta-card::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(46,157,91,.34), transparent 68%); bottom: -160px; left: -100px; filter: blur(20px); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; }
.cta-card p { margin: 16px auto 0; color: rgba(255,255,255,.78); font-size: 18px; max-width: 46ch; }
.cta-card .store-row { display: flex; justify-content: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.cta-card .store-badge { background: #fff; color: var(--ink); }
.cta-rating { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 14px; color: rgba(255,255,255,.7); }
.cta-rating .stars { color: #F5B544; letter-spacing: 2px; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding-block: clamp(48px, 7vw, 80px) 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand .footer-tag { margin-top: 14px; font-size: 15px; color: var(--ink-2); max-width: 32ch; }
.footer-brand .store-badge { margin-top: 20px; }
.footer-col h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 15px; color: var(--ink-2); transition: color .15s ease; }
.footer-col a:hover { color: var(--coral-ink); }
.footer-bottom { max-width: var(--maxw); margin: 28px auto 0; padding: 22px var(--gutter) 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-bottom .copy { font-size: 13.5px; color: var(--ink-3); }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; color: var(--ink-2); transition: transform .15s ease, color .15s ease; }
.footer-bottom .socials a:hover { transform: translateY(-2px); color: var(--coral); }
.footer-bottom .socials svg { width: 19px; height: 19px; }

/* ---- Reveal ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-pill, .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-note { justify-content: center; }
  .hero-visual { margin-top: 8px; }
  .feature-grid { grid-template-columns: 1fr; gap: 56px; }
  .feature-visual { order: -1; }
  .why-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   PRIVACY / LEGAL DOC
   ========================================================================== */
.doc-hero { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(24px, 4vw, 36px); }
.doc-hero .back { display: flex; width: fit-content; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--coral-ink); margin-bottom: 24px; transition: gap .18s ease; }
.doc-hero .back:hover { gap: 12px; }
.doc-hero .back svg { width: 18px; height: 18px; }
.doc-hero h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 700; margin-top: 12px; }
.doc-dates { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-dates span { font-size: 13.5px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 16px; box-shadow: var(--shadow-card); }
.doc-intro { max-width: 64ch; margin-top: 22px; color: var(--ink-2); font-size: 17px; text-wrap: pretty; }

.doc-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: clamp(40px, 6vw, 72px); align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
.toc { position: sticky; top: calc(var(--header-h) + 20px); font-size: 14.5px; }
.toc h4 { font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.toc ol { counter-reset: s; display: flex; flex-direction: column; gap: 2px; }
.toc a { counter-increment: s; display: flex; gap: 11px; padding: 8px 13px; border-radius: 11px; color: var(--ink-2); transition: color .15s ease, background-color .15s ease; }
.toc a::before { content: counter(s, decimal-leading-zero); color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 700; }
.toc a:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.toc a.active { color: var(--coral-ink); background: var(--coral-tint); }
.toc a.active::before { color: var(--coral-ink); }

.doc { max-width: 760px; }
.doc section { margin-bottom: 44px; scroll-margin-top: calc(var(--header-h) + 20px); }
.doc h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; display: flex; align-items: baseline; gap: 13px; }
.doc h2 .n { font-size: 15px; font-weight: 800; color: var(--coral-ink); font-variant-numeric: tabular-nums; flex: none; }
.doc h3 { font-size: 18px; font-weight: 700; margin-top: 26px; }
.doc p { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; text-wrap: pretty; }
.doc h2 + p { margin-top: 16px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a.link { color: var(--coral-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc ul { margin: 14px 0 0; display: flex; flex-direction: column; gap: 11px; }
.doc ul li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 16.5px; text-wrap: pretty; }
.doc ul li::before { content: ""; position: absolute; left: 5px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.callout { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--coral); border-radius: var(--r-md); padding: 18px 22px; color: var(--ink-2); font-size: 16px; box-shadow: var(--shadow-card); }
.callout strong { color: var(--ink); }
.table-scroll { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-card); }
table { border-collapse: collapse; width: 100%; min-width: 580px; font-size: 15px; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
thead th { background: #FAF8FC; font-family: var(--font-display); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: var(--ink); font-weight: 600; }
.contact-card { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; box-shadow: var(--shadow-card); }
.contact-card p { margin-top: 6px; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: minmax(0,1fr); gap: 0; } .toc { display: none; } }
