/* ============================================================
   Components & sections
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(150deg, var(--accent), var(--accent-strong));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
  position: relative;
}
.brand .logo::after {
  content: ""; position: absolute; inset: 0; border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.brand .logo svg { width: 17px; height: 17px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--ink-soft); font-weight: 480; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px; flex: none; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color .2s ease;
}
.nav-toggle:hover { border-color: var(--accent-line); }
.nav-toggle span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; padding: 6px 24px 24px; border-top: 1px solid var(--line-2); }
.mobile-menu a:not(.btn) { padding: 14px 2px; font-size: 16px; font-weight: 500; color: var(--ink-soft); border-bottom: 1px solid var(--line-2); transition: color .15s; }
.mobile-menu a:not(.btn):hover, .mobile-menu a:not(.btn):active { color: var(--accent-strong); }
.mobile-menu-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open { background: var(--bg); }
  .site-header.menu-open .mobile-menu { display: flex; }
}
@media (max-width: 520px) {
  .nav-cta .btn--primary { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(56px, 7vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto -20%; height: 620px; z-index: 0;
  background:
    radial-gradient(60% 70% at 78% 12%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(50% 60% at 8% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4vw, 64px); align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 { margin-top: 22px; }
.hero .lead { margin-top: 22px; max-width: 510px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--ink-faint); }
.hero-note .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); }
.check { color: var(--accent-strong); flex: none; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 9px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); font-size: 13.5px; color: var(--ink-soft); font-weight: 500;
}
.badge-pill .tag {
  font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong); letter-spacing: .02em;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 620px; }
  .hero-visual { order: 2; }
}

/* ---------- Product mockup ---------- */
.mockup { position: relative; }
.mockup-window {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mw-bar { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.mw-dots { display: flex; gap: 6px; }
.mw-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-2); display: block; }
.mw-url {
  flex: 1; height: 26px; border-radius: 7px; background: var(--bg);
  display: flex; align-items: center; gap: 7px; padding-inline: 10px;
  font-size: 11.5px; color: var(--ink-faint); font-family: var(--mono);
}
.mw-url svg { width: 12px; height: 12px; color: var(--accent-strong); }

