:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --surface-2: #efeee7;
  --ink: #12140f;
  --ink-2: #4a4e45;
  --muted: #7d8177;
  --line: #e2e0d6;
  --accent: #1f8f4e;
  --accent-ink: #ffffff;
  --accent-soft: #dcf2e3;
  --lime: #c6f36b;
  --star: #e8a317;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18, 20, 15, .04), 0 8px 30px rgba(18, 20, 15, .06);
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f110d;
    --surface: #171a14;
    --surface-2: #1e221a;
    --ink: #f1f2ec;
    --ink-2: #c2c6ba;
    --muted: #8b9083;
    --line: #2a2f25;
    --accent: #4cc97e;
    --accent-ink: #0b1a10;
    --accent-soft: #183522;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 30px rgba(0, 0, 0, .25);
  }
  /* keep the "inverted" highlight panels dark in dark mode */
  .stats, .contact-card, .plan.popular, .est-total {
    --ink: #1d2419; --bg: #f1f2ec;
    border: 1px solid #34402c;
  }
  .logo-mark { background: #12140f; border: 1px solid var(--line); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
section { padding: 96px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 48px); margin: 12px 0 14px; }
.section-head p { color: var(--ink-2); font-size: 18px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px var(--font-head); letter-spacing: -0.03em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: #12140f;
  display: grid; place-items: center;
}
.logo-mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.btn-dark, .nav-links a.btn-dark:hover { color: var(--bg); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px 6px 6px; font-size: 14px; color: var(--ink-2); max-width: 100%;
}
.badge b { background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); margin: 22px 0 22px; letter-spacing: -0.04em; }
.hero h1 .hl { position: relative; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: .08em; height: .32em;
  background: var(--lime); z-index: -1; border-radius: 4px; opacity: .85;
}
@media (prefers-color-scheme: dark) { .hero h1 .hl::after { opacity: .35; } }
.hero-sub { font-size: 19px; color: var(--ink-2); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { color: var(--accent); width: 16px; height: 16px; }

.hero-visual { position: relative; }
.browser {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
  transform: rotate(-1.5deg);
}
.browser-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-body { padding: 22px; display: grid; gap: 14px; }
.mock-hero { height: 120px; border-radius: 12px; background: linear-gradient(135deg, #1f8f4e, #8fd14f); position: relative; }
.mock-hero::after { content: ""; position: absolute; left: 18px; bottom: 18px; width: 45%; height: 14px; border-radius: 6px; background: rgba(255,255,255,.85); box-shadow: 0 -24px 0 -2px rgba(255,255,255,.5); }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-row div { height: 64px; border-radius: 10px; background: var(--surface-2); }
.mock-line { height: 10px; border-radius: 5px; background: var(--surface-2); }
.mock-line.w60 { width: 60%; }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; font-size: 14px;
}
.float-card strong { display: block; font-family: var(--font-head); font-size: 18px; }
.float-card small { color: var(--muted); }
.float-card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); font-size: 18px; }
.fc-1 { left: -28px; bottom: 36px; animation: bob 5s ease-in-out infinite; }
.fc-2 { right: -14px; top: -18px; animation: bob 6s ease-in-out infinite reverse; }
@keyframes bob { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 20px auto 0; width: 100%; }
  .fc-1 { left: -6px; } .fc-2 { right: -6px; }
}

/* ---------- Trust / stats ---------- */
.trust { padding: 0 0 24px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink); color: var(--bg); border-radius: var(--radius); overflow: hidden;
}
.stat { padding: 28px 24px; border-right: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font: 700 clamp(28px, 3.4vw, 38px)/1 var(--font-head); letter-spacing: -0.03em; }
.stat span { font-size: 14px; opacity: .7; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); }
}

