/* Lockdown — site styles
   Mirrors the app's design system: Ink/Graphite type on a white (or black) ground,
   one diffused field of warm light per section, glass only on things you touch. */

:root {
  /* Neutrals */
  --ground: #ffffff;
  --ink: #111113;
  --graphite: #5e5e66;
  --fill: #f2f2f4;
  --fill-selected: #ffffff;
  --track: rgba(0, 0, 0, 0.1);
  --hairline: rgba(0, 0, 0, 0.08);

  /* Atmosphere */
  --rose: #dc8e9c;
  --coral: #f9967d;
  --peach: #f8d2b9;
  --apricot: #f8be7e;
  --yellow: #fae8a2;
  --lavender: #d8ceee;

  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.7);
  --shadow: 0 1px 2px rgba(17, 17, 19, 0.04), 0 8px 24px rgba(17, 17, 19, 0.06);
  --phone-shadow: drop-shadow(0 40px 60px rgba(80, 40, 20, 0.16)) drop-shadow(0 8px 16px rgba(17, 17, 19, 0.08));

  /* 4-pt scale, as in the app */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px;
  --margin: 20px;
  --radius: 22px;
  --capsule: 52px;
  --max: 1180px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #000000;
    --ink: #f5f5f7;
    --graphite: #a3a3ab;
    --fill: #1c1c1e;
    --fill-selected: #48484d;
    --track: rgba(255, 255, 255, 0.16);
    --hairline: rgba(255, 255, 255, 0.1);
    --rose: #9d3d59;
    --coral: #ca5843;
    --peach: #a95d3a;
    --apricot: #ca7e31;
    --yellow: #d1ac4e;
    --lavender: #674f8d;
    --glass: rgba(28, 28, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4);
    --phone-shadow: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(202, 88, 67, 0.12));
  }
}

:root[data-theme="dark"] {
  --ground: #000000;
  --ink: #f5f5f7;
  --graphite: #a3a3ab;
  --fill: #1c1c1e;
  --fill-selected: #48484d;
  --track: rgba(255, 255, 255, 0.16);
  --hairline: rgba(255, 255, 255, 0.1);
  --rose: #9d3d59;
  --coral: #ca5843;
  --peach: #a95d3a;
  --apricot: #ca7e31;
  --yellow: #d1ac4e;
  --lavender: #674f8d;
  --glass: rgba(28, 28, 30, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4);
  --phone-shadow: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(202, 88, 67, 0.12));
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }

.skip {
  position: absolute; left: var(--s4); top: -60px; z-index: 100;
  background: var(--ink); color: var(--ground); padding: var(--s2) var(--s4); border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: var(--s4); }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--margin); }
@media (min-width: 720px) { .wrap { padding: 0 var(--s8); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 15px; font-weight: 500; color: var(--graphite); letter-spacing: -0.005em;
}
.muted { color: var(--graphite); }

/* ---------- Atmosphere: one diffused field of light ---------- */
.atmosphere { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow {
  position: absolute; border-radius: 50%;
  background: radial-gradient(closest-side, var(--c) 0%, color-mix(in srgb, var(--c) 62%, transparent) 32%, color-mix(in srgb, var(--c) 16%, transparent) 68%, transparent 100%);
  filter: blur(8px);
  opacity: var(--o, 1);
  transform: translate(-50%, -50%);
  will-change: transform;
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .glow { background: radial-gradient(closest-side, var(--c), transparent); }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glow { opacity: calc(var(--o, 1) * 0.9); } }

.rings {
  position: absolute; border-radius: 50%; transform: translate(-50%, -50%);
  background: repeating-radial-gradient(circle, transparent 0 calc(12.5% - 1px), rgba(255, 255, 255, 0.45) calc(12.5% - 1px) 12.5%);
  -webkit-mask: radial-gradient(circle, #000 0 70.5%, transparent 71%);
          mask: radial-gradient(circle, #000 0 70.5%, transparent 71%);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: var(--s3) 0;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--ground) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--hairline);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.14)); }
.nav-links { display: none; gap: var(--s8); list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--graphite); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ---------- Buttons (capsules, like the app) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 var(--s5);
  border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--ground); box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 6px 20px rgba(17,17,19,.18); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,.1), 0 12px 28px rgba(17,17,19,.22); }
.btn-glass {
  background: var(--glass); color: var(--ink);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow);
}
.btn-lg { min-height: var(--capsule); padding: 0 var(--s6); font-size: 17px; }

.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 26px 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--ground); text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 10px 30px rgba(17,17,19,.2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.1), 0 16px 40px rgba(17,17,19,.26); }
.store:active { transform: scale(.98); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font-size: 12px; font-weight: 500; opacity: .75; letter-spacing: 0; }
.store strong { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.store[aria-disabled="true"] { cursor: default; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 128px 0 0; overflow: hidden; isolation: isolate; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: var(--s12); align-items: center; }
.hero-copy { max-width: 620px; }
.hero h1 { font-size: clamp(52px, 9vw, 104px); letter-spacing: -0.045em; line-height: 0.98; margin-top: var(--s5); }
.hero .lede { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; color: var(--graphite); margin-top: var(--s6); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin-top: var(--s8); }
.hero-note { font-size: 14px; color: var(--graphite); }

.pill {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.pill b { background: var(--ink); color: var(--ground); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }

.hero-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.hero-stage .phone { width: min(78vw, 340px); position: relative; z-index: 2; }
.hero-stage .phone.back { position: absolute; width: min(64vw, 280px); z-index: 1; opacity: .96; }
.hero-stage .phone.back.left { transform: translate(-58%, -6%) rotate(-6deg); }
.hero-stage .phone.back.right { transform: translate(58%, -6%) rotate(6deg); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--ground)); z-index: 3; pointer-events: none; }

