/* Sayso pilot landing page — theysayso.online
   Tokens from Brand/design/sayso-brand-identity-brief.md.
   Verified Teal (#2B6F6A) marks proof/citation elements ONLY and never
   changes per section — that constancy is the design thesis. */

/* ---- Self-hosted fonts (no CDN) ---- */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/fredoka-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
}

/* ---- Tokens ---- */
:root {
  --paper: #FAF8F5;
  --ink: #1C1B1A;
  --ink-soft: #4A4642;
  --stone: #8A8580;
  --mist: #F0ECE7;
  --verified-teal: #2B6F6A;      /* trust accent — never themed per section */
  --teal-tint: #EAF2F1;

  --beauty-blush: #F0C7C0;
  --beauty-rose: #C98077;
  --fitness-orange: #FF5A1F;
  --fitness-bubble: #FFE0D3;
  --fashion-cobalt: #2545F5;
  --fashion-bubble: #DCE1FB;

  --sand: #DCD5C8;
  --sand-deep: #C9C0AE;

  --font-display: 'Fredoka', 'Trebuchet MS', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
}

/* ---- Base ---- */
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--verified-teal); }
a:hover { color: var(--ink); }
:focus-visible {
  outline: 3px solid var(--verified-teal);
  outline-offset: 2px;
  border-radius: 4px;
}
h1, h2, p { margin: 0; }
button { font: inherit; }

