/* Public landing page (/). Standalone: no AdminLTE/Bootstrap. Colours, radii
   and pill buttons follow css/themes/paper.css so the site and the app feel
   like one product. */

:root {
  --font: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Iowan Old Style', 'Charter', 'Palatino Linotype', Palatino, Georgia, serif;
  --radius: 14px; --radius-sm: 10px; --radius-lg: 22px;
  --bg: #f7f4ef; --surface: #fffdf9; --surface-2: #f3eee6; --warm: #efe8dc;
  --border: #e9e2d6; --border-strong: #d9cfbf;
  --text: #2a2420; --text-2: #574c42; --text-3: #85776a;
  --accent: #0f766e; --accent-hover: #115e59; --accent-text: #fff;
  --accent-soft: #e2f3f0; --accent-soft-text: #115e59; --focus: #14b8a6;
  --sky: #dcefeb;
  --ink: #1f2b2a;
  --success: #3f7d20; --success-soft: #eaf4dd; --danger: #b4322a;
  --header-bg: rgba(255, 253, 249, .9);
  --shadow: 0 1px 0 rgba(68, 54, 38, .04), 0 18px 40px -18px rgba(68, 54, 38, .28);
  --shadow-sm: 0 1px 0 rgba(68, 54, 38, .04), 0 2px 8px -2px rgba(68, 54, 38, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171412; --surface: #201c19; --surface-2: #2a2521; --warm: #1d1916;
    --border: #36302a; --border-strong: #4a4239;
    --text: #f5efe7; --text-2: #d8cdbf; --text-3: #a59684;
    --accent: #2dd4bf; --accent-hover: #5eead4; --accent-text: #042f2b;
    --accent-soft: #10302c; --accent-soft-text: #99f6e4; --focus: #5eead4;
    --sky: #142825; --ink: #0e1413;
    --success: #a3d977; --success-soft: #1f2b14; --danger: #f2877d;
    --header-bg: rgba(32, 28, 25, .9);
    --shadow: 0 0 0 1px var(--border), 0 18px 40px -18px rgba(0, 0, 0, .7);
    --shadow-sm: 0 0 0 1px var(--border);
  }
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }
[id] { scroll-margin-top: 84px; }

