/* Shared by every booji.app page. Colours, sizes and shapes follow the app's design system. */
:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --ink: #0f172a;
    --ink-2: #475569;
    --muted: #64748b;
    --line: #e2e8f0;

    --indigo-50: #eef2ff; --indigo-100: #e0e7ff; --indigo-200: #c7d2fe; --indigo-500: #6366f1; --indigo-600: #4f46e5; --indigo-700: #4338ca; --indigo-950: #1e1b4b;
    --purple-500: #9032e5; --purple-600: #7e2ad4;
    --violet-50: #f5f3ff; --violet-100: #ede9fe; --violet-200: #ddd6fe; --violet-500: #8b5cf6; --violet-600: #7c3aed; --violet-800: #5b21b6;
    --rose-50: #fff1f2; --rose-100: #ffe4e6; --rose-200: #fecdd3; --rose-400: #fb7185; --rose-500: #f43f5e; --rose-600: #e11d48;
    --pink-50: #fdf2f8; --pink-100: #fce7f3; --pink-400: #f472b6; --pink-500: #ec4899; --pink-600: #db2777;
    --red-200: #fecaca; --red-500: #ef4444;
    --orange-50: #fffaf0; --orange-100: #fef3c7; --orange-500: #f97316; --orange-600: #ea580c;
    --amber-50: #fffbeb; --amber-400: #fbbf24; --amber-500: #f59e0b; --amber-600: #d97706;
    --yellow-50: #fffef5; --yellow-600: #ffde21;
    --teal-50: #f0faf8; --teal-100: #ccfbf1; --teal-500: #14b8a6; --teal-600: #0d9488;
    --blue-50: #eff5ff; --blue-100: #deebff; --blue-500: #4d8bff; --blue-600: #2d6fef;
    --emerald-50: #ecfdf5; --emerald-100: #d1fae5; --emerald-500: #10b981; --emerald-600: #059669;
    --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-300: #cbd5e1; --slate-400: #94a3b8; --slate-500: #64748b; --slate-600: #475569;

    --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --script: "Carattere", "Snell Roundhand", cursive;
    --gutter: 24px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -12px rgba(15, 23, 42, .16);
    --brand: linear-gradient(100deg, #4f46e5 0%, #9032e5 48%, #ec4899 100%);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 3px solid var(--indigo-500); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--indigo-100); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 520px) { :root { --gutter: 16px; } }

/* The app's own doodle tile */
.doodles { background-image: url("doodles.svg"); background-size: 432px 720px; }
.doodles-white { background-image: url("doodles-white.svg"); background-size: 432px 720px; }

/* Type */
.h1, .h2, .h3 { font-weight: 900; letter-spacing: -0.035em; color: var(--ink); }
.h1 { font-size: clamp(44px, 6.2vw, 80px); line-height: 1; }
.h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; }
.h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; letter-spacing: -0.025em; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; width: fit-content;
    padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; box-shadow: var(--shadow);
    font-size: 14px; font-weight: 700; color: var(--ink);
}
.chip .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-100); color: var(--indigo-500); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--indigo-600)); }
.tag i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--c, var(--indigo-600)); color: #fff; font-style: normal; }

/* Buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
    display: inline-flex; align-items: center; gap: 12px; min-width: 190px; padding: 11px 22px 11px 18px;
    background: var(--ink); color: #fff; text-decoration: none; border-radius: 18px;
    box-shadow: 0 12px 26px -12px rgba(15, 23, 42, .6); transition: transform .2s ease, background .2s ease;
}
.store:hover { transform: translateY(-2px); background: #1e293b; }
.store:active { transform: scale(.97); }
.store svg { flex: none; }
.store small { display: block; font-size: 11px; line-height: 1; opacity: .75; margin-bottom: 4px; }
.store strong { display: block; font-size: 19px; line-height: 1; font-weight: 700; letter-spacing: -.01em; }
.store.light { background: #fff; color: var(--ink); }
.store.light:hover { background: var(--indigo-50); }
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: 999px;
    background: var(--indigo-600); color: #fff; text-decoration: none; font-size: 15px; font-weight: 700;
    box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .8); transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: var(--indigo-700); transform: translateY(-1px); }

/* Top bar */
.topbar { position: sticky; top: 12px; z-index: 50; padding: 0 var(--gutter); margin-top: 12px; }
.topbar .bar {
    max-width: 1152px; margin: 0 auto; height: 64px; padding: 0 10px 0 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border: 1px solid rgba(226, 232, 240, .9); border-radius: 22px; box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand span { font-size: 24px; font-weight: 900; letter-spacing: -.04em; }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { padding: 8px 14px; border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.topbar nav a:hover { background: var(--indigo-50); color: var(--indigo-600); }
@media (max-width: 900px) { .topbar nav { display: none; } }
@media (max-width: 640px) { .topbar .hide-sm { display: none; } }

/* Footer */
.footer { padding: 48px 0 56px; background: #fff; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a, .footer nav [aria-current] { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.footer nav a:hover, .footer nav [aria-current] { color: var(--indigo-600); }
.footer nav [aria-current] { font-weight: 700; }
.footer .copy { color: var(--muted); font-size: 14px; }

/* ---------- App pieces, drawn to the app's sizes ---------- */

/* Avatar: indigo ring, white border */
.av {
    --s: 64px; position: relative; display: inline-block; vertical-align: middle; flex: none; width: var(--s); height: var(--s); border-radius: 50%;
    padding: calc(var(--s) * .094); background: linear-gradient(45deg, var(--indigo-100), var(--indigo-50));
}
.av img { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; border: calc(var(--s) * .0625) solid #fff; object-fit: cover; }
.av .online { position: absolute; right: 0; bottom: 0; width: calc(var(--s) * .25); height: calc(var(--s) * .25); border-radius: 50%; background: var(--emerald-500); border: 2px solid #fff; }
.av.empty { background: var(--indigo-50); }
.av.empty::after { content: ""; position: absolute; inset: calc(var(--s) * .18); border-radius: 50%; border: 2px dashed var(--indigo-200); }

/* Message cards: partner on the left in the solid colour, you on the right in the light one */
.msg {
    --solid: var(--indigo-600); --light: var(--indigo-100); --pale: var(--indigo-50);
    position: relative; width: max-content; max-width: 300px; padding: 8px 16px; border-radius: 16px;
    font-size: 14px; line-height: 1.4;
}
.msg.in { align-self: flex-start; border-top-left-radius: 2px; background: var(--solid); color: var(--pale); }
.msg.out { align-self: flex-end; border-top-right-radius: 2px; background: var(--light); color: rgba(71, 85, 105, .5); }
.msg .meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 4px; font-size: 10px; font-weight: 500; }
.msg .meta svg { color: var(--indigo-500); }
.t-love { --solid: var(--rose-500); --light: var(--rose-100); --pale: var(--rose-50); }
.t-nudge { --solid: var(--orange-500); --light: var(--orange-100); --pale: var(--orange-50); }
.t-pulse { --solid: var(--teal-500); --light: var(--teal-100); --pale: var(--teal-50); }
.t-mood { --solid: var(--blue-500); --light: var(--blue-100); --pale: var(--blue-50); }
.t-date { --solid: var(--pink-500); --light: var(--pink-100); --pale: var(--pink-50); }
.t-reveal { --solid: var(--violet-500); --light: var(--violet-100); --pale: var(--violet-50); }
.t-text { --solid: var(--indigo-600); --light: var(--indigo-100); --pale: var(--indigo-50); }

/* Love note paper */
.paper {
    width: 250px; margin: 8px 0 2px; padding: 16px; border-radius: 12px; background: var(--yellow-50);
    border: .5px solid var(--rose-100); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); color: #1c1b1f;
}
.paper .to { display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--rose-500); }
.paper .stamp { width: 24px; height: 28px; display: grid; place-items: center; border: 1px dashed var(--rose-200); background: #fff; color: var(--rose-400); }
.paper hr { border: 0; border-top: 1px dashed var(--rose-200); margin: 8px 0; }
.paper .note { padding: 14px 0; text-align: center; font-family: var(--script); font-size: 22px; line-height: 1.15; transition: opacity .2s ease; }
.paper .fade { height: 1px; background: linear-gradient(90deg, transparent, var(--rose-200), transparent); }

/* Nudge */
.nudge { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.nudge .ball {
    --ball: var(--orange-500); width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: var(--ball); color: #fff; border: 1px solid #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .25);
}
.nudge strong { font-size: 16px; font-weight: 700; font-style: italic; }
.msg.out .nudge strong { color: var(--amber-600); }
.msg.in .nudge strong { color: #fff; }
.shake-1 { animation: swing .5s ease-out; }
.shake-2 { animation: swing .45s ease-out 2; }
.shake-3 { animation: swingHard .35s ease-out 3; }
@keyframes swing { 20% { transform: rotate(-4deg); } 40% { transform: rotate(4deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(2deg); } }
@keyframes swingHard { 20% { transform: rotate(-7deg) translateX(-3px); } 40% { transform: rotate(7deg) translateX(3px); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(4deg); } }

/* Pulse */
.pulse { width: 280px; display: grid; gap: 8px; padding: 8px 0 0; }
.map {
    position: relative; height: 100px; border-radius: 16px; overflow: hidden; border: 1px solid var(--slate-300);
    background: linear-gradient(45deg, var(--emerald-100), var(--slate-100), var(--indigo-200));
}
.map::before {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(-62deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 100% 100%,
        linear-gradient(-12deg, transparent 42%, #fff 42%, #fff 54%, transparent 54%) 0 0 / 100% 100%,
        repeating-linear-gradient(0deg, transparent 0 19px, rgba(148, 163, 184, .25) 19px 20px),
        repeating-linear-gradient(90deg, transparent 0 19px, rgba(148, 163, 184, .25) 19px 20px);
}
.map .ping { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(100, 116, 139, .5); animation: ping 4s ease-out infinite; }
.map .pin { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(15, 23, 42, .25); display: grid; place-items: center; color: var(--red-500); }
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 50%, 100% { transform: scale(5); opacity: 0; } }
.pinfo { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: #fff; color: var(--slate-600); font-size: 10px; font-weight: 700; }
.pinfo .row { display: flex; justify-content: space-between; gap: 8px; }
.pinfo .row span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pinfo hr { border: 0; border-top: .5px solid rgba(203, 213, 225, .7); margin: 0; width: 100%; }
.pinfo .cols { display: grid; grid-template-columns: repeat(4, 1fr); }
.pinfo .cols span { display: grid; justify-items: center; gap: 8px; padding: 2px 0; }
.pinfo .cols span + span { border-left: .5px solid rgba(203, 213, 225, .7); }

/* Mood */
.mood { display: grid; justify-items: center; gap: 8px; padding: 4px 16px; text-align: center; }
.mood .cap { font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.mood .av { --s: 100px; }
.mood .av img { object-fit: contain; }
.mood b { font-size: 14px; }
.msg.out .mood .cap { color: rgba(45, 111, 239, .5); }
.msg.out .mood b { color: var(--slate-600); }

/* Date invite */
.date { width: 250px; margin: 8px 0 2px; border-radius: 16px; background: #fff; overflow: hidden; color: #1c1b1f; }
.date .head { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--pink-50); color: var(--pink-600); font-size: 12px; font-weight: 700; }
.date .head span { flex: 1; }
.date .what { padding: 8px 16px; font-size: 14px; font-weight: 700; }
.date .when { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 16px; padding: 8px 16px; border-radius: 8px; background: var(--pink-50); color: var(--slate-600); font-size: 12px; font-weight: 500; }
.date .add { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 16px 16px; padding: 9px; border-radius: 12px; background: var(--pink-500); color: #fff; font-size: 13px; font-weight: 700; }

/* Reveal */
.reveal-card { width: 270px; margin: 8px 0 2px; padding: 14px; border-radius: 16px; background: #fff; color: #1c1b1f; display: grid; gap: 12px; }
.reveal-card .cat { display: flex; align-items: center; gap: 6px; }
.reveal-card .cat svg { color: var(--violet-500); flex: none; }
.reveal-card .cat b { flex: 1; font-size: 10px; font-weight: 900; letter-spacing: .02em; color: var(--violet-800); }
.reveal-card .cat small { display: block; font-size: 10px; font-weight: 500; color: var(--slate-600); letter-spacing: 0; }
.reveal-card .q { font-size: 14px; font-weight: 700; line-height: 1.35; }
.badge-ok { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; background: var(--emerald-50); color: var(--emerald-600); font-size: 10px; font-weight: 800; border: 1px solid var(--emerald-100); }
.both { display: grid; justify-items: center; padding: 4px 0; text-align: center; }
.both .pair { display: flex; }
.both .pair .av { --s: 40px; background: var(--emerald-50); }
.both .pair .av + .av { margin-left: -10px; }
.both small { margin: 10px 0 2px; font-size: 10px; font-weight: 900; color: var(--emerald-600); }
.both b { font-size: 16px; font-weight: 900; color: var(--emerald-600); }
.answer-row { display: flex; align-items: center; gap: 12px; }
.answer-row .av { --s: 40px; }
.answer-row .pending { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px dashed var(--slate-300); display: grid; place-items: center; color: var(--slate-400); }
.answer-row small { display: block; font-size: 10px; font-weight: 900; letter-spacing: .04em; color: var(--indigo-500); }
.answer-row b { display: block; font-size: 15px; font-weight: 800; color: var(--indigo-600); }
.answer-row.wait small { color: var(--slate-500); }
.answer-row.wait b { font-style: italic; color: var(--slate-600); }
.reveal-card hr { border: 0; border-top: 1px solid var(--slate-200); margin: 0; }

/* App's header: anniversary pill, the two of you, the love button */
.anniv {
    display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 6px; border-radius: 22px;
    background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .08); border: 1px solid var(--slate-100); font-size: 14px; font-weight: 700; color: #1e293b; white-space: nowrap;
}
.anniv .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-100); color: var(--indigo-500); }
.anniv .chev { color: var(--slate-400); }
.gear { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .08); color: var(--indigo-600); }
.couple { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: start; }
.couple .who { display: grid; justify-items: center; gap: 8px; }
.couple .name { font-size: 10px; font-weight: 700; letter-spacing: .15em; color: rgba(71, 85, 105, .7); text-transform: uppercase; }
.couple .name.typing { letter-spacing: 0; color: var(--indigo-500); }
.pills { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.pill {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 38px; padding: 0 10px;
    border-radius: 19px; border: 1px solid var(--slate-200); background: #fff; color: var(--slate-600); font-size: 12px; font-weight: 500;
}
.pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill.soft { background: var(--slate-100); }
.pill.heals { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--slate-500); }
.pill.heals i { font-style: normal; color: var(--red-500); letter-spacing: 0; font-size: 12px; }
.love-btn { position: relative; width: 80px; height: 80px; display: grid; place-items: center; margin-bottom: 10px; }
.love-btn .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.love-btn .wave { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: var(--red-500); opacity: 0; animation: wave 3.6s ease-out infinite; }
.love-btn .glow { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: var(--red-200); filter: blur(12px); transform: scale(1.15); }
.love-btn .heart {
    position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: linear-gradient(45deg, var(--red-500), var(--red-500) 55%, #f47a7a); border: 2px solid #fff; animation: beat 3.6s ease-in-out infinite;
}
.love-btn .streak {
    position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 2px;
    padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--slate-200); font-size: 11px; font-weight: 800; color: var(--slate-600); white-space: nowrap;
}
.love-btn .streak svg { color: var(--orange-500); }
.love-btn.off .heart { background: linear-gradient(45deg, var(--slate-500), var(--slate-500) 55%, var(--slate-400)); animation: none; }
.love-btn.off .glow { background: var(--slate-200); }
.love-btn.off .wave { display: none; }
@keyframes beat { 0%, 30%, 100% { transform: scale(1); } 8% { transform: scale(1.08); } 16% { transform: scale(1); } 22% { transform: scale(1.04); } }
@keyframes wave { 0% { transform: scale(1); opacity: .35; } 55%, 100% { transform: scale(1.55); opacity: 0; } }

/* ---------- Legal pages ---------- */
.doc-hero { position: relative; padding: 12px 0 140px; color: #fff; text-align: center; background-color: var(--indigo-600); background-image: url("doodles-white.svg"), linear-gradient(135deg, var(--indigo-600), var(--purple-500) 60%, var(--pink-500)); background-size: 432px 720px, auto; }
.doc-hero .wrap { display: grid; justify-items: center; gap: 14px; padding-top: 72px; }
.doc-hero .ic { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); }
.doc-hero h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
.doc-hero p { max-width: 40em; font-size: 18px; color: rgba(255, 255, 255, .85); }
/* Pages that keep the top bar make room for it */
.topbar + .doc-hero { margin-top: -76px; padding-top: 88px; }
.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; margin-top: -88px; padding-bottom: 96px; position: relative; }
.doc-layout.single { grid-template-columns: 1fr; max-width: 860px; }
.toc { position: sticky; top: 20px; padding: 22px; border-radius: 26px; background: #fff; box-shadow: var(--shadow); max-height: calc(100vh - 44px); overflow-y: auto; }
.toc h2 { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 12px; }
.toc nav { display: grid; gap: 2px; }
.toc a { padding: 6px 10px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.toc a:hover { background: var(--indigo-50); color: var(--indigo-600); }
.topbar ~ .doc-layout .toc { top: 96px; max-height: calc(100vh - 120px); }
.doc { min-width: 0; padding: clamp(28px, 5vw, 64px); border-radius: 36px; background: #fff; box-shadow: var(--shadow); color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.doc section { scroll-margin-top: 24px; }
.topbar ~ .doc-layout section { scroll-margin-top: 100px; }
.doc-sections > * + * { margin-top: 48px; }
.doc h3 { font-size: 24px; font-weight: 900; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); margin-bottom: 14px; }
.doc h4 { font-size: 17px; font-weight: 800; color: #1e293b; margin: 22px 0 8px; }
.doc h4:first-child, .doc h3 + h4 { margin-top: 0; }
.doc h5 { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0 0 4px; }
.doc p + p, .doc p + ul, .doc ul + p, .doc p + ol { margin-top: 12px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc ul li::marker { color: var(--indigo-500); }
.doc li + li { margin-top: 8px; }
.doc ul.plain, .doc ol.plain { list-style: none; padding-left: 0; }
.doc a { color: var(--indigo-600); text-underline-offset: 3px; }
.doc strong { color: #1e293b; }
.doc .small { font-size: 14px; }
.doc .muted { color: var(--slate-500); }
.doc .accent { color: var(--indigo-600); font-weight: 600; }
.doc .lead-strong { font-size: 18px; font-weight: 800; color: var(--ink); }
.doc .strong { font-weight: 700; color: #1e293b; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 14px 32px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--slate-200); }
.doc-meta .meta-label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-400); }
.doc-meta .meta-value { font-size: 14px; font-weight: 700; color: #1e293b; text-decoration: none; }
.doc-meta a.meta-value { color: var(--indigo-600); }
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; margin-bottom: 36px; border-radius: 20px; background: var(--slate-100); border: 1px solid var(--slate-200); font-size: 14px; color: #1e293b; }
.callout p { margin: 0; }
.callout-green { background: var(--emerald-50); border-color: var(--emerald-100); }
.callout-green .callout-icon { background: var(--emerald-100); color: var(--emerald-600); }
.callout-indigo { background: var(--indigo-50); border-color: var(--indigo-100); color: var(--indigo-950); }
.callout-rose { background: var(--rose-50); border: 0; border-left: 4px solid var(--rose-500); border-radius: 4px 16px 16px 4px; color: #881337; }
.callout-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.box { padding: 22px; margin-bottom: 28px; border-radius: 20px; background: var(--bg); border: 1px solid var(--slate-200); }
.box-amber { background: var(--amber-50); border-color: #fde68a; }
.box-amber ul li::marker { color: var(--amber-500); }
.box-white { background: #fff; }
.box.caps { text-transform: uppercase; font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.box.caps > * + * { margin-top: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.grid-2 .span-2 { grid-column: span 2; }
.stack > * + * { margin-top: 28px; }
.doc-end { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--slate-200); text-align: center; }
.doc-end .end-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-400); }
.doc-end .end-note { font-size: 11px; color: var(--slate-400); }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps-list li { display: flex; gap: 14px; margin: 0; }
.steps-list .step-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-100); color: var(--indigo-600); font-weight: 800; font-size: 14px; }
.steps-list p { padding-top: 3px; }
@media (max-width: 960px) {
    .doc-layout { grid-template-columns: 1fr; }
    .toc { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-2 .span-2 { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