/* ---- Background wash ---- */
.wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--paper);
  transition: background .05s linear;
}
.page { position: relative; z-index: 1; }

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px 24px;
  box-sizing: border-box;
}
.logo-mark {
  width: 76px;
  height: 76px;
  border-radius: 22px 22px 22px 7px;
  background: #FFFFFF;
  border: 2px solid var(--sand);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.logo-bar {
  width: 9px;
  height: 23px;
  border-radius: 5px;
  background: var(--sand);
}
.logo-bar--raised { margin-top: -11px; }
.wordmark {
  font: 600 56px/1 var(--font-display);
  color: var(--sand-deep);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 1px rgba(0,0,0,.06);
}
.tagline {
  font: 400 21px/1.5 var(--font-body);
  color: var(--ink-soft);
  max-width: 560px;
  text-align: center;
}
.scroll-hint {
  margin-top: 18px;
  font: 500 12px var(--font-mono);
  color: var(--stone);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-arrow { font-size: 16px; }

/* ---- Vertical sections ---- */
.vertical {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  box-sizing: border-box;
}
.vertical-inner {
  max-width: 1080px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  justify-content: center;
}
.vertical-inner--reverse { flex-wrap: wrap-reverse; }
.vertical-copy {
  flex: 1 1 380px;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kicker {
  font: 600 12px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.kicker--beauty { color: var(--beauty-rose); }
.kicker--fitness { color: var(--fitness-orange); }
.kicker--fashion { color: var(--fashion-cobalt); }
.vertical-heading {
  font: 600 40px/1.15 var(--font-display);
  color: var(--ink);
}
.vertical-sub {
  font: 400 17px/1.55 var(--font-body);
  color: var(--ink-soft);
}

/* ---- Chat card ---- */
.chat-card {
  flex: none;
  width: 340px;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--paper);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.14);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bubble {
  align-self: flex-end;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  font: 400 14px/1.4 var(--font-body);
  color: var(--ink);
}
.bubble--beauty { background: var(--beauty-blush); }
.bubble--fitness { background: var(--fitness-bubble); }
.bubble--fashion { background: var(--fashion-bubble); }
.chat-reply { font: 400 13px/1.3 var(--font-body); color: var(--ink); }

/* ---- Proof chip (Verified Teal border is the constant) ---- */
.proof-chip {
  border-radius: 14px;
  background: var(--paper);
  border: 1.5px solid var(--verified-teal);
  overflow: hidden;
}
.proof-chip--padded {
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proof-body {
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.proof-quote { font: 500 13px/1.3 var(--font-body); color: var(--ink); }
.proof-pair { display: flex; gap: 8px; }

/* Image slots: real <img> with a Mist/Stone placeholder behind it.
   Drop the real PNG into assets/ and it Just Works; while missing,
   onerror adds .slot-missing which hides the img and shows the label. */
.proof-media {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--mist);
  overflow: hidden;
}
.proof-media--portrait {
  flex: 1;
  aspect-ratio: 3/4;
  border-radius: 10px;
}
.proof-media--wide { flex: 1.15; }
.slot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slot-missing .slot-img { display: none; }
.slot-label {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font: 500 11px/1.4 var(--font-mono);
  color: var(--stone);
  letter-spacing: .04em;
}
.slot-missing .slot-label { display: flex; }

.proof-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.timestamp {
  font: 500 10px var(--font-mono);
  color: var(--paper);
  background: rgba(0,0,0,.45);
  padding: 2px 6px;
  border-radius: 20px;
}
.verified {
  font: 600 9px var(--font-body);
  color: var(--verified-teal);
  background: var(--teal-tint);
  padding: 2px 6px;
  border-radius: 20px;
  letter-spacing: .02em;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.play-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-triangle {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--ink);
  margin-left: 3px;
}

/* ---- Product buttons (category accent) ---- */
.product-btn {
  align-self: flex-start;
  font: 600 12px var(--font-body);
  color: var(--paper);
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
}
.product-btn--beauty { background: var(--beauty-rose); }
.product-btn--fitness { background: var(--fitness-orange); }
.product-btn--fashion { background: var(--fashion-cobalt); }
.product-btn:hover { filter: brightness(.92); }

/* ---- Closing ---- */
.closing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 48px 24px;
  box-sizing: border-box;
  text-align: center;
}
.closing-heading { font: 600 36px/1.2 var(--font-display); max-width: 640px; }
.closing-beauty { color: var(--beauty-rose); }
.closing-fashion { color: var(--fashion-cobalt); }
.closing-ink { color: var(--ink); }
.closing-sub { font: 400 17px/1.55 var(--font-body); color: var(--ink-soft); max-width: 520px; }
.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta {
  text-decoration: none;
  font: 600 14px var(--font-body);
  padding: 13px 22px;
  border-radius: 24px;
}
.cta--primary { color: var(--paper); background: var(--ink); }
.cta--primary:hover { color: var(--paper); background: #000; }
.cta--secondary {
  color: var(--ink);
  background: var(--mist);
  border: 1px solid rgba(0,0,0,.08);
}
.cta--secondary:hover { color: var(--ink); background: var(--sand); }
.widget-hint { font: 400 13px/1.5 var(--font-body); color: var(--stone); }

/* ---- Small screens ---- */
@media (max-width: 480px) {
  .vertical { padding: 48px 20px; }
  .vertical-inner, .vertical-inner--reverse { gap: 36px; }
  .wordmark { font-size: 44px; }
  .tagline { font-size: 18px; }
  .vertical-heading { font-size: 32px; }
  .closing-heading { font-size: 28px; }
}

/* ---- Reduced motion: no animated wash ---- */
@media (prefers-reduced-motion: reduce) {
  .wash { transition: none; }
}

/* ---- /ask/ full-page chat (packages/site/ask/index.html only) ----
   Scoped entirely under .ask-* classes so nothing here touches the landing page. */
.ask-wash {
  min-height: 100vh;
  background: #EFEBE4;
  display: flex;
  flex-direction: column;
}
.ask-topbar {
  flex: none;
  display: flex;
  align-items: center;
  padding: 16px 24px;
}
.ask-topbar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.ask-topbar-link:hover .ask-wordmark { color: var(--ink); }
.ask-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px 10px 10px 4px;
  background: #FFFFFF;
  border: 2px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: none;
}
.ask-logo-bar { width: 4px; height: 10px; border-radius: 3px; background: var(--sand); }
.ask-logo-bar--raised { margin-top: -5px; }
.ask-wordmark {
  font: 600 20px/1 var(--font-display);
  color: var(--sand-deep);
  letter-spacing: -0.01em;
}
.ask-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px 32px;
  box-sizing: border-box;
}
.ask-card {
  width: 400px;
  max-width: 100%;
  height: calc(100vh - 148px);
  max-height: 760px;
  background: var(--paper);
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Below ~480px the card fills the viewport edge-to-edge: no radius, no shadow, no margin. */
@media (max-width: 480px) {
  .ask-topbar { padding: 12px 16px; }
  .ask-main { padding: 0; }
  .ask-card {
    width: 100%;
    height: calc(100vh - 64px);
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
}
