/* StoryFlow — shared stylesheet */
:root {
  --bg: #0b0a0f;
  --bg-2: #13111a;
  --surface: #1a1722;
  --line: rgba(255,255,255,.08);
  --text: #f4f1f6;
  --muted: #a39dad;
  --accent: #e2366f;
  --accent-2: #ff7a59;
  --grad: linear-gradient(135deg, #e2366f 0%, #ff7a59 100%);
  --radius: 18px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { 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(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; color: #000; padding: 8px 12px; z-index: 99; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,10,15,.78); backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 18px; }
.brand-mark {
  width: 26px; height: 34px; border-radius: 7px; background: var(--grad);
  position: relative; box-shadow: 0 6px 18px rgba(226,54,111,.35);
}
.brand-mark::after {
  content: ""; position: absolute; left: 10px; top: 11px;
  border-left: 8px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(226,54,111,.28), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -260px; width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(255,122,89,.12), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 112px 0 128px; } .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 72px; } }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600; margin-bottom: 22px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
.hero h1 { font-size: clamp(42px, 8vw, 76px); }
.hero h1 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lede { color: var(--muted); font-size: clamp(18px, 2.2vw, 20px); max-width: 34em; margin: 26px 0 36px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04);
  color: var(--text); font: inherit; cursor: default; text-align: left; line-height: 1.2;
}
.badge small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.badge strong { font-size: 17px; font-weight: 600; }
.badge svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.soon-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Phone mockups with real app screens */
.phone-stage {
  position: relative; display: flex; justify-content: flex-end; align-items: flex-start;
  width: 100%; max-width: 330px; margin: 0 auto; padding: 8px 0 24px;
}
.phone {
  margin: 0; position: relative; width: 210px; border-radius: 38px; padding: 8px;
  background: linear-gradient(160deg, #2c2834, #0f0d13);
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.09) inset;
}
.screen {
  position: relative; aspect-ratio: 1 / 2.05; border-radius: 31px; overflow: hidden; background: #000;
}
.screen picture, .screen img { display: block; width: 100%; height: 100%; }
.screen img { object-fit: cover; object-position: top center; }
.screen::before { /* dynamic island */
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 31%; height: 20px; border-radius: 20px; background: #000; z-index: 2;
}
.screen::after { /* glass sheen */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.07) 0%, transparent 28%);
}
.phone--front {
  z-index: 2; transform: rotate(3deg);
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.09) inset, 0 30px 110px -30px rgba(226,54,111,.5);
}
.phone--back {
  position: absolute; left: 0; top: 44px; z-index: 1; width: 176px;
  transform: rotate(-7deg); filter: brightness(.8) saturate(.95);
}
@media (min-width: 900px) {
  .phone-stage { max-width: 460px; margin: 0 0 0 auto; padding: 0; }
  .phone { width: 270px; border-radius: 44px; padding: 10px; }
  .screen { border-radius: 35px; }
  .screen::before { top: 10px; height: 24px; }
  .phone--back { width: 232px; top: 64px; }
}

/* Sections */
section { padding: 72px 0; }
@media (min-width: 820px) { section { padding: 104px 0; } }
.section-head { max-width: 40em; margin-bottom: 44px; }
@media (min-width: 820px) { .section-head { margin-bottom: 56px; } }
.section-head h2 { font-size: clamp(32px, 5vw, 48px); }
.section-head p { color: var(--muted); margin: 18px 0 0; font-size: 18px; }
.features { border-top: 1px solid var(--line); }
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card {
  padding: 34px 30px 36px; border-radius: var(--radius); background: var(--bg-2);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.card .num { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--accent-2); }
.card h3 { font-size: 26px; margin: 16px 0 12px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

.statement { text-align: center; padding: 96px 0; background: linear-gradient(180deg, var(--bg) 0%, #150c14 50%, var(--bg) 100%); }
.statement blockquote { margin: 0 auto; max-width: 18em; font-family: var(--serif); font-size: clamp(30px, 5vw, 52px); line-height: 1.15; letter-spacing: -.02em; }
.statement blockquote em { color: var(--accent-2); display: block; }

.cta { text-align: center; }
.cta h2 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 18px; }
.cta p { color: var(--muted); margin: 0 auto 32px; max-width: 32em; }
.cta .badges { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 22px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.nowrap { white-space: nowrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Documents (legal / support) */
.doc-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 85% 0%, rgba(226,54,111,.16), transparent 70%); }
.doc-hero h1 { font-size: clamp(36px, 6vw, 56px); }
.doc-meta { color: var(--muted); margin-top: 16px; font-size: 15px; }
.lang-switch { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--accent-2); text-decoration: none; border-bottom: 1px solid rgba(255,122,89,.4); }
.doc { padding: 56px 0 96px; }
.doc .wrap, .doc-hero .wrap { max-width: 760px; }
.doc h2 { font-size: 28px; margin: 56px 0 16px; scroll-margin-top: 90px; }
.doc h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: 0; margin: 28px 0 8px; }
.doc p, .doc li { color: #d6d1dc; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.doc strong { color: var(--text); }
.doc a { color: var(--accent-2); text-underline-offset: 3px; }
.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 8px; }
.toc p { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; columns: 1; font-size: 15px; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc a { color: #d6d1dc; text-decoration: none; }
.toc a:hover { color: var(--text); }
.callout { border-left: 3px solid var(--accent); background: rgba(226,54,111,.07); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.ph { color: #ffb199; } /* placeholder highlight */

.support-grid { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 720px) { .support-grid { grid-template-columns: 1fr 1fr; } }
.support-grid .card a { color: var(--accent-2); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent-2); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 560px) { .hero { padding: 56px 0 64px; } .hero .wrap { gap: 44px; } }
