/* Synapse — marketing site.
   Editorial, light, typographic. Fraunces for display, Instrument Sans for text,
   one violet ink, hairline rules instead of cards. */

:root {
  --paper: #FAF8F3;
  --paper-2: #F2EEE4;
  --ink: #1B1730;
  --ink-band: #191530;
  --body-c: #4C4664;
  --faint: #857FA0;
  --violet: #5747C6;
  --violet-deep: #43349F;
  --violet-soft: #B7ACFF;
  --hairline: rgba(27, 23, 48, 0.16);
  --hairline-strong: rgba(27, 23, 48, 0.5);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  background: var(--paper);
  color: var(--body-c);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--violet); color: var(--paper); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.kicker {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--violet);
}

/* ---------- buttons & text links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 14px 26px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--violet-deep); }
.btn-ghost { border-color: var(--hairline-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.tlink {
  font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--hairline-strong);
  text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.tlink:hover { color: var(--violet); text-decoration-color: var(--violet); }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 550; font-size: 21px; color: var(--ink); }
.brand .glyph { width: 27px; height: 27px; color: var(--violet); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { color: var(--body-c); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a.link:hover { color: var(--ink); }
.nav-links .btn { padding: 10px 18px; font-size: 14.5px; }
@media (max-width: 720px) { .nav-links .link { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 104px 0 72px; text-align: center; }
.hero .kicker::after {
  content: ''; display: block; width: 34px; height: 1.5px;
  background: var(--violet); margin: 14px auto 0; opacity: 0.5;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 84px); line-height: 1.03;
  margin: 26px auto 0; max-width: 13ch; font-weight: 480;
}
.hero h1 em { font-style: italic; font-weight: 420; color: var(--violet); }
.hero .lede {
  font-size: clamp(17px, 2.2vw, 20px); margin: 26px auto 0; max-width: 58ch;
}
.hero .actions { display: flex; gap: 26px; justify-content: center; align-items: center; margin-top: 38px; flex-wrap: wrap; }
.fineprint {
  margin-top: 22px; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}

/* store badges */
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
  border: 1.5px solid var(--hairline-strong); border-radius: 12px;
  color: var(--ink); background: transparent;
  transition: border-color .18s ease, background .18s ease;
}
.store-badge:hover { border-color: var(--ink); background: rgba(27, 23, 48, 0.03); }
.store-badge.soon { border-style: dashed; border-color: var(--hairline); opacity: 0.75; cursor: default; }
.store-badge.soon:hover { border-color: var(--hairline); background: transparent; }
.store-badge.soon svg { opacity: 0.55; }
.store-badge.soon .txt b { color: var(--body-c); }
.store-badge svg { width: 22px; height: 22px; flex: none; }
.store-badge .txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge .txt small { font-size: 10.5px; font-weight: 500; color: var(--faint); }
.store-badge .txt b { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.badges .beta { width: 100%; text-align: center; font-size: 13.5px; color: var(--faint); margin-top: 4px; }
.badges .beta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.badges .beta a:hover { color: var(--violet); }

/* phone showcase */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 30px; margin-top: 78px; }
.phone {
  width: 246px; border-radius: 40px; overflow: hidden; flex: none;
  border: 7px solid #221D3C; background: #0b0d1a;
  box-shadow: 0 30px 70px rgba(27, 23, 48, 0.22), 0 6px 18px rgba(27, 23, 48, 0.12);
}
.phone img { width: 100%; display: block; }
.phone.mid { transform: translateY(-22px); z-index: 2; }
.phone.left { transform: rotate(-2.4deg) translateY(8px); }
.phone.right { transform: rotate(2.4deg) translateY(8px); }
@media (max-width: 900px) { .phone.left { display: none; } .phone { width: 232px; } }
@media (max-width: 560px) { .phone.right { display: none; } .phone.mid { transform: none; } }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 64ch; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; margin-top: 16px; }
.section-head p { font-size: 17.5px; margin-top: 16px; max-width: 58ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* problem band */
.band-quote { background: var(--ink-band); color: var(--paper); padding: 92px 0; }
.band-quote .kicker { color: var(--violet-soft); opacity: 0.9; }
.band-quote .quote {
  font-family: var(--serif); font-weight: 420;
  font-size: clamp(24px, 3.4vw, 38px); line-height: 1.32;
  max-width: 30ch; margin-top: 22px; color: var(--paper);
}
.band-quote .quote em { font-style: italic; color: var(--violet-soft); }
.band-quote .quote-source {
  margin-top: 24px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(250, 248, 243, 0.45);
}

/* the atomic unit — 3D scene */
.scene { height: 470px; perspective: 1200px; display: grid; place-items: center; margin-top: 8px; }
.stage { position: relative; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-16deg); }
.orbit { position: absolute; transform-style: preserve-3d; animation: orbit-spin 46s linear infinite; }
.sat { position: absolute; transform-style: preserve-3d; transform: rotateY(var(--a)) translateZ(330px); }
.chip {
  position: absolute; display: flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 11px 16px; border-radius: 12px; background: #fff;
  border: 1px solid var(--hairline); box-shadow: 0 14px 30px rgba(27, 23, 48, 0.10);
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  animation: billboard 46s linear infinite;
}
.chip svg { width: 19px; height: 19px; color: var(--violet); flex: none; }
@keyframes orbit-spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes billboard {
  from { transform: translate(-50%, -50%) rotateY(calc(-1 * var(--a))) rotateX(16deg); }
  to   { transform: translate(-50%, -50%) rotateY(calc(-1 * var(--a) - 360deg)) rotateX(16deg); }
}
.enc {
  position: absolute; width: 252px; text-align: center;
  background: var(--paper); border: 1.5px solid var(--hairline-strong); border-radius: 18px;
  padding: 22px 24px 18px; box-shadow: 0 30px 60px rgba(27, 23, 48, 0.14);
  animation: enc-bob 7s ease-in-out infinite;
}
@keyframes enc-bob {
  0%, 100% { transform: translate3d(-50%, -53%, 90px) rotateX(16deg); }
  50%      { transform: translate3d(-50%, -47%, 90px) rotateX(16deg); }
}
.enc-kicker { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet); }
.enc-title { font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--ink); margin-top: 6px; }
.enc-glyph { width: 108px; margin: 12px auto 4px; display: block; }
.enc-glyph circle { fill: var(--violet); }
.enc-glyph .wire { stroke: rgba(87, 71, 198, 0.30); }
.enc-glyph .fire line { stroke: var(--violet); stroke-linecap: round; stroke-dasharray: 14 86; stroke-dashoffset: 100; animation: fire 3.6s linear infinite; }
.enc-glyph .fire line:nth-child(2) { animation-delay: 1.2s; }
.enc-glyph .fire line:nth-child(3) { animation-delay: 2.4s; }
@keyframes fire { to { stroke-dashoffset: 0; } }
.enc-names { font-size: 13px; color: var(--faint); font-weight: 500; margin-top: 6px; }
@media (max-width: 860px) {
  .scene { height: 380px; }
  .stage { transform: rotateX(-16deg) scale(0.6); }
}
@media (prefers-reduced-motion: reduce) {
  .orbit, .chip, .enc, .enc-glyph .fire line { animation: none; }
  .chip { transform: translate(-50%, -50%) rotateY(calc(-1 * var(--a))) rotateX(16deg); }
  .enc { transform: translate3d(-50%, -50%, 90px) rotateX(16deg); }
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--hairline-strong); padding-top: 20px; }
.step .n { font-family: var(--serif); font-style: italic; font-weight: 450; font-size: 26px; color: var(--violet); }
.step h4 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 12px 0 6px; }
.step p { font-size: 15px; line-height: 1.6; }