.mw-body { display: grid; grid-template-columns: 54px 1fr; min-height: 360px; }
.mw-rail { border-right: 1px solid var(--line-2); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; background: linear-gradient(var(--bg), transparent 40%); }
.mw-rail i { width: 22px; height: 22px; border-radius: 7px; background: var(--bg-2); display: block; }
.mw-rail i.on { background: var(--accent); box-shadow: 0 4px 10px -3px var(--accent); }
.mw-main { padding: 18px 20px 22px; }
.mw-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mw-title { font-size: 15px; font-weight: 600; }
.mw-sub { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.mw-pill { font-size: 11px; font-weight: 600; color: var(--accent-strong); background: var(--accent-soft); padding: 5px 11px; border-radius: 999px; }

/* payroll table */
.ptable { width: 100%; border-collapse: collapse; font-size: 12px; }
.ptable th { text-align: left; font-weight: 600; color: var(--ink-faint); font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; padding: 0 8px 9px; }
.ptable th.num, .ptable td.num { text-align: right; font-family: var(--mono); font-feature-settings: "tnum"; white-space: nowrap; }
.ptable td { padding: 9px 8px; border-top: 1px solid var(--line-2); color: var(--ink-soft); }
.ptable td.name { color: var(--ink); font-weight: 550; }
.ptable td.neto { color: var(--ink); font-weight: 650; }
.ptable .who { display: flex; align-items: center; gap: 9px; }
.ptable .av { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; font-size: 10px; font-weight: 650; }
.ptable tr.tot td { border-top: 1.5px solid var(--line); font-weight: 650; color: var(--ink); padding-top: 11px; }

/* floating payslip */
.payslip {
  position: absolute; right: -18px; bottom: -28px; width: 232px; z-index: 3;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 16px 17px;
}
.payslip .ps-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.payslip .ps-tag { font-size: 10px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-strong); }
.payslip .ps-doc { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-strong); }
.payslip .ps-doc svg { width: 14px; height: 14px; }
.payslip h4 { font-size: 13px; font-weight: 600; }
.payslip .ps-period { font-size: 10.5px; color: var(--ink-faint); margin-top: 1px; }
.ps-rows { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ps-row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; }
.ps-row span { color: var(--ink-soft); }
.ps-row b { font-family: var(--mono); font-weight: 550; color: var(--ink); font-feature-settings: "tnum"; }
.ps-row.minus b { color: #B4453B; }
.ps-net { margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; }
.ps-net span { font-size: 12px; font-weight: 600; }
.ps-net b { font-family: var(--mono); font-size: 16px; font-weight: 650; color: var(--accent-strong); }

@media (max-width: 600px) {
  /* Stack the floating payslip below the dashboard so neither is clipped on phones */
  .payslip { position: static; right: auto; bottom: auto; width: 100%; max-width: 340px; margin: 16px auto 0; }
}
@media (max-width: 480px) {
  .mw-body { grid-template-columns: 44px 1fr; }
  .ptable .col-hide { display: none; }
}

/* ---------- Trust bar ---------- */
.trust { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg-2) 50%, var(--bg)); }
.trust-inner { display: flex; align-items: center; gap: clamp(24px,5vw,72px); flex-wrap: wrap; justify-content: center; padding-block: 30px; }
.trust-claim { display: inline-flex; align-items: center; gap: 11px; font-size: 14.5px; font-weight: 550; color: var(--ink); }
.trust-claim .shield { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; flex: none; }
.trust-claim .shield svg { width: 17px; height: 17px; }
.logos { display: flex; align-items: center; gap: clamp(20px,3vw,40px); flex-wrap: wrap; justify-content: center; }
.logo-ph { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-faint); font-weight: 650; font-size: 15px; letter-spacing: -.01em; opacity: .72; }
.logo-ph .mk { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--ink-faint); display: grid; place-items: center; font-size: 11px; }
.logo-ph .mk.fill { background: var(--ink-faint); border: none; color: var(--bg); }

/* ---------- Problem → solution ---------- */
.ps-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.ps-card { border-radius: var(--r-lg); padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); }
.ps-card.prob { background: var(--surface); }
.ps-card.sol { background: var(--ink); color: #fff; border-color: transparent; position: relative; overflow: hidden; }
.ps-card.sol::after { content:""; position:absolute; inset: auto -30% -40% auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); }
.ps-card h3 { font-size: 22px; margin-bottom: 18px; position: relative; }
.ps-card .klabel { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; display: block; }
.ps-card.prob .klabel { color: var(--ink-faint); }
.ps-card.sol .klabel { color: color-mix(in srgb, var(--accent-line) 90%, white); }
.ps-list { list-style: none; display: flex; flex-direction: column; gap: 14px; position: relative; }
.ps-list li { display: flex; gap: 12px; font-size: 15px; line-height: 1.45; }
.ps-card.prob .ps-list li { color: var(--ink-soft); }
.ps-card.sol .ps-list li { color: color-mix(in srgb, #fff 86%, transparent); }
.ps-list .ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.ps-card.prob .ic { background: #F4E7E4; color: #B4453B; }
.ps-card.sol .ic { background: color-mix(in srgb, var(--accent) 35%, transparent); color: #fff; }
.ps-list .ic svg { width: 12px; height: 12px; }

@media (max-width: 760px) { .ps-split { grid-template-columns: 1fr; } }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px 24px 28px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.feature .fic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 18px; }
.feature .fic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 9px; letter-spacing: -.01em; }
.feature p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; text-wrap: pretty; }
.feature .tag-acct { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--accent-strong); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }

@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Audience split ---------- */
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.aud {
  border-radius: var(--r-lg); padding: clamp(28px,3vw,44px); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.aud.acct { background: linear-gradient(170deg, color-mix(in srgb, var(--accent-soft) 70%, var(--surface)), var(--surface) 60%); border-color: var(--accent-line); }
.aud .aud-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; }
.aud.acct .aud-ic { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px var(--accent); }
.aud.firm .aud-ic { background: var(--ink); color: #fff; }
.aud .aud-ic svg { width: 24px; height: 24px; }
.aud h3 { font-size: 24px; margin-bottom: 8px; }
.aud .aud-sub { font-size: 15px; color: var(--ink-soft); margin-bottom: 22px; line-height: 1.55; }
.aud ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.aud li { display: flex; gap: 12px; font-size: 14.5px; color: var(--ink); line-height: 1.45; }
.aud li .ic { flex: none; width: 21px; height: 21px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-top: 1px; }
.aud li .ic svg { width: 12px; height: 12px; }

@media (max-width: 760px) { .aud-grid { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; position: relative; }
.step { position: relative; }
.step .num { width: 46px; height: 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; place-items: center; font-size: 18px; font-weight: 650; color: var(--accent-strong); margin-bottom: 20px; font-family: var(--mono); }
.step h3 { font-size: 19px; margin-bottom: 9px; }
.step p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; max-width: 300px; }
.step .connector { position: absolute; top: 23px; left: 58px; right: -20px; height: 1px; background: repeating-linear-gradient(90deg, var(--accent-line) 0 6px, transparent 6px 12px); }
.step:last-child .connector { display: none; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } .step .connector { display: none; } }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px 32px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.plan .pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.plan .pname { font-size: 16px; font-weight: 600; color: var(--ink); }
.plan .pdesc { font-size: 13.5px; color: var(--ink-faint); margin-top: 4px; min-height: 38px; }
.plan .pprice { display: flex; align-items: baseline; gap: 4px; margin: 18px 0 6px; }
.plan .pprice .amt { font-size: 42px; font-weight: 650; letter-spacing: -.03em; font-family: var(--mono); }
.plan .pprice .per { font-size: 14px; color: var(--ink-faint); }
.plan .pvat { font-size: 12px; color: var(--ink-faint); margin-bottom: 22px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.plan li .ic { flex: none; width: 19px; height: 19px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-top: 1px; }
.plan li .ic svg { width: 11px; height: 11px; }
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } .plan.featured { transform: none; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote .stars { display: flex; gap: 2px; color: var(--accent-strong); margin-bottom: 16px; }
.quote .stars svg { width: 16px; height: 16px; }
.quote p { font-size: 15.5px; line-height: 1.55; color: var(--ink); flex: 1; text-wrap: pretty; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.quote .av { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); color: var(--ink-soft); display: grid; place-items: center; font-weight: 650; font-size: 14px; flex: none; }
.quote .who .nm { font-size: 14px; font-weight: 600; }
.quote .who .rl { font-size: 12.5px; color: var(--ink-faint); }
@media (max-width: 880px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 44px auto 0; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-size: 17px; font-weight: 550; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa .plus { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent-strong); transition: transform .25s ease, background .2s; }
.qa[open] .plus { transform: rotate(45deg); background: var(--accent-soft); }
.qa .ans { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.qa[open] .ans { max-height: 260px; }
.qa .ans p { padding: 0 40px 24px 4px; font-size: 15px; color: var(--ink-soft); line-height: 1.6; text-wrap: pretty; }

/* ---------- Final CTA ---------- */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--ink); color: #fff; padding: clamp(44px, 6vw, 78px) clamp(28px, 5vw, 72px); text-align: center; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 50% -20%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); }
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(28px, 4vw, 46px); }
.cta-banner p { font-size: 18px; color: color-mix(in srgb, #fff 80%, transparent); margin: 18px auto 0; max-width: 520px; }
.cta-banner .hero-cta { justify-content: center; margin-top: 34px; }
.cta-banner .btn--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(4px); }
.cta-banner .btn--ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.cta-banner .hero-note { justify-content: center; color: color-mix(in srgb,#fff 65%, transparent); }
.cta-banner .hero-note .dot { background: color-mix(in srgb,#fff 50%, transparent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 60px 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { font-size: 14px; color: var(--ink-soft); max-width: 280px; line-height: 1.55; }
.foot-col h5 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14px; color: var(--ink-soft); padding: 6px 0; transition: color .15s; }
.foot-col a:hover { color: var(--accent-strong); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-faint); }
.foot-bottom .soc { display: flex; gap: 10px; }
.foot-bottom .soc a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); transition: all .15s; }
.foot-bottom .soc a:hover { color: var(--accent-strong); border-color: var(--accent-line); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Salary calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 52px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); overflow: hidden; }
.calc-controls { padding: clamp(26px, 3vw, 40px); }
.calc-modes { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 4px; gap: 3px; margin-bottom: 28px; }
.calc-mode { border: none; background: none; font: inherit; font-size: 13.5px; font-weight: 550; color: var(--ink-soft); padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background .18s, color .18s; }
.calc-mode.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.calc-amount { display: block; }
.calc-amount > span { display: block; font-size: 13px; font-weight: 550; color: var(--ink-soft); margin-bottom: 10px; }
.calc-input { position: relative; display: flex; align-items: center; }
.calc-input input { width: 100%; height: 64px; padding: 0 44px 0 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.calc-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.calc-input i { position: absolute; right: 18px; font-style: normal; font-size: 22px; font-weight: 600; color: var(--ink-faint); pointer-events: none; }
.calc-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--bg-2); margin: 20px 0 16px; outline: none; cursor: pointer; }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; }
.calc-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.calc-presets button { font: inherit; font-size: 12.5px; font-weight: 550; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: all .15s; }
.calc-presets button:hover { border-color: var(--accent-line); color: var(--accent-strong); }
.calc-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.calc-toggle:hover { border-color: var(--accent-line); }
.calc-toggle span:first-child { display: flex; flex-direction: column; gap: 2px; }
.calc-toggle b { font-size: 14px; font-weight: 550; }
.calc-toggle small { font-size: 12px; color: var(--ink-faint); }
.calc-toggle .switch { width: 44px; height: 26px; border-radius: 999px; background: var(--bg-2); position: relative; flex: none; transition: background .18s; border: 1px solid var(--line); }
.calc-toggle .switch .knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s; }
.calc-toggle.on .switch { background: var(--accent); border-color: var(--accent); }
.calc-toggle.on .switch .knob { transform: translateX(18px); }

