:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --sunk: #f2f1ee;
  --text: #16151a;
  --muted: #55525f;
  --line: #e4e2e8;
  --accent: #4527c4;
  --accent-hover: #371e9f;
  --accent-soft: #efecfb;
  --ok: #157347;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); font-weight: 650; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.3rem); font-weight: 620; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p, ul, ol, table { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--sunk); border: 1px solid var(--line); padding: .08em .4em; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

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

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(250, 250, 248, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: 148px; height: auto; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { color: var(--text); text-decoration: none; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sunk); color: var(--text); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.signin { display: none; color: var(--text); text-decoration: none; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.signin:hover { background: var(--sunk); color: var(--text); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .95rem; font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(22, 21, 26, .12); padding: 8px; display: grid; }
.menu-panel a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.menu-panel a:hover { background: var(--sunk); }
.head-actions .btn { display: none; }
@media (min-width: 560px) { .head-actions .btn { display: inline-flex; } }
@media (min-width: 1000px) {
  .nav, .signin { display: flex; }
  .menu { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 550; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: background-color .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9c5d3; color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .95rem; }
.btn:active { transform: translateY(1px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
section + section { border-top: 1px solid var(--line); }
.tint { background: var(--surface); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.answer { font-size: 1.15rem; max-width: 66ch; }
.muted { color: var(--muted); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }

.hero { padding: 56px 0 64px; }
@media (min-width: 900px) { .hero { padding: 88px 0 96px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.page-hero { padding: 40px 0 56px; }
@media (min-width: 900px) { .page-hero { padding: 64px 0 80px; } }

.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9a97a3; }
.crumbs a { color: var(--muted); }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tint .card { background: var(--bg); }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .who { font-size: .85rem; font-weight: 600; color: var(--accent); margin-bottom: 8px; display: block; }
a.card { display: block; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: #c9c5d3; transform: translateY(-2px); color: var(--text); }
a.card .more { color: var(--accent); font-weight: 550; display: inline-block; margin-top: 12px; }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.nots li::before { border: 0; width: 12px; height: 2px; background: var(--muted); transform: none; top: .8em; }

.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 16px; }
.steps > li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 68px; position: relative; }
.steps > li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 650; display: grid; place-items: center; font-size: .95rem; }
.steps h3 { margin-bottom: .3em; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips code { font-size: .95rem; padding: .3em .6em; background: var(--surface); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; margin: 0; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; background: var(--sunk); font-size: .9rem; }

.callout { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.callout p:last-child { margin: 0; }

/* FAQ */
.faq { max-width: 760px; }
.faq-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 1.1rem; margin-bottom: .4em; }
.faq-item p { margin: 0; color: var(--muted); }
.faq-group + .faq-group { margin-top: 48px; }

.related { display: grid; gap: 12px; padding: 0; list-style: none; }
@media (min-width: 720px) { .related { grid-template-columns: repeat(3, 1fr); } }

/* CTA band */
.cta-band { background: var(--text); color: #f4f3f7; border-radius: 20px; padding: 40px 24px; }
@media (min-width: 720px) { .cta-band { padding: 56px; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9c6d2; max-width: 56ch; }
.cta-band .btn-primary { background: #fff; color: var(--text); }
.cta-band .btn-primary:hover { background: #e9e6f5; color: var(--text); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: #4a4752; }
.cta-band .btn-ghost:hover { border-color: #8a8694; color: #fff; }

/* Examples: real HTML product previews, always labelled */
.example { margin: 0; position: relative; }
.example-tag { position: absolute; top: -11px; left: 16px; z-index: 1; background: var(--text); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; }
.example figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.device { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(22, 21, 26, .04), 0 18px 40px -18px rgba(40, 24, 110, .22); overflow: hidden; }
.room-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.room-logo { width: 36px; height: 36px; border-radius: 10px; background: #1f6f5c; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.room-head strong { display: block; font-size: .95rem; line-height: 1.3; }
.room-head span { font-size: .82rem; color: var(--muted); }
.msgs { list-style: none; margin: 0; padding: 16px; display: grid; gap: 10px; background: var(--bg); font-size: .95rem; }
.msg { max-width: 85%; padding: 8px 12px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); line-height: 1.45; }
.msg b { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
.msg p { margin: 2px 0 0; }
.msg time { display: block; text-align: right; font-size: .72rem; color: var(--muted); }
.msg.bot { background: var(--accent-soft); border-color: #ddd6f7; }
.msg.bot b { color: var(--accent); }
.msg.me { justify-self: end; background: #e6f4ee; border-color: #cfe7dc; }
.msg code { background: transparent; border: 0; padding: 0; font-size: .95em; }

.wa { background: #efeae2; padding: 16px; }
.wa .bubble { background: #fff; border-radius: 12px; padding: 12px 14px; max-width: 360px; box-shadow: 0 1px 1px rgba(0,0,0,.06); font-size: .95rem; line-height: 1.5; }
.wa .bubble p { margin: 0 0 8px; }
.wa .from { font-size: .8rem; font-weight: 600; color: #1f6f5c; margin-bottom: 4px; }
.wa .btns { max-width: 360px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.wa .fake-btn { background: #fff; border-radius: 10px; text-align: center; padding: 10px; font-weight: 600; color: #0b6e5f; font-size: .95rem; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.wa .bubble.out { margin: 10px 0 0 auto; background: #d9fdd3; max-width: 240px; }
.wa .hint { font-size: .8rem; color: #555; margin-top: 8px; }

.payslip { padding: 20px; font-size: .95rem; }
.payslip-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.payslip-top strong { display: block; }
.payslip-top span { color: var(--muted); font-size: .85rem; }
.payslip table { font-size: .92rem; }
.payslip td, .payslip th { padding: 7px 0; border: 0; background: none; }
.payslip th { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: none; }
.payslip td:last-child, .payslip th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.payslip .sub td { border-top: 1px solid var(--line); font-weight: 600; }
.payslip .net { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); font-weight: 650; }
.payslip .net span:last-child { font-size: 1.2rem; font-variant-numeric: tabular-nums; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 0; font-size: .95rem; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: .9rem; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .brand img { width: 136px; margin-bottom: 14px; }
.foot-note { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; display: grid; gap: 6px; }
.foot-note a { color: var(--accent); text-decoration: underline; }

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

/* Utilities (replace inline styles so the CSP needs no unsafe-inline) */
.m0 { margin: 0; }
.mt0 { margin-top: 0 !important; }
.mt16 { margin-top: 16px; }
.tr { text-align: right; }
.brand picture { display: block; }
address { font-style: normal; }
.updated { padding-top: 8px; padding-bottom: 32px; color: var(--muted); font-size: .9rem; }
.updated p { margin: 0; }
.glossary { margin: 24px 0 0; display: grid; gap: 0; }
.glossary > div { padding: 16px 0; border-top: 1px solid var(--line); }
.glossary dt { font-weight: 600; margin-bottom: 4px; }
.glossary dd { margin: 0; color: var(--muted); }