/* feature pillars */
.pillar { display: grid; grid-template-columns: 270px 1fr; gap: 64px; align-items: start; }
.pillar + .pillar { margin-top: 88px; }
.pillar-head { position: sticky; top: 96px; }
.pillar-head h3 { font-family: var(--serif); font-weight: 500; font-size: 29px; line-height: 1.2; color: var(--ink); margin-top: 14px; letter-spacing: -0.01em; }
.pillar-head p { font-size: 15.5px; margin-top: 12px; }
.pillar-head .science { margin-top: 22px; border-top: 1px solid var(--hairline); padding-top: 16px; }
.pillar-head .science p { font-family: var(--serif); font-style: italic; font-weight: 450; font-size: 16px; line-height: 1.5; color: var(--ink); margin: 0; }
.src {
  display: block; margin-top: 10px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}
.flist { border-top: 1px solid var(--hairline-strong); }
.feature {
  display: grid; grid-template-columns: 46px 1fr; gap: 22px;
  padding: 26px 0; border-bottom: 1px solid var(--hairline);
}
.feature .fico { color: var(--violet); padding-top: 3px; }
.feature .fico svg { width: 28px; height: 28px; display: block; }
.feature h3 { font-size: 17.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.feature p { font-size: 15.5px; margin-top: 5px; max-width: 60ch; }
@media (max-width: 900px) {
  .pillar { grid-template-columns: 1fr; gap: 28px; }
  .pillar-head { position: static; }
}

/* vignettes */
.band-tint { background: var(--paper-2); border-block: 1px solid var(--hairline); }
.vignettes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px 44px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 900px) { .vignettes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .vignettes { grid-template-columns: 1fr; gap: 26px; } }
.vignette {
  border-left: 2px solid var(--violet); padding-left: 20px;
  font-family: var(--serif); font-weight: 450; font-size: 19px; line-height: 1.45; color: var(--ink);
}
.vignette em { font-style: italic; color: var(--violet); }

