/* Flowmind Social — public site stylesheet. No frameworks. One accent, Inter, light + dark via prefers-color-scheme.
   Served at /site/site.css; the marketing and policy pages in public/site/ all share it. */

:root {
  --bg: #ffffff; --bg-soft: #f7f7fa; --panel: #ffffff; --text: #111118; --muted: #666673; --line: #e7e7ec; --line-strong: #d3d3dc;
  --accent: #4f46e5; --accent-hover: #4338ca; --accent-soft: #eef2ff; --accent-ink: #3730a3; --accent-text: #ffffff;
  --ok: #15803d; --ok-soft: #dcfce7; --warn: #b45309; --warn-soft: #fef3c7; --danger: #b91c1c; --danger-soft: #fee2e2;
  --code-bg: #0f0f15; --code-text: #e6e6ee; --code-muted: #8a8a9c;
  --radius: 14px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(17, 17, 24, .05), 0 12px 32px -8px rgba(17, 17, 24, .12);
  --max: 1120px; --header-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0f; --bg-soft: #111117; --panel: #15151c; --text: #f1f1f4; --muted: #9b9ba8; --line: #24242d; --line-strong: #34343f;
    --accent: #6c63f2; --accent-hover: #827bf5; --accent-soft: #1b1940; --accent-ink: #c9c6ff; --accent-text: #ffffff;
    --ok: #4ade80; --ok-soft: #0f2a1a; --warn: #fbbf24; --warn-soft: #2b2110; --danger: #f87171; --danger-soft: #2f1414;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 40px -10px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
code { font-size: .875em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: .08em .35em; word-break: break-word; }
pre { margin: 0; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: .8125rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 640px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 100; border: 1px solid var(--line); }
.skip:focus { left: 8px; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font: inherit; font-weight: 500; font-size: .9375rem; line-height: 1; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--bg-soft); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: .875rem; border-radius: 8px; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { position: relative; height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; color: var(--text); white-space: nowrap; flex: none; }
.logo .mark { width: 28px; height: 28px; flex: none; }
.nav-menu { display: contents; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: .9375rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-soft); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.menu-btn .x { display: none; }
@media (max-width: 860px) {
  .nav { gap: 12px; }
  .menu-btn { display: inline-flex; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 16px; box-shadow: var(--shadow); }
  .site-header.open .nav-menu { display: block; }
  .site-header.open .menu-btn .bars { display: none; }
  .site-header.open .menu-btn .x { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { height: 44px; font-size: 1rem; }
  .nav-cta { margin: 12px 0 0; flex-direction: column; align-items: stretch; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- hero */
.hero { padding: 88px 0 24px; text-align: center; }
.hero h1 { max-width: 880px; margin: 0 auto 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 0 auto 32px; max-width: 700px; font-size: 1.1875rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: .875rem; color: var(--muted); }
.hero-visual { margin: 56px auto 0; max-width: 1000px; }

/* ---------- app window mock */
.window { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.window-bar { height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-bar .url { margin-left: 10px; font-size: .75rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app { display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.app-side { border-right: 1px solid var(--line); padding: 14px 10px; background: var(--bg-soft); }
.app-side .ws { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .875rem; padding: 6px 10px 14px; }
.app-side .ws i { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: #fff; font-style: normal; font-size: .6875rem; font-weight: 700; display: grid; place-items: center; }
.app-side .lbl { font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 10px 4px; }
.app-side .pg { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: .8125rem; color: var(--text); }
.app-side .pg.on { background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.app-side .pg .n { margin-left: auto; font-size: .6875rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 0 6px; }
.app-side .more { font-size: .75rem; color: var(--muted); padding: 8px 10px; }
.app-main { padding: 16px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kpi b { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.kpi span { font-size: .75rem; color: var(--muted); }
.kpi .up { color: var(--ok); }
.pf { width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; font-size: .625rem; font-weight: 700; color: #fff; flex: none; font-style: normal; line-height: 1; }
.pf-fb { background: #1877f2; } .pf-yt { background: #e02424; } .pf-x { background: #111118; }
@media (prefers-color-scheme: dark) { .pf-x { background: #e7e7ec; color: #111; } }

/* ---------- calendar mock */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .d { font-size: .6875rem; color: var(--muted); text-align: center; padding-bottom: 2px; }
.cal .c { min-height: 74px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: var(--panel); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal .c b { font-size: .6875rem; font-weight: 500; color: var(--muted); }
.cal .c.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal .c.today b { color: var(--accent); font-weight: 600; }
.post { display: flex; align-items: center; gap: 5px; font-size: .6875rem; line-height: 1.2; padding: 3px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; overflow: hidden; }
.post span { overflow: hidden; text-overflow: ellipsis; }
.post.done { background: var(--ok-soft); color: var(--ok); }
.post .pf { width: 12px; height: 12px; border-radius: 3px; font-size: .5rem; }
.cal.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 600px) {
  .cal { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cal .d:nth-child(n+5), .cal .c:nth-child(n+12) { display: none; }
  .cal.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cal.five .d:nth-child(n+4), .cal.five .c:nth-child(n+9) { display: none; }
}

/* ---------- sections */
.section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.0625rem; margin: 12px 0 0; }
.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; background: var(--bg-soft); margin-top: 64px; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 32px; color: var(--muted); font-size: .9375rem; }
.strip span { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); }
.strip .muted { font-weight: 400; color: var(--muted); }
.strip .icon { width: 18px; height: 18px; color: var(--accent); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 44px 0; }
.feature.flip .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.feature-copy p { color: var(--muted); font-size: 1.0625rem; }
.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; stroke: var(--accent); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mock { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); min-width: 0; overflow-x: auto; }
.feature-art, .feature-copy, .prose, .app-main { min-width: 0; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: .875rem; font-weight: 600; }
.mock-head .pill { font-size: .6875rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.mock-head .pill.ok { background: var(--ok-soft); color: var(--ok); }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 0; }
  .feature.flip .feature-copy { order: 0; }
  .app { grid-template-columns: minmax(0, 1fr); } .app-side { display: none; }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kpis .kpi:last-child { grid-column: span 2; }
}

/* ---------- inbox mock */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: .875rem; line-height: 1.4; }
.msg.in { background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.out { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg time { display: block; font-size: .6875rem; color: var(--muted); margin-top: 3px; }
.msg.out time { color: rgba(255, 255, 255, .75); }
.draft { border: 1px dashed var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 12px; margin-top: 4px; }
.draft .tag { display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--accent-ink); margin-bottom: 6px; flex-wrap: wrap; }
.draft .tag .icon { width: 14px; height: 14px; }
.draft p { font-size: .875rem; margin: 0 0 10px; color: var(--text); }
.draft .row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chk { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--ok); font-weight: 500; margin-left: auto; }
.chk .icon { width: 14px; height: 14px; stroke-width: 2.4; }

/* ---------- rules mock */
.rules { display: flex; flex-direction: column; gap: 8px; }
.rule { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: .875rem; }
.rule .k { font-weight: 500; }
.rule .ex { color: var(--muted); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rule .act { margin-left: auto; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--line); white-space: nowrap; }
.rule .act.on { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.rule .act.hold { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
@media (max-width: 480px) { .rule .ex { display: none; } }

/* ---------- roles mock */
.roles { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.roles th, .roles td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.roles th:first-child, .roles td:first-child { text-align: left; font-weight: 500; white-space: nowrap; }
.roles thead th { font-size: .75rem; color: var(--muted); font-weight: 500; }
.roles tbody tr:last-child td { border-bottom: 0; }
.roles .y { color: var(--ok); font-weight: 700; }
.roles .n { color: var(--line-strong); }
.roles .custom td:first-child { color: var(--accent); }
.roles .tagc { font-size: .625rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-left: 6px; }

/* ---------- cards / grids */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 14px 0 6px; font-size: 1.0625rem; }
.card p { color: var(--muted); font-size: .9375rem; margin: 0; }
.card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.card .ico .icon { width: 20px; height: 20px; }
.card .num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; display: grid; place-items: center; font-size: .875rem; }
.card.soon { border-style: dashed; }
.card .soon-tag { display: inline-block; font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
@media (max-width: 900px) { .grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid, .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- MCP section */
.mcp-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.clients { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.clients span { font-size: .8125rem; font-weight: 500; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); }
.term { background: var(--code-bg); color: var(--code-text); border-radius: 14px; padding: 18px 20px; font-size: .8125rem; line-height: 1.65; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; box-shadow: var(--shadow); overflow: auto; }
.term p { margin: 0 0 10px; white-space: pre-wrap; }
.term p:last-child { margin: 0; }
.term .u { color: #a5b4fc; } .term .a { color: #86efac; } .term .c { color: var(--code-muted); } .term .t { color: #fcd34d; }
@media (max-width: 860px) { .mcp-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- pricing */
.toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); gap: 2px; }
.toggle button { height: 34px; padding: 0 16px; border: 0; border-radius: 99px; background: transparent; color: var(--muted); font: inherit; font-weight: 500; font-size: .875rem; cursor: pointer; display: inline-flex; align-items: center; }
.toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.toggle .save { font-size: .6875rem; font-weight: 600; margin-left: 8px; padding: 1px 7px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); }
.toggle button[aria-pressed="true"] .save { background: rgba(255, 255, 255, .22); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; }
.plan.popular { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 20px; background: var(--accent); color: #fff; font-size: .6875rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; letter-spacing: .04em; text-transform: uppercase; }
.plan h3 { font-size: 1.125rem; }
.plan .blurb { color: var(--muted); font-size: .875rem; margin: 4px 0 16px; min-height: 2.6em; }
.plan .price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.plan .price b { font-size: 2.25rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.plan .price span { color: var(--muted); font-size: .875rem; }
.plan .per { font-size: .8125rem; color: var(--muted); min-height: 1.4em; margin: 8px 0 18px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; font-size: .875rem; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; stroke: var(--accent); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan .btn { margin-top: auto; width: 100%; }
.plans-note { text-align: center; color: var(--muted); font-size: .875rem; margin-top: 18px; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9375rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-weight: 600; background: var(--bg-soft); }
.compare thead th small { display: block; font-weight: 400; color: var(--muted); font-size: .8125rem; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td svg { width: 18px; height: 18px; margin: 0 auto; stroke: var(--ok); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.compare .no { color: var(--line-strong); }
.compare th.popular, .compare td.popular { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.compare .group td { background: var(--bg-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 16px; }

/* ---------- FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 500; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; max-width: 680px; }
.faq details p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- CTA */
.cta { padding: 0 0 80px; }
.cta .box { background: var(--accent); color: #fff; border-radius: 20px; padding: 56px 32px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .84); max-width: 560px; margin: 12px auto 26px; font-size: 1.0625rem; }
.cta .btn { background: #fff; color: var(--accent); border-color: #fff; }
.cta .btn:hover { background: #eef2ff; }
.cta .ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta .ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 32px; font-size: .9375rem; }
.foot { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.foot h4 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a:hover { color: var(--accent); }
.foot .about p { color: var(--muted); margin: 12px 0 0; max-width: 320px; font-size: .875rem; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: .8125rem; }
@media (max-width: 860px) { .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .foot { grid-template-columns: minmax(0, 1fr); } }

/* ---------- document pages (policies, docs) */
.page-head { padding: 56px 0 24px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.page-head .lead { margin-top: 12px; }
.page-head.center .lead { margin-left: auto; margin-right: auto; }
.page-head .toggle { margin-top: 26px; }
.meta { font-size: .875rem; color: var(--muted); margin-top: 10px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 16px; padding-bottom: 80px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .875rem; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.toc h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 4px 0 4px 14px; color: var(--muted); margin-left: -1px; border-left: 2px solid transparent; line-height: 1.4; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); }
.prose { max-width: 720px; font-size: 1rem; }
.prose > h2 { font-size: 1.5rem; margin: 48px 0 14px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; margin: 28px 0 10px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--muted); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-hover); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin: 16px 0 24px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--bg-soft); font-size: .875rem; }
.prose tr:last-child td { border-bottom: 0; }
.prose .table-wrap { margin: 16px 0 24px; }
.prose .table-wrap table { margin: 0; min-width: 560px; }
.prose td:first-child code, .prose th code { white-space: nowrap; word-break: normal; }
.prose .note { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; margin: 18px 0; color: var(--accent-ink); }
.prose .note p:last-child, .prose .note ul:last-child { margin-bottom: 0; }
.prose .note.warn { background: var(--warn-soft); color: var(--warn); }
.prose .note.plain { background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); }
.prose dl { margin: 0 0 1em; }
.prose dt { font-weight: 600; margin-top: 12px; }
.prose dd { margin: 4px 0 0; color: var(--text); }
.prose .summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 28px; }
.prose .summary h3 { margin: 0 0 8px; font-size: 1rem; }
.prose .summary ul { margin: 0; }
.tag { display: inline-block; font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; vertical-align: middle; }
.tag.read { background: var(--ok-soft); color: var(--ok); }
.tag.act { background: var(--warn-soft); color: var(--warn); }
.steps-list { counter-reset: step; list-style: none; padding: 0; }
.steps-list > li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps-list > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8125rem; font-weight: 600; display: grid; place-items: center; }
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel); }
  .toc ol { border: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 16px; }
  .toc a { padding-left: 0; border: 0; margin: 0; }
}
@media (max-width: 560px) { .toc ol { grid-template-columns: minmax(0, 1fr); } .compare th, .compare td { padding: 10px 12px; font-size: .875rem; } }

/* ---------- code blocks */
.code { position: relative; background: var(--code-bg); color: var(--code-text); border-radius: 12px; margin: 14px 0 22px; overflow: hidden; }
.code pre { padding: 36px 18px 16px; overflow: auto; font-size: .8125rem; line-height: 1.6; }
.code .lang { position: absolute; top: 10px; left: 16px; font-size: .6875rem; color: var(--code-muted); text-transform: uppercase; letter-spacing: .06em; }
.code .copy { position: absolute; top: 7px; right: 8px; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid #2a2a38; background: #1a1a24; color: #d6d6e0; font: inherit; font-size: .75rem; cursor: pointer; }
.code .copy:hover { background: #24242f; }
.code .copy.done { color: #86efac; border-color: #2f5f3f; }

/* ---------- forms (contact, deletion lookup) */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; }
.field .hint { font-size: .8125rem; color: var(--muted); margin-top: 6px; }
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 12px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); font: inherit; outline: none; }
.textarea { height: auto; min-height: 140px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1; min-width: 200px; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; padding: 24px 0 80px; align-items: start; }
.contact-grid .card { padding: 26px; }
.contact-grid .card + .card { margin-top: 16px; }
.contact-grid .card h3 { margin-top: 0; }
.contact-grid .card p { color: var(--text); margin: 0 0 8px; }
.contact-grid .card .muted { color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- status box (data-deletion) */
.status { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--panel); margin: 16px 0 24px; display: flex; gap: 12px; align-items: flex-start; }
.status .icon { width: 22px; height: 22px; margin-top: 2px; }
.status b { display: block; margin-bottom: 2px; }
.status.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); color: var(--ok); }
.status.wait { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); color: var(--warn); }
.status.err { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); color: var(--danger); }
.status p { margin: 0; }
.status .small { opacity: .85; }

/* ---------- 404 */
.err-page { padding: 120px 0 140px; text-align: center; }
.err-page .code-big { font-size: 6rem; font-weight: 700; letter-spacing: -.05em; color: var(--accent-soft); line-height: 1; -webkit-text-stroke: 2px var(--accent); }
.err-page h1 { font-size: 2rem; margin: 8px 0 12px; }
.err-page p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }
