/* bildirium.com — design system v2 (premium, mobile-first, no frameworks).
   Everything animated is CSS-only: helmet's CSP forbids inline scripts and
   the pages ship zero JS beyond the legal/delete hydrators. Dark mode follows
   the app's deep-navy surfaces via prefers-color-scheme. */

:root {
  --bg: #f4f5fb;
  --bg-soft: #eceef7;
  --surface: #ffffff;
  --surface-2: #f7f8fd;
  --ink: #171923;
  --ink-soft: #4e5361;
  --ink-faint: #8a8fa0;
  --line: rgba(23, 25, 35, 0.08);
  --line-strong: rgba(23, 25, 35, 0.14);
  --brand: #6a5ae0;
  --brand-2: #8b7cf0;
  --brand-ink: #ffffff;
  --brand-soft: rgba(106, 90, 224, 0.1);
  --ok: #2c9e74;
  --warn: #ce7a38;
  --err: #c9484f;
  --gold: #b98a2e;
  --sky: #2f7fc4;
  --shadow: 0 1px 2px rgba(20, 22, 34, 0.04), 0 12px 32px rgba(20, 22, 34, 0.08);
  --shadow-soft: 0 1px 2px rgba(20, 22, 34, 0.03), 0 6px 18px rgba(20, 22, 34, 0.05);
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --footer-bg: #14161f;
  --footer-ink: #b9bdcb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1017;
    --bg-soft: #10131c;
    --surface: #171b26;
    --surface-2: #1c212e;
    --ink: #eceef5;
    --ink-soft: #a9aebd;
    --ink-faint: #6f7484;
    --line: rgba(236, 238, 245, 0.08);
    --line-strong: rgba(236, 238, 245, 0.16);
    --brand: #8b7cf0;
    --brand-2: #a99df5;
    --brand-soft: rgba(139, 124, 240, 0.14);
    --gold: #d9ab52;
    --sky: #5aa3dd;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.3);
    --footer-bg: #0a0c12;
    --footer-ink: #8a8fa0;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

img, svg { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* ── Header / nav ─────────────────────────────────────────────────────── */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  /* Block-only: the horizontal 20px comes from .wrap and must survive —
     shorthand padding here once wiped it and glued the logo to the edge. */
  padding-block: 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }

.nav-toggle { display: none; }
.nav-burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 14.5px;
}
.nav-links a {
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 10px;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-cta {
  margin-left: 6px;
  background: var(--brand);
  color: var(--brand-ink) !important;
  font-weight: 600;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  box-shadow: var(--shadow-soft);
}
.nav-cta:hover { background: var(--brand-2) !important; }
/* Language switch — a proper segmented control, not an orphan pill. */
.lang-switch {
  display: inline-flex;
  align-items: stretch;
  margin-left: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-switch .on,
.lang-switch a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  min-height: 32px;
}
.lang-switch .on {
  background: var(--brand);
  color: var(--brand-ink);
}
.lang-switch a { color: var(--ink-faint); }
.lang-switch a:hover { color: var(--brand); background: var(--brand-soft); text-decoration: none; }

@media (max-width: 840px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px 20px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links a {
    padding: 15px 6px;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-links a:hover { background: none; }
  .nav-links a[aria-current="page"] { color: var(--brand); }
  .nav-cta {
    margin: 16px 0 0;
    text-align: center;
    border-bottom: 0 !important;
    color: var(--brand-ink) !important;
    border-radius: 999px !important;
    padding: 13px 16px !important;
  }
  .lang-switch { align-self: flex-start; margin: 14px 0 0; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  box-shadow: 0 8px 24px rgba(106, 90, 224, 0.35);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.store-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--ink-faint);
  background: var(--surface);
}
.store-badge b { color: var(--ink-soft); font-weight: 600; }

/* ── Sections ─────────────────────────────────────────────────────────── */
section.block { padding: 64px 0; }
section.block.tint { background: var(--bg-soft); }
.kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
h2.title {
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}
p.lead { color: var(--ink-soft); font-size: clamp(15.5px, 2.5vw, 17.5px); max-width: 620px; }
.center { text-align: center; }
.center p.lead { margin-left: auto; margin-right: auto; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 96px) 0 40px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
}
.hero::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--brand-soft), transparent 70%);
  top: -140px; left: -120px;
}
.hero::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(47, 127, 196, 0.12), transparent 70%);
  bottom: -160px; right: -100px;
}
.hero-inner { position: relative; text-align: center; }
.hero h1 {
  font-size: clamp(38px, 9vw, 64px);
  line-height: 1.06;
  letter-spacing: -1.5px;
  font-weight: 800;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: clamp(15.5px, 2.6vw, 18px);
}
.hero .cta-row {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .stores { margin-top: 18px; }

/* Hero panel preview — a living miniature of the real dashboard. */
.panel-preview {
  margin: clamp(36px, 6vw, 56px) auto 0;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: left;
}
.pw {
  border-radius: var(--r-md);
  padding: 12px 13px;
  color: #fff;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.pw .t { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.75; text-transform: uppercase; }
.pw .v { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.1; }
.pw .s { font-size: 11.5px; opacity: 0.85; }
.pw-2 { grid-column: span 2; }
.pw-4 { grid-column: span 4; }
.pw-weather { background: linear-gradient(140deg, #35608f, #22456b); }
.pw-gold { background: linear-gradient(140deg, #8a6420, #6d4d15); }
.pw-fuel { background: linear-gradient(140deg, #1f7a5c, #16543f); }
.pw-security { background: linear-gradient(140deg, #37415f, #232a40); }
.pw-commute { background: linear-gradient(140deg, #2c8577, #1d5b51); }
.pw-prayer { background: linear-gradient(140deg, #5a4fb8, #43398f); }
.pw-pulse {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 11px 13px;
}
.pw-pulse .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  animation: breathe 2.6s ease-in-out infinite;
}
.pw-pulse .s { color: var(--ink-soft); opacity: 1; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.35); opacity: 1; } }

/* Value crossfade: two stacked values trading places on a slow loop. */
.swap { position: relative; display: inline-block; min-width: 3.2em; }
.swap i { font-style: normal; }
.swap i:nth-child(2) { position: absolute; left: 0; top: 0; opacity: 0; }
.swap i:nth-child(1) { animation: swapA 12s ease-in-out infinite; }
.swap i:nth-child(2) { animation: swapB 12s ease-in-out infinite; }
@keyframes swapA { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes swapB { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* Alarm chip popping into the fuel widget mid-loop. */
.pw .chip {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 3px 8px;
  border-radius: 999px;
  opacity: 0;
  animation: chipIn 12s ease-in-out infinite;
}
@keyframes chipIn { 0%, 55% { opacity: 0; transform: translateY(-4px); } 62%, 95% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }

@media (max-width: 560px) {
  .panel-preview { grid-template-columns: repeat(2, 1fr); padding: 12px; gap: 8px; }
  .pw-4 { grid-column: span 2; }
  .pw .v { font-size: 19px; }
}

/* ── Compare (sen / Bildirium) ───────────────────────────────────────── */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  max-width: 760px;
  margin: 34px auto 0;
}
.compare .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.compare .who { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.compare .say { font-size: 16.5px; font-weight: 600; line-height: 1.45; }
.compare .arrow { align-self: center; font-size: 22px; color: var(--brand); }
.compare ul { list-style: none; margin-top: 4px; }
.compare li { padding: 5px 0; font-size: 15px; color: var(--ink-soft); }
.compare li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
@media (max-width: 640px) {
  .compare { grid-template-columns: 1fr; }
  .compare .arrow { transform: rotate(90deg); justify-self: center; }
}

/* ── Scenario grid ────────────────────────────────────────────────────── */
.scenarios {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.scenario {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.scenario .e { font-size: 22px; line-height: 1.2; }
.scenario q { quotes: "\201C" "\201D"; color: var(--ink-soft); }

/* ── Widget ecosystem categories ─────────────────────────────────────── */
.cats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.cat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.cat h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cat .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cat .tag {
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ── Showcase widgets ─────────────────────────────────────────────────── */
.showcase {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.show {
  border-radius: var(--r-md);
  padding: 18px;
  color: #fff;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}
.show .t { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.show .m { font-size: 16.5px; font-weight: 700; line-height: 1.35; margin-top: 8px; }

/* ── Pulse mock ──────────────────────────────────────────────────────── */
.pulse-card {
  max-width: 520px;
  margin: 34px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}
.pulse-card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pulse-card .head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: breathe 2.6s ease-in-out infinite; }
.pulse-card .head b { font-size: 16px; }
.pulse-item {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  align-items: center;
}
.pulse-item .e { font-size: 19px; }
.pulse-note { text-align: center; color: var(--ink-soft); font-size: 14.5px; margin-top: 16px; }

/* ── IF / THEN ───────────────────────────────────────────────────────── */
.rules {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.rule {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  font-size: 15px;
}
.rule .kw {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 6px;
}
.rule .cond { font-weight: 700; font-size: 16px; }
.rule .then { margin-top: 12px; color: var(--ink-soft); }

/* ── Panel builder steps + size demo ─────────────────────────────────── */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.steps .step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
}
.steps .sep { align-self: center; color: var(--brand); font-weight: 700; }
.size-demo {
  max-width: 560px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.size-demo .cell {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-sm);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-faint);
  background: var(--surface-2);
}
.size-demo .c2 { grid-column: span 2; }
.size-demo .c4 { grid-column: span 4; }
.size-demo .fill {
  border-style: solid;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

/* ── Privacy cards ───────────────────────────────────────────────────── */
.priv {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.priv .p {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.priv .p .e { font-size: 24px; }
.priv .p h3 { font-size: 16px; margin: 10px 0 6px; }
.priv .p p { font-size: 14.5px; color: var(--ink-soft); }

/* ── Sources strip ───────────────────────────────────────────────────── */
.sources {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.sources .src {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 14px;
}

/* ── Personas ────────────────────────────────────────────────────────── */
.personas {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.persona {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.persona h3 { font-size: 15.5px; margin-bottom: 8px; }
.persona p { font-size: 13.5px; color: var(--ink-faint); }

/* ── Day timeline ────────────────────────────────────────────────────── */
.day {
  max-width: 520px;
  margin: 34px auto 0;
  position: relative;
  padding-left: 24px;
}
.day::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--brand), transparent);
  border-radius: 2px;
}
.day .ev { position: relative; padding: 10px 0 10px 12px; }
.day .ev::before {
  content: "";
  position: absolute;
  left: -22px; top: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.day .time { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.day .what { font-size: 15.5px; }

/* ── Final CTA ───────────────────────────────────────────────────────── */
.final {
  text-align: center;
  background: linear-gradient(150deg, var(--brand), var(--brand-2));
  border-radius: var(--r-lg);
  color: #fff;
  padding: clamp(36px, 7vw, 56px) 24px;
  box-shadow: 0 20px 50px rgba(106, 90, 224, 0.35);
}
.final h2 { font-size: clamp(26px, 5vw, 36px); letter-spacing: -0.6px; }
.final p { opacity: 0.9; margin: 10px auto 22px; max-width: 460px; font-size: 15.5px; }
.final .btn-ghost { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.final .store-badge { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.35); color: rgba(255, 255, 255, 0.85); }
.final .store-badge b { color: #fff; }

/* Scroll reveal — CSS-only, falls back to visible when unsupported. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 34%;
    }
    @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  }
}

/* ── Content pages (legal etc.) ──────────────────────────────────────── */
/* Block-only for the same reason as .nav: this element ALSO carries .wrap,
   and a shorthand here would wipe .wrap's horizontal 20px. */
main.page { padding-block: 40px 64px; }
main.page h1 { font-size: clamp(26px, 5vw, 34px); letter-spacing: -0.5px; margin-bottom: 6px; }
.doc-meta { color: var(--ink-faint); font-size: 13px; margin-bottom: 24px; }
.doc-meta .fallback-note { color: var(--warn); }
article.doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 4vw, 30px);
  box-shadow: var(--shadow-soft);
}
article.doc h2 { font-size: 18px; margin: 22px 0 6px; }
article.doc h2:first-child { margin-top: 0; }
article.doc p { margin: 10px 0; font-size: 15px; }
article.doc ul { margin: 10px 0 10px 22px; font-size: 15px; }
article.doc li { margin: 4px 0; }
.doc-loading { color: var(--ink-faint); font-size: 14px; }

/* ── Delete-account flow ─────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 4vw, 28px);
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}
.panel h2 { font-size: 20px; margin-bottom: 10px; }
.panel p { font-size: 14px; color: var(--ink-soft); margin: 8px 0; }
.panel label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 4px; }
.panel input[type="email"],
.panel input[type="password"],
.panel input[type="text"] {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}
.panel input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 14px; }
.check input { margin-top: 2px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--brand); }
/* The generic .panel label spacing pushed this one off its checkbox. */
.check label { margin: 0; font-weight: 400; line-height: 1.5; }
button.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 16px;
  min-height: 48px;
}
button.primary:hover { filter: brightness(1.06); }
button.primary:disabled { opacity: 0.5; cursor: not-allowed; }
button.danger { background: var(--err); }
button.danger:hover { background: #b03a41; filter: none; }
button.linklike {
  background: none;
  border: 0;
  color: var(--brand);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-top: 14px;
  min-height: 44px;
}
.msg { border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; margin-top: 14px; }
.msg.err { background: rgba(201, 72, 79, 0.12); color: var(--err); }
.msg.ok { background: rgba(44, 158, 116, 0.12); color: var(--ok); }
.msg.info { background: var(--brand-soft); color: var(--brand); }
.hidden { display: none; }
.consequences { font-size: 14px; margin: 10px 0 0 18px; color: var(--ink-soft); }
.consequences li { margin: 6px 0; }
.store-warn {
  background: rgba(206, 122, 56, 0.1);
  border: 1px solid rgba(206, 122, 56, 0.35);
  color: var(--warn);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 14px;
  margin-top: 14px;
}

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact-card { max-width: 560px; }
.contact-card .row { margin: 12px 0; font-size: 15px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer.site {
  margin-top: 64px;
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 40px 0 34px;
  font-size: 13.5px;
}
footer.site a { color: var(--footer-ink); }
footer.site a:hover { color: #fff; }
footer.site .cols {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
footer.site .brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 15px; }
footer.site .brand img { width: 24px; height: 24px; border-radius: 6px; }
footer.site .desc { margin-top: 8px; max-width: 260px; font-size: 13px; }
footer.site ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer.site .groups { display: flex; gap: 40px; flex-wrap: wrap; }
footer.site .copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 560px) {
  section.block { padding: 48px 0; }
  footer.site .groups { gap: 24px; }
}
