/* Skladik — skladik.io
   Palette mirrors mobile/lib/core/theme/app_colors.dart so the site and
   the app read as one product. No third-party fonts or scripts: the
   privacy policy promises the site loads nothing from other hosts. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f7f5f1;
  --surface-3: #eeebe5;
  --border: #e7e4df;
  --border-strong: #d1cdc7;
  --text: #1a1511;
  --text-2: #4d4641;
  --muted: #77706b;

  --brand: #1b683e;
  --brand-hi: #2fa062;
  --brand-deep: #14512e;
  --brand-soft: #e3f3e8;
  --on-brand: #ffffff;

  --amber: #d97e38;
  --amber-soft: #ffedc6;
  --blue: #347ec4;
  --blue-soft: #dbf1ff;
  --ai: #7b57c8;
  --ai-soft: #f0eaff;
  --red: #cf4040;

  --shadow-sm: 0 1px 2px rgb(26 21 17 / 0.06);
  --shadow-md: 0 8px 24px -8px rgb(26 21 17 / 0.14), 0 2px 6px rgb(26 21 17 / 0.05);
  --shadow-lg: 0 30px 60px -20px rgb(20 81 46 / 0.35), 0 12px 24px -12px rgb(26 21 17 / 0.18);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100c0a;
    --surface: #1c1714;
    --surface-2: #231e1b;
    --surface-3: #2d2823;
    --border: #322c28;
    --border-strong: #47413c;
    --text: #f3f1ee;
    --text-2: #c2bdb9;
    --muted: #948e89;

    --brand: #5bbd74;
    --brand-hi: #7fd394;
    --brand-deep: #2fa062;
    --brand-soft: #14361d;
    --on-brand: #0d1f13;

    --amber: #f4a34b;
    --amber-soft: #4b2a02;
    --blue: #56acf0;
    --blue-soft: #092b44;
    --ai: #bea4ff;
    --ai-soft: #2a1f47;
    --red: #f97770;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 10px 30px -10px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 30px 70px -20px rgb(0 0 0 / 0.75);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg { display: block; max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); }
@media (prefers-color-scheme: dark) { a:hover { color: var(--brand-hi); } }

:focus-visible { outline: 3px solid var(--brand-hi); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px;
}
.skip:focus { left: 8px; }

/* ── Header ──────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand:hover { color: var(--text); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 550; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

@media (max-width: 760px) {
  .nav .nav-hide-sm { display: none; }
  .site-header .wrap { gap: 12px; }
}
@media (max-width: 380px) {
  .nav a { padding: 8px 8px; font-size: 14px; }
}

/* ── Buttons & store badges ─────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font: 650 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn--primary:hover { background: var(--brand-deep); color: var(--on-brand); }
@media (prefers-color-scheme: dark) { .btn--primary:hover { background: var(--brand-hi); } }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { color: var(--text); border-color: var(--border-strong); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px;
  background: var(--text); color: var(--bg); border-radius: 14px; text-decoration: none;
}
.store:hover { color: var(--bg); opacity: .9; }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; line-height: 1.1; opacity: .75; letter-spacing: .02em; }
.store strong { display: block; font-size: 18px; line-height: 1.15; font-weight: 650; }
.store--soon { background: var(--surface); color: var(--text); border: 1px dashed var(--border-strong); cursor: default; }
.store--soon:hover { color: var(--text); opacity: 1; }

/* ── Hero ───────────────────────────────────────────── */

.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-hi) 22%, transparent), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand);
  font-size: 14px; font-weight: 650;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }

.hero h1 { font-size: clamp(40px, 6.2vw, 68px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); margin: 22px 0 32px; max-width: 34em; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: 2; }
}

