/* ==========================================================
   Base styles
   ========================================================== */
:root {
  --ink: #0f1a2b;
  --ink-2: #33415c;
  --muted: #64708a;
  --line: #e4e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --brand: #1d3dd8;
  --brand-dark: #142a9c;
  --brand-soft: #e9edff;
  --accent: #ff7a45;
  --ok: #12805c;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 26, 43, .06), 0 8px 24px rgba(15, 26, 43, .06);
  --shadow-lg: 0 20px 50px rgba(15, 26, 43, .12);
  --wrap: 1160px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, 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: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 48px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease; text-decoration: none !important;
  font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { transform: translateY(-1px); }
.btn-block { width: 100%; }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; text-decoration: none !important; }
.logo-mark { width: 38px; height: 38px; }
.logo small { display: block; font-size: .66rem; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px; transition: .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 88px;
  background:
    radial-gradient(900px 400px at 85% -10%, var(--brand-soft), transparent 70%),
    radial-gradient(600px 300px at -10% 110%, #fff1ea, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .93rem; font-weight: 600; color: var(--ink-2); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.tick { width: 18px; height: 18px; flex: none; color: var(--ok); }
.hero-visual { position: relative; }
.mock {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden;
}
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dde2ea; }
.mock-body { padding: 22px; }
.mock-row { height: 10px; border-radius: 6px; background: #eef1f6; margin-bottom: 10px; }
.mock-hero { height: 110px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), #6b83ff); margin-bottom: 16px; position: relative; }
.mock-hero::after { content: ""; position: absolute; left: 18px; bottom: 18px; width: 45%; height: 12px; border-radius: 6px; background: rgba(255,255,255,.75); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mock-cards div { height: 64px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); }
.float-card {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 14px 16px; font-size: .85rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
}
.float-card .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.float-card small { display: block; font-weight: 600; color: var(--muted); font-size: .75rem; }
.float-1 { left: -26px; bottom: 34px; }
.float-2 { right: -18px; top: 28px; }

/* ==========================================================
   Cards / grids
   ========================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.icon {
  width: 48px; height: 48px; border-radius: 13px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }

/* Pricing */
.pricing-tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 36px; }
.pricing-tabs button {
  border: 0; background: none; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-family: inherit;
  color: var(--muted); cursor: pointer; font-size: .93rem;
}
.pricing-tabs button.active { background: var(--ink); color: #fff; }
.price-panel { display: none; }
.price-panel.active { display: grid; }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.badge {
  position: absolute; top: -13px; left: 28px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.price { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin: 6px 0 2px; }
.price span { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-note { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.features { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.features li { display: flex; gap: 10px; padding: 7px 0; font-size: .95rem; color: var(--ink-2); }
.pay-note { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 34px; color: var(--muted); font-size: .9rem; }
.pay-note svg { width: 18px; height: 18px; color: var(--ok); }
.cards-row { display: flex; gap: 6px; }
.cards-row span { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: .72rem; font-weight: 800; color: var(--ink-2); background: #fff; }

/* Steps */
.step { position: relative; }
.step-num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--brand); line-height: 1; margin-bottom: 14px;
}

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list strong { color: var(--ink); display: block; }
.check-list span { color: var(--muted); font-size: .95rem; }
.panel {
  background: var(--ink); color: #c9d2e3; border-radius: var(--radius-lg); padding: 40px;
}
.panel h3 { color: #fff; }
.panel dl { margin: 22px 0 0; display: grid; gap: 16px; }
.panel dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #8c99b3; font-weight: 700; }
.panel dd { margin: 2px 0 0; color: #fff; font-weight: 600; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; color: var(--ink); position: relative; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--brand); transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, #4f6bff);
  border-radius: var(--radius-lg); padding: 56px; color: #dfe5ff; display: flex; align-items: center;
  justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; max-width: 540px; }

/* Page header (inner pages) */
.page-hero { padding: 72px 0 48px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); max-width: 680px; margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

/* Legal content */
.legal { max-width: 820px; }
.legal h2 { font-family: var(--font); font-size: 1.3rem; font-weight: 800; margin-top: 2em; }
.legal h3 { margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink-2); }
.legal .updated { color: var(--muted); font-size: .92rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-soft); color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.info-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .icon { margin: 0; flex: none; }
.info-item strong { display: block; color: var(--ink); }
.info-item span, .info-item a { color: var(--muted); }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #d5dbe6; border-radius: 10px; font: inherit; color: var(--ink);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); margin-bottom: 18px; align-items: flex-start; }
.consent input { margin-top: 5px; }
.form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: #e7f6ef; color: var(--ok); font-weight: 600; }
.form-msg.show { display: block; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--ink); color: #aab4c8; padding: 70px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #aab4c8; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo small { color: #8c99b3; }
.footer-bottom {
  margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}
.footer-bottom .cards-row span { background: transparent; color: #d4dbe8; border-color: rgba(255,255,255,.2); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 10px auto 0; width: 100%; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 10px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-links .btn { display: flex; padding: 13px 22px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .grid-3, .grid-2, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; }
  .cta { padding: 36px 24px; }
  .panel { padding: 28px; }
  .float-1 { left: 8px; bottom: -18px; }
  .float-2 { right: 8px; top: -16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pricing-tabs { display: flex; width: 100%; }
  .pricing-tabs button { flex: 1; padding: 10px 8px; }
  .card { padding: 24px; }
}

/* Header CTA keeps white text */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
section[id] { scroll-margin-top: 72px; }
