/* SymSoul marketing site — shared styles for every landing page.
   Tokens mirror the app's design system (docs/design_system.md, lib/core/theme/app_colors.dart).
   Noa 2026-10-04: same palette, radii and button as the app; Poppins SemiBold titles (iOwnIt), Inter body.
   Emil 2026-10-04: calm motion only — hero fade-up once, scroll reveals once, bars grow to explain the map. */

:root {
  --blue: #4361EE;            /* AppColors.blue — user actions, primary button */
  --blue-hover: #3651D9;
  --gradient-blue: #2196F3;   /* AppColors.gradientBlue — brand gradient start */
  --purple: #6B4EFF;          /* AppColors.purple */
  --purple-light: #EDE9FF;    /* AppColors.purpleLight */
  --bg: #F8F7FF;              /* AppColors.background */
  --surface: #FFFFFF;
  --divider: #E8E8F0;         /* AppColors.divider */
  --text: rgba(0, 0, 0, 0.87);
  --text-2: rgba(0, 0, 0, 0.6);
  --text-3: rgba(0, 0, 0, 0.45);
  --brand-gradient: linear-gradient(90deg, var(--gradient-blue), var(--purple));
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);   /* AppShadows.card */
  --radius-card: 16px;
  --radius-button: 14px;      /* DiagnosticContinueButton */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);     /* AppMotion.easeOut */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-title: 'Poppins', var(--font-body);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(248, 247, 255, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.brand img { width: 32px; height: 32px; mix-blend-mode: multiply; }
.brand span { font-family: var(--font-title); font-weight: 600; font-size: 19px; }
.header-link { font-size: 15px; font-weight: 600; text-decoration: none; padding: 8px 4px; }

/* ── Type ───────────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.25; margin: 0; }
h1 { font-size: clamp(32px, 6vw, 48px); letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 16px; }
h3 { font-size: 18px; margin-bottom: 4px; }
p { margin: 0 0 16px; }
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { font-size: 19px; color: var(--text-2); margin: 20px 0 28px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px;
  border-radius: var(--radius-button);
  background: var(--blue); color: #fff;
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--blue-hover); }
}
.button:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.button-note { margin-top: 12px; font-size: 14px; color: var(--text-3); }
@media (max-width: 560px) { .button { width: 100%; } }   /* DS: buttons full-width on phones */

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 56px 0; }
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-art img { border-radius: 24px; box-shadow: 0 12px 40px rgba(67, 97, 238, 0.14); }
@media (min-width: 880px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

.band { background: var(--surface); }

/* ── How it works ───────────────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 20px;
}
.band .step { background: var(--bg); box-shadow: none; }
.step-number {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-gradient); color: #fff;
  font-weight: 700; font-size: 16px;
}
.step p { margin: 0; color: var(--text-2); font-size: 16px; }

/* The map's reveal, drawn: who leads how much. Bars grow when scrolled into view. */
.map-card {
  margin-top: 16px; padding: 16px 16px 12px;
  background: var(--surface); border: 1px solid var(--divider); border-radius: 12px;
  display: flex; justify-content: center; gap: 32px; align-items: flex-end; height: 168px;
}
.map-bar { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 88px; }
.map-bar .bar {
  width: 48px; border-radius: 8px 8px 4px 4px;
  transition: clip-path 700ms var(--ease-out);
}
.map-bar.one .bar { height: 104px; background: var(--purple); }
.map-bar.other .bar { height: 36px; background: var(--blue); transition-delay: 150ms; }
.map-bar span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.js .map-bar .bar { clip-path: inset(100% 0 0 0); }
.js .map-card.is-visible .bar { clip-path: inset(0 0 0 0); }

/* ── What's different ───────────────────────────────────────────────────── */
.points { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 720px) { .points { grid-template-columns: 1fr 1fr; } }
.point {
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 20px;
  border-top: 3px solid transparent;   /* gradient top edge that follows the rounded corners */
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-gradient) border-box;
}
.point p { margin: 0; color: var(--text-2); font-size: 16px; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq { margin-top: 16px; }
.faq details { border-bottom: 1px solid var(--divider); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 4px; }
.faq details p { color: var(--text-2); margin: 0 0 20px; }
.faq details[open] p { animation: faq-in 200ms var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* ── Final call to action ───────────────────────────────────────────────── */
.final { text-align: center; padding: 72px 0 80px; }
.final h2 { margin-bottom: 8px; }
.final p { color: var(--text-2); margin-bottom: 28px; }

.site-footer { padding: 32px 0 40px; font-size: 14px; color: var(--text-3); text-align: center; }
/* ALON 2026-11-23: Privacy Policy + Terms of Service on every page. Noa: 14px at 60% (readable, unlike
   the 45% copyright line), no underline until hovered. Emil: no motion, color/underline only. */
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 2px; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { text-decoration: underline; } }

/* ── Legal pages (/privacy-policy, /terms-of-service) ──────────────────────
   ALON 2026-11-23: regulators want legal text easy to read — Inter ≥16px, line-height 1.6–1.7,
   a ~760px column, dark text on a light background, never low-contrast grey.
   Noa: the site's own header/footer and tokens; the text on ONE white card (radius 16, card shadow)
   on the page background; tables keep the 1px divider grid; full-dark text (--text), the 60% grey
   only for the date line. Emil: nothing animates on its own — reading pages; the contents links use
   the site's smooth scroll (off under reduced motion, see the end of this file). */
.legal { padding: 32px 0 24px; }
.legal-card {
  max-width: 760px; margin: 0 auto; padding: 28px 20px;
  background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  font-size: 17px; line-height: 1.7;
}
@media (min-width: 720px) { .legal-card { padding: 48px 56px; } .legal { padding: 48px 0 32px; } }
.legal h1 { font-size: clamp(32px, 5vw, 40px); margin-bottom: 12px; }
.legal-meta { color: var(--text-2); font-size: 16px; margin: 0 0 4px; }
.legal h2 { font-size: clamp(22px, 3vw, 26px); margin: 48px 0 16px; scroll-margin-top: 80px; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal ul, .legal ol { padding-left: 24px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal li > ul { margin-top: 8px; }
.legal code { font-size: 15px; background: var(--bg); padding: 1px 4px; border-radius: 4px; }
.legal-toc {
  margin: 28px 0 8px; padding: 16px 20px;
  border: 1px solid var(--divider); border-radius: 12px;
}
.legal-toc p { font-weight: 600; margin: 0 0 8px; }
.legal-toc ol { margin: 0; }
.legal-toc li { margin-bottom: 4px; }
.legal-table-wrap { overflow-x: auto; margin: 0 0 16px; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
.legal th, .legal td { border: 1px solid var(--divider); padding: 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg); font-weight: 600; }
/* Opens the cookie banner again. Noa: the banner's own neutral button (white, 1px divider border,
   48 high, radius 14). Emil: the site's press — scale 0.97, 160ms ease-out. */
.button-neutral {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; margin: 8px 0 16px;
  border: 1px solid var(--divider); border-radius: var(--radius-button);
  background: var(--surface); color: var(--text);
  font: 600 16px var(--font-body); cursor: pointer;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.button-neutral:active { transform: scale(0.97); }
.button-neutral:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .button-neutral:hover { background: var(--bg); } }

/* ── "Which one are you?" — two self-select cards (StartOptionCard look) ─── */
.choose { display: grid; gap: 12px; margin-top: 8px; }
@media (min-width: 720px) { .choose { grid-template-columns: 1fr 1fr; } }
.choose a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px; border-radius: var(--radius-card);
  background: var(--surface); border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text); font-weight: 600; text-decoration: none;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.choose a::after { content: '›'; font-size: 24px; line-height: 1; color: var(--text-3); }
.choose a:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .choose a:hover { background: rgba(107, 78, 255, 0.06); } }

/* ── Secondary button (DiagnosticContinueButton secondary: white, blue 1.5px border) ── */
.button-secondary { background: var(--surface); color: var(--blue); border: 1.5px solid var(--blue); }
@media (hover: hover) and (pointer: fine) { .button-secondary:hover { background: rgba(67, 97, 238, 0.06); } }

/* ── "Send this to him" share card ──────────────────────────────────────── */
.share-card {
  background: var(--purple-light); border-radius: var(--radius-card); padding: 24px;
}
.share-card blockquote {
  margin: 16px 0 20px; padding: 16px; background: var(--surface); border-radius: 12px;
  color: var(--text); font-size: 16px;
}
.share-status { margin: 12px 0 0; font-size: 14px; color: var(--text-2); min-height: 1.6em; }

/* ── An iOwnIt area, drawn: Notice · Anticipate · Do (real catalog text) ─── */
.area-card {
  background: var(--surface); border-radius: 20px; padding: 20px;
  box-shadow: 0 12px 40px rgba(67, 97, 238, 0.14);
}
.area-card .area-name { font-family: var(--font-title); font-weight: 600; font-size: 20px; margin: 0 0 12px; }
.area-row { padding: 12px 0; border-top: 1px solid var(--divider); }
.area-row .label { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.area-row.notice .label { color: var(--gradient-blue); }
.area-row.anticipate .label { color: var(--purple); }
.area-row.do .label { color: var(--blue); }
.area-row p { margin: 4px 0 0; font-size: 15px; color: var(--text-2); }
.area-row ol { margin: 6px 0 0; padding-left: 20px; font-size: 15px; color: var(--text-2); }

/* ── Plain "This isn't" list ────────────────────────────────────────────── */
.not-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.not-list li {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow-card);
}
.not-list li::before { content: '✕'; color: var(--text-3); font-weight: 700; }

.source { font-size: 14px; color: var(--text-3); }
.source a { color: var(--text-3); }

/* ── Motion (Emil) ──────────────────────────────────────────────────────── */
/* Hero: one staged fade-up on first paint. CSS animation so it stays smooth while the page loads. */
.hero-enter { animation: rise 500ms var(--ease-out) both; }
.hero-enter:nth-child(2) { animation-delay: 60ms; }
.hero-enter:nth-child(3) { animation-delay: 120ms; }
.hero-enter:nth-child(4) { animation-delay: 180ms; }
.hero-art.hero-enter { animation-delay: 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* Sections: fade up once as they scroll in (class added by a tiny observer). */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-enter { animation: fade 300ms ease both; }
  @keyframes fade { from { opacity: 0; } }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .js .map-bar .bar { clip-path: none; transition: none; }
  .faq details[open] p { animation: none; }
  .button { transition: background-color 150ms ease; }
  .button:active { transform: none; }
}
