/* The public website (home page). The application pages keep central.css. */
:root {
  --bg: #ffffff; --alt: #f4f7fb; --surface: #ffffff; --text: #0f172a; --muted: #475569; --line: #e2e8f0;
  --brand: #1e3a8a; --accent: #2563eb; --accent-soft: #dbeafe; --on-brand: #ffffff; --ok: #15803d;
  --hero-from: #eff6ff; --hero-to: #ffffff; --shadow: 0 18px 50px -18px rgba(15, 23, 42, .28), 0 4px 14px rgba(15, 23, 42, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --alt: #0f172a; --surface: #131c31; --text: #f1f5f9; --muted: #94a3b8; --line: #243049;
    --brand: #bfdbfe; --accent: #60a5fa; --accent-soft: #1e3a8a; --on-brand: #0b1120; --ok: #4ade80;
    --hero-from: #0f1d3d; --hero-to: #0b1120; --shadow: 0 18px 50px -18px rgba(0, 0, 0, .7), 0 4px 14px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.small { font-size: .875rem; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.2rem; border-radius: 10px; background: var(--brand); color: var(--on-brand) !important; text-decoration: none; font-weight: 600; border: 1px solid var(--brand); }
.btn:hover { filter: brightness(1.12); }
.btn.big { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn.ghost { background: transparent; color: var(--brand) !important; border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); filter: none; }
.notice { margin: 12px 0; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--text); }

/* header */
.site-top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-top .bar { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.site-top .brand { display: block; line-height: 0; margin-right: auto; }
.site-top .brand img { height: 32px; width: auto; }
.site-top nav { display: flex; gap: 1.4rem; }
.site-top nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-top nav a:hover { color: var(--text); }
.site-top .actions { display: flex; align-items: center; gap: .9rem; }
.site-top .actions .btn { padding: .5rem 1rem; font-size: .92rem; }
.site-top .link { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-top .lang { color: var(--muted); font-size: .8rem; border: 1px solid var(--line); padding: .15rem .45rem; border-radius: 6px; }

/* hero */
.hero { background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); padding: 72px 0 36px; overflow: hidden; }
.hero .copy { max-width: 780px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-block; padding: .25rem .8rem; border-radius: 999px; background: var(--accent-soft); color: var(--brand); font-size: .82rem; font-weight: 600; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.2rem; color: var(--muted); margin: 1.2rem auto 0; max-width: 62ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.hero .fine { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.frame { margin: 48px auto 0; max-width: 1040px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.frame .dots { display: flex; gap: 6px; padding: 10px 14px; background: var(--alt); border-bottom: 1px solid var(--line); }
.frame .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.frame img { display: block; width: 100%; }

/* strips and sections */
.strip { padding: 28px 0 8px; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; color: var(--muted); font-weight: 500; font-size: .95rem; }
.strip li::before { content: "✓"; color: var(--ok); margin-right: .45rem; font-weight: 700; }
section { padding: 84px 0; }
section.alt { background: var(--alt); }
.head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.head p { color: var(--muted); font-size: 1.1rem; margin: .9rem 0 0; }
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand); font-size: 1.25rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }

.steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.step { position: relative; padding: 0 0 0 0; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { margin: 0; color: var(--muted); }

.showcase { display: grid; gap: 64px; }
.row { display: grid; gap: 40px; grid-template-columns: 1fr 1.35fr; align-items: center; }
.row.flip { grid-template-columns: 1.35fr 1fr; }
.row.flip .text { order: 2; }
.row .text h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: .7rem; }
.row .text p { color: var(--muted); margin: 0 0 1rem; }
.row .text ul { margin: 0; padding: 0; list-style: none; }
.row .text li { padding: .25rem 0 .25rem 1.6rem; position: relative; color: var(--text); }
.row .text li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.row .frame { margin: 0; }
@media (max-width: 860px) { .row, .row.flip { grid-template-columns: 1fr; gap: 22px; } .row.flip .text { order: 0; } .site-top nav { display: none; } }

/* demo band */
.band { background: linear-gradient(135deg, #0c4a6e, #1e3a8a); color: #fff; border-radius: 22px; padding: 56px 32px; text-align: center; }
.band h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
.band p { color: #cbd5e1; max-width: 60ch; margin: .9rem auto 1.6rem; font-size: 1.08rem; }
.band .btn { background: #fff; color: #0c4a6e !important; border-color: #fff; }
.band .btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .5); }

/* plans */
.free-card { max-width: 860px; margin: 0 auto 28px; background: var(--surface); border: 2px solid var(--accent); border-radius: 18px; padding: 28px 32px; display: grid; gap: 18px 32px; grid-template-columns: 1fr auto; align-items: center; box-shadow: var(--shadow); }
.free-card h3 { font-size: 1.5rem; }
.free-card .price { font-size: 2.4rem; font-weight: 800; }
.free-card ul { margin: .8rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--muted); }
.free-card li::before { content: "✓"; color: var(--ok); margin-right: .4rem; font-weight: 700; }
.table-wrap { max-width: 860px; margin: 0 auto; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
table.plans { width: 100%; border-collapse: collapse; font-size: .96rem; }
table.plans th, table.plans td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.plans th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; background: var(--alt); }
table.plans tr:last-child td { border-bottom: 0; }
table.plans td.price { font-weight: 700; }
.plans-note { max-width: 860px; margin: 16px auto 0; color: var(--muted); font-size: .92rem; text-align: center; }
@media (max-width: 640px) { .free-card { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: .8rem 0 0; }

/* footer */
.site-foot { background: var(--alt); border-top: 1px solid var(--line); padding: 48px 0 24px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr 1.2fr; }
.foot-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .8rem; }
.foot-grid a { display: block; color: var(--text); text-decoration: none; padding: .15rem 0; font-size: .95rem; }
.foot-grid a:hover { color: var(--accent); }
.foot-grid p { color: var(--muted); max-width: 36ch; margin: .6rem 0 0; }
.foot-logo { display: block; }
.copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* inner pages */
.page-hero { background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); padding: 64px 0 8px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; margin-top: .2rem; }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; width: 150px; }
table.compare td { white-space: normal; }
td.yes { color: var(--ok); font-weight: 700; font-size: 1.15rem; }
td.no { color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 0 0 8px; }
.toc a { padding: .4rem .9rem; border-radius: 999px; background: var(--alt); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500; border: 1px solid var(--line); }
.toc a:hover { border-color: var(--accent); }
.faq-group { max-width: 820px; margin: 44px auto 6px; font-size: 1.5rem; font-weight: 800; }
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr; align-items: start; }
.card-form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.card-form label { display: block; font-weight: 600; font-size: .92rem; margin: 16px 0 6px; }
.card-form > label:first-of-type { margin-top: 0; }
.card-form input, .card-form select, .card-form textarea { width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.card-form input:focus, .card-form select:focus, .card-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.card-form .two { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.card-form .error { color: #b3261e; font-size: .88rem; margin-top: 5px; }
.card-form .notice.ok { background: #dcfce7; color: #14532d; margin-bottom: 18px; }
.contact-side { display: grid; gap: 16px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .card-form .two { grid-template-columns: 1fr; } }

.free-card.wide, .table-wrap.wide, .plans-note.wide { max-width: 1040px; }
.table-wrap.wide table.plans th, .table-wrap.wide table.plans td { padding: 13px 14px; }
