:root {
  --ink: #111418;
  --ink-2: #3A3F47;
  --muted: #4E535B;
  --lime: #B6F23A;
  --lime-text: #4E7A0E;
  --paper: #F5F5F0;
  --white: #FFFFFF;
  --line: #E2E2DA;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.5; overflow-x: hidden; }
img, svg, iframe { max-width: 100%; }
a { color: var(--ink); }
h1, h2, h3 { font-family: var(--head); margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.stack-48, .stack-40, .stack-36, .stack-32 { display: flex; flex-direction: column; }
.stack-48 { gap: 48px; } .stack-40 { gap: 40px; } .stack-36 { gap: 36px; } .stack-32 { gap: 32px; }
.lime { color: var(--lime); }

/* Header */
.site-header { background: var(--ink); }
.header-inner { min-height: 76px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: 1px; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 600; border-radius: 12px; transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { font-size: 18px; padding: 20px 34px; border-radius: 14px; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); padding: 128px 0 144px; }
.hero-inner { position: relative; max-width: 1048px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 6vw, 78px); line-height: 1.05; letter-spacing: -1.5px; color: #fff; }
.pin { position: absolute; height: auto; opacity: .32; }

/* Sections */
.section { padding: 96px 0; }
.section.pad-small { padding: 48px 0; }
.section.pad-bottom-small { padding-bottom: 48px; }
.section.pad-top-small { padding-top: 48px; }
.bg-white { background: var(--white); }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.section-head h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -.5px; }
.section-head h2.big { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -1px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--lime-text); }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 640px; }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 300px; background: var(--white); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-weight: 700; font-size: 22px; }
.card p { font-size: 16px; line-height: 1.65; color: var(--muted); }
.icon-box { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.lift { transition: transform .3s ease, box-shadow .3s ease; }
.lift:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(17, 20, 24, .12); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.steps .card { flex: 1 1 240px; padding: 28px; gap: 12px; }
.steps h3 { font-size: 20px; }
.step-num { font-family: var(--head); font-weight: 800; font-size: 40px; color: var(--lime-text); }

/* Rank grid */
.grid-card { background: var(--paper); border-radius: 28px; padding: 28px; display: flex; flex-wrap: wrap; gap: 32px; }
.grid-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.tabs { align-self: flex-start; display: flex; gap: 4px; background: #E4E4DC; border-radius: 14px; padding: 5px; }
.tab { border: 0; border-radius: 10px; padding: 12px 24px; min-height: 44px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; background: transparent; color: var(--muted); transition: background .2s ease, color .2s ease; }
.tab.is-on { background: #fff; color: var(--ink); }
.biz { background: #fff; border-radius: 18px; padding: 20px; display: flex; align-items: center; gap: 16px; }
.biz div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.biz strong { font-family: var(--head); font-weight: 700; font-size: 19px; }
.biz div span { font-size: 15px; color: var(--muted); }
.biz-logo { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.metrics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.metrics li { background: #fff; border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 600; }
.badge { font-weight: 700; font-size: 17px; padding: 6px 14px; border-radius: 10px; min-width: 56px; text-align: center; transition: background .3s ease, color .3s ease; }
.badge.bad { background: #B3261E; color: #fff; }
.badge.good { background: var(--lime); color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--ink-2); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--muted); display: inline-block; }
.grid-map-wrap { flex: 1 1 520px; min-width: 0; background: #fff; border-radius: 22px; padding: 14px; }
.grid-map { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #EEF1EA; container-type: inline-size; }
.grid-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dot { position: absolute; width: 6.6%; height: 6.6%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 2.4cqi; line-height: 1; border: 1.5px solid rgba(17, 20, 24, .55); animation: pop .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.dot.me { outline: 3px solid var(--ink); outline-offset: 2px; z-index: 2; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--paper); border-radius: 16px; padding: 0 26px; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--head); font-weight: 700; font-size: 18px; padding: 22px 36px 22px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 600; color: var(--lime-text); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* CTA banner */
.cta-banner { background: var(--lime); border-radius: 28px; padding: 64px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.cta-banner h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.5px; }
.cta-banner p { font-size: 18px; line-height: 1.6; color: #2A3008; max-width: 620px; }
.cta-banner .btn { margin-top: 6px; }

/* Embeds */
.embed-card { background: #fff; border-radius: 24px; border: 1px solid var(--line); overflow: hidden; }
.form-card { width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 28px; text-align: left; }
.noscript { padding: 24px; }

/* Closing */
.closing { background: var(--ink); padding: 96px 0; border-bottom: 1px solid #2A2F36; }
.closing h2 { font-weight: 800; font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: -1px; color: #fff; }
.closing p { margin-top: 14px; font-size: 19px; color: #B9BDC4; }

/* Footer */
.site-footer { background: var(--ink); color: #B9BDC4; padding: 48px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand span { font-size: 20px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-col a { color: #B9BDC4; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-col a.lime-link { color: var(--lime); }
.small { font-size: 14px; }

/* Back to top */
.totop { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease; }
.totop.show { opacity: 1; pointer-events: auto; transform: none; }
.totop.show:hover { transform: translateY(-4px); }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(182, 242, 58, .55); } 70% { box-shadow: 0 0 0 18px rgba(182, 242, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(182, 242, 58, 0); } }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fade-up { animation: fadeUp .9s cubic-bezier(.2, .7, .2, 1) both; }
.pulse { animation: fadeUp .9s cubic-bezier(.2, .7, .2, 1) .3s both, pulse 2.4s ease-out 1.4s infinite; }
.bob { animation: bob 5s ease-in-out infinite; }
.bob2 { animation: bob 6.5s ease-in-out 1s infinite; }
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .pins { display: none; }
  .hero { padding: 88px 0 104px; }
  .section { padding: 72px 0; }
  .card, .steps .card { padding: 24px; }
  .grid-card { padding: 18px; gap: 24px; }
  .cta-banner { padding: 48px 24px; }
  .form-card { padding: 16px; }
  .btn-lg { padding: 18px 24px; font-size: 17px; }
  .totop { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