/* facts (why it matters) */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 900px; margin: 0 auto 72px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 32px; } }
.fact { border-top: 2px solid var(--violet); padding-top: 18px; }
.fact p { font-family: var(--serif); font-weight: 450; font-size: 19px; line-height: 1.5; color: var(--ink); }

/* plans (Synapse+) */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; gap: 44px; } }
.plan { border-top: 2px solid var(--ink); padding-top: 22px; }
.plan.featured { border-top-color: var(--violet); }
.plan h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--ink); }
.plan .plan-sub { font-size: 15px; color: var(--faint); margin: 4px 0 14px; }
.plan ul { list-style: none; }
.plan li {
  font-size: 15.5px; padding: 11px 0 11px 26px; position: relative;
  border-bottom: 1px solid var(--hairline);
}
.plan li::before {
  content: '–'; position: absolute; left: 2px;
  color: var(--faint); font-weight: 500;
}
.plan.featured li::before { content: '+'; color: var(--violet); font-weight: 600; }

/* privacy band */
.band-ink { background: var(--ink-band); color: rgba(250, 248, 243, 0.78); }
.band-ink .kicker { color: var(--violet-soft); }
.band-ink h2 { color: var(--paper); }
.band-ink .section-head p { color: rgba(250, 248, 243, 0.72); }
.commitments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; margin-top: 12px; }
@media (max-width: 860px) { .commitments { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .commitments { grid-template-columns: 1fr; } }
.commit { border-top: 1px solid rgba(250, 248, 243, 0.28); padding-top: 14px; }
.commit b { display: block; color: var(--paper); font-weight: 600; font-size: 15.5px; }
.commit span { display: block; font-size: 14px; line-height: 1.55; margin-top: 4px; color: rgba(250, 248, 243, 0.62); }
.band-ink .tlink { color: var(--paper); text-decoration-color: rgba(250, 248, 243, 0.4); }
.band-ink .tlink:hover { color: var(--violet-soft); text-decoration-color: var(--violet-soft); }

/* final CTA */
.cta-final { text-align: center; padding: 30px 0 10px; }
.cta-final h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; max-width: 17ch; margin: 0 auto; }
.cta-final h2 em { font-style: italic; font-weight: 420; color: var(--violet); }
.cta-final p { font-size: 17.5px; margin: 20px auto 32px; max-width: 46ch; }
.cta-final .actions { display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* footer */
footer { border-top: 1px solid var(--hairline); padding: 44px 0 56px; }
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.foot small { display: block; margin-top: 8px; font-size: 13.5px; color: var(--faint); }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; padding-top: 6px; }
.foot-links a { color: var(--body-c); font-size: 14.5px; }
.foot-links a:hover { color: var(--violet); }

/* reveal on scroll (index only; guarded for reduced motion) */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- legal & support pages ---------- */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 720px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); }
.legal .updated { color: var(--faint); margin-top: 10px; font-size: 14.5px; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; }
.legal h3 { font-size: 16.5px; font-weight: 600; color: var(--ink); margin: 26px 0 8px; }
.legal p, .legal li { font-size: 16px; color: var(--body-c); }
.legal ul { margin: 10px 0 10px 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal a:hover { color: var(--violet-deep); }
.legal .back {
  display: inline-flex; align-items: center; gap: 7px; color: var(--faint);
  margin-bottom: 30px; font-weight: 500;
}
.legal .back:hover { color: var(--ink); }
.legal .callout {
  background: var(--paper-2); border: 1px solid var(--hairline);
  border-left: 3px solid var(--violet); border-radius: 10px;
  padding: 18px 22px; margin: 26px 0;
}

/* 404 */
.notfound { min-height: 76vh; display: flex; align-items: center; text-align: center; }
.notfound .wrap { width: 100%; }
.notfound h1 { font-size: clamp(56px, 10vw, 120px); font-weight: 480; }
.notfound p { font-size: 18px; margin: 14px 0 30px; }
.notfound .glyph { width: 60px; height: 60px; color: var(--violet); margin: 0 auto 20px; }
