/* Snowey — shared styles for site, contact, legal and panel */
:root {
  --bg: #f6f9fc;
  --bg-2: #eef4fa;
  --surface: #ffffff;
  --surface-2: #f2f6fb;
  --line: #dde6f0;
  --line-strong: #c7d4e3;
  --ink: #0b1b33;
  --ink-2: #3a4d68;
  --ink-3: #6a7d96;
  --brand: #1660e8;
  --brand-2: #19b9ee;
  --brand-ink: #ffffff;
  --brand-soft: #e3eeff;
  --ok: #10916b;
  --ok-soft: #dcf5ec;
  --warn: #b26b00;
  --warn-soft: #fff1d6;
  --bad: #c9314a;
  --bad-soft: #fde5e9;
  --shadow: 0 1px 2px rgba(11, 27, 51, .05), 0 8px 24px -8px rgba(11, 27, 51, .12);
  --shadow-lg: 0 2px 4px rgba(11, 27, 51, .04), 0 30px 60px -20px rgba(11, 40, 90, .25);
  --radius: 18px;
  --radius-sm: 12px;
  --grad: linear-gradient(135deg, #0f3aa0 0%, #1660e8 45%, #19b9ee 100%);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07101e; --bg-2: #0b1628; --surface: #0f1b2f; --surface-2: #13223a;
    --line: #1d2e48; --line-strong: #2a3f60; --ink: #eaf2ff; --ink-2: #b4c3da; --ink-3: #7f92af;
    --brand: #4c8dff; --brand-2: #3fd0ff; --brand-soft: #14284a;
    --ok: #3fd3a0; --ok-soft: #0f2e27; --warn: #ffb547; --warn-soft: #33260e; --bad: #ff6b81; --bad-soft: #3a1520;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -10px rgba(0,0,0,.5);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 30px 60px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07101e; --bg-2: #0b1628; --surface: #0f1b2f; --surface-2: #13223a;
  --line: #1d2e48; --line-strong: #2a3f60; --ink: #eaf2ff; --ink-2: #b4c3da; --ink-3: #7f92af;
  --brand: #4c8dff; --brand-2: #3fd0ff; --brand-soft: #14284a;
  --ok: #3fd3a0; --ok-soft: #0f2e27; --warn: #ffb547; --warn-soft: #33260e; --bad: #ff6b81; --bad-soft: #3a1520;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -10px rgba(0,0,0,.5);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 30px 60px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::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-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.shell { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0; }
.brand img { width: 48px; height: 24px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.theme-toggle { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-3px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--surface-2); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--bad) 85%, #000); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 820px; z-index: -1;
  background:
    radial-gradient(600px 380px at 78% 30%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%),
    radial-gradient(520px 340px at 15% 10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); }
.pill b { background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); margin: 22px 0 20px; letter-spacing: -0.045em; line-height: .98; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; color: var(--ink-3); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; stroke: var(--ok); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* hero visual: phone + floating cards */
.hero-visual { position: relative; min-height: 600px; display: grid; place-items: center; }
.phone {
  position: relative; width: 300px; height: 610px; border-radius: 46px; background: #0b1424; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #24324a; transform: rotate(-3deg);
}
.phone-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #eaf1f8; }
.phone-island { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #0b1424; z-index: 4; }
.phone-map { position: absolute; inset: 0; }
.phone-map svg { width: 100%; height: 100%; }
.phone-top { position: absolute; top: 48px; left: 14px; right: 14px; z-index: 3; display: flex; justify-content: space-between; align-items: center; }
.chip { background: rgba(255,255,255,.92); color: #0b1b33; border-radius: 14px; padding: 8px 12px; box-shadow: 0 4px 14px rgba(11,27,51,.12); font-size: 12px; line-height: 1.2; }
.chip strong { display: block; font-size: 14px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; margin-right: 6px; box-shadow: 0 0 0 0 rgba(255,59,92,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }
.phone-sheet { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; background: #fff; color: #0b1b33; border-radius: 26px; padding: 16px; box-shadow: 0 -6px 24px rgba(11,27,51,.12); }
.phone-sheet-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: #6a7d96; }
.phone-sheet-head strong { font-family: var(--mono); font-size: 20px; color: #0b1b33; }
.phone-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.phone-stats div { background: #f2f6fb; border-radius: 14px; padding: 10px 8px; text-align: center; }
.phone-stats strong { display: block; font-family: var(--display); font-size: 19px; }
.phone-stats small { font-size: 10.5px; color: #6a7d96; }
.phone-btn { margin-top: 12px; height: 42px; border-radius: 14px; background: #1660e8; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.float { z-index: 2;
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  box-shadow: var(--shadow-lg); font-size: 13px; color: var(--ink-2); animation: float 6s ease-in-out infinite;
}
.float strong { display: block; font-family: var(--display); font-size: 26px; color: var(--ink); line-height: 1.1; }
.float-a { top: 70px; left: 0; }
.float-b { bottom: 120px; right: -4px; animation-delay: -2s; }
.float-c { top: 40px; right: 10px; animation-delay: -4s; display: flex; align-items: center; gap: 10px; }
.avatars { display: flex; }
.avatars span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; border: 2px solid var(--surface); margin-left: -8px; }
.avatars span:first-child { margin-left: 0; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); margin: 12px 0 16px; letter-spacing: -0.035em; }
.section-head p { color: var(--ink-2); font-size: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 64px; }
.stats-band div { background: var(--surface); padding: 22px 24px; }
.stats-band strong { display: block; font-family: var(--display); font-size: 30px; letter-spacing: -0.03em; }
.stats-band span { color: var(--ink-3); font-size: 14px; }

.feature-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feature-grid .card { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; }
.feature-grid .card.wide { grid-column: span 3; }
.feature-grid h3 { font-size: 22px; }
.feature-grid p { color: var(--ink-2); }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.icon-tile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card-visual { margin-top: auto; padding-top: 18px; }
.mini-runs { display: grid; gap: 8px; }
.mini-run { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.mini-run b { font-family: var(--mono); font-size: 13px; }
.mini-run span:first-child { font-family: var(--mono); color: var(--ink-3); font-size: 12px; }
.mini-run small { color: var(--ink-3); display: block; font-size: 12px; }

/* web panel showcase */
.panel-showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 16px; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.check-list li > span { width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.check-list svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.check-list strong { display: block; }
.check-list p { color: var(--ink-2); font-size: 15px; }
.browser { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-bar span { margin-left: 12px; font-size: 12px; color: var(--ink-3); font-family: var(--mono); background: var(--surface); border: 1px solid var(--line); padding: 3px 10px; border-radius: 8px; }
.browser-body { padding: 20px; display: grid; gap: 14px; }
.demo-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.demo-kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.demo-kpis small { color: var(--ink-3); font-size: 12px; }
.demo-kpis strong { display: block; font-family: var(--display); font-size: 22px; }
.demo-heat { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.demo-heat-grid { display: grid; grid-template-columns: repeat(26, 1fr); gap: 3px; margin-top: 10px; }
.demo-heat-grid i { aspect-ratio: 1; border-radius: 3px; background: var(--surface-2); }
.demo-heat-grid i.l1 { background: color-mix(in srgb, var(--brand) 30%, var(--surface-2)); }
.demo-heat-grid i.l2 { background: color-mix(in srgb, var(--brand) 60%, var(--surface-2)); }
.demo-heat-grid i.l3 { background: var(--brand); }

/* premium */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin-inline: auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; }
.plan h3 { font-size: 26px; }
.plan .price { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.plan .price small { font-size: 15px; font-family: var(--font); color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; stroke: var(--ok); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan-premium { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.plan-badge { position: absolute; top: -13px; right: 24px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan .btn { margin-top: auto; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--ink-2); }

.cta-band { border-radius: 28px; background: var(--grad); color: #fff; padding: 64px 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 420px; height: 300px; background: rgba(255,255,255,.12); clip-path: polygon(0 100%, 35% 30%, 50% 55%, 72% 0, 100% 100%); }
.cta-band h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; }
.cta-band p { opacity: .85; margin-top: 10px; font-size: 18px; }
.cta-band .btn { background: #fff; color: #0f3aa0; position: relative; z-index: 1; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-grid p { color: var(--ink-3); font-size: 14px; margin-top: 12px; max-width: 300px; }
.footer-grid h4 { font-family: var(--font); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 14px; font-weight: 700; }
.footer-grid a { display: block; color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 4px 0; }
.footer-grid a:hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .float, .live-dot { animation: none; } html { scroll-behavior: auto; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
  padding: 10px 14px; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: 13px; color: var(--ink-3); }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 14.5px; border: 1px solid; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.alert-bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.alert-info { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* topic chips */
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label { cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.topics input:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; }
.topics input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }

/* contact */
.page-hero { padding: 64px 0 32px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.04em; margin: 12px 0 14px; }
.page-hero p { color: var(--ink-2); font-size: 18px; max-width: 620px; }
.contact-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 24px; align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-side .card { padding: 22px; }
.contact-side h3 { font-size: 18px; margin-bottom: 6px; font-family: var(--font); letter-spacing: 0; }
.contact-side p { color: var(--ink-2); font-size: 15px; }

/* ---------- legal ---------- */
.legal-hero { padding: 56px 0 24px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 14px; }
.legal-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.legal-hero h1 { font-size: clamp(38px, 5vw, 56px); margin: 16px 0 12px; letter-spacing: -0.04em; }
.legal-hero p { color: var(--ink-2); font-size: 18px; max-width: 680px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.legal-meta span { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; padding-top: 24px; }
.legal-toc { position: sticky; top: 92px; display: grid; gap: 2px; font-size: 14px; }
.legal-toc strong { margin-bottom: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.legal-toc a { color: var(--ink-2); text-decoration: none; padding: 5px 10px; border-radius: 8px; }
.legal-toc a:hover { background: var(--surface-2); color: var(--ink); }
.legal-content { min-width: 0; max-width: 760px; }
.legal-section { padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-section h2 { font-size: 26px; margin-bottom: 14px; }
.legal-section h3 { font-size: 18px; font-family: var(--font); letter-spacing: 0; margin: 20px 0 8px; }
.legal-section p, .legal-section li { color: var(--ink-2); }
.legal-section p + p { margin-top: 12px; }
.legal-section ul, .legal-section ol { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.legal-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0; }
.legal-content th, .legal-content td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.deletion-steps { display: grid; gap: 10px; margin-top: 16px; counter-reset: step; }
.deletion-step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; counter-increment: step; }
.deletion-step::before { content: counter(step); width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; }
.deletion-step p { font-size: 15px; }
.legal-content .button, .legal-content a.button { display: inline-flex; margin-top: 14px; padding: 10px 16px; border-radius: 12px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; }
.legal-content .button svg { display: none; }

/* ---------- responsive (site) ---------- */
@media (max-width: 980px) {
  .hero-grid, .panel-showcase, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 560px; }
  .feature-grid .card, .feature-grid .card.wide { grid-column: span 3; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-wrap { grid-template-columns: 1fr; gap: 8px; }
  .legal-toc { position: static; display: none; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; font-size: 17px; }
  .nav-actions { margin: 8px 0 0; }
  .nav-actions .btn { flex: 1; }
  .section { padding: 72px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .card, .feature-grid .card.wide { grid-column: auto; }
  .plans, .form-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .float-a { left: -6px; top: 20px; } .float-b { right: -6px; } .float-c { display: none; }
  .phone { width: 270px; height: 560px; }
  .card { padding: 22px; }
  .demo-kpis { grid-template-columns: 1fr 1fr; }
  .demo-kpis div:last-child { display: none; }
}
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: #fff; background: var(--brand); padding: 0 14px; }
[hidden] { display: none !important; }
.footer-grid a.brand { display: inline-flex; padding: 0; color: var(--ink); }