@media (min-width: 1120px) {
  .hero { padding-top: 160px; }
  .hero .wrap { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .hero h1 { font-size: clamp(64px, 6.6vw, 100px); }
  .hero-stage { min-height: 720px; }
  .hero-stage .phone { width: 340px; }
  .hero-stage .phone.back { width: 270px; }
  .hero-stage .phone.back.left { transform: translate(-44%, -5%) rotate(-6deg); }
  .hero-stage .phone.back.right { transform: translate(44%, -5%) rotate(6deg); }
}
@media (max-width: 1119px) {
  .hero-copy { margin: 0 auto; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
}
@media (max-width: 560px) {
  .hero-stage .phone.back { display: none; }
  .hero-stage { min-height: 0; }
}

.phone { filter: var(--phone-shadow); }
picture { display: contents; }
picture.phone { display: block; }
picture.phone img { width: 100%; }

/* ---------- Trust strip ---------- */
.strip { position: relative; z-index: 4; padding: var(--s12) 0 0; }
.strip ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s6);
}
.strip li { display: flex; align-items: center; gap: var(--s3); font-size: 15px; color: var(--graphite); font-weight: 500; }
.strip svg { width: 22px; height: 22px; color: var(--ink); flex: none; }
@media (min-width: 860px) { .strip ul { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
section { position: relative; overflow-x: clip; }
main, .footer { overflow-x: clip; }
.section { padding: 112px 0; }
@media (min-width: 860px) { .section { padding: 160px 0; } }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section h2, .band h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; margin-top: var(--s4); }
.section .sub, .band .sub { font-size: clamp(18px, 2vw, 21px); color: var(--graphite); margin-top: var(--s5); line-height: 1.5; }
.section-head.center .sub { margin-left: auto; margin-right: auto; max-width: 40ch; }

/* How it works */
.steps { list-style: none; padding: 0; margin: var(--s16) 0 0; display: grid; gap: var(--s4); counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.step {
  position: relative; overflow: hidden; isolation: isolate;
  padding: var(--s8); border-radius: 28px; background: var(--fill);
  min-height: 320px; display: flex; flex-direction: column;
}
.step .num {
  font-size: 96px; font-weight: 400; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 26px; margin-top: auto; letter-spacing: -0.025em; }
.step p { color: var(--graphite); margin-top: var(--s3); font-size: 16px; }
.step .chips { display: flex; gap: 6px; margin-top: var(--s5); background: var(--ground); padding: 4px; border-radius: 999px; width: fit-content; }
.step .chips span { padding: 6px 14px; border-radius: 999px; font-size: 14px; font-variant-numeric: tabular-nums; }
.step .chips .on { background: var(--fill); font-weight: 600; box-shadow: var(--shadow); }
.step .glow { --o: .5; }

/* Showcase rows */
.showcase { display: grid; gap: var(--s16); margin-top: var(--s16); }
.row { display: grid; gap: var(--s8); align-items: center; }
.row .media { position: relative; display: flex; justify-content: center; padding: var(--s8) 0; isolation: isolate; }
.row .media img { width: min(76vw, 340px); position: relative; z-index: 1; }
.row .copy { max-width: 480px; }
.row h3 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.035em; margin-top: var(--s3); }
.row p { color: var(--graphite); font-size: 18px; margin-top: var(--s4); }
.row .quote {
  font-size: 22px !important; font-weight: 700 !important; letter-spacing: -0.02em;
  margin-top: var(--s6); padding: var(--s4) var(--s5); border-radius: 18px; background: var(--fill);
  font-size: 16px; color: var(--ink); font-weight: 500;
}
.row .quote small { display: block; color: var(--graphite); font-weight: 400; margin-top: 4px; font-size: 15px; letter-spacing: -0.005em; }
.ticks { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; gap: var(--s3); }
.ticks li { display: flex; gap: var(--s3); align-items: flex-start; font-size: 16px; }
.ticks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; gap: var(--s16); }
  .row.flip .media { order: 2; }
  .row .media img { width: 360px; }
}

/* Features grid */
.grid { display: grid; gap: var(--s4); margin-top: var(--s16); }
@media (min-width: 680px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: var(--s8); border-radius: var(--radius); background: var(--fill);
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-3px); }
.card .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ground); box-shadow: var(--shadow);
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 21px; letter-spacing: -0.02em; margin-top: var(--s6); line-height: 1.2; }
.card p { color: var(--graphite); font-size: 16px; margin-top: var(--s2); }
.card.wide { grid-column: 1 / -1; }
@media (min-width: 1000px) { .card.wide { grid-column: span 2; } }

/* Gallery */
.gallery-wrap { margin-top: var(--s12); }
.toggle {
  display: inline-flex; padding: 4px; border-radius: 999px; background: var(--fill); position: relative;
}
.toggle button {
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; cursor: pointer; min-height: 44px;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.toggle button[aria-pressed="true"] { background: var(--fill-selected); font-weight: 600; box-shadow: var(--shadow); }
.gallery {
  display: flex; gap: var(--s6); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--s12) var(--margin) var(--s16); margin: 0 calc(var(--margin) * -1);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: none; width: 260px; scroll-snap-align: center; text-align: center; }
.gallery img { width: 100%; }
.gallery figcaption { margin-top: var(--s5); font-size: 15px; color: var(--graphite); }
.gallery figcaption strong { display: block; color: var(--ink); font-weight: 600; font-size: 17px; }
@media (min-width: 1100px) {
  .gallery { justify-content: center; overflow: visible; margin: 0; padding-left: 0; padding-right: 0; }
  .gallery figure { width: 250px; }
  .gallery figure:nth-child(even) { transform: translateY(48px); }
}
.gallery [data-variant] { transition: opacity .5s var(--ease); }

/* Privacy band */
.band { padding: 0 var(--s3); }
@media (min-width: 720px) { .band { padding: 0 var(--s5); } }
.band-inner {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 36px; background: #000; color: #f5f5f7;
  padding: 96px 0;
}
.band-inner .muted { color: #a3a3ab; }
.band-inner h2 { color: #f5f5f7; }
.band .grid { margin-top: var(--s12); }
.band .card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.band .card p { color: #a3a3ab; }
.band .card .ico { background: rgba(255, 255, 255, 0.08); box-shadow: none; color: #f5f5f7; }
.band .glow { --o: .9; }
@media (min-width: 860px) { .band-inner { padding: 140px 0; border-radius: 48px; } }

/* FAQ */
.faq { max-width: 820px; margin: var(--s12) auto 0; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--s6) 0;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  font-size: 19px; font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 var(--s6); color: var(--graphite); font-size: 17px; max-width: 64ch; }
.faq .answer p + p { margin-top: var(--s3); }

/* CTA */
.cta { text-align: center; overflow: hidden; isolation: isolate; padding-bottom: 120px; }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(56px, 10vw, 128px); letter-spacing: -0.05em; }
.cta .sub { margin: var(--s5) auto 0; max-width: 34ch; }
.cta .hero-cta { justify-content: center; }
.cta .icon { width: 128px; height: 128px; margin: 0 auto var(--s8); filter: drop-shadow(0 20px 30px rgba(120, 60, 30, .2)); }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; isolation: isolate; padding: var(--s16) 0 var(--s8); border-top: 1px solid var(--hairline); }
.footer .top { display: grid; gap: var(--s12); }
@media (min-width: 900px) { .footer .top { grid-template-columns: 1.3fr 2fr; } }
.footer .about p { color: var(--graphite); margin-top: var(--s4); max-width: 34ch; font-size: 16px; }
.footer .about .store { margin-top: var(--s6); min-height: 52px; }
.footer .about .store strong { font-size: 17px; }
.footer .cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s8); }
@media (min-width: 640px) { .footer .cols { grid-template-columns: repeat(3, 1fr); } }
.footer h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--graphite); }
.footer ul { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s3); }
.footer ul a { text-decoration: none; font-size: 16px; font-weight: 500; transition: opacity .2s; }
.footer ul a:hover { opacity: .6; }
.footer .wordmark {
  margin-top: var(--s16); position: relative;
  font-size: clamp(64px, 19vw, 248px); font-weight: 750; letter-spacing: -0.06em; line-height: .8; white-space: nowrap;
  text-align: center; user-select: none;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 28%, color-mix(in srgb, var(--coral) 85%, var(--ink)) 70%, color-mix(in srgb, var(--apricot) 40%, transparent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.footer .bottom {
  margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--graphite);
}
.footer .bottom a { text-decoration: none; }
.footer .bottom a:hover { color: var(--ink); }
.footer .bottom .links { display: flex; gap: var(--s5); flex-wrap: wrap; }
.footer .status { display: inline-flex; align-items: center; gap: var(--s2); }
.footer .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 25%, transparent); }

