* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; top: -48px; left: 8px; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 999; transition: top .15s ease; }
.skip-link:focus { top: 8px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; margin-bottom: .7rem; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: .8rem; }
.section-sub { color: var(--text-soft); max-width: 560px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .88rem; cursor: pointer; border: 1px solid transparent; transition: all .15s ease; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(15,110,92,.3); }
.btn-primary:hover { background: #0c5c4c; transform: translateY(-2px); }
.btn-outline { background: none; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 1rem 1.8rem; font-size: .95rem; }
.btn-sm { padding: .55rem 1rem; font-size: .8rem; }
.btn-ghost { background: none; border: none; }

/* Nav */
.announcement-bar {
  display: flex; align-items: center; justify-content: center; gap: 1rem; position: relative;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font-size: .82rem; font-weight: 600;
  padding: .55rem 2.4rem .55rem 1rem; text-align: center;
}
.announcement-bar a { color: #fff; text-decoration: underline; }
.announcement-bar.hidden { display: none; }
.announcement-close {
  position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); background: none; border: none;
  color: #fff; opacity: .8; cursor: pointer; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
}
.announcement-close:hover { opacity: 1; }
.nav { position: sticky; top: 0; z-index: 50; background: var(--glass-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: transform .25s ease; }
.nav.nav-hidden { transform: translateY(-100%); }

.trust-band { padding: 2.4rem 0; border-bottom: 1px solid var(--border); }
.trust-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.trust-logos-viewport { overflow: hidden; flex: 1; min-width: 200px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.trust-logos { display: flex; flex-wrap: nowrap; gap: 2.4rem; font-weight: 800; font-family: var(--font-display); color: var(--text-faint); letter-spacing: .05em; font-size: .82rem; width: max-content; animation: marquee 22s linear infinite; }
.trust-logos-viewport:hover .trust-logos { animation-play-state: paused; }
.trust-logos span { flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .trust-logos { animation: none; } }
.trust-badges { display: flex; flex-wrap: wrap; gap: 1rem; }
.trust-badge { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--text-soft); background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: .4rem .8rem; }

.demo-tabs { display: flex; justify-content: center; gap: .6rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.demo-tab { background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-soft); font-weight: 600; font-size: .85rem; padding: .6rem 1.2rem; border-radius: 999px; cursor: pointer; }
.demo-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.demo-screen { max-width: 760px; margin: 0 auto; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.demo-mock-bar { display: flex; gap: .4rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.demo-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.demo-screen { position: relative; }
.demo-panel { display: none; padding: 1.6rem; opacity: 0; transition: opacity .25s ease; }
.demo-panel.active { display: block; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .demo-panel { transition: none; } }
.demo-mock-board { display: flex; gap: 1rem; }
.demo-mock-col { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem; font-size: .74rem; color: var(--text-faint); font-weight: 700; }
.demo-mock-card { padding: .55rem .7rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px; margin-top: .6rem; font-size: .78rem; font-weight: 600; color: var(--text); line-height: 1.35; }
.demo-mock-chat { display: flex; flex-direction: column; gap: .7rem; padding: .4rem 0; }
.demo-mock-bubble { max-width: 70%; width: fit-content; padding: .6rem .9rem; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); font-size: .82rem; color: var(--text); }
.demo-mock-bubble.right { align-self: flex-end; background: var(--accent); color: #fff; border-color: var(--accent); }
.demo-mock-report { padding: 1rem 0; }
.demo-mock-bars { display: flex; align-items: flex-end; gap: .8rem; height: 140px; }
.demo-mock-bars i { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-radius: 6px 6px 0 0; display: block; position: relative; }
.demo-mock-report-labels { display: flex; gap: .8rem; margin-top: .5rem; }
.demo-mock-report-labels span { flex: 1; text-align: center; font-size: .72rem; color: var(--text-faint); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: grid; place-items: center; }
.nav-links { display: flex; gap: 2rem; font-size: .88rem; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--text-soft); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.scroll-progress { position: absolute; top: 0; left: 0; height: 2px; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .1s linear; }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 39; }
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: var(--header-h, 64px) 0 0 0; background: var(--bg); flex-direction: column; padding: 2rem 1.5rem; gap: 1.4rem; font-size: 1.05rem; transform: translateY(-110%); transition: transform .25s ease; z-index: 40; }
  .nav-links.open { transform: translateY(0); }
  .nav-backdrop.show { display: block; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-outline { display: none; }
}

/* Hero */
.hero { position: relative; padding: 6rem 0 5rem; overflow: hidden; }
.hero-blob { position: absolute; top: -200px; right: -150px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); filter: blur(10px); z-index: 0; }
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.15; margin-bottom: 1.2rem; }
.hero .highlight { color: var(--accent); }
.hero p { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-trust { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; font-size: .78rem; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.hero-shot { position: relative; z-index: 1; max-width: 960px; margin: 3rem auto 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.hero-shot .bar { display: flex; gap: 6px; padding: .8rem 1rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.hero-shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.hero-shot .body { padding: 2rem; background: var(--bg-elevated); }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--text); }
.stat-label { color: var(--text-soft); font-size: .85rem; margin-top: .3rem; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem; background: var(--accent-soft); color: var(--accent); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.feature-card p { color: var(--text-soft); font-size: .88rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Case studies */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }
.case-card { display: block; text-decoration: none; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-media { height: 120px; }
.case-body { padding: 1.4rem; }
.case-tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin-bottom: .5rem; }
.case-card h3 { font-size: 1.02rem; color: var(--text); margin-bottom: .5rem; }
.case-card p { color: var(--text-soft); font-size: .85rem; margin-bottom: 1rem; }
.case-metrics { display: flex; gap: 1.2rem; font-size: .78rem; color: var(--text-faint); opacity: 0; max-height: 0; overflow: hidden; transition: opacity .2s ease, max-height .2s ease; }
.case-metrics strong { color: var(--accent); font-family: var(--font-display); display: block; font-size: 1rem; }
.case-card:hover .case-metrics, .case-card:focus-visible .case-metrics { opacity: 1; max-height: 40px; }

/* Testimonials carousel */
.testi-carousel { display: flex; align-items: center; gap: 1rem; }
.testi-track {
  display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  flex: 1; padding: .3rem; -ms-overflow-style: none; scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-track .testi-card { scroll-snap-align: start; flex: 0 0 100%; }
@media (min-width: 700px) { .testi-track .testi-card { flex: 0 0 calc(50% - .7rem); } }
@media (min-width: 1000px) { .testi-track .testi-card { flex: 0 0 calc(33.333% - 1rem); } }
.testi-arrow {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.testi-arrow:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 620px) { .testi-arrow { display: none; } }
.testi-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.2rem; }
.testi-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; }
.testi-dots button.active { background: var(--accent); width: 22px; border-radius: 4px; }
.testi-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.6rem; height: auto; }
.testi-stars { color: var(--star); margin-bottom: .8rem; font-size: .9rem; }
.testi-quote { font-size: .92rem; color: var(--text); margin-bottom: 1.2rem; }
.testi-person { display: flex; align-items: center; gap: .7rem; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.testi-name { font-weight: 700; font-size: .84rem; }
.testi-role { font-size: .74rem; color: var(--text-faint); }

/* Pricing (shared with admin kit pattern, adapted) */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 1.6rem 0 2.5rem; font-size: .86rem; }
.price-calc {
  max-width: 480px; margin: 0 auto 3rem; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; text-align: center;
}
.price-calc-header h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.price-calc-body { margin-top: 1.2rem; }
.price-calc-body input[type="range"] { width: 100%; accent-color: var(--accent); }
.price-calc-readout { display: flex; justify-content: space-between; margin-top: .8rem; font-size: .88rem; color: var(--text-soft); }
.price-calc-readout strong { color: var(--text); font-family: var(--font-display); }
.price-calc-total { color: var(--accent); }
.billing-toggle .save-badge { background: var(--success-soft); color: var(--success); font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .track { position: absolute; inset: 0; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; transition: all .2s ease; cursor: pointer; }
.switch .thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: all .2s ease; box-shadow: var(--shadow-sm); }
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track .thumb { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }
.price-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.price-card .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; }
.price-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.price-card .price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; margin: .8rem 0 .2rem; }
.price-card .price span { font-size: .88rem; font-weight: 500; color: var(--text-faint); }
.price-card .desc { color: var(--text-soft); font-size: .85rem; margin-bottom: 1.2rem; }
.price-feats { display: flex; flex-direction: column; gap: .6rem; margin: 1.2rem 0; }
.price-feats li { display: flex; gap: .6rem; font-size: .84rem; align-items: flex-start; }
.price-feats li svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* Comparison table */
.compare-table-wrap { max-width: 900px; margin: 3rem auto 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.compare-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.compare-table thead th { position: sticky; top: 0; background: var(--bg-alt); text-align: center; padding: .9rem 1rem; font-family: var(--font-display); font-weight: 700; border-bottom: 1px solid var(--border); }
.compare-table thead th:first-child { text-align: left; }
.compare-table th.recommended { background: var(--accent-soft); color: var(--accent); }
.compare-table td { text-align: center; padding: .8rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-soft); }
.compare-table td:first-child { text-align: left; color: var(--text); font-weight: 600; }
.compare-table td.recommended { background: var(--accent-soft); }
.compare-table svg { color: var(--success); }
.compare-table .dash { color: var(--text-faint); }
.compare-table tbody tr:last-child td { border-bottom: none; }

