/* Mappi public site — tokens from design/tokens.css, brand green #12724C. No build step. */
:root {
  --brand: #12724c;
  --brand-dark: #0c5a3b;
  --brand-tint: #e7f3ed;
  --color-bg: #fff;
  --color-surface: #f5f7fa;
  --color-border: #dfe5ed;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-map-bg: #0c1526;
  --color-route-line: #71e6c1;
  --color-warning: #8a4b08;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, system-ui, "Segoe UI", Roboto, sans-serif;
  --radius-control: 12px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .06);
  --shadow-floating: 0 4px 16px rgba(15, 23, 42, .14);
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--font-sans); color: var(--color-text); background: var(--color-bg); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--color-text-muted); max-width: 40em; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .75rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--color-border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--color-text); text-decoration: none; letter-spacing: -.02em; }
.brand img { border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--color-text); text-decoration: none; padding: 8px 4px; font-weight: 500; }
.nav a:hover { color: var(--brand); }
.nav .lang { border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 6px 14px; font-weight: 600; font-size: .85rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius-control); font: 650 1rem/1.2 var(--font-sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--color-border); color: var(--color-text); background: #fff; }
.btn-store { background: #0f172a; color: #fff; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 20px; min-width: 170px; opacity: .92; cursor: default; }
.btn-store small { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #71e6c1; }
.btn-store span { font-size: 1.05rem; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* hero */
.hero { background: linear-gradient(180deg, var(--brand-tint), #fff 70%); padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-art { display: flex; justify-content: center; }
.phone { width: min(300px, 70vw); filter: drop-shadow(0 24px 40px rgba(15, 23, 42, .25)); }
.hero .phone { transform: rotate(3deg); }
.bullets { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; color: var(--color-text-muted); }
.bullets li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 10px; }

section { padding: 72px 0; }
.alt { background: var(--color-surface); }
.section-head { max-width: 44em; margin-bottom: 40px; }

/* feature grid */
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--color-text-muted); margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.split .phone { margin-inline: auto; }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--color-text-muted); }

/* pricing */
.billing { display: inline-flex; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 4px; margin-bottom: 32px; }
.billing label { padding: 10px 22px; border-radius: var(--radius-pill); font-weight: 650; cursor: pointer; }
.billing label small { color: var(--brand); font-weight: 700; margin-left: 6px; }
.rb { position: absolute; opacity: 0; pointer-events: none; }
#bill-m:checked ~ .billing label[for="bill-m"], #bill-y:checked ~ .billing label[for="bill-y"] { background: var(--brand); color: #fff; }
#bill-m:checked ~ .billing label[for="bill-m"] small, #bill-y:checked ~ .billing label[for="bill-y"] small { color: #c8f5e2; }
#bill-m:focus-visible ~ .billing label[for="bill-m"], #bill-y:focus-visible ~ .billing label[for="bill-y"] { outline: 3px solid #2563eb; outline-offset: 2px; }
.pm, .py { display: none; }
#bill-m:checked ~ .plans .pm, #bill-y:checked ~ .plans .py { display: block; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--color-border); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; position: relative; }
.plan.pop { border: 2px solid var(--brand); box-shadow: var(--shadow-floating); }
.badge { position: absolute; top: -14px; left: 24px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-pill); }
.plan h3 { font-size: 1.3rem; margin-bottom: .2em; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 12px 0 2px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--color-text-muted); letter-spacing: 0; }
.billed { color: var(--color-text-muted); font-size: .9rem; min-height: 1.4em; margin: 0 0 16px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.plan .tag { font-size: .9rem; font-weight: 600; color: var(--brand); margin-bottom: 12px; }
.fine { color: var(--color-text-muted); font-size: .9rem; margin-top: 24px; }
.pill-soon { display: inline-block; font-size: .85rem; font-weight: 650; color: var(--color-text-muted); border: 1px dashed var(--color-text-muted); border-radius: var(--radius-pill); padding: 8px 16px; text-align: center; }

/* faq */
details { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-control); margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 20px 18px; color: var(--color-text-muted); }
details > div p:last-child { margin-bottom: 0; }

.cta { background: var(--brand); color: #fff; text-align: center; padding: 64px 0; }
.cta h2 { color: #fff; }
.cta p { color: #d3efe2; }
.cta .stores { justify-content: center; }
.cta .btn-store { background: #fff; color: #0f172a; }
.cta .btn-store small { color: var(--brand); }

/* footer */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 48px 0 32px; font-size: .95rem; }
.site-footer a { color: #e2e8f0; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .legal { border-top: 1px solid #1e293b; padding-top: 20px; color: #94a3b8; font-size: .85rem; }

/* document pages */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.meta { color: var(--color-text-muted); font-size: .9rem; margin-bottom: 2em; }
.toc { background: var(--color-surface); border-radius: var(--radius-card); padding: 18px 24px; margin: 24px 0; }
.toc ol { margin: 8px 0 0; columns: 2; column-gap: 32px; }
.toc a { text-decoration: none; }
table { border-collapse: collapse; width: 100%; margin: 1em 0 1.5em; font-size: .95rem; }
th, td { border: 1px solid var(--color-border); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--color-surface); }
.table-wrap { overflow-x: auto; }
mark.todo { background: #fff3c4; color: #5c3b00; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.note { border-left: 4px solid var(--brand); background: var(--brand-tint); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 1.2em 0; }
.warn { border-left-color: var(--color-warning); background: #fff4e5; }

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero .phone { width: min(240px, 60vw); transform: none; }
  .g3, .steps, .plans { grid-template-columns: 1fr; }
  .g2 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .toc ol { columns: 1; }
  .nav { gap: 0 14px; }
}
@media (max-width: 520px) {
  .nav a:not(.lang) { padding: 6px 2px; font-size: .9rem; }
  .btn-store { min-width: 0; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .cta { display: none; } }
.split.rev > .phone { order: 2; }
.doc section { padding: 0; }
@media (max-width: 900px) { .split.rev > .phone { order: 0; } }