/* --- Buttons (pills, as in the Paper theme) ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 40px; padding: .5rem 1.15rem; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: .92rem; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 50px; padding: .75rem 1.6rem; font-size: 1rem; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--accent); border-color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-link { color: var(--accent); padding-inline: .4rem; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-light { background: #fffdf9; color: #115e59; }
.btn-light:hover { background: #e2f3f0; }
.btn-on-dark { color: #fffdf9; border-color: rgba(255, 253, 249, .5); }
.btn-on-dark:hover { background: rgba(255, 253, 249, .1); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* --- Top bar + nav ------------------------------------------------------- */
.topbar { background: var(--ink); color: #e9e2d6; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar i { color: #5eead4; margin-right: 4px; }
.topbar a[data-apply] { color: #5eead4; font-weight: 600; margin-left: 6px; text-decoration: underline; text-underline-offset: 3px; }
.topbar-right { display: inline-flex; align-items: center; gap: 18px; }
.topbar-survey { display: inline-flex; align-items: center; gap: 4px; background: #5eead4; color: #042f2b; font-weight: 700; border-radius: 999px; padding: 3px 12px; text-decoration: none; white-space: nowrap; }
.topbar-survey i { color: #042f2b; }
.topbar-survey:hover { background: #99f6e4; }
.topbar-survey[hidden] { display: none; }
.topbar-mail { color: #d9cfbf; }
.topbar-mail:hover { color: #fff; }

.nav { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand { --pk-accent: var(--accent); font-size: 1.25rem; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-links a:hover { color: var(--text); border-bottom-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.lang button { font: inherit; font-size: .75rem; font-weight: 600; color: var(--text-3); background: none; border: 0; border-radius: 999px; padding: 4px 9px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; background: linear-gradient(180deg, var(--sky) 0%, var(--bg) 100%); padding: 80px 0 120px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.08; color: var(--ink); }
@media (prefers-color-scheme: dark) { .hero h1 { color: var(--text); } }
.lead { font-size: 1.2rem; color: var(--text-2); margin: 22px 0 32px; max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-note { margin-top: 22px; color: var(--text-3); font-size: .92rem; }
.hero-video { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--accent); font-weight: 600; text-decoration: none; }
.hero-video:hover { text-decoration: underline; }
.hero-video i { font-size: 1.3rem; }
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; fill: var(--surface); }

/* Dashboard picture, drawn in HTML so it follows the theme */
.shot { position: relative; margin: 0; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px; transform: rotate(-1deg); }
.shot-top { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 14px; font-weight: 600; }
.shot-co { display: inline-flex; align-items: center; gap: 8px; }
.shot-co img { border-radius: 5px; }
.shot-date { font-size: .8rem; color: var(--text-3); background: var(--surface-2); border-radius: 999px; padding: 3px 12px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; }
.kpi small { display: block; color: var(--text-3); font-size: .74rem; line-height: 1.3; }
.kpi b { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; margin-top: 4px; }
.kpi em { font-style: normal; font-size: .74rem; font-weight: 600; color: var(--success); }
.dash-list { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px 34px; margin-top: 10px; }
.dash-list .mini-h { font-size: .85rem; margin-bottom: 2px; }
.dash-list .lead-row { gap: 12px; }
.dash-list .lead-row:last-child { border-bottom: 0; }
.lead-who { display: flex; align-items: center; gap: 10px; }
.p-warn { background: #fcefd7; color: #a35c00; } .p-late { background: #fbe4e1; color: var(--danger); }
@media (prefers-color-scheme: dark) { .p-warn { background: #33250c; color: #f5b955; } .p-late { background: #3a1a17; } }
.av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .72rem; font-weight: 700; color: #fff; flex: none; }
.av.lg { width: 46px; height: 46px; font-size: .95rem; }
.av1 { background: #0f766e; } .av2 { background: #c2410c; } .av3 { background: #7c3aed; }
.shot-card {
  position: absolute; left: -28px; bottom: -26px; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); transform: rotate(1deg);
  animation: rise .6s .7s both ease-out;
}
.shot-card b { display: block; font-size: .9rem; }
.shot-card small { color: var(--text-3); font-size: .8rem; }
.shot-card-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
@keyframes rise { from { opacity: 0; transform: translateY(12px) rotate(1deg); } to { opacity: 1; transform: rotate(1deg); } }

/* --- Survey callout ---------------------------------------------------------- */
.survey-cta { padding: 96px 0 0; }
.survey-cta + .final { padding-top: 32px; }
.survey-cta[hidden] { display: none; }
.survey-card { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: #fcefd7; border: 1.5px solid #f2d39a; border-radius: var(--radius-lg); padding: 28px 32px; }
.survey-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fffdf9; color: #a35c00; font-size: 1.4rem; flex: none; }
.survey-text { flex: 1 1 320px; }
.survey-text h2 { font-size: 1.6rem; color: #2a2420; }
.survey-text p { color: #574c42; margin-top: 6px; }
@media (prefers-color-scheme: dark) {
  .survey-card { background: #33250c; border-color: #5a4316; }
  .survey-ico { background: #201c19; color: #f5b955; }
  .survey-text h2 { color: var(--text); }
  .survey-text p { color: var(--text-2); }
}

/* --- Facts --------------------------------------------------------------- */
.facts { background: var(--surface); padding: 8px 0 56px; }
.facts-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.facts-row > div { border-top: 3px solid var(--accent); padding-top: 16px; }
.facts-row b { display: block; font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; color: var(--accent); margin-bottom: 6px; }
.facts-row span { color: var(--text-2); font-size: .95rem; }

/* --- Sections ------------------------------------------------------------ */
.section { padding: 96px 0; }
.section-warm { background: var(--warm); }

/* Showcase video */
.video-frame { max-width: 1040px; margin: 40px auto 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--ink); aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; }
.chapters { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1040px; margin: 20px auto 0; padding: 0; }
.chapters button { font: inherit; font-size: .88rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.chapters button:hover { color: var(--text); border-color: var(--border-strong); }
.chapters button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fffdf9; }
.chapters .ch-time { color: var(--text-3); font-variant-numeric: tabular-nums; margin-right: 4px; }
.chapters button[aria-current="true"] .ch-time { color: inherit; opacity: .7; }
@media (prefers-color-scheme: dark) { .chapters button[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); } }
.title { font-size: clamp(2rem, 3.8vw, 2.9rem); text-align: center; max-width: 780px; margin: 0 auto; }
.title-sub { text-align: center; color: var(--text-2); font-size: 1.1rem; max-width: 640px; margin: 16px auto 0; }
.title.left, .title-sub.left { text-align: left; margin-left: 0; }

/* Product tabs */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 40px 0 28px; }
.tabs button {
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--text-2); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 999px; padding: .6rem 1.2rem; cursor: pointer; display: inline-flex; gap: .5rem; align-items: center; white-space: nowrap;
}
.tabs button:hover { border-color: var(--border-strong); color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fffdf9; }
@media (prefers-color-scheme: dark) { .tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); } }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; }
.panel[hidden] { display: none; }
.panel h3 { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.panel-text > p { color: var(--text-2); margin: 14px 0 20px; font-size: 1.03rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.ticks li::after { content: ''; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.panel-art { border-radius: var(--radius); padding: 40px 32px; display: grid; place-items: center; min-height: 320px; }
.art-booking { background: #dcefeb; } .art-team { background: #fbeee4; } .art-cust { background: #efe9fb; } .art-money { background: #f4ecd8; }
.art-mkt { background: #f8e1dc; } .art-stock { background: #e3ecd5; } .art-sales { background: #e1eaf6; }
@media (prefers-color-scheme: dark) { .art-booking, .art-team, .art-cust, .art-money, .art-mkt, .art-stock, .art-sales { background: var(--surface-2); } }
.mini-card { width: 100%; max-width: 330px; background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); font-size: .88rem; }
.mini-h { font-weight: 700; margin-bottom: 12px; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.days span, .slots span { text-align: center; border-radius: 8px; padding: 6px 0; background: var(--surface-2); font-size: .8rem; }
.days .on { background: var(--ink); color: #fffdf9; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.slots .taken { color: var(--text-3); text-decoration: line-through; background: transparent; border: 1px dashed var(--border-strong); }
.slots .sel { background: var(--accent); color: var(--accent-text); font-weight: 600; }
.mini-btn { display: block; text-align: center; background: var(--accent); color: var(--accent-text); border-radius: 999px; padding: 8px; font-weight: 600; }
.chat .msg { display: flex; gap: 10px; margin-top: 12px; }
.chat .msg p { background: var(--surface-2); border-radius: 4px 12px 12px 12px; padding: 8px 12px; }
.chat .msg b { display: block; font-size: .8rem; }
.cust { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.cust b { display: block; }
.cust small { color: var(--text-3); }
.cust-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); color: var(--text-2); }
.cust-row b { color: var(--text); }
.cust-row.total { border-bottom: 0; font-size: 1rem; }
.inv-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 1rem; }
.inv-head span { color: var(--text-3); }
.qr { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.qr i { font-size: 2rem; }
.qr small { color: var(--text-2); font-weight: 600; }

/* Marketing, stock and setup pictures */
.lead-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.lead-row b { display: block; font-size: .88rem; }
.lead-row small { color: var(--text-3); }
.pill { font-style: normal; font-size: .72rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.p-new { background: #fbeee4; color: #9a3412; } .p-contacted { background: #e5eef9; color: #2f5f9e; } .p-won { background: var(--success-soft); color: var(--success); }
@media (prefers-color-scheme: dark) { .p-new { background: #3a2216; color: #fdba74; } .p-contacted { background: #172435; color: #8db8f0; } }
.camp { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-soft-text); font-size: .8rem; font-weight: 600; }
.camp.warn { background: #fcefd7; color: #a35c00; }
@media (prefers-color-scheme: dark) { .camp.warn { background: #33250c; color: #f5b955; } }
.stock-row { display: grid; grid-template-columns: 1.3fr 1fr auto; align-items: center; gap: 10px; padding: 8px 0; color: var(--text-2); }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar.low i { background: #c2410c; }
.lowtxt { color: #c2410c; }

.easy { align-items: center; }
.easy-art { background: #f4ecd8; border-radius: var(--radius-lg); padding: 48px 32px; display: grid; place-items: center; }
@media (prefers-color-scheme: dark) { .easy-art { background: var(--surface-2); } }
.checklist .mini-h { display: flex; justify-content: space-between; align-items: baseline; }
.checklist .mini-h small { color: var(--text-3); font-weight: 500; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-2); margin-bottom: 10px; overflow: hidden; }
.progress i { display: block; width: 80%; height: 100%; background: var(--accent); }
.chk { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.chk:last-child { border-bottom: 0; }
.chk i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; color: var(--text-3); }
.chk.done i { background: var(--accent); color: var(--accent-text); }
.chk.done span { color: var(--text-3); text-decoration: line-through; }
.easy-list { margin-top: 24px; }

/* Stories */
.stories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.story { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.story-art { height: 150px; display: grid; place-items: center; font-size: 2.6rem; color: rgba(42, 36, 32, .75); position: relative; overflow: hidden; }
.story-art::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .28); right: -70px; bottom: -110px; }
.s-salon { background: #f6d7c3; } .s-clinic { background: #cfe8e3; } .s-gym { background: #e3dcf5; } .s-shop { background: #f1e3b8; } .s-any { background: #d8e4f2; }
@media (prefers-color-scheme: dark) { .story-art { color: rgba(255, 255, 255, .8); } .s-salon { background: #4a2c1e; } .s-clinic { background: #173a35; } .s-gym { background: #2e2546; } .s-shop { background: #3d3317; } .s-any { background: #1c2a3c; } }
.story h3 { padding: 22px 22px 6px; }
.story p { padding: 0 22px 24px; color: var(--text-2); font-size: .95rem; }
/* Catch-all card: spans the whole row, art on the left, example trades as tags. */
.story-wide { grid-column: 1 / -1; flex-direction: row; }
.story-wide .story-art { flex: 0 0 240px; height: auto; min-height: 150px; }
.story-wide .story-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.story-wide p { padding-bottom: 14px; }
.story-tags { list-style: none; margin: 0; padding: 0 22px 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.story-tags li { font-size: .85rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.steps::before { content: ''; position: absolute; top: 24px; left: 16%; right: 16%; border-top: 2px dashed var(--border-strong); }
.steps li { position: relative; text-align: center; }
.num { position: relative; display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-family: var(--serif); font-size: 1.35rem; font-weight: 700; box-shadow: 0 0 0 8px var(--warm); }
.steps h3 { margin: 20px 0 8px; font-size: 1.2rem; }
.steps p { color: var(--text-2); max-width: 300px; margin: 0 auto; }

/* Local / trust */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 16px; background: var(--surface); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.checks i { color: var(--accent); font-size: 1.2rem; width: 24px; text-align: center; margin-top: 3px; }
.checks b { display: block; margin-bottom: 2px; }
.checks span { color: var(--text-2); font-size: .95rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--border-strong); }
.faq details:first-child { border-top: 1px solid var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-size: 1.2rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 40px 22px 0; }

/* Final CTA */
.final { padding: 96px 0; }
.final-card {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  background: #0f766e; color: #fffdf9; border-radius: 28px; padding: 56px;
}
@media (prefers-color-scheme: dark) { .final-card { background: #115e59; } }
.final-card::before, .final-card::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.final-card::before { width: 320px; height: 320px; right: -80px; top: -160px; }
.final-card::after { width: 200px; height: 200px; right: 180px; bottom: -130px; }
.final-card > * { position: relative; z-index: 1; }
.final h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.final p { opacity: .9; margin-top: 10px; font-size: 1.1rem; max-width: 34em; }
.final-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Footer -------------------------------------------------------------- */
.footer { background: var(--ink); color: #d9cfbf; padding: 64px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 32px; }
.footer .brand { color: #fffdf9; margin-bottom: 12px; --pk-accent: #2dd4bf; }
.footer-brand p { color: #b5a998; max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #d9cfbf; transition: background .15s, color .15s; }
.footer-social a:hover { background: rgba(94, 234, 212, .15); color: #5eead4; }
.footer-social svg { width: 18px; height: 18px; }
.footer h4 { font-size: .95rem; color: #fffdf9; margin-bottom: 14px; font-weight: 600; }
.footer nav a { display: block; padding: 4px 0; color: #d9cfbf; }
.footer nav a:hover { color: #5eead4; }
.footer nav a[hidden] { display: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #a59684; }
.footer-bottom a:hover { color: #fffdf9; }

/* --- Apply modal --------------------------------------------------------- */
.modal {
  width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(31, 43, 42, .55); backdrop-filter: blur(3px); }
.modal-card { position: relative; padding: 32px; }
.modal h2 { font-size: 1.7rem; padding-right: 36px; }
.modal-lead { color: var(--text-2); margin: 8px 0 22px; font-size: .97rem; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text-2); cursor: pointer; font-size: 1rem; }
.modal-close:hover { color: var(--text); }
.field { margin-bottom: 14px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .8rem; min-height: 44px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { color: var(--danger); font-size: .9rem; margin-bottom: 10px; }
.form-msg:empty { display: none; }
.modal-note { color: var(--text-3); font-size: .8rem; text-align: center; margin-top: 12px; }
.done { text-align: center; padding: 16px 0 4px; }
.done h2 { padding: 0; }
.done p { color: var(--text-2); margin: 10px 0 24px; }
.done-ico { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 1.4rem; margin-bottom: 14px; }

/* --- Survey (/sk/survey) ------------------------------------------------- */
.wrap.narrow { max-width: 820px; }
.muted { color: var(--text-3); }
.survey-hero { position: relative; background: linear-gradient(180deg, var(--sky) 0%, var(--bg) 100%); padding: 64px 0 110px; }
.survey-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; color: var(--ink); }
@media (prefers-color-scheme: dark) { .survey-hero h1 { color: var(--text); } }
.survey-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: .93rem; }
.survey-meta i { color: var(--accent); margin-right: 6px; }
.survey-body { padding-bottom: 96px; margin-top: -40px; position: relative; }
.survey-state { text-align: center; color: var(--text-2); padding: 32px 0; }
.card-state { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 48px 32px; }
.card-state h2 { font-size: 1.8rem; margin-bottom: 10px; }
.card-state p { margin-bottom: 24px; }
.card-state:focus { outline: none; }
.done-ico.neutral { background: var(--surface-2); color: var(--text-2); }

.survey-progress { position: sticky; top: 76px; z-index: 5; display: flex; align-items: center; gap: 12px; background: var(--header-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 16px; margin-bottom: 20px; box-shadow: var(--shadow-sm); font-size: .85rem; font-weight: 600; color: var(--text-2); }
.survey-progress-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.survey-progress-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s; }
.survey-section { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 32px; margin-bottom: 20px; }
.survey-section-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.survey-section-head .num { box-shadow: none; width: 40px; height: 40px; font-size: 1.1rem; flex: none; }
.survey-section-head h2 { font-size: 1.6rem; }
.survey-section-head h2 .opt { font-family: var(--font); font-size: .95rem; font-weight: 500; color: var(--text-3); }
.survey-section-head p { color: var(--text-2); margin-top: 4px; }
.q { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.q:last-child { margin-bottom: 0; }
.q legend, .q-label { display: block; padding: 0; font-weight: 650; font-size: 1.02rem; margin-bottom: 10px; }
.q .req { color: var(--danger); }
.q-hint { color: var(--text-3); font-size: .87rem; margin: -6px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input, .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--bg); font-size: .93rem; transition: background .15s, border-color .15s; }
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-soft-text); font-weight: 600; }
.chip input[type="checkbox"]:checked + span::before { content: '\2713'; font-weight: 700; }
.chip input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.other { margin: 12px 0 0; max-width: 420px; }
.q-error { color: var(--danger); font-size: .9rem; margin-top: 8px; }
.q.invalid .chip span { border-color: var(--danger); }

.scale-head, .scale-row { display: grid; grid-template-columns: 1fr minmax(300px, 1.1fr); gap: 12px; align-items: center; }
.scale-head { font-size: .78rem; font-weight: 600; color: var(--text-3); margin-bottom: 6px; }
.scale-head .scale-opts span { text-align: center; }
.scale-row { padding: 8px 0; border-top: 1px dashed var(--border); }
.scale-label { font-size: .95rem; }
.scale-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg { position: relative; cursor: pointer; }
.seg span { display: block; text-align: center; padding: .45rem .3rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg); font-size: 0; }
.seg span::after { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--border-strong); vertical-align: middle; }
.seg:hover span { border-color: var(--accent); }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); }
.seg input:checked + span::after { background: var(--accent-text); border-color: var(--accent-text); }

.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border-radius: var(--radius); padding: 16px 18px; margin-top: 6px; cursor: pointer; font-size: .93rem; color: var(--text-2); }
.consent b { color: var(--text); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.consent + .consent { margin-top: 10px; }
.consent-sm { padding: 12px 14px; margin: 4px 0 14px; font-size: .85rem; gap: 10px; }
.consent-sm input { width: 18px; height: 18px; }
.survey-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.survey-submit .muted { font-size: .85rem; max-width: 360px; }
.footer-slim { padding: 8px 0 24px; }
.footer-slim .footer-bottom { margin-top: 16px; border-top: 0; }

@media (max-width: 640px) {
  .survey-section { padding: 22px 18px; }
  .survey-section-head h2 { font-size: 1.35rem; }
  .scale-head { display: none; }
  .scale-row { grid-template-columns: 1fr; gap: 8px; }
  .seg span { font-size: .78rem; padding: .45rem .2rem; }
  .seg span::after { display: none; }
  .seg input:checked + span { color: var(--accent-text); }
  .survey-progress { top: 68px; }
  .survey-submit .btn { width: 100%; }
}

/* --- Features page (/features) ------------------------------------------ */
.all-features { text-align: center; margin-top: 32px; }
.nav-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.feat-hero { padding: 72px 0 64px; text-align: center; }
.feat-hero .lead { margin: 18px auto 28px; max-width: 40em; }
.feat-hero .cta-row { justify-content: center; }
.feat-eyebrow { color: var(--accent); font-weight: 650; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.feat-jump { position: sticky; top: 68px; z-index: 40; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.feat-jump-inner { position: relative; }
.feat-jump-row { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 13px; scrollbar-width: none; overscroll-behavior-x: contain; }
.feat-jump-row::-webkit-scrollbar { display: none; }
.feat-jump-row.dragging { cursor: grabbing; user-select: none; }
.feat-jump-row.dragging a { pointer-events: none; }
/* Edge fades and arrows show only where there is more to scroll to. */
.feat-jump-inner::before, .feat-jump-inner::after { content: ''; position: absolute; top: 0; bottom: 0; width: 72px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.feat-jump-inner::before { left: 0; background: linear-gradient(to right, var(--surface) 35%, transparent); }
.feat-jump-inner::after { right: 0; background: linear-gradient(to left, var(--surface) 35%, transparent); }
.feat-jump.can-prev .feat-jump-inner::before, .feat-jump.can-next .feat-jump-inner::after { opacity: 1; }
.feat-jump-btn { position: absolute; top: calc(50% - 1.5px); z-index: 2; width: 32px; height: 32px; margin-top: -16px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); font-size: .75rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, border-color .15s, color .15s; }
.feat-jump-btn:hover { border-color: var(--accent); color: var(--accent); }
.feat-jump-btn.prev { left: 0; } .feat-jump-btn.next { right: 0; }
.feat-jump.can-prev .feat-jump-btn.prev, .feat-jump.can-next .feat-jump-btn.next { opacity: 1; pointer-events: auto; }
.feat-jump-track { position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; opacity: 0; transition: opacity .2s; }
.feat-jump.overflows .feat-jump-track { opacity: 1; }
.feat-jump-thumb { display: block; height: 100%; border-radius: 3px; background: var(--accent); will-change: transform; }
.feat-jump a.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-soft-text); }
.feat-jump a { flex: none; transition: background .15s, border-color .15s, color .15s; display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px; padding: .35rem .9rem; white-space: nowrap; }
.feat-jump a:hover { border-color: var(--accent); color: var(--text); }
.feat-jump i { color: var(--accent); }
.feat-group { padding: 72px 0; scroll-margin-top: 130px; }
.feat-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 32px; }
.feat-head-ico { flex: none; width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-soft-text); font-size: 1.35rem; }
.feat-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.feat-head p { color: var(--text-2); font-size: 1.05rem; margin-top: 6px; max-width: 40em; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.feat-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-soft-text); margin-bottom: 14px; }
.feat-card h3 { margin-bottom: 6px; }
.feat-card p { color: var(--text-2); font-size: .95rem; }

/* Touch screens swipe the slider; the arrows are for mice. */
@media (pointer: coarse) { .feat-jump-btn { display: none; } }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: .9rem; }
}
@media (max-width: 1060px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: .86rem; }
  .stories { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
/* Seven links stop fitting next to the buttons below ~1020px. */
@media (max-width: 1020px) { .nav-links { display: none; } }
@media (max-width: 920px) {
  .hero { padding: 56px 0 110px; }
  .hero-grid, .panel, .split, .faq-grid { grid-template-columns: 1fr; }
  .easy-art { order: 2; }
  .hero-grid { gap: 56px; }
  .panel { padding: 32px; gap: 32px; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .split, .faq-grid { gap: 32px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .feat-jump { top: 60px; }
  .feat-jump-inner { margin-inline: -16px; }
  .feat-jump-row { padding-inline: 16px; scroll-padding-inline: 16px; }
  .feat-jump-track { left: 16px; right: 16px; }
  .feat-hero { padding: 48px 0 40px; }
  .feat-group { padding: 56px 0; scroll-margin-top: 116px; }
  .feat-head { gap: 14px; }
  .feat-head-ico { width: 44px; height: 44px; font-size: 1.15rem; }
  .feat-grid { grid-template-columns: 1fr; }
  .topbar-mail { display: none; }
  .topbar-inner { flex-wrap: wrap; justify-content: center; gap: 6px 12px; padding: 6px 0; text-align: center; }
  .survey-card { padding: 22px 18px; }
  .survey-cta { padding-top: 64px; }
  .survey-card .btn { width: 100%; }
  .nav-inner { gap: 8px; height: 60px; }
  .nav-actions { gap: 6px; }
  .btn { padding: .45rem .85rem; }
  .lang button { padding: 4px 7px; }
  .section { padding: 64px 0; }
  .shot { transform: none; padding: 12px; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none; }
  .shot-card { left: 12px; }
  .facts-row { grid-template-columns: 1fr; gap: 20px; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; }
  .panel { padding: 22px; }
  .panel-art { padding: 24px 16px; min-height: 0; }
  .stories { grid-template-columns: 1fr; }
  .story-wide { flex-direction: column; }
  .story-wide .story-art { flex-basis: auto; height: 150px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .final-card { padding: 36px 24px; border-radius: 22px; }
  .final-actions, .final-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-card { padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Legal pages (/privacy, /terms, /dpa) -------------------------------- */
.legal { padding: 48px 0 96px; }
.legal h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 6px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--text-2); line-height: 1.65; }
.legal ul { padding-left: 1.3rem; margin: 0 0 12px; }
.legal .updated { color: var(--text-3); font-size: .9rem; margin-bottom: 24px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.legal th { color: var(--text); font-weight: 650; }
.legal .table-scroll { overflow-x: auto; }
.legal mark.todo { background: #fde68a; color: #713f12; padding: 0 4px; border-radius: 4px; }
.legal-lang { display: inline-flex; gap: 4px; margin-bottom: 18px; }
.legal-lang button { font: inherit; font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--bg); color: var(--text-2); cursor: pointer; }
.legal-lang button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-soft-text); font-weight: 600; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* --- Docs (/docs) ---------------------------------------------------------- */
/* Both languages are in the page; html[data-docs-lang] (js/docs-lang.js) shows one. */
.l-en { display: none; }
html[data-docs-lang="en"] .l-en { display: revert; }
html[data-docs-lang="en"] .l-sk { display: none; }
.docs-body [id] { scroll-margin-top: 132px; }
.docs-bar { position: sticky; top: 68px; z-index: 45; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.docs-bar-inner { display: flex; align-items: center; gap: 16px; height: 56px; }
.docs-bar-home { display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; color: var(--text); }
.docs-bar-home i { color: var(--accent); }
.docs-menu-btn { display: none; align-items: center; gap: .5rem; font: inherit; font-size: .9rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 999px; padding: .35rem .9rem; cursor: pointer; }
.docs-search { position: relative; margin-left: auto; width: min(420px, 100%); }
.docs-search > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: .85rem; pointer-events: none; }
.docs-search input { width: 100%; font: inherit; font-size: .92rem; color: var(--text); background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 999px; padding: .5rem 2.4rem .5rem 2.3rem; }
.docs-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.docs-search input::-webkit-search-cancel-button { display: none; }
.docs-search-key { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.docs-search input:focus ~ .docs-search-key { display: none; }
kbd { font: 600 .78rem/1 var(--font); color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; padding: 3px 6px; }
.docs-results { position: absolute; top: calc(100% + 8px); right: 0; width: min(560px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.docs-results a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); }
.docs-results li.is-active a, .docs-results a:hover { background: var(--accent-soft); }
.docs-results strong { display: block; font-size: .93rem; font-weight: 650; }
.docs-results strong span { color: var(--text-2); font-weight: 500; }
.docs-results small { display: block; color: var(--text-3); font-size: .82rem; line-height: 1.45; margin-top: 2px; }
.docs-results-none { padding: 14px 12px; color: var(--text-3); font-size: .92rem; }

.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 48px; align-items: start; max-width: 1340px; }
.docs-layout-home { grid-template-columns: 250px minmax(0, 1fr); }
.docs-side { position: sticky; top: 124px; max-height: calc(100vh - 124px); overflow-y: auto; padding: 28px 8px 40px 0; scrollbar-width: thin; overscroll-behavior: contain; }
.docs-group { margin-bottom: 6px; }
.docs-group summary { list-style: none; display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); padding: 8px 10px; border-radius: var(--radius-sm); }
.docs-group summary::-webkit-details-marker { display: none; }
.docs-group summary::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: auto; color: var(--text-3); transition: transform .15s; transform: rotate(-90deg); }
.docs-group[open] summary::after { transform: none; }
.docs-group summary i { width: 16px; text-align: center; color: var(--accent); }
.docs-group summary:hover { background: var(--surface-2); }
.docs-group ul { list-style: none; margin: 2px 0 10px; padding: 0 0 0 18px; border-left: 1px solid var(--border); margin-left: 17px; }
.docs-group li a { display: block; font-size: .92rem; color: var(--text-2); padding: 6px 10px; margin-left: -1px; border-left: 2px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; line-height: 1.35; }
.docs-group li a:hover { color: var(--text); background: var(--surface-2); }
.docs-group li a[aria-current="page"] { color: var(--accent-soft-text); background: var(--accent-soft); border-left-color: var(--accent); font-weight: 600; }

.docs-main { min-width: 0; padding: 36px 0 80px; }
.docs-crumb { font-size: .85rem; color: var(--text-3); margin-bottom: 14px; display: flex; align-items: center; gap: .5rem; }
.docs-crumb a { color: var(--accent); font-weight: 600; }
.docs-crumb i { font-size: .65rem; }
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 14px; }
.doc .lead { font-size: 1.15rem; color: var(--text-2); line-height: 1.6; margin-bottom: 20px; }
.doc h2 { font-size: 1.6rem; margin: 48px 0 14px; padding-top: 4px; position: relative; }
.doc h3 { font-size: 1.12rem; margin: 30px 0 10px; position: relative; }
.doc p, .doc li { color: var(--text-2); line-height: 1.7; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 1.35rem; margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.doc li > ul, .doc li > ol { margin: 6px 0 0; }
.doc strong { color: var(--text); font-weight: 650; }
.doc a:not(.btn):not(.doc-anchor):not(.doc-card) { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc a:not(.btn):not(.doc-anchor):not(.doc-card):hover { color: var(--accent-hover); }
.doc code { font: .88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--text); overflow-wrap: anywhere; }
.doc pre { background: var(--ink); color: #e9f5f2; border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; margin: 0 0 18px; }
.doc pre code { background: none; border: 0; padding: 0; color: inherit; }
.doc .ui { font-weight: 650; color: var(--text); background: var(--surface-2); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.doc-anchor { position: absolute; left: -1.6rem; top: 50%; transform: translateY(-50%); font-size: .8rem; color: var(--text-3); opacity: 0; padding: 4px; transition: opacity .15s; }
.doc h2:hover .doc-anchor, .doc h3:hover .doc-anchor, .doc-anchor:focus-visible { opacity: 1; }
.doc-anchor:hover { color: var(--accent); }

/* "Who can use this" and similar chips under the title. */
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.doc-meta span { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .28rem .8rem; }
.doc-meta i { color: var(--accent); }
/* "In this guide you'll learn" box. */
.doc-learn { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px 8px; margin: 0 0 28px; box-shadow: var(--shadow-sm); }
.doc-learn p { font-weight: 650; color: var(--text); margin-bottom: 8px; }
.doc-learn ul { list-style: none; padding: 0; }
.doc-learn li { position: relative; padding-left: 1.6rem; }
.doc-learn li::before { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; left: 0; top: .1rem; font-size: .8rem; color: var(--accent); }

/* Numbered steps. */
.doc ol.doc-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 22px; }
.doc ol.doc-steps > li { counter-increment: step; position: relative; padding: 0 0 18px 48px; margin: 0; }
.doc ol.doc-steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-soft-text); font-weight: 700; font-size: .88rem; }
.doc ol.doc-steps > li:not(:last-child)::after { content: ''; position: absolute; left: 14.5px; top: 32px; bottom: 4px; width: 1px; background: var(--border-strong); }

/* Callouts. */
.callout { display: flex; gap: 14px; border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--surface); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 20px; }
.callout > i { color: var(--accent); margin-top: .3rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout p, .callout li { font-size: .95rem; }
.callout.tip { background: var(--accent-soft); border-color: var(--accent); }
.callout.tip p, .callout.tip li { color: var(--accent-soft-text); }
.callout.warn { border-color: #e2b23c; border-left-color: #d69e2e; background: #fdf6e3; }
.callout.warn > i { color: #b7791f; }
.callout.warn p, .callout.warn li { color: #6b4e16; }
@media (prefers-color-scheme: dark) {
  .callout.warn { background: #2a2210; border-color: #5c4a1c; border-left-color: #d69e2e; }
  .callout.warn p, .callout.warn li { color: #f3dfae; }
}

/* Screenshots. */
.doc figure.shot { margin: 8px 0 26px; }
.doc figure.shot img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); cursor: zoom-in; }
.doc figure.shot.phone { max-width: 320px; }
.doc figure.shot figcaption { font-size: .86rem; color: var(--text-3); margin-top: 10px; text-align: center; }
.docs-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 16, 12, .82); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.docs-lightbox[hidden] { display: none; }
.docs-lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.docs-lightbox-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.1rem; cursor: pointer; }

/* Tables. */
.doc .table-scroll { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.doc table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.doc th { color: var(--text); font-weight: 650; background: var(--surface-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc td.y { color: var(--success); text-align: center; }
.doc td.n { color: var(--text-3); text-align: center; }

/* Link cards ("Next steps", related pages). */
.doc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0 0 24px; }
.doc-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; transition: border-color .15s, transform .15s; }
.doc-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.doc-card strong { display: flex; align-items: center; gap: .5rem; color: var(--text); }
.doc-card strong i { color: var(--accent); }
.doc-card span { display: block; font-size: .88rem; color: var(--text-3); margin-top: 4px; line-height: 1.45; }

.docs-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; margin-top: 56px; }
.docs-pn { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; transition: border-color .15s; }
.docs-pn:hover { border-color: var(--accent); }
.docs-pn-next { text-align: right; grid-column: 2; }
.docs-pn-dir { display: block; font-size: .8rem; color: var(--text-3); margin-bottom: 2px; }
.docs-pn-title { font-weight: 650; color: var(--accent); }
.docs-help { max-width: 760px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--text-3); }
.docs-help a { color: var(--accent); font-weight: 600; }

.docs-toc { position: sticky; top: 124px; max-height: calc(100vh - 124px); overflow-y: auto; padding: 40px 0; font-size: .85rem; }
.docs-toc-title { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.docs-toc li a { display: block; color: var(--text-3); padding: 4px 0 4px 14px; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.4; }
.docs-toc li.toc-h3 a { padding-left: 26px; font-size: .82rem; }
.docs-toc li a:hover { color: var(--text); }
.docs-toc li a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.docs-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .9rem; padding: 8px 16px; border-radius: 999px; z-index: 210; }

/* Docs home. */
.docs-home h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); margin-bottom: 14px; }
.docs-home .lead { font-size: 1.15rem; color: var(--text-2); max-width: 40em; margin-bottom: 32px; }
.docs-start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.docs-start-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.docs-start-card:first-child { background: var(--accent-soft); border-color: var(--accent); }
.docs-start-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.docs-start-card h3 { margin-bottom: 6px; }
.docs-start-card p { color: var(--text-2); font-size: .93rem; }
.docs-home-sec { margin-bottom: 40px; }
.docs-home-sec h2 { display: flex; align-items: center; gap: 14px; font-size: 1.55rem; margin-bottom: 16px; }
.docs-home-sec h2 .feat-head-ico { width: 42px; height: 42px; font-size: 1.05rem; }
.docs-home-sec ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.docs-home-sec a { display: flex; gap: 12px; align-items: flex-start; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; transition: border-color .15s; }
.docs-home-sec a:hover { border-color: var(--accent); }
.docs-home-sec a > i { color: var(--accent); margin-top: .25rem; width: 18px; text-align: center; }
.docs-home-sec strong { display: block; font-weight: 650; font-size: .95rem; }
.docs-home-sec small { display: block; color: var(--text-3); font-size: .84rem; line-height: 1.45; margin-top: 2px; }

@media (max-width: 1180px) {
  .docs-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
  .docs-toc { display: none; }
}
@media (max-width: 920px) {
  .docs-layout, .docs-layout-home { grid-template-columns: minmax(0, 1fr); }
  .docs-menu-btn { display: inline-flex; }
  .docs-bar-home { display: none; }
  .docs-side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 150; width: min(320px, 86vw); max-height: none; background: var(--surface); padding: 20px 16px 40px; box-shadow: var(--shadow); transform: translateX(-105%); transition: transform .2s; }
  .docs-side.open { transform: none; }
  .docs-scrim { position: fixed; inset: 0; z-index: 140; background: rgba(20, 16, 12, .45); }
  .docs-scrim[hidden] { display: none; }
  body.docs-locked { overflow: hidden; }
  .docs-start { grid-template-columns: 1fr; }
  .doc-anchor { display: none; }
}
@media (max-width: 640px) {
  .docs-bar { top: 60px; }
  .docs-bar-inner { gap: 10px; height: 52px; }
  .docs-search-key { display: none; }
  .docs-body [id] { scroll-margin-top: 124px; }
  .docs-main { padding-top: 24px; }
  .doc h2 { font-size: 1.4rem; margin-top: 40px; }
  .doc ol.doc-steps > li { padding-left: 42px; }
  .docs-prevnext { grid-template-columns: 1fr; }
  .docs-pn-next { grid-column: 1; }
}
/* Docs use a wider page than the marketing sections; the header follows it. */
.docs-body .wrap { max-width: 1340px; }
/* Narrow phones: the logo mark alone, so SK/EN and both buttons fit the header. */
@media (max-width: 440px) {
  .nav .brand .pk-word { display: none; }
}
/* Docs glossary. */
.doc dl.doc-glossary { margin: 0 0 24px; border-top: 1px solid var(--border); }
.doc-glossary dt { font-weight: 650; color: var(--text); padding-top: 14px; }
.doc-glossary dd { margin: 4px 0 0; padding-bottom: 14px; color: var(--text-2); line-height: 1.65; border-bottom: 1px solid var(--border); }

/* Features teaser on the landing page */
.features-teaser { padding: 8px 0 24px; }
.ft-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 32px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-lg, 18px); }
.ft-card h2 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 6px; }
.ft-card p { margin: 0; color: var(--text-2); max-width: 62ch; }
.ft-card .btn { flex: none; }
@media (max-width: 760px) { .ft-card { flex-direction: column; align-items: flex-start; padding: 22px; } }

/* --- Blog (/blog) ---------------------------------------------------------- */
/* Uses the docs language switch (html[data-docs-lang]) and the .doc article typography. */
.blog { padding: 36px 0 80px; }
.blog-home h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); margin-bottom: 14px; }
.blog-home .lead { font-size: 1.15rem; color: var(--text-2); max-width: 40em; margin-bottom: 28px; }
.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.blog-chip { display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-size: .88rem; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 999px; padding: .35rem .9rem; cursor: pointer; }
.blog-chip i { color: var(--accent); font-size: .8rem; }
.blog-chip:hover { border-color: var(--accent); }
.blog-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-soft-text); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .15s, transform .15s; }
.blog-card[hidden] { display: none; }
.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.blog-card > .feat-ico { margin: 22px 22px 0; }
.blog-card-cover { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--surface-2); }
.blog-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 22px 22px; flex: 1; }
.blog-card h2, .blog-card h3 { font-size: 1.2rem; line-height: 1.3; color: var(--text); margin: 0; }
.blog-card p { color: var(--text-2); font-size: .94rem; line-height: 1.55; margin: 0; }
.blog-meta { font-size: .85rem; color: var(--text-3); }
.blog-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.blog-pill { font-size: .76rem; font-weight: 600; color: var(--accent-soft-text); background: var(--accent-soft); border-radius: 999px; padding: .15rem .6rem; }
.blog-empty { color: var(--text-3); padding: 24px 0; }

.blog-article { max-width: 760px; margin: 0 auto; }
.blog-preview { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: #6b4e16; background: #fdf6e3; border: 1px solid #e2b23c; border-radius: var(--radius-sm); padding: 10px 16px; margin: 0 0 20px; }
@media (prefers-color-scheme: dark) { .blog-preview { color: #f3dfae; background: #2a2210; border-color: #5c4a1c; } }
.doc.blog-post .blog-meta { margin: -4px 0 18px; }
.blog-cover { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); margin: 0 0 24px; }
.blog-cta { margin: 48px 0 0; padding: 28px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); }
.blog-cta h2 { font-size: 1.4rem; margin: 0 0 8px; }
.blog-cta p { color: var(--accent-soft-text); line-height: 1.6; margin: 0 0 18px; }
.blog-more { margin-top: 56px; }
.blog-more h2 { font-size: 1.3rem; margin-bottom: 16px; }
.blog-more .blog-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 640px) {
  .blog { padding-top: 24px; }
  .blog-grid, .blog-more .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-cta { padding: 22px 18px; }
  .blog-cta .btn { width: 100%; }
}

/* Newsletter signup (footer + end of blog posts) */
.nl-form { margin-top: 22px; max-width: 320px; }
.nl-title { color: #fffdf9; font-weight: 600; margin: 0 0 8px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; }
.nl-row input[aria-invalid="true"] { border-color: #f87171; }
.nl-row .btn { padding: 9px 16px; white-space: nowrap; }
.footer-brand .nl-note { font-size: .82rem; margin: 8px 0 0; max-width: none; }
.nl-note a { text-decoration: underline; }
.nl-msg { font-size: .88rem; margin: 6px 0 0; min-height: 1.2em; color: #fca5a5; }
.nl-msg.ok { color: #5eead4; }
.blog-newsletter { margin: 24px 0 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); }
.blog-newsletter h2 { font-size: 1.3rem; margin: 0 0 8px; }
.blog-newsletter p { line-height: 1.6; margin: 0 0 14px; }
.blog-newsletter .nl-form { max-width: 460px; margin: 0; }
.blog-newsletter .nl-row input { border-color: var(--border-strong); background: transparent; }
.blog-newsletter .nl-msg { color: #b91c1c; margin: 6px 0 0; }
.blog-newsletter .nl-msg.ok { color: var(--accent-soft-text); }
@media (max-width: 520px) { .blog-newsletter { padding: 22px 18px; } .nl-row { flex-direction: column; } }