/* FAQ accordion */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 1.1rem 0; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .92rem; cursor: pointer; color: var(--text); }
.faq-q svg { transition: transform .2s ease; flex-shrink: 0; color: var(--text-faint); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--text-soft); font-size: .87rem; }
.faq-item.open .faq-a { padding-bottom: 1.1rem; }

/* Newsletter */
.newsletter { background: var(--text); border-radius: var(--radius-lg); padding: 3rem 2rem; text-align: center; color: var(--bg); }
.newsletter h2 { margin-bottom: .6rem; }
.newsletter p { color: rgba(255,255,255,.7); margin-bottom: 1.6rem; }
.newsletter-form { display: flex; gap: .7rem; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 200px; padding: .8rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input.invalid { border-color: var(--error); }
.newsletter-form button[disabled] { opacity: .7; cursor: default; }
.newsletter-msg { margin-top: 1rem; font-size: .84rem; color: #6ee7b7; }
.newsletter-msg.is-error { color: #ff9b9b; }
.newsletter-msg:empty { display: none; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h4 { font-size: .82rem; margin-bottom: .9rem; }
.foot-col ul { display: flex; flex-direction: column; gap: .6rem; }
.foot-col a { font-size: .85rem; color: var(--text-soft); text-decoration: none; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-faint); }

.icon-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-soft); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--accent); }

/* Scroll to top */
.scroll-top-btn { position: fixed; bottom: 1.3rem; right: 1.3rem; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; border: none; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); cursor: pointer; z-index: 60; }
.scroll-top-btn.show { display: flex; }

/* Toast */
.toast-wrap { position: fixed; bottom: 1.3rem; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.toast { background: var(--text); color: var(--bg); padding: .65rem 1.1rem; border-radius: 999px; font-size: .84rem; font-weight: 600; opacity: 0; transform: translateY(10px); transition: all .25s ease; box-shadow: var(--shadow-lg); }
.toast.in { opacity: 1; transform: translateY(0); }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 480px; margin: 0 auto; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 1.1rem 1.3rem; z-index: 150; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: .83rem; color: var(--text-soft); margin-bottom: .9rem; }
.cookie-banner-actions { display: flex; gap: .6rem; }
