/* Soma landing page styles. No build step required. */

:root {
  --ink: #231433;
  --ink-2: #35244a;
  --muted: #5b4a6b;
  --ground: #f8f6fb;
  --accent: #6a3fa0;
  --accent-deep: #4b2a7a;
  --lilac: #ede6f7;
  --peach: #f5c27a;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: italic; font-weight: 500; }

:focus-visible { outline: 3px solid #6b4fbb; outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  padding: 12px 16px; border-radius: 8px; background: #fff; font-weight: 600;
}
.skip-link:focus { left: 8px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 36px; border: 0; border-radius: 999px;
  font-size: 18px; font-weight: 700; transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; min-height: 44px; padding: 0 22px; font-size: 15px; font-weight: 600; }
.btn-peach { background: var(--peach); color: var(--ink); min-height: 60px; padding: 0 40px; }
.btn-white { background: #fff; color: var(--accent-deep); min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-hero { min-height: 60px; }

/* ---------- Header ---------- */
.site-header {
  max-width: 1120px; margin: 0 auto; padding: 14px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand img { width: 84px; height: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr));
  min-height: min(720px, calc(100vh - 100px));
}
.hero-copy {
  min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: 48px clamp(24px, 5vw, 80px);
}
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; background: var(--lilac);
  font-size: 15px; font-weight: 600; color: #3e2a5c;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 4.3vw, 62px); line-height: 1.08; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 em, .accent { color: var(--accent); }
.hero-sub { display: flex; flex-direction: column; gap: 6px; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.checks li { display: flex; align-items: center; gap: 8px; }

/* Drop your photo at public/assets/hero.jpg. Without it, the panel shows plain lavender. */
.hero-visual {
  position: relative; min-height: 560px; overflow: hidden;
  background: #d9c6ec url("/assets/hero.jpg") 60% 25% / cover no-repeat;
}

/* ---------- Phone mock (Material-style app screen) ---------- */
.phone {
  position: absolute; left: clamp(36px, 9%, 72px); bottom: 7%;
  transform: rotate(-6deg) scale(.7); transform-origin: bottom left;
  width: 304px; padding: 8px; border-radius: 42px; background: #1d1b20;
  box-shadow: 0 30px 60px rgba(35, 20, 51, 0.3);
  font-family: "Roboto", system-ui, sans-serif;
}
/* Desktop: the phone straddles the split between copy and photo. */
@media (min-width: 1100px) {
  .hero-copy { padding-right: clamp(120px, 11vw, 170px); }
  .hero-visual { overflow: visible; }
  .phone { left: -100px; bottom: 11%; transform: rotate(-6deg) scale(.78); }
}

.phone-screen { display: block; width: 100%; height: auto; border-radius: 34px; }
.phone-top { display: flex; flex-direction: column; gap: 2px; padding: 24px 22px 6px; }
.phone-top small { font-size: 12px; line-height: 16px; letter-spacing: .5px; font-weight: 500; color: #5e5559; }
.phone-top strong { font-size: 28px; line-height: 36px; font-weight: 400; }
.ring-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin: 8px 12px 0; padding: 18px 16px 16px; border-radius: 28px; background: #f5effa;
}
.ring { position: relative; width: 200px; height: 200px; }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ring-label strong { font-size: 40px; line-height: 44px; font-weight: 400; }
.ring-label span { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .1px; color: #6750a4; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 8px; background: #e8def8; color: #1d192b; font-size: 14px; font-weight: 500; }
.legend { align-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 12px; line-height: 16px; letter-spacing: .4px; color: #49454f; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend .d1 { background: #b5294f; } .legend .d2 { background: #5e9c82; } .legend .d3 { background: #e0a800; } .legend .d4 { background: #6750a4; }
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 12px 0; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 20px; background: #f3edf7; }
.stat small { font-size: 12px; line-height: 16px; letter-spacing: .5px; font-weight: 500; color: #49454f; }
.stat strong { font-size: 16px; line-height: 24px; font-weight: 500; }
.nav-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; padding: 12px 8px 14px; background: #f3edf7; text-align: center; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 500; color: #49454f; }
.nav-item .pill { width: 56px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.nav-item.active { font-weight: 700; color: #1e1a1c; }
.nav-item.active .pill { background: #eaddff; }

/* ---------- Section shells ---------- */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance;
}
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }

/* ---------- Benefits ---------- */
.benefits { background: #fff; }
.benefits-inner {
  max-width: 1120px; margin: 0 auto; padding: 96px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
}
.benefit-grid {
  width: 100%; margin-top: 16px; text-align: left;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px;
}
.benefit-grid li {
  display: flex; align-items: center; gap: 18px; min-height: 88px; padding: 20px 24px;
  border-radius: 22px; background: #f4eff9; font-size: 19px; font-weight: 600; line-height: 1.3;
}
.icon-chip { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.chip-pink { background: #f9dde4; } .chip-lilac { background: #e3daf6; } .chip-green { background: #d8ebe2; }
.chip-amber { background: #fbefd2; } .chip-blue { background: #d6e6f5; }

/* ---------- Privacy band ---------- */
.band { background: var(--accent); color: #fff; }
.band-inner {
  max-width: 1120px; margin: 0 auto; padding: 88px 32px; align-items: center; gap: 64px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}
.band h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.band-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.band-copy p { font-size: 20px; line-height: 1.6; max-width: 32em; }
.band-badge { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; font-size: 18px; font-weight: 600; }

/* ---------- Insights ---------- */
.insights { max-width: 1120px; margin: 0 auto; padding: 72px 32px 112px; }
.insights-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.insights h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.insight { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 28px; transition: transform .2s ease; }
.insight:hover { transform: translateY(-3px); }
.insight small { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.insight h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.15; }
.insight .tag { margin-top: auto; align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; }
.insight-pink { background: #f9dde4; } .insight-pink small { color: #8f1f43; }
.insight-lilac { background: #e3daf6; } .insight-lilac small { color: #4b2f99; }
.insight-green { background: #d8ebe2; } .insight-green small { color: #2d6350; }

/* ---------- Soma AI ---------- */
.assistant {
  max-width: 1120px; margin: 0 auto; padding: 96px 32px; align-items: center; gap: 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}
.assistant-copy { display: flex; flex-direction: column; gap: 20px; }
.assistant h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.assistant h2 em { color: var(--accent); }
.assistant .lead { max-width: 28em; }
.assistant-visual { display: flex; justify-content: center; padding: 32px 24px; border-radius: 32px; background: var(--lilac); }
.device { width: min(300px, 100%); padding: 8px; border-radius: 42px; background: #1d1b20; box-shadow: 0 30px 60px rgba(35, 20, 51, 0.25); }
.assistant-visual .device { width: min(236px, 100%); border-radius: 36px; }
.assistant-visual .device img { border-radius: 29px; }
.device img { display: block; width: 100%; height: auto; border-radius: 34px; }
.chat { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 32px; background: var(--lilac); }
.bubble-user { align-self: flex-end; max-width: 80%; padding: 14px 20px; border-radius: 22px 22px 6px 22px; background: var(--ink); color: #fff; font-size: 18px; line-height: 1.4; }
.bubble-bot { align-self: flex-start; max-width: 90%; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 22px 22px 22px 6px; background: #fff; font-size: 18px; line-height: 1.5; }
.bubble-bot .tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: #d8ebe2; font-size: 13px; font-weight: 700; color: #1f4d3c; }

/* ---------- FAQ ---------- */
.faq { max-width: 920px; margin: 0 auto; padding: 0 32px 112px; }
.faq-head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 40px; text-align: center; }
.faq-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.025em; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: 24px; background: #fff; box-shadow: 0 6px 20px rgba(35, 20, 51, 0.06); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 18px 28px; border-radius: 24px;
  font-size: 19px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus { flex: none; transition: transform .2s ease; }
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-item p { padding: 0 28px 26px; font-size: 17px; line-height: 1.65; color: #4b3a5f; }

/* ---------- Closing call to action ---------- */
.cta { padding: 0 32px 112px; }
.cta-card {
  max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px); border-radius: 48px; background: var(--accent); color: #fff;
}
.cta-card .eyebrow { color: #e9ddf7; }
.cta-card h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.03em; }
.cta-card p { max-width: 34em; font-size: 19px; line-height: 1.55; color: #f3ecfb; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #dcd0ea; }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 40px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.footer-inner img { width: 104px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 16px; font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }
.copyright { flex-basis: 100%; padding-top: 20px; border-top: 1px solid #e8def3; font-size: 14px; color: var(--muted); }

/* ---------- Waitlist dialog ---------- */
.waitlist {
  width: calc(100% - 40px); max-width: 480px; padding: 0; border: 0; border-radius: 32px;
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(35, 20, 51, 0.35);
}
.waitlist::backdrop { background: rgba(35, 20, 51, 0.62); }
.waitlist-body { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 40px; }
#waitlist-form-view, #waitlist-done-view { display: flex; flex-direction: column; gap: 20px; }
.waitlist h2 { padding-right: 40px; font-family: var(--font-display); font-weight: 500; font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; }
.waitlist h2 em { color: var(--accent); }
.waitlist p { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.close-btn {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #f4eff9; display: flex; align-items: center; justify-content: center;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 16px; font-weight: 600; }
.field input {
  min-height: 56px; padding: 0 20px; border: 2px solid #8f7bae; border-radius: 16px;
  background: #fff; font: inherit; font-size: 18px; color: var(--ink);
}
.waitlist form { display: flex; flex-direction: column; gap: 16px; }
.waitlist .btn { min-height: 58px; }
.waitlist .btn[disabled] { opacity: .65; cursor: progress; }
.form-error { padding: 12px 16px; border-radius: 12px; background: #fde7ea; color: #7a1230; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }

/* ---------- Privacy page ---------- */
.page-hero { background: var(--accent); color: #fff; }
.page-hero-inner { max-width: 1080px; margin: 0 auto; padding: 88px 32px; display: flex; flex-direction: column; gap: 20px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.page-hero p { max-width: 28em; font-size: 22px; line-height: 1.5; }
.privacy-cards { max-width: 1080px; margin: 0 auto; padding: 72px 32px 40px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.p-card { display: flex; flex-direction: column; gap: 16px; padding: 36px; border-radius: 28px; background: #fff; box-shadow: 0 8px 24px rgba(35, 20, 51, 0.06); }
.p-card .icon-chip { width: 56px; height: 56px; }
.p-card h2 { font-size: 24px; font-weight: 700; }
.p-card p { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.contact { max-width: 1080px; margin: 0 auto; padding: 24px 32px 96px; }
.contact-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 36px 40px; border-radius: 28px; background: var(--lilac); }
.contact-inner p { max-width: 24em; font-size: 20px; font-weight: 600; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; }
.back-link:hover { color: var(--accent); }

/* ---------- Legal pages (terms, privacy policy) ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 32px 96px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.legal-intro { font-size: 20px; line-height: 1.6; color: var(--ink); }
.legal a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--accent); }
.legal p + p, .legal p + ul, .legal ul + p, .legal ul + ul { margin-top: 16px; }
.legal ul { padding-left: 1.3em; list-style: disc; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--accent); }
.legal section { margin-top: 48px; scroll-margin-top: 24px; }
.legal h2 { margin-bottom: 16px; font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3.4vw, 32px); line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.toc { margin-top: 32px; padding: 24px 28px; border-radius: 24px; background: var(--lilac); }
.toc-title { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2 260px; column-gap: 32px; }
.toc li { break-inside: avoid; margin: 0 0 6px; font-size: 16px; line-height: 1.5; }
.toc a { text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; margin-top: 8px; border: 1px solid #dcd0ea; border-radius: 16px; }
.legal table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal th, .legal td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #e8def3; }
.legal th { background: var(--lilac); font-weight: 700; color: var(--ink); }
.legal tr:last-child td { border-bottom: 0; }

/* ---------- Feature walkthrough ---------- */
.walk-inner { max-width: 1120px; margin: 0 auto; padding: 96px 32px 72px; }
.walk .section-title { margin-bottom: 64px; text-align: center; }
.walk-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 72px; align-items: start; }
.walk-phone { position: sticky; top: 56px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.walk-phone .device { width: min(300px, 100%); transition: transform .3s ease; }
.walk-phone img { transition: opacity .25s ease; }
.walk-phone img.is-fading { opacity: 0; }
.walk-dots { display: flex; gap: 10px; }
.walk-dot { width: 10px; height: 10px; border-radius: 50%; background: #cfc3df; transition: background .2s ease, transform .2s ease; }
.walk-dot.is-active { background: var(--ink); transform: scale(1.15); }
.walk-items { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.walk-item { padding: 32px 40px; border-radius: 28px; cursor: pointer; transition: background .25s ease; }
.walk-item:hover { background: #f3eefa; }
.walk-item.is-active { background: var(--lilac); }
.walk-item h3 { margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.01em; }
.walk-item p { font-size: 19px; line-height: 1.6; color: var(--muted); }
.walk-item.is-active p { color: var(--ink-2); }

/* ---------- Footer brand ---------- */
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 24em; }
.footer-tagline { font-family: var(--font-display); font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.footer-tagline em { color: var(--accent); }
.footer-desc { font-size: 15px; line-height: 1.55; color: var(--muted); }

@media (max-width: 900px) {
  .walk-grid { grid-template-columns: 1fr; gap: 40px; }
  .walk-phone { position: static; }
}

@media (max-width: 600px) {
  .brand img { width: 72px; }
  .hero-visual { min-height: 520px; background-position: 70% 20%; }
  .phone { transform: rotate(-6deg) scale(.58); left: 44px; bottom: 5%; }
  .site-header { gap: 8px 12px; padding-top: 12px; padding-bottom: 8px; }
  .site-header .btn-dark { order: 2; min-height: 40px; padding: 0 16px; font-size: 14px; }
  .site-header .nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; gap: 22px; overflow-x: auto; white-space: nowrap; padding-bottom: 6px; scrollbar-width: none; }
  .site-header .nav::-webkit-scrollbar { display: none; }
  .site-header, .footer-inner { padding-left: 20px; padding-right: 20px; }
  .waitlist-body { padding: 32px 24px; }
  .legal { padding: 40px 20px 72px; font-size: 17px; }
  .toc { padding: 20px; }
  .walk-inner { padding: 64px 20px 56px; }
  .walk-item { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.table-wrap + p { margin-top: 20px; }