/* Phone mockup — drawn in HTML/CSS, not a screenshot */
.hero-visual { position: relative; display: grid; place-items: center; }
.phone {
  position: relative; width: min(330px, 86vw); aspect-ratio: 9 / 19.2;
  border-radius: 48px; padding: 12px; background: #0f0d0c;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a2623;
  transform: rotate(-2deg);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 37px; overflow: hidden;
  background: #fbfaf7; color: #1a1511; display: flex; flex-direction: column;
  font-size: 13px; line-height: 1.35;
}
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #0f0d0c; z-index: 2; }
.ph-status { display: flex; justify-content: space-between; padding: 14px 26px 0; font-weight: 650; font-size: 12px; height: 40px; }
.ph-hero { position: relative; height: 38%; background: linear-gradient(160deg, #e8e4dc, #d3cdc2); display: grid; place-items: center; }
.ph-hero svg { width: 46%; opacity: .92; }
.ph-back { position: absolute; top: 10px; left: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgb(255 255 255 / .85); display: grid; place-items: center; font-size: 16px; }
.ph-body { flex: 1; padding: 14px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.ph-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ph-title strong { font-size: 19px; letter-spacing: -0.02em; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { background: #d8f9dd; color: #2a7a41; }
.pill--taken { background: #ffedc6; color: #b0601f; }
.pill--issued { background: #dbf1ff; color: #2d6aa6; }
.ph-path { color: #77706b; font-size: 12px; }
.ph-path b { color: #4d4641; font-weight: 600; }
.ph-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-card { background: #fff; border: 1px solid #e7e4df; border-radius: 14px; padding: 10px 12px; }
.ph-card small { display: block; color: #a39d98; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; }
.ph-card span { font-weight: 700; font-size: 16px; }
.ph-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.ph-actions span { text-align: center; padding: 10px 0; border-radius: 12px; font-weight: 700; font-size: 13px; }
.ph-actions .a1 { background: #ffedc6; color: #b0601f; }
.ph-actions .a2 { background: #dbf1ff; color: #2d6aa6; }
.ph-history { display: grid; gap: 6px; margin-top: 2px; }
.ph-history small { color: #a39d98; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; }
.ph-ev { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4d4641; }
.ph-ev i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; }
.ph-ev .e-ok { background: #d8f9dd; color: #2a7a41; }
.ph-ev .e-taken { background: #ffedc6; color: #b0601f; }
.ph-ev .e-new { background: #eeebe5; color: #77706b; }
.ph-ev span { margin-left: auto; color: #a39d98; font-size: 11px; }
.ph-code { margin-top: auto; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e7e4df; border-radius: 14px; padding: 10px; }
.ph-code .qr { width: 42px; height: 42px; flex: none; }
.ph-code b { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.ph-code small { display: block; color: #77706b; font-size: 11px; }

.float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: 16px; box-shadow: var(--shadow-md); font-size: 14px; font-weight: 600;
}
.float .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float .ic svg { width: 18px; height: 18px; }
.float--scan { top: 14%; left: -2%; }
.float--scan .ic { background: var(--brand-soft); color: var(--brand); }
.float--offline { bottom: 16%; right: 0; }
.float--offline .ic { background: var(--amber-soft); color: var(--amber); }
/* On a phone the badges would sit on top of the mockup's own buttons. */
@media (max-width: 560px) { .float { display: none; } .phone { transform: none; } }

/* ── Sections ───────────────────────────────────────── */

.section { padding: 88px 0; }
.section--tint { background: var(--surface-2); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head .kicker { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 10px; font-weight: 780; }
.section-head p { color: var(--text-2); font-size: 18px; margin: 16px 0 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

.strip { padding: 22px 0; border-block: 1px solid var(--border); background: var(--surface); }
/* margin: 0 auto, not 0 — the list is also a .wrap and must stay centred. */
.strip ul { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.strip li { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 600; font-size: 15px; }
.strip svg { width: 20px; height: 20px; color: var(--brand); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 18px; margin-bottom: 20px;
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color .15s ease, transform .15s ease; }
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--brand-soft); color: var(--brand); }
.feature .ic svg { width: 22px; height: 22px; }
.feature .ic--amber { background: var(--amber-soft); color: var(--amber); }
.feature .ic--blue { background: var(--blue-soft); color: var(--blue); }
.feature .ic--ai { background: var(--ai-soft); color: var(--ai); }
.feature h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.feature--wide { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: 0 20px; align-items: start; }
.feature--wide .ic { margin-bottom: 0; grid-row: span 2; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; }
  .feature--wide { grid-column: auto; display: block; }
  .feature--wide .ic { margin-bottom: 16px; }
}

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split--flip .split-media { order: -1; }
.split h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 780; margin-bottom: 14px; }
.split p { color: var(--text-2); margin: 0 0 16px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; color: var(--text-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232fa062' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E");
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--flip .split-media { order: 0; }
  .split + .split { margin-top: 64px; }
}

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); }

/* Label preview */
.label-card {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  background: #fff; color: #1a1511; border-radius: 14px; padding: 18px; border: 1px solid #e7e4df;
  max-width: 420px; margin-inline: auto; box-shadow: var(--shadow-md);
}
.label-card .qr { width: 104px; height: 104px; }
.label-card strong { font-size: 18px; display: block; letter-spacing: -0.01em; }
.label-card .code { font-family: var(--mono); font-size: 14px; color: #4d4641; margin-top: 4px; }
.label-card .bars { height: 34px; margin-top: 10px; background: repeating-linear-gradient(90deg, #1a1511 0 2px, transparent 2px 4px, #1a1511 4px 5px, transparent 5px 8px, #1a1511 8px 11px, transparent 11px 12px); border-radius: 2px; }
.printer { margin: 18px auto 0; max-width: 420px; display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; }
.printer .bt { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.printer .bt svg { width: 18px; height: 18px; }

/* Offline queue */
.queue { display: grid; gap: 10px; }
.queue-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: 15px; }
.queue-row .st { margin-left: auto; font-size: 13px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.queue-row .st--ok { color: var(--brand); }
.queue-row .glyph { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); flex: none; }
.queue-row .glyph svg { width: 16px; height: 16px; color: var(--text-2); }
.net { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--amber); margin-bottom: 14px; }
.net::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* AI block */
.ai-panel { background: linear-gradient(180deg, var(--ai-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--ai) 30%, var(--border)); }
.ai-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--ai); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.ai-tag svg { width: 16px; height: 16px; }
.ai-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.ai-row:last-child { border-bottom: 0; }
.ai-row span:first-child { color: var(--muted); }
.ai-row span:last-child { font-weight: 650; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip { padding: 3px 10px; border-radius: 999px; background: var(--ai-soft); color: var(--ai); font-size: 13px; font-weight: 650; }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.aud { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.aud b { display: block; font-size: 17px; margin-bottom: 4px; }
.aud span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .audience { grid-template-columns: 1fr; } }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust > div { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.trust h3 { font-size: 18px; margin-bottom: 6px; }
.trust p { margin: 0; color: var(--text-2); font-size: 15.5px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 22px; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative;
  font-weight: 650; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--text-2); }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 32px; padding: 64px 48px;
  background: linear-gradient(135deg, #2fa062, #14512e); color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 46px solid rgb(255 255 255 / .08);
}
.cta h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.cta p { margin: 12px 0 0; color: rgb(255 255 255 / .85); font-size: 18px; max-width: 32em; }
.cta .store { background: #fff; color: #14512e; }
.cta .store:hover { color: #14512e; }
.cta .store--soon { background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .45); }
.cta .store--soon:hover { color: #fff; }
.cta > * { position: relative; z-index: 1; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 44px 28px; border-radius: 24px; } }

/* ── Footer ─────────────────────────────────────────── */

.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--border); margin-top: 88px; color: var(--muted); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 12px; color: var(--text); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-about p { margin: 12px 0 0; max-width: 30em; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
.home .site-footer { margin-top: 0; }

/* ── Documents (policy, terms, support) ─────────────── */

.doc-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.doc-hero h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; }
.doc-hero p { color: var(--text-2); margin: 14px 0 0; max-width: 46em; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14px; color: var(--muted); }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 40px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14.5px; max-height: calc(100vh - 110px); overflow: auto; }
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; color: var(--text-2); text-decoration: none; padding: 5px 10px; border-radius: 8px; line-height: 1.35; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
/* Grid items default to min-width:auto, so a wide table would stretch the
   column past the viewport instead of scrolling inside .table-wrap. */
.doc-layout > * { min-width: 0; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; max-height: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
}

.doc-body { padding-top: 40px; }
.prose { max-width: 74ch; }
.prose h2 { font-size: 26px; font-weight: 760; margin: 48px 0 14px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; letter-spacing: -0.01em; scroll-margin-top: 90px; }
.prose p, .prose li { color: var(--text-2); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); font-weight: 650; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }

.note { border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.note p:last-child { margin-bottom: 0; }
.note--warn { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.note strong { color: var(--text); }

.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table-wrap th { background: var(--surface-2); color: var(--text); font-weight: 650; font-size: 14px; }
.table-wrap td { color: var(--text-2); }
.table-wrap tr:last-child td { border-bottom: 0; }

.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding: 2px 0 2px 46px; margin: 14px 0; }
.steps-list li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; font-size: 15px;
}

.contact-card { display: grid; gap: 4px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin: 16px 0 24px; }
.contact-card a { font-size: 20px; font-weight: 700; text-decoration: none; }

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 40px; }
.support-grid a { display: block; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.support-grid a:hover { border-color: var(--border-strong); color: var(--text); }
.support-grid b { display: block; font-size: 17px; margin-bottom: 4px; }
.support-grid span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .support-grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .big { font-size: clamp(80px, 16vw, 160px); font-weight: 850; letter-spacing: -0.05em; color: var(--brand); line-height: 1; }
.notfound p { color: var(--text-2); margin: 16px 0 28px; }

/* Language switch — a plain link to the same page in the other language,
   so it works without JavaScript or cookies. */
.nav .lang-switch {
  border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 13px;
  letter-spacing: .04em; padding: 6px 10px; margin-left: 4px;
}
.nav .lang-switch:hover { border-color: var(--border-strong); }