.guarantees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.guarantee {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2);
}
.guarantee b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.guarantee .ic { flex: none; font-size: 20px; line-height: 1; margin-top: 2px; }
@media (max-width: 900px) { .guarantees { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .guarantees { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); font-size: 22px; margin-bottom: 18px; }
.service h3 { font-size: 21px; margin-bottom: 8px; }
.service p { color: var(--ink-2); font-size: 15px; }
.service .price-hint { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--accent); }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Portfolio ---------- */
.work { background: var(--surface-2); }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.work-head .section-head { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  padding: 9px 16px; border-radius: 999px; font: 500 14px var(--font-body); cursor: pointer;
}
.filter.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-cover { aspect-ratio: 16 / 10; position: relative; overflow: hidden; display: grid; place-items: center; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-cover .auto {
  font: 700 26px var(--font-head); color: #fff; text-align: center; padding: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,.15); letter-spacing: -0.02em;
}
.project-cover .cat {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: #12140f;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-transform: capitalize;
}
.project-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-body h3 { font-size: 20px; }
.project-body .client { font-size: 13px; color: var(--muted); }
.project-body p { color: var(--ink-2); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tags span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.project-link { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
@media (max-width: 900px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 28px 24px; border-top: 2px solid var(--ink); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font: 700 14px var(--font-head); color: var(--accent); display: block; margin-bottom: 14px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.stars { color: var(--star); letter-spacing: 2px; font-size: 16px; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.reviewer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font: 700 15px var(--font-head); color: #fff; flex: none;
}
.reviewer b { display: block; font-size: 15px; }
.reviewer small { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  font: 600 18px var(--font-head); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin-top: 12px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- CTA / contact ---------- */
.contact-card {
  background: var(--ink); color: var(--bg); border-radius: 28px; padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lime) 40%, transparent), transparent 70%);
  right: -120px; top: -160px; pointer-events: none;
}
.contact-card h2 { font-size: clamp(32px, 4.5vw, 50px); margin: 12px 0 16px; }
.contact-card .eyebrow { color: var(--lime); }
.contact-card p { opacity: .75; font-size: 17px; }
.contact-list { display: grid; gap: 12px; margin-top: 28px; font-size: 15px; }
.contact-list a, .contact-list span { display: flex; align-items: center; gap: 10px; text-decoration: none; opacity: .9; }
.form { display: grid; gap: 12px; position: relative; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { font-size: 13px; opacity: .7; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; font: 15px var(--font-body);
  background: color-mix(in srgb, var(--bg) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); color: var(--bg);
}
.form select option { color: #12140f; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.form .btn-primary { background: var(--lime); color: #12140f; box-shadow: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.form-actions .btn { flex: 1; }
.form-actions .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 25%, transparent); }
.form-actions .btn-ghost:hover { background: color-mix(in srgb, var(--bg) 8%, transparent); }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 32px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform .2s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 24px; height: 24px; }

.form-status { font-size: 14px; color: var(--lime); min-height: 1em; }
.form-status a { color: inherit; }

/* ---------- Corporate ---------- */
.corp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.corp h2 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 16px; }
.corp p { color: var(--ink-2); font-size: 18px; }
.corp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.corp-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px 16px 48px; position: relative; font-weight: 500;
}
.corp-list li::before {
  content: "✓"; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
@media (max-width: 860px) { .corp { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Pricing page ---------- */
.page-hero { padding: 72px 0 40px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.04em; margin: 14px 0 18px; max-width: 820px; }
.page-hero p { font-size: 19px; color: var(--ink-2); max-width: 620px; }

.price-note {
  display: inline-flex; gap: 8px; margin-top: 28px; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600;
}

.it-extra {
  display: grid; grid-template-columns: .6fr 1.4fr; gap: 32px; align-items: center;
  margin-top: 40px; padding: 28px 32px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
}
.it-extra h3 { font-size: 22px; margin-bottom: 6px; }
.it-extra .muted { color: var(--ink-2); font-size: 15px; }
.it-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.it-project {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px; background: var(--surface-2); font-size: 15px;
}
.it-project strong { font-family: var(--font-head); white-space: nowrap; }
.it-project small { font-size: 12px; color: var(--muted); font-weight: 500; }
.corp-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  margin-top: 20px; padding: 32px; border-radius: 22px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.corp-banner h3 { font-size: 24px; margin: 8px 0 8px; }
.corp-banner p { color: var(--ink-2); max-width: 720px; }
.corp-banner .btn { flex: none; }
@media (max-width: 860px) {
  .it-extra { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .corp-banner { flex-direction: column; align-items: flex-start; padding: 24px; }
}
@media (max-width: 560px) { .it-projects { grid-template-columns: 1fr; } }

.demos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.demo:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.demo-preview { aspect-ratio: 16 / 9; padding: 16px; display: grid; }
.demo-screen {
  background: rgba(255,255,255,.95); border-radius: 10px; padding: 10px; display: grid;
  grid-template-rows: auto 1fr auto; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.demo-screen .top { display: flex; justify-content: space-between; align-items: center; }
.demo-screen .top i { display: block; width: 36px; height: 7px; border-radius: 4px; background: #d9d9d9; }
.demo-screen .top em { display: flex; gap: 4px; }
.demo-screen .top em::before, .demo-screen .top em::after { content: ""; width: 16px; height: 5px; border-radius: 3px; background: #e5e5e5; }
.demo-screen .mid { border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.demo-screen .bot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.demo-screen .bot span { height: 18px; border-radius: 4px; background: #efefef; }
.demo-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.demo-body h3 { font-size: 20px; }
.demo-body ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.demo-body li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); gap: 10px; }
.demo-foot small { color: var(--muted); display: block; font-size: 12px; }
.demo-foot strong { font: 700 22px var(--font-head); }
@media (max-width: 900px) { .demos-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .demos-grid { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 32px; display: flex; flex-direction: column; gap: 18px; position: relative;
}
.plan.popular { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-8px); }
.plan.popular .muted, .plan.popular li { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.plan .ribbon {
  position: absolute; top: -12px; left: 32px; background: var(--lime); color: #12140f;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .03em;
}
.plan h3 { font-size: 24px; }
.plan .muted { color: var(--ink-2); font-size: 15px; }
.plan .amount { font: 700 52px/1 var(--font-head); letter-spacing: -0.04em; }
.plan .amount small { font-size: 15px; font-weight: 500; letter-spacing: 0; opacity: .6; }
.plan .renew { font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plan.popular li::before { color: var(--lime); }
.plan .btn { margin-top: auto; }
.plan.popular .btn-primary { background: var(--lime); color: #12140f; box-shadow: none; }
.plan .delivery { display: inline-flex; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); align-self: flex-start; }
.plan.popular .delivery { background: color-mix(in srgb, var(--lime) 18%, transparent); color: var(--lime); }
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan.popular { transform: none; }
}

/* Estimator */
.estimator { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: start; }
.est-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: grid; gap: 30px; }
.est-group h4 { font-size: 16px; margin-bottom: 14px; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt-grid.three { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); cursor: pointer; font-size: 15px; font-weight: 500; height: 100%;
  transition: border-color .15s, background .15s;
}
.opt label small { color: var(--muted); font-weight: 400; font-size: 13px; }
.opt input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.opt input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input { flex: 1; accent-color: var(--accent); }
.range-row output { font: 700 20px var(--font-head); min-width: 70px; text-align: right; }
.est-total {
  position: sticky; top: 96px; background: var(--ink); color: var(--bg);
  border-radius: 22px; padding: 32px; display: grid; gap: 18px;
}
.est-total .label { font-size: 14px; opacity: .7; }
.est-total .big { font: 700 54px/1 var(--font-head); letter-spacing: -0.04em; color: var(--lime); }
.est-lines { display: grid; gap: 8px; font-size: 14px; border-top: 1px solid color-mix(in srgb, var(--bg) 15%, transparent); padding-top: 16px; }
.est-lines div { display: flex; justify-content: space-between; gap: 12px; opacity: .85; }
.est-total .btn-primary { background: var(--lime); color: #12140f; box-shadow: none; }
.est-total .fine { font-size: 12px; opacity: .55; }
@media (max-width: 900px) {
  .estimator { grid-template-columns: 1fr; }
  .est-total { position: static; }
}
@media (max-width: 520px) {
  .opt-grid, .opt-grid.three { grid-template-columns: 1fr; }
  .est-panel { padding: 22px; }
}

.compare { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { font-family: var(--font-head); font-size: 15px; background: var(--surface-2); }
.compare td:first-child { color: var(--ink-2); }
.compare .us { color: var(--accent); font-weight: 600; }
.table-wrap { overflow-x: auto; border-radius: 18px; }

/* reveal on scroll */
.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; }
  .fc-1, .fc-2 { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card h3 { font-size: 21px; }
.post-card p { color: var(--ink-2); font-size: 15px; }
.post-card .tags { margin-top: auto; }
.post-meta { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.post { max-width: 760px; padding: 48px 0 40px; }
.post .back { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.post .back:hover { color: var(--ink); }
.post-head { margin: 24px 0 32px; }
.post-head h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; margin: 14px 0 16px; }
.post-lead { font-size: 20px; color: var(--ink-2); margin-bottom: 14px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 36px; font-size: 15px; }
.toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.prose { font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: clamp(26px, 3.4vw, 32px); margin-top: 48px; scroll-margin-top: 90px; }
.prose h3 { font-size: 22px; margin-top: 32px; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 24px; display: grid; gap: 8px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 88%, var(--bg)); }
.prose blockquote {
  margin: 28px 0 0; padding: 18px 22px; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 12px 12px 0; font-size: 18px;
}
.prose code { font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.post-cta {
  margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 22px; padding: 28px 32px;
}
.post-cta h3 { font-size: 24px; margin: 8px 0 6px; }
.post-cta p { color: var(--ink-2); max-width: 520px; }
.post-cta .btn { flex: none; }
section .post-cta { margin-top: 40px; }
@media (max-width: 700px) { .post-cta { flex-direction: column; align-items: flex-start; padding: 24px; } }
.related { margin-top: 64px; padding: 0; }
.related h2 { font-size: 28px; margin-bottom: 20px; }
.related .post-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .related .post-grid { grid-template-columns: 1fr; } }
