/* Second Brain — site styles. No frameworks, no third-party requests. */

@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dmsans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --bg-2: #0f1016;
  --surface: #15161d;
  --surface-2: #1b1c25;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceef6;
  --muted: #9a9db0;
  --faint: #6b6e80;
  --brand: #6c7bff;
  --brand-2: #8f9bff;
  --brand-ink: #0b0c10;
  --done: #5dd98a;
  --warm: #ffb36b;
  --radius: 20px;
  --radius-lg: 28px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --display: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
::selection { background: rgba(108, 123, 255, 0.4); }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.grad {
  background: linear-gradient(100deg, #fff 10%, #b9c0ff 55%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(11, 12, 16, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 17px/1 var(--display);
  letter-spacing: -0.02em;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary { color: #fff; }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font: 600 15px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: var(--brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(108, 123, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { background: #7a88ff; border-color: transparent; box-shadow: 0 14px 40px -10px rgba(108, 123, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 16px;
  background: #fff;
  color: #0b0c10;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  box-shadow: 0 12px 40px -14px rgba(255, 255, 255, 0.45);
}
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -14px rgba(255, 255, 255, 0.55); }
.play-badge svg { width: 26px; height: 26px; flex: none; }
.play-badge small { display: block; font: 500 11px/1.1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; }
.play-badge strong { display: block; font: 700 18px/1.15 var(--display); letter-spacing: -0.01em; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 8vw, 96px);
  isolation: isolate;
  overflow-x: clip;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 70% 30%, rgba(108, 123, 255, 0.28), transparent 70%),
    radial-gradient(500px 360px at 15% 10%, rgba(143, 155, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.hero h1 {
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 800;
  margin: 18px 0 22px;
}
.hero .lede {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  max-width: 34em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  color: var(--faint);
  font-size: 14px;
  list-style: none;
  padding: 0;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--done); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
}

/* ---------- Phone + live widget demo ---------- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 1080 / 2280;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2c38, #121319 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 30px 120px -40px rgba(108, 123, 255, 0.55);
}
.phone > img,
.phone > .screen {
  width: 100%;
  height: 100%;
  border-radius: 35px;
  object-fit: cover;
  object-position: top;
  background: #0d0e12;
}
.hero-visual .phone { transform: rotate(-3deg); }

.demo-card {
  position: absolute;
  right: max(-8px, calc(50% - 300px));
  bottom: 9%;
  width: 250px;
  padding: 16px 16px 12px;
  border-radius: 22px;
  background: rgba(250, 250, 255, 0.97);
  color: #1d1f2b;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.4);
  transform: rotate(3deg);
  font-size: 14px;
}
.demo-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  font: 700 11px/1 var(--body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.demo-card header span { color: #8a8da0; letter-spacing: 0.02em; text-transform: none; font-weight: 500; }
.demo-card ul { list-style: none; margin: 0; padding: 0; min-height: 132px; }
.demo-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.demo-card li .tick {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #b8bbcc;
  display: grid;
  place-items: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.demo-card li .tick svg { width: 11px; height: 11px; color: #fff; opacity: 0; transition: opacity 0.2s; }
.demo-card li.done { color: #9a9cad; text-decoration: line-through; }
.demo-card li.done .tick { background: #2fbf6c; border-color: #2fbf6c; transform: scale(1.12); }
.demo-card li.done .tick svg { opacity: 1; }
.demo-card li.gone { opacity: 0; transform: translateX(28px); }
.demo-card .clock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #e6e7ef;
  font: 600 12px/1 var(--body);
  color: #8a8da0;
}
.demo-card .clock b { font: 700 13px/1 var(--display); color: #1d1f2b; font-variant-numeric: tabular-nums; }
.demo-card .fresh {
  display: none;
  padding: 26px 0 30px;
  text-align: center;
  color: #6b6e80;
  font-weight: 500;
}
.demo-card .fresh strong { display: block; font: 700 17px/1.2 var(--display); color: #1d1f2b; margin-bottom: 4px; }
.demo-card.reset ul { display: none; }
.demo-card.reset .fresh { display: block; animation: pop 0.5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .demo-card { right: 2%; bottom: 6%; width: 220px; }
}
@media (max-width: 480px) {
  .demo-card { position: relative; right: auto; bottom: auto; margin: -110px auto 0; transform: none; }
  .hero-visual { flex-direction: column; align-items: center; }
}

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 750; margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- Film ---------- */

.film-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow:
    0 0 0 1px var(--line-2),
    0 50px 120px -40px rgba(108, 123, 255, 0.5),
    0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 clamp(18px, 5%, 44px);
  border: 0;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.5));
  color: #fff;
  transition: opacity 0.3s;
}
.film-play span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: clamp(52px, 6vw, 64px);
  padding: 0 26px 0 clamp(52px, 6vw, 64px);
  position: relative;
  border-radius: 999px;
  font: 600 16px/1 var(--body);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 0 0 rgba(108, 123, 255, 0.6);
  transition: transform 0.25s var(--ease), background 0.25s;
  animation: ring 2.4s infinite;
}
.film-play:hover span { transform: scale(1.04); background: rgba(108, 123, 255, 0.75); }
.film-play svg { position: absolute; left: clamp(20px, 2.4vw, 24px); width: 20px; height: 20px; }
.film-play em { font-style: normal; white-space: nowrap; }
.film-play em small { opacity: 0.7; font-weight: 500; margin-left: 6px; }
.film-frame.playing .film-play { opacity: 0; pointer-events: none; }
@keyframes ring {
  0% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 0 0 rgba(108, 123, 255, 0.55); }
  70% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 0 22px rgba(108, 123, 255, 0); }
  100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 0 0 rgba(108, 123, 255, 0); }
}
@media (prefers-reduced-motion: reduce) { .film-play span { animation: none; } }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  margin-bottom: 26px;
  font: 700 14px/1 var(--display);
  color: var(--brand-2);
  letter-spacing: 0.08em;
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); }
.step .ic {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(108, 123, 255, 0.12);
  color: var(--brand-2);
}
.step .ic svg { width: 22px; height: 22px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Bento features ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.tile {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile h3 { font-size: 21px; margin: 16px 0 8px; }
.tile p { color: var(--muted); font-size: 16px; }
.tile .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(108, 123, 255, 0.12);
  color: var(--brand-2);
}
.tile .ic svg { width: 22px; height: 22px; }
.tile.green .ic { background: rgba(93, 217, 138, 0.12); color: var(--done); }
.tile.warm .ic { background: rgba(255, 179, 107, 0.12); color: var(--warm); }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; }
.tile.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding-right: 0;
  padding-bottom: 0;
  min-height: 300px;
  background:
    radial-gradient(400px 260px at 85% 100%, rgba(108, 123, 255, 0.25), transparent 70%),
    var(--surface);
}
.tile.feature .copy { padding-bottom: 28px; }
.tile.feature img {
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 260px;
  height: 340px;
  object-fit: cover;
  object-position: top;
  border-radius: 22px 0 0 0;
  box-shadow: -10px -10px 40px -10px rgba(0, 0, 0, 0.6);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
@media (max-width: 960px) {
  .span-2, .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: auto; }
  .tile.feature { grid-template-columns: 1fr; padding-right: 28px; }
  .tile.feature img { justify-self: center; border-radius: 22px 22px 0 0; max-width: 220px; }
  .tile.feature .copy { padding-bottom: 0; }
}

/* ---------- Gallery ---------- */

.gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 30px;
  margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure {
  flex: none;
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}
.gallery .phone { width: 236px; border-radius: 36px; padding: 8px; }
.gallery .phone > img { border-radius: 29px; }
.gallery figcaption { margin-top: 18px; font-weight: 600; font-size: 15px; }
.gallery figcaption span { display: block; color: var(--faint); font-weight: 400; font-size: 14px; margin-top: 2px; }
.gallery figure:first-child { margin-left: auto; }
.gallery figure:last-child { margin-right: auto; }
.gallery-nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.gallery-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gallery-nav button:hover { background: rgba(255, 255, 255, 0.05); }
.gallery-nav svg { width: 18px; height: 18px; }
@media (min-width: 1260px) { .gallery-nav { display: none; } }

/* ---------- Promise band ---------- */

.promise {
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  background:
    radial-gradient(500px 300px at 0% 0%, rgba(93, 217, 138, 0.14), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgba(108, 123, 255, 0.22), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.promise h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 16px; }
.promise p { color: var(--muted); }
.promise ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.promise li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 16px;
}
.promise li svg { width: 20px; height: 20px; flex: none; color: var(--done); }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .promise ul { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */

.price-card {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 48px);
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(180deg, rgba(108, 123, 255, 0.14), rgba(108, 123, 255, 0.02) 60%), var(--surface);
  border: 1px solid rgba(108, 123, 255, 0.35);
  box-shadow: 0 40px 100px -50px rgba(108, 123, 255, 0.7);
}
.price-card img { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 18px; }
.price {
  font: 800 clamp(48px, 8vw, 68px)/1 var(--display);
  letter-spacing: -0.04em;
  margin: 8px 0 6px;
}
.price small { font: 600 18px/1 var(--body); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price-card .note { color: var(--muted); font-size: 15px; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  display: grid;
  gap: 10px;
  text-align: left;
}
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { width: 20px; height: 20px; flex: none; color: var(--done); margin-top: 3px; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font: 600 18px/1.35 var(--display);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 46em; }

/* ---------- CTA + footer ---------- */

.cta {
  text-align: center;
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
  isolation: isolate;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(600px 300px at 50% 60%, rgba(108, 123, 255, 0.25), transparent 70%);
}
.cta img { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 20px 60px -15px rgba(108, 123, 255, 0.8); }
.cta h2 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; }
.cta p { color: var(--muted); font-size: 19px; margin: 16px 0 34px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  color: var(--faint);
  font-size: 14px;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer a { text-decoration: none; color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Document pages (privacy, support) ---------- */

.doc-hero {
  padding: clamp(48px, 8vw, 88px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(600px 260px at 20% 0%, rgba(108, 123, 255, 0.16), transparent 70%);
}
.doc-hero h1 { font-size: clamp(36px, 6vw, 58px); font-weight: 800; margin: 14px 0 14px; }
.doc-hero p { color: var(--muted); font-size: 18px; max-width: 40em; }
.doc-hero .meta { margin-top: 18px; font-size: 14px; color: var(--faint); }

.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  padding: clamp(40px, 6vw, 64px) 0 clamp(72px, 10vw, 112px);
}
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc p { font-weight: 700; color: var(--text); margin-bottom: 10px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--brand); }
@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}

.prose { max-width: 720px; }
.prose h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  margin: 56px 0 14px;
  scroll-margin-top: 88px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: #c7c9d6; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 14px 0; display: grid; gap: 8px; }
.prose strong { color: var(--text); }
.prose a { color: var(--brand-2); text-underline-offset: 3px; }
.prose code { font-size: 0.92em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }

.summary-card {
  padding: 24px 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(93, 217, 138, 0.09), rgba(93, 217, 138, 0.02)), var(--surface);
  border: 1px solid rgba(93, 217, 138, 0.25);
  margin-bottom: 48px;
}
.summary-card h2 { margin: 0 0 12px !important; font-size: 20px !important; }
.summary-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.summary-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.summary-card li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--done); }

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #c7c9d6; }
.prose th { color: var(--text); background: var(--surface); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

.callout {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(64px, 14vw, 140px); font-weight: 800; }
.notfound p { color: var(--muted); margin: 12px 0 28px; font-size: 18px; }
