/* Public website styles. No framework: small, fast on mobile data. */
:root {
  --brand: #1e3a5f; --brand-dk: #142a45; --ink: #0f1f33; --accent: #2f80ed;
  --gold: #d4a017; --gold-lt: #f5d27a; --surface: #f3f6fa; --line: #e3e8ef;
  --text: #1e293b; --muted: #5b6b82; --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 31, 51, .08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: #fff; }
img, svg { max-width: 100%; }
a { color: #1f5fbf; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
section[id] { scroll-margin-top: 80px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .78rem 1.35rem; border-radius: 10px; border: 2px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dk); }
.btn-gold { background: var(--gold); color: #1b1300; }
.btn-gold:hover { background: #e5b324; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: .5rem .95rem; font-size: .92rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; font-size: 1.12rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.brand-mark svg { width: 22px; height: 22px; fill: #fff; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 550; padding: .5rem .7rem; border-radius: 8px; }
.nav-links a:not(.btn):hover { background: var(--surface); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .55rem; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; display: block; stroke: var(--ink); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 66px; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: .5rem 20px 1rem; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin-top: .35rem; }
}

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(47,128,237,.35), transparent 60%), linear-gradient(160deg, var(--ink), var(--brand) 70%); color: #fff; padding: 72px 0 84px; overflow: hidden; }
.hero h1 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 650; letter-spacing: .02em; color: var(--gold-lt);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.1rem; }
.lead { font-size: 1.15rem; color: rgba(255,255,255,.86); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 .9rem; }
.hero-note { font-size: .9rem; color: rgba(255,255,255,.66); margin: 0; }
.demo { background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.35); padding: 18px; transform: rotate(.6deg); }
.demo-head { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.pill { font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: #e5f4e4; color: #166534; letter-spacing: 0; text-transform: none; }
.demo table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.demo th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 2px solid var(--line); padding: .4rem .35rem; }
.demo td { padding: .45rem .35rem; border-bottom: 1px solid var(--line); }
.demo td:last-child, .demo th:last-child { text-align: right; font-weight: 750; color: var(--brand); }
.demo-foot { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.chip { font-size: .74rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .demo { transform: none; } .hero { padding: 48px 0 56px; } }

/* Facts strip */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0 auto; padding: 18px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts li { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem; color: var(--ink); }
.facts svg { width: 22px; height: 22px; flex-shrink: 0; stroke: var(--brand); fill: none; stroke-width: 2; }
@media (max-width: 860px) { .facts ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts ul { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 600px) { .section { padding: 56px 0; } }

.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.module { border-radius: var(--radius); padding: 30px; color: #fff; }
.module h3 { color: #fff; font-size: 1.35rem; }
.module-1 { background: linear-gradient(150deg, #1e3a5f, #2c5a8f); }
.module-2 { background: linear-gradient(150deg, #3b1f5c, #6b3fa0); }
.module .tag { font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-lt); }
.module ul { margin: .4rem 0 0; padding-left: 1.15rem; color: rgba(255,255,255,.9); }
.module li { margin-bottom: .35rem; }
@media (max-width: 800px) { .modules { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
.ficon { width: 44px; height: 44px; border-radius: 11px; background: #eaf1fb; display: grid; place-items: center; margin-bottom: .8rem; }
.ficon svg { width: 24px; height: 24px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1000px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 20px; position: relative; }
.steps li::before { content: counter(step); position: absolute; top: -16px; left: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #1b1300; font-weight: 800; display: grid; place-items: center; }
.steps p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan-featured { border: 2px solid var(--brand); }
.plan-badge { position: absolute; top: -13px; right: 20px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.plan-desc { color: var(--muted); font-size: .93rem; min-height: 1.5em; }
.plan-price { margin: .2rem 0 0; }
.plan-price strong { font-size: 2.1rem; color: var(--ink); letter-spacing: -.02em; }
.plan-price span { color: var(--muted); }
.plan-year { color: var(--muted); font-size: .9rem; }
.plan-year em { color: #15803d; font-style: normal; font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: .4rem 0 1.4rem; }
.plan li { display: flex; gap: .5rem; align-items: flex-start; padding: .32rem 0; font-size: .95rem; }
.plan li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .2rem; fill: #15803d; }
.plan .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 26px; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 650; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Contact & CTA */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; background: linear-gradient(160deg, var(--ink), var(--brand)); color: #fff; border-radius: 20px; padding: 44px; }
.contact h2 { color: #fff; }
.contact p { color: rgba(255,255,255,.82); }
.contact ul { list-style: none; margin: 0; padding: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; }
.contact li { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; }
.contact li:last-child { border-bottom: 0; }
.contact a { color: #fff; font-weight: 650; word-break: break-word; }
.contact-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-lt); font-weight: 700; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; padding: 28px; } }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 40px 0; font-size: .92rem; margin-top: 80px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer strong { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* Content pages (terms, privacy, status, 404) */
.page { padding: 56px 0 0; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.page h2 { font-size: 1.2rem; margin-top: 2rem; }
.updated { color: var(--muted); margin-bottom: 2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.status-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.status-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.status-list li:last-child { border-bottom: 0; }
.ok { color: #15803d; font-weight: 650; }
.warn { color: #b45309; font-weight: 650; }
.bad { color: #b91c1c; font-weight: 650; }
.notfound { text-align: center; padding: 90px 0 30px; }
.notfound .big { font-size: 5rem; font-weight: 800; color: var(--brand); line-height: 1; }
.contact-plain { list-style: none; padding: 0; }
.contact-plain li { margin-bottom: .4rem; }
.contact-plain .contact-label { display: inline-block; min-width: 70px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