/* ---------- Legal / text pages ---------- */
.doc { position: relative; padding: 140px 0 var(--s16); isolation: isolate; overflow: hidden; }
.doc .wrap { max-width: 760px; position: relative; z-index: 1; }
.doc h1 { font-size: clamp(44px, 7vw, 72px); letter-spacing: -0.045em; margin-top: var(--s4); }
.doc .meta { color: var(--graphite); margin-top: var(--s4); font-size: 15px; }
.doc .summary { margin-top: var(--s8); padding: var(--s6); border-radius: var(--radius); background: var(--fill); }
.doc .summary h2 { font-size: 15px; letter-spacing: 0; text-transform: uppercase; letter-spacing: .06em; color: var(--graphite); margin: 0; font-weight: 600; }
.doc .summary ul { margin: var(--s3) 0 0; padding-left: 1.1em; }
.doc .summary li { margin-top: var(--s2); }
.prose { margin-top: var(--s12); font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: 26px; letter-spacing: -0.025em; margin: var(--s12) 0 var(--s4); line-height: 1.2; }
.prose h3 { font-size: 19px; letter-spacing: -0.015em; margin: var(--s8) 0 var(--s3); line-height: 1.3; }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s4); color: color-mix(in srgb, var(--ink) 82%, var(--graphite)); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: var(--s2); }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.toc { margin-top: var(--s8); display: flex; flex-wrap: wrap; gap: var(--s2); }
.toc a { text-decoration: none; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: var(--fill); font-weight: 500; }
.toc a:hover { background: var(--fill-selected); box-shadow: var(--shadow); }

.contact-card {
  margin-top: var(--s8); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s6); border-radius: var(--radius); background: var(--fill);
}
.contact-card strong { display: block; font-size: 19px; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@keyframes drift { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-48%, -52%) scale(1.06); } }
.glow.drift { animation: drift 14s ease-in-out infinite; }
.glow.drift.slow { animation-duration: 20s; animation-delay: -6s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: opacity .25s; }
  .glow.drift { animation: none; }
  * { transition-duration: .25s !important; }
}
@media (prefers-reduced-transparency: reduce) { .glow { opacity: calc(var(--o, 1) * .5); } }
@media (prefers-contrast: more) {
  :root { --graphite: #45454c; --hairline: rgba(0,0,0,.2); }
}

/* ---------- Study circles ---------- */
a.pill { text-decoration: none; transition: transform .25s var(--ease); }
a.pill:hover { transform: translateY(-1px); }
.tag { background: var(--ink); color: var(--ground); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }

.circles-hero { display: grid; gap: var(--s12); align-items: center; }
.circles-hero h2 { font-size: clamp(48px, 7.4vw, 92px); letter-spacing: -0.045em; }
.circles-hero .copy { max-width: 520px; }
@media (min-width: 960px) { .circles-hero { grid-template-columns: 1fr 1.05fr; gap: var(--s16); } }

.duo { position: relative; display: flex; justify-content: center; padding: var(--s8) 0; isolation: isolate; min-height: 560px; }
.duo .phone { position: relative; z-index: 1; display: block; }
.duo .phone img { width: 100%; }
.duo .phone.front { width: min(70vw, 330px); transform: translateX(14%); z-index: 2; }
.duo .phone.back { position: absolute; width: min(56vw, 270px); left: 50%; top: 50%; transform: translate(-92%, -46%) rotate(-5deg); opacity: .98; }
@media (max-width: 520px) {
  .duo .phone.back { display: none; }
  .duo .phone.front { transform: none; }
  .duo { min-height: 0; }
}

.notif {
  margin-top: var(--s8); display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  position: relative; max-width: 420px; padding: 14px 16px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 1px 2px rgba(17,17,19,.05), 0 16px 40px rgba(120,60,30,.12);
}
.notif picture { display: block; grid-column: 1; grid-row: 1; line-height: 0; }
.notif img { width: 40px; height: 40px; }
.notif > div { grid-column: 2; grid-row: 1; min-width: 0; }
.notif .notif-btn { grid-column: 3; grid-row: 1; }
.notif strong { display: block; font-size: 16px; letter-spacing: -0.01em; }
.notif span { color: var(--graphite); font-size: 15px; }
.notif .notif-btn {
  color: var(--ink); font-weight: 600; font-size: 14px; padding: 7px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--lavender) 70%, var(--ground));
}
.notif time { position: absolute; top: 10px; right: 16px; font-size: 12px; color: var(--graphite); display: none; }
.circles .grid { margin-top: var(--s12); }
.circles-note { margin-top: var(--s6); font-size: 15px; text-align: center; }
