/* Sync Studio website. Dark by default, light when the system asks for it.
   System fonts only: nothing is loaded from another site. */

:root {
  color-scheme: dark;
  --bg: #0b0e13;
  --bg-soft: #0f131a;
  --surface: #141a22;
  --surface-2: #1a212b;
  --surface-3: #212a36;
  --line: #262f3b;
  --line-strong: #344050;
  --text: #e9ecf1;
  --muted: #a3acb9;
  --faint: #8a94a3;
  --accent: #6fa8f7;
  --accent-strong: #2f6bd6;
  --accent-2: #9b82ff;
  --accent-2-strong: #6a4be0;
  --ok: #5bd38f;
  --warn: #f2c35b;
  --warn-bg: rgba(242, 195, 91, 0.12);
  --danger: #ff8a8a;
  --glow-1: rgba(47, 107, 214, 0.32);
  --glow-2: rgba(106, 75, 224, 0.26);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --radius: 16px;
  --radius-sm: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1120px;
  --gutter: 16px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f7fb;
    --bg-soft: #eef1f7;
    --surface: #ffffff;
    --surface-2: #f3f5fa;
    --surface-3: #e8ecf4;
    --line: #dde2ec;
    --line-strong: #c5cddb;
    --text: #121722;
    --muted: #4d5767;
    --faint: #566070;
    --accent: #1f5fc4;
    --accent-strong: #1f5fc4;
    --accent-2: #5b3fd1;
    --accent-2-strong: #5b3fd1;
    --ok: #137a43;
    --warn: #8a5a00;
    --warn-bg: #fff3d6;
    --danger: #b42318;
    --glow-1: rgba(47, 107, 214, 0.16);
    --glow-2: rgba(106, 75, 224, 0.12);
    --shadow: 0 24px 60px -28px rgba(20, 30, 60, 0.28);
  }
}

@media (min-width: 720px) { :root { --gutter: 24px; } }

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
code, kbd { font-family: var(--mono); font-size: 0.92em; }
kbd { padding: 0.1em 0.4em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); }
strong { font-weight: 650; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: var(--gutter); top: -60px; z-index: 50; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-strong); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

