/* Socially Awkward — shared stylesheet. Sage & Sand palette, single upright sans family
   (Plus Jakarta Sans), no italics, no serif display font. Light, warm, calm — a clear
   sibling-in-craft to Flirt Mode's site, not a dark-plum reskin of it. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

:root {
  --sa-bg:          #F7F3EC;
  --sa-surface:     #FFFFFF;
  --sa-ink:         #2B332C;
  --sa-ink-soft:    #6B7362;
  --sa-primary:     #5C7A58;
  --sa-primary-tint:#E4ECE1;
  --sa-accent:      #C97B5C;
  --sa-accent-tint: #F3E6DC;
  --sa-border:      rgba(43,51,44,0.09);
  --sa-hairline:    rgba(43,51,44,0.12);
  --sa-shadow:      0 8px 24px rgba(43,51,44,0.08);
  --sa-shadow-lg:   0 16px 40px rgba(43,51,44,0.12);

  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --gutter: 20px;
  --max: 1080px;
  --u: 1px; /* Dynamic-Type-style scale unit; swap for a JS/media-query driver if needed */
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--sa-bg);
  color: var(--sa-ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--sa-primary); outline-offset: 3px; border-radius: 6px; }

.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;
}

.inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: calc(56 * var(--u)) 0; }

.eyebrow {
  font-size: calc(11 * var(--u)); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sa-accent);
}
.section-headline { font-size: clamp(1.75rem, 4.6vw, 2.5rem); margin-top: calc(8 * var(--u)); text-wrap: balance; }
.section-sub { color: var(--sa-ink-soft); font-size: calc(17 * var(--u)); margin-top: calc(10 * var(--u)); max-width: 580px; text-wrap: pretty; }
.section-head { margin-bottom: calc(32 * var(--u)); }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: calc(16 * var(--u));
  padding: 14px 26px; min-height: 50px; border-radius: 999px; text-decoration: none;
  transition: transform 0.12s, box-shadow 0.2s, background 0.15s;
  border: 0; cursor: pointer;
}
.btn-primary { background: var(--sa-primary); color: #FFFFFF; box-shadow: var(--sa-shadow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--sa-shadow-lg); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost { background: var(--sa-surface); color: var(--sa-ink); box-shadow: inset 0 0 0 1px var(--sa-hairline); }
.btn-ghost:hover { background: var(--sa-primary-tint); }
.btn[aria-disabled="true"] { cursor: default; opacity: 0.72; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,243,236,0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sa-border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-mark { width: 32px; height: 32px; border-radius: 9px; }
.nav-title { font-size: calc(18 * var(--u)); font-weight: 700; letter-spacing: -0.01em; color: var(--sa-ink); }
.nav-links { display: none; gap: 26px; }
.nav-links a { color: var(--sa-ink-soft); text-decoration: none; font-size: calc(15 * var(--u)); font-weight: 500; }
.nav-links a:hover { color: var(--sa-ink); }
.nav-cta { display: none; flex-shrink: 0; white-space: nowrap; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ── Hero ── */
#hero { position: relative; overflow: hidden; padding: calc(48 * var(--u)) 0 calc(56 * var(--u)); }
#hero::before {
  content: ''; position: absolute; inset: -10% -10% auto; height: 90%; pointer-events: none;
  background:
    radial-gradient(40% 45% at 75% 30%, rgba(92,122,88,0.10), transparent 70%),
    radial-gradient(35% 40% at 15% 15%, rgba(201,123,92,0.08), transparent 70%);
}
.hero-grid {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 40px; align-items: center;
}
.hero-copy { text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sa-surface); box-shadow: inset 0 0 0 1px var(--sa-hairline);
  border-radius: 999px; padding: 7px 14px; font-size: calc(13 * var(--u)); color: var(--sa-ink-soft); font-weight: 600;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sa-primary); }