.calc-result { padding: clamp(26px, 3vw, 40px); background: linear-gradient(170deg, color-mix(in srgb, var(--accent-soft) 60%, var(--surface)), var(--surface) 70%); border-left: 1px solid var(--line-2); display: flex; flex-direction: column; }
.calc-net { padding-bottom: 22px; border-bottom: 1px dashed var(--line); margin-bottom: 18px; }
.calc-net .cl { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.calc-net .cv { display: block; font-family: var(--mono); font-size: clamp(40px, 5vw, 52px); font-weight: 650; letter-spacing: -.02em; color: var(--accent-strong); margin-top: 6px; }
.calc-rows { display: flex; flex-direction: column; gap: 13px; }
.calc-row { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; }
.calc-row span { color: var(--ink-soft); }
.calc-row b { font-family: var(--mono); font-weight: 550; color: var(--ink); }
.calc-row.minus b { color: #B4453B; }
.calc-employer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.calc-employer span { color: var(--ink); font-weight: 550; }
.calc-employer b { font-family: var(--mono); font-weight: 650; color: var(--ink); }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } .calc-result { border-left: none; border-top: 1px solid var(--line-2); } }

/* ---------- Modal (landing) ---------- */
.lp-modal-scrim { position: fixed; inset: 0; z-index: 200; background: rgba(18,24,31,.42); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 20px 20px; opacity: 0; pointer-events: none; transition: opacity .22s; overflow-y: auto; }
.lp-modal-scrim.in { opacity: 1; pointer-events: auto; }
.lp-modal { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: transform .24s cubic-bezier(.2,.7,.2,1); }
.lp-modal-scrim.in .lp-modal { transform: none; }
.lp-modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 26px 0; }
.lp-modal-head h3 { font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.lp-modal-head p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.lp-modal-head .x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-soft); flex: none; }
.lp-modal-head .x:hover { color: var(--ink); border-color: var(--accent-line); }
.lp-form { padding: 22px 26px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.lp-fld { display: flex; flex-direction: column; gap: 7px; }
.lp-fld.full { grid-column: 1 / -1; }
.lp-fld label { font-size: 12.5px; font-weight: 550; }
.lp-fld input, .lp-fld select { height: 44px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 14px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.lp-fld input:focus, .lp-fld select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lp-modal-success { padding: 40px 30px 44px; text-align: center; }
.lp-modal-success .ok { width: 60px; height: 60px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin: 0 auto 18px; }
.lp-modal-success .ok svg { width: 30px; height: 30px; }
.lp-modal-success h3 { font-size: 22px; font-weight: 650; }
.lp-modal-success p { font-size: 15px; color: var(--ink-soft); margin-top: 10px; max-width: 320px; margin-inline: auto; line-height: 1.55; }

/* ---------- Pricing toggle ---------- */
.price-toggle { display: inline-flex; align-items: center; gap: 12px; margin: 24px auto 0; }
.price-toggle .seg2 { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 4px; gap: 3px; }
.price-toggle .seg2 button { border: none; background: none; font: inherit; font-size: 13.5px; font-weight: 550; color: var(--ink-soft); padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background .18s, color .18s; }
.price-toggle .seg2 button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.price-toggle .save-tag { font-size: 12px; font-weight: 650; color: var(--accent-strong); background: var(--accent-soft); padding: 5px 11px; border-radius: 999px; }

/* ---------- ROI calculator ---------- */
.roi-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); overflow: hidden; }
.roi-left { padding: clamp(28px, 3.5vw, 48px); }
.roi-field { display: block; margin-top: 26px; }
.roi-field > span { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.roi-field > span b { color: var(--ink); font-weight: 650; }
.roi-right { padding: clamp(28px, 3.5vw, 48px); background: var(--ink); color: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.roi-right::before { content: ""; position: absolute; inset: auto -20% -30% auto; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); }
.roi-stat { position: relative; padding-bottom: 22px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.16); }
.roi-stat .rl { font-size: 14px; color: color-mix(in srgb, #fff 70%, transparent); }
.roi-stat .rv { display: block; font-family: var(--mono); font-size: clamp(38px, 5vw, 50px); font-weight: 650; letter-spacing: -.02em; margin-top: 6px; }
.roi-stat .rs { font-size: 17px; color: color-mix(in srgb, var(--accent-line) 92%, white); font-weight: 600; }
.roi-rows { position: relative; display: flex; flex-direction: column; gap: 13px; margin-bottom: 24px; }
.roi-row { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; color: color-mix(in srgb, #fff 82%, transparent); }
.roi-row b { font-family: var(--mono); font-weight: 550; color: #fff; }
.roi-row.total { padding-top: 13px; border-top: 1px solid rgba(255,255,255,.16); font-weight: 600; color: #fff; }
.roi-row.total b { color: color-mix(in srgb, var(--accent-line) 92%, white); font-size: 17px; }
.roi-right .btn { position: relative; margin-top: auto; }
@media (max-width: 760px) { .roi-card { grid-template-columns: 1fr; } }

/* ---------- Comparison table ---------- */
.compare { margin-top: 48px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--surface); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line-2); }
.compare-table thead th { font-size: 13px; font-weight: 600; color: var(--ink); background: var(--bg); }
.compare-table thead th.muted { color: var(--ink-faint); font-weight: 550; text-align: center; }
.compare-table thead th.accent { color: var(--accent-strong); text-align: center; background: var(--accent-soft); }
.compare-table td:first-child { font-weight: 500; color: var(--ink); }
.compare-table td:not(:first-child) { text-align: center; color: var(--ink-soft); }
.compare-table td.ok { color: #1F8A5B; font-weight: 700; font-size: 17px; }
.compare-table td.x { color: var(--ink-faint); font-size: 16px; }
.compare-table td.part { color: #B07A1E; font-size: 13px; font-weight: 550; }
.compare-table td.accent-cell { color: var(--accent-strong); font-weight: 700; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr td:last-child { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.compare { -webkit-overflow-scrolling: touch; }
@media (max-width: 560px) {
  .compare-table th, .compare-table td { padding: 13px 14px; font-size: 13.5px; }
  .compare-table td.ok { font-size: 15px; }
}