/* ------------------------------------------------------------------ logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; white-space: nowrap; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__tile { fill: var(--accent-strong); }
.logo__arc { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo__word2 { color: var(--accent-2); font-weight: 600; }
.brand { text-decoration: none; display: inline-flex; border-radius: 10px; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 44px; padding: 0.65em 1.15em; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--accent-strong), var(--accent-2-strong)); box-shadow: 0 10px 30px -12px var(--glow-1); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -12px var(--glow-2); }
.btn--ghost { color: var(--text); background: var(--surface-2); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--lg { min-height: 52px; padding: 0.8em 1.4em; font-size: 1.05rem; }
.btn--sm { min-height: 38px; padding: 0.45em 0.9em; font-size: 0.92rem; }
.btn--soon { cursor: not-allowed; opacity: 0.85; background: var(--surface-3); color: var(--muted); box-shadow: none; border-color: var(--line-strong); }
.btn--soon:hover { transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ----------------------------------------------------------------- pills */
.pill { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 650; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.pill--ok { color: var(--ok); }
.pill--warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.pill--accent { color: var(--accent); }
.pill .icon { width: 1em; height: 1em; }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.blank { padding: 0 0.25em; border-radius: 4px; background: var(--warn-bg); color: var(--warn); font-weight: 600; white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand . cta" "nav nav nav"; align-items: center; column-gap: 16px; padding-top: 10px; }
.site-header .brand { grid-area: brand; }
.site-header__cta { grid-area: cta; }
.site-nav { grid-area: nav; margin: 8px calc(var(--gutter) * -1) 0; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0 var(--gutter) 10px; width: max-content; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (min-width: 1040px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav cta"; padding: 12px var(--gutter); }
  .site-nav { margin: 0; overflow: visible; justify-self: center; }
  .site-nav ul { padding: 0; }
}

/* ------------------------------------------------------------- sections */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.page-hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); overflow: hidden; }
.page-hero::before, .hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 640px; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 25% 40%, var(--glow-1), transparent 70%), radial-gradient(35% 45% at 75% 30%, var(--glow-2), transparent 70%); }
.page-hero h1 { max-width: 820px; }
.page-hero .lead { max-width: 720px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero h1 { margin-bottom: 0.4em; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 560px; margin-bottom: 1.6em; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }

/* -------------------------------------------------------- app mockup */
.mock { position: relative; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); overflow: hidden; font-size: 0.86rem; }
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mock__dots { display: flex; gap: 6px; }
.mock__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock__url { flex: 1; margin-left: 6px; padding: 4px 10px; border-radius: 8px; background: var(--bg); color: var(--faint); font-family: var(--mono); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__body { display: grid; grid-template-columns: 1fr; min-height: 340px; }
@media (min-width: 560px) { .mock__body { grid-template-columns: 170px 1fr; } }
.mock__side { display: none; padding: 12px 10px; border-right: 1px solid var(--line); background: var(--bg-soft); }
@media (min-width: 560px) { .mock__side { display: block; } }
.mock__label { margin: 4px 6px 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.mock__thread { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; color: var(--muted); }
.mock__thread--on { background: var(--surface-2); color: var(--text); }
.mock__thread small { display: block; color: var(--faint); font-size: 0.72rem; line-height: 1.3; }
.mock__thread span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.35; }
.av { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 0.8rem; }
.av--a { background: linear-gradient(135deg, #3b82c4, #7c5cff); }
.av--b { background: linear-gradient(135deg, #0f9b8e, #2f6bd6); }
.av--c { background: linear-gradient(135deg, #c2410c, #a21caf); }
.mock__chat { display: flex; flex-direction: column; min-width: 0; }
.mock__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mock__head strong { display: block; line-height: 1.2; }
.mock__head small { color: var(--faint); }
.mock__head .pill { margin-left: auto; font-size: 0.7rem; padding: 3px 8px; }
.mock__msgs { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 14px; line-height: 1.45; }
.bubble--them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble--me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, var(--accent-strong), var(--accent-2-strong)); border-bottom-right-radius: 4px; }
.bubble em { color: var(--muted); }
.bubble--me em { color: rgba(255, 255, 255, 0.82); }
.typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.mock__composer { display: flex; align-items: center; gap: 8px; margin: 0 14px 14px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--faint); background: var(--bg-soft); }
.mock__composer span { flex: 1; }
.mock__composer .icon { color: var(--muted); }
.mock-wrap { position: relative; padding-bottom: 28px; }
.mock-float { position: absolute; left: -12px; bottom: 0; display: none; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 0.85rem; font-weight: 600; }
.mock-float .icon { color: var(--ok); }
@media (min-width: 700px) { .mock-float { display: inline-flex; } }

/* ----------------------------------------------------------------- cards */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.card__icon .icon { width: 22px; height: 22px; }
.card--premium .card__icon { color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 16%, transparent); }
.card .tag { position: absolute; top: 18px; right: 18px; }

.steps { counter-reset: step; display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps > li { counter-increment: step; position: relative; padding: 24px 22px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps > li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%; font-weight: 750; color: #fff; background: linear-gradient(135deg, var(--accent-strong), var(--accent-2-strong)); }
.steps p { margin: 0; color: var(--muted); }

/* --------------------------------------------------------------- plans */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
@media (min-width: 880px) { .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); } }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.plan--premium { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--accent-strong), var(--accent-2-strong)) border-box; border: 1.5px solid transparent; box-shadow: var(--shadow); }
.plan__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.plan__name h2, .plan__name h3 { margin: 0; font-size: 1.5rem; }
.plan__kind { margin: 0 0 18px; color: var(--muted); font-weight: 600; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.price__amount { font-size: clamp(2.3rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price__per { color: var(--muted); font-weight: 600; }
.price-alt { margin: 0 0 14px; color: var(--muted); }
.deal { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 11%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.deal .icon { color: var(--ok); margin-top: 2px; }
.deal p { margin: 0; }
.deal strong { color: var(--text); }
.plan .btn { margin-top: auto; }
.plan__cta { margin-top: 22px; display: grid; gap: 8px; }
.plan__cta .small { margin: 0; text-align: center; color: var(--faint); }

.checks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 6px; top: 4px; width: 7px; height: 13px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.plan--premium .checks li::before { border-color: var(--accent-2); }
.checks__head { margin: 0 0 10px; font-weight: 700; }

.paystate { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.paystate li { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.paystate li > span:first-child { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }

/* ---------------------------------------------------------------- tables */
.table-wrap { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 650; }
td .icon { color: var(--ok); }
td.no .icon, .no .icon { color: var(--faint); }
.cell-note { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 400; }
caption { text-align: left; padding: 0 0 10px; color: var(--muted); }

/* Tables become stacked cards on narrow screens. */
@media (max-width: 760px) {
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table th, .stack-table td { display: block; width: 100%; }
  .stack-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .stack-table tbody tr:last-child { border-bottom: 0; }
  .stack-table th, .stack-table td { padding: 4px 0; border: 0; }
  .stack-table tbody th { font-size: 1.05rem; padding-bottom: 8px; }
  .stack-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
}

/* --------------------------------------------------- "what leaves" page */
.flow { display: grid; gap: 14px; }
.flow__row { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 860px) { .flow__row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 20px 22px; } }
.flow__what h3 { display: flex; gap: 10px; align-items: center; margin: 0 0 4px; font-size: 1.08rem; }
.flow__what h3 .icon { color: var(--accent); }
.flow__what p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.flow__tier { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.94rem; }
.flow__tier p { margin: 0; }
.flow__tier p + p { margin-top: 6px; }
.flow__row > * { min-width: 0; }
.flow__label { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 6px; font-size: 0.78rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.where { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.where .icon { width: 1em; height: 1em; }
.where--pc { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.where--server { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.where--third { color: var(--warn); background: var(--warn-bg); }
.where--none { color: var(--faint); background: var(--surface-3); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 24px; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.legend li { display: inline-flex; gap: 8px; align-items: center; }

/* ----------------------------------------------------------- prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2em; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.prose h3 { margin-top: 1.6em; }
.prose li { margin-bottom: 0.45em; }
.prose ul, .prose ol { margin: 0 0 1.1em; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 980px) { .layout-side { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } }
.aside { position: sticky; top: 96px; display: grid; gap: 14px; }
.aside .card { padding: 18px; }
.aside h2 { font-size: 1rem; margin-bottom: 8px; }
.aside ul { margin: 0; padding-left: 1.1em; }
.callout { display: flex; gap: 14px; padding: 16px 18px; margin: 0 0 1.2em; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.callout > .icon { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { background: var(--warn-bg); border-color: transparent; }
.callout--warn > .icon { color: var(--warn); }
.callout--ok > .icon { color: var(--ok); }

/* FAQ, with <details> so it works with no script. */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; font-weight: 650; cursor: pointer; list-style: none; border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 18px 16px; color: var(--muted); }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
.faq-group { margin: 40px 0 14px; font-size: 1.15rem; }
.faq-group:first-child { margin-top: 0; }

/* Contact details. */
.dl { display: grid; gap: 0; margin: 0; }
.dl > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .dl > div { grid-template-columns: 200px 1fr; gap: 16px; } }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; overflow-wrap: anywhere; }

.how-to { counter-reset: how; list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.how-to > li { counter-increment: how; position: relative; padding: 16px 18px 16px 64px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.how-to > li::before { content: counter(how); position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 750; color: #fff; background: linear-gradient(135deg, var(--accent-strong), var(--accent-2-strong)); }
.how-to h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.how-to p { margin: 0; color: var(--muted); }
.how-to p + p { margin-top: 6px; }

.cta-band { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 56px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line-strong); text-align: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 20% 0%, var(--glow-1), transparent 70%), radial-gradient(50% 80% at 80% 100%, var(--glow-2), transparent 70%); }
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band .lead { margin: 0 auto 1.4em; max-width: 620px; }
.cta-band .btn-row { justify-content: center; }

.quote { margin: 0; padding: 22px 24px; border-radius: var(--radius); border-left: 4px solid var(--accent-2); background: var(--surface); font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; letter-spacing: -0.01em; }
.quote small { display: block; margin-top: 8px; font-size: 0.9rem; font-weight: 400; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }

.req { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.req li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.req li > .icon { color: var(--accent); margin-top: 2px; }
.req strong { display: block; }
.req span { color: var(--muted); }

.mono-box { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 0.85rem; overflow-wrap: anywhere; }

/* ------------------------------------------------------------- legal copy */
.page-legal main .legal { margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--gutter) 64px; }
.legal { max-width: 800px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 4px; }
.legal h2 { font-size: 1.2rem; margin: 2em 0 0.6em; padding-top: 1em; border-top: 1px solid var(--line); }
.legal .meta { color: var(--muted); margin-bottom: 20px; }
.legal .draft { padding: 12px 14px; margin-bottom: 24px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); }
.legal .legal-nav { margin-top: 40px; color: var(--muted); }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: clamp(48px, 8vw, 96px); padding: 48px 0 32px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-about p { margin: 14px 0 0; color: var(--muted); max-width: 320px; }
.footer-about .pill { margin-top: 14px; }
.footer-nav h2 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-nav a { display: inline-block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.88rem; }
.footer-legal p { margin: 0 0 6px; }

/* ----------------------------------------------------------- 18+ notice */
.gate { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: var(--gutter); overflow-y: auto;
  background: radial-gradient(60% 50% at 30% 20%, var(--glow-1), transparent 70%), radial-gradient(50% 50% at 75% 80%, var(--glow-2), transparent 70%), var(--bg); }
html.gate-open .gate { display: flex; }
html.gate-open, html.gate-open body { overflow: hidden; }
html.gate-open .site { visibility: hidden; }
.gate__card { width: 100%; max-width: 500px; margin: auto; padding: clamp(24px, 5vw, 40px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); text-align: center; }
.gate__brand { display: flex; justify-content: center; margin-bottom: 18px; }
.gate__badge { display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; font-size: 1.3rem; font-weight: 800; color: var(--warn); background: var(--warn-bg); border: 2px solid color-mix(in srgb, var(--warn) 50%, transparent); }
.gate__title { font-size: clamp(1.4rem, 4vw, 1.8rem); }
.gate__text { color: var(--muted); }
.gate__actions { display: grid; gap: 10px; margin-top: 22px; }
.gate__small { margin: 16px 0 0; font-size: 0.85rem; color: var(--faint); }
.noscript-gate { padding: 12px var(--gutter); background: var(--warn-bg); color: var(--text); border-bottom: 1px solid var(--line); text-align: center; font-size: 0.95rem; }
.noscript-gate p { margin: 0 auto; max-width: 900px; }

/* ---------------------------------------------------------------- 404 */
.notfound { text-align: center; padding: clamp(64px, 12vw, 140px) 0; }
.notfound h1 { font-size: clamp(3rem, 10vw, 5rem); margin-bottom: 0.1em; }
.notfound .btn-row { justify-content: center; }

@media print {
  .gate, .site-header, .site-footer, .noscript-gate { display: none !important; }
  html.gate-open .site { visibility: visible; }
  body { background: #fff; color: #000; }
}

/* A page's first section sits close under its title. */
.page-hero + .section--tight { padding-top: 8px; }
.table-wrap + .callout { margin-top: 16px; }
.prose > h2:first-child, .prose > .how-to:first-child { margin-top: 0; }
.grid + p { margin-top: 18px; }