#hero h1 { font-size: clamp(2.1rem, 7.5vw, 3.4rem); line-height: 1.12; margin-top: 20px; text-wrap: balance; }
.hero-sub { color: var(--sa-ink-soft); font-size: calc(18 * var(--u)); margin: 20px auto 0; max-width: 480px; text-wrap: pretty; }
.hero-cta-wrap { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-fine { font-size: calc(13 * var(--u)); color: var(--sa-ink-soft); }
.hero-fine strong { color: var(--sa-ink); font-weight: 600; }

@media (min-width: 900px) {
  #hero { padding: calc(72 * var(--u)) 0 calc(88 * var(--u)); }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
  .hero-copy { text-align: left; }
  .hero-sub { margin-left: 0; }
  .hero-cta-wrap { align-items: flex-start; }
}

/* ── Hero visual (scene cards) ── */
.hero-visual { display: flex; justify-content: center; }
.scene-stack { position: relative; width: 100%; max-width: 320px; }
.scene-card {
  background: var(--sa-surface); border-radius: 22px; padding: 18px 20px;
  box-shadow: var(--sa-shadow-lg); display: flex; align-items: center; gap: 14px;
}
.scene-card + .scene-card { margin-top: 14px; }
.scene-card:nth-child(2) { margin-left: 26px; }
.scene-card:nth-child(3) { margin-left: 8px; }
.scene-emoji-tile {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.tile-sage { background: var(--sa-primary-tint); color: var(--sa-primary); }
.tile-sand { background: var(--sa-accent-tint); color: var(--sa-accent); }
.scene-card-body { min-width: 0; }
.scene-card-title { font-weight: 600; font-size: calc(15 * var(--u)); }
.scene-card-tier { font-size: calc(11 * var(--u)); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sa-ink-soft); margin-top: 2px; }

/* ── How it works ── */
.steps { display: grid; gap: 14px; }
.step {
  background: var(--sa-surface); border-radius: 22px; padding: 24px 22px;
  box-shadow: inset 0 0 0 1px var(--sa-border);
  display: flex; flex-direction: column; gap: 10px;
}
.step-top { display: flex; align-items: center; gap: 14px; }
.step-icon {
  width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--sa-primary-tint); color: var(--sa-primary); flex-shrink: 0;
}
.step-num { font-size: calc(13 * var(--u)); font-weight: 700; color: var(--sa-ink-soft); }
.step-title { font-size: calc(19 * var(--u)); font-weight: 600; }
.step-desc { color: var(--sa-ink-soft); font-size: calc(15 * var(--u)); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ── Tiers ── */
#tiers { background: linear-gradient(180deg, var(--sa-bg) 0%, #F1EAE0 50%, var(--sa-bg) 100%); }
.tier-grid { display: grid; gap: 16px; }
.tier-card {
  background: var(--sa-surface); border-radius: 22px; padding: 24px;
  box-shadow: inset 0 0 0 1px var(--sa-border);
}
.tier-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: calc(11 * var(--u)); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 12px;
}
.tier-chip.warmup { background: var(--sa-primary-tint); color: var(--sa-primary); }
.tier-chip.everyday { background: var(--sa-accent-tint); color: var(--sa-accent); }
.tier-chip.stretch { background: #E7E1EC; color: #6A5A80; }
.tier-name { font-size: calc(20 * var(--u)); font-weight: 600; margin-top: 12px; }
.tier-desc { color: var(--sa-ink-soft); font-size: calc(14 * var(--u)); margin-top: 6px; }
.tier-scenes { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.tier-scenes li { font-size: calc(14.5 * var(--u)); color: var(--sa-ink); display: flex; align-items: baseline; gap: 8px; }
.tier-scenes li::before { content: '—'; color: var(--sa-ink-soft); flex-shrink: 0; }
@media (min-width: 820px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── FAQ ── */
.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--sa-surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--sa-border); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 600; font-size: calc(16 * var(--u));
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { flex-shrink: 0; color: var(--sa-primary); transition: transform 0.2s; display: flex; }
.faq-toggle svg { width: 18px; height: 18px; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 20px; color: var(--sa-ink-soft); font-size: calc(15 * var(--u)); }

/* ── Callout (not-therapy / crisis note) ── */
.callout {
  background: var(--sa-surface);
  border: 1px solid var(--sa-hairline);
  border-left: 4px solid var(--sa-primary);
  border-radius: 16px;
  padding: 22px 22px;
}
.callout-label {
  font-size: calc(11 * var(--u)); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sa-primary); margin-bottom: 10px;
}
.callout p { font-size: calc(14.5 * var(--u)); color: var(--sa-ink-soft); line-height: 1.65; margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout a { color: var(--sa-ink); text-decoration: underline; }

/* ── Final CTA ── */
#cta-final { text-align: center; position: relative; overflow: hidden; }
.cta-inner { position: relative; max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; }
.cta-headline { font-size: clamp(1.9rem, 6vw, 2.75rem); line-height: 1.1; text-wrap: balance; }
.cta-sub { color: var(--sa-ink-soft); font-size: calc(16 * var(--u)); margin-top: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px;
  background: var(--sa-ink); color: #FFFFFF; text-decoration: none;
  padding: 12px 24px 12px 18px; border-radius: 16px; transition: transform 0.12s;
}
.store-badge[aria-disabled="true"] { background: #CFC7BA; color: #6B7362; cursor: default; }
.store-badge:not([aria-disabled="true"]):hover { transform: translateY(-1px); }
.store-badge-text { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.store-badge-eyebrow { font-size: calc(11 * var(--u)); font-weight: 500; }
.store-badge-main { font-size: calc(19 * var(--u)); font-weight: 600; letter-spacing: -0.01em; }
.cta-fine { margin-top: 16px; font-size: calc(13 * var(--u)); color: var(--sa-ink-soft); }

/* ── Footer ── */
footer { border-top: 1px solid var(--sa-border); padding: 40px 0 52px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 16px; }
.footer-logo-row { display: flex; align-items: center; gap: 10px; }
.footer-logo-row img { width: 26px; height: 26px; border-radius: 7px; }
.footer-brand-name { font-weight: 700; font-size: calc(16 * var(--u)); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-links a { color: var(--sa-ink-soft); text-decoration: none; font-size: calc(14.5 * var(--u)); }
.footer-links a:hover { color: var(--sa-ink); }
.footer-copy { font-size: calc(12.5 * var(--u)); color: var(--sa-ink-soft); max-width: 640px; }

@media (min-width: 900px) { section { padding: calc(72 * var(--u)) 0; } :root { --gutter: 32px; } }

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

/* ── Doc pages (support / privacy / terms / ai-data-notice) ── */
.doc-hero { padding: calc(48 * var(--u)) 0 calc(24 * var(--u)); }
.doc-hero h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.doc-updated { color: var(--sa-ink-soft); font-size: calc(14 * var(--u)); margin-top: 10px; }
.doc-body { padding-top: 0; padding-bottom: calc(64 * var(--u)); max-width: 740px; }
.doc-section { margin-top: calc(36 * var(--u)); }
.doc-section h2 { font-size: calc(21 * var(--u)); font-weight: 600; margin-bottom: 12px; }
.doc-section h3 { font-size: calc(16.5 * var(--u)); font-weight: 600; margin: 16px 0 8px; }
.doc-section p { font-size: calc(15 * var(--u)); color: var(--sa-ink-soft); margin-bottom: 12px; line-height: 1.7; }
.doc-section ul, .doc-section ol { margin: 0 0 12px 0; padding-left: 20px; color: var(--sa-ink-soft); font-size: calc(15 * var(--u)); line-height: 1.7; }
.doc-section li { margin-bottom: 6px; list-style: disc; }
.doc-section ol li { list-style: decimal; }
.doc-section a { color: var(--sa-primary); text-decoration: underline; }
.doc-section strong { color: var(--sa-ink); font-weight: 600; }
.doc-toc { background: var(--sa-surface); border-radius: 16px; padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--sa-border); margin-top: 20px; }
.doc-toc-label { font-size: calc(11 * var(--u)); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sa-ink-soft); margin-bottom: 10px; }
.doc-toc ul { padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.doc-toc li { list-style: none; font-size: calc(14 * var(--u)); }
.doc-toc a { color: var(--sa-ink); text-decoration: none; }
.doc-toc a:hover { color: var(--sa-primary); text-decoration: underline; }
.todo-flag {
  display: inline-block; background: var(--sa-accent-tint); color: var(--sa-accent);
  font-size: calc(11.5 * var(--u)); font-weight: 700; letter-spacing: 0.02em;
  border-radius: 6px; padding: 2px 7px; margin: 0 2px;
}
