/* ============================================================
   SmartGenPlan — shared design system
   Dark editorial. Cyan accent. Unbounded display + Onest body.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:           #08090c;
  --surface:      #10131b;
  --surface-2:    #161a25;
  --surface-3:    #1c2130;
  --border:       rgba(255,255,255,0.07);
  --border-strong:rgba(255,255,255,0.14);
  --text:         #f4f5f8;
  --muted:        #8b91a3;
  --muted-2:      #5d6377;
  --accent:       #06B6D4;
  --accent-soft:  rgba(6,182,212,0.12);
  --accent-glow:  rgba(6,182,212,0.35);
  --money:        #84cc16;
  --warn:         #fbbf24;
  --danger:       #ef4444;
  --ok:           #22c55e;

  --display:      'Unbounded', system-ui, sans-serif;
  --body:         'Onest', system-ui, sans-serif;
  --mono:         'JetBrains Mono', ui-monospace, monospace;

  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { overflow-x: hidden; line-height: 1.55; font-size: 16px; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 80px 0; position: relative; }
@media (max-width: 760px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-sm { padding: 56px 0; }
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
  padding: 8px 14px; border: 1px solid var(--border-strong);
  border-radius: 100px;
}
.eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------- Typography (display) ---------- */
.section-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05; letter-spacing: -0.025em;
  margin-top: 24px;
}
.section-sub {
  font-size: 18px; line-height: 1.55; color: var(--muted);
  margin-top: 20px; max-width: 640px;
}
.cyan { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn-primary, .cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; background: var(--accent); color: #000;
  font-weight: 600; font-size: 15px; border-radius: 100px; border: none;
  cursor: pointer; transition: all .2s; font-family: var(--body);
  text-decoration: none;
}
.btn-primary:hover, .cta-btn:hover {
  background: color-mix(in srgb, var(--accent) 80%, white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px -8px var(--accent-glow);
}
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; background: transparent; color: var(--text);
  font-weight: 500; font-size: 15px; border-radius: 100px;
  border: 1px solid var(--border-strong); cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--text); }
.btn-outline-accent {
  background: transparent !important;
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
}
.btn-outline-accent:hover {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}
.btn-outline-muted {
  background: transparent !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--muted) !important;
}
.btn-outline-muted:hover {
  border-color: var(--text) !important;
  color: var(--text) !important;
  background: var(--surface) !important;
}
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,9,12,0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  font-family: var(--display); font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em; color: var(--text);
  display: inline-flex; align-items: center; gap: 10px;
}
.nav-logo::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 16px var(--accent-glow);
}
.nav-logo span { color: inherit; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; color: var(--muted); font-weight: 500;
}
.nav-links > a { transition: color .15s; }
.nav-links > a:hover, .nav-links > a.active { color: var(--text); }
.nav-links > a.active { color: var(--accent); }
.nav-login {
  padding: 10px 18px; background: var(--accent); color: #000 !important;
  border-radius: 100px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.nav-login:hover {
  background: color-mix(in srgb, var(--accent) 80%, white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px var(--accent-glow);
}
.nav-login-icon { display: none; }
/* Language switch */
.lang-switch { display: inline-flex; gap: 0; border: 1px solid var(--border-strong); border-radius: 100px; overflow: hidden; }
.lang-btn { padding: 6px 12px; background: transparent; color: var(--muted); border: none; font-size: 12px; font-weight: 600; font-family: var(--mono); letter-spacing: 0.05em; transition: all .15s; }
.lang-btn.active { background: var(--accent); color: #000; }
.lang-btn:not(.active):hover { color: var(--text); }

/* Burger (mobile) */
.burger-toggle { display: none; }
.burger { display: none; cursor: pointer; width: 28px; height: 22px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }

@media (max-width: 960px) {
  .burger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,9,12,0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px 24px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  }
  .burger-toggle:checked ~ .nav-links { max-height: 600px; padding: 16px 32px 24px; }
  .burger-toggle:not(:checked) ~ .nav-links { padding-top: 0; padding-bottom: 0; }
  .nav-links > a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links > .nav-login { margin-top: 12px; padding: 12px 18px; justify-content: center; }
  .lang-switch { align-self: flex-start; margin-top: 8px; }
  .burger-toggle:checked + .burger span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .burger-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
  .burger-toggle:checked + .burger span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
}

/* ---------- Page (prose) wrapper ---------- */
.page {
  max-width: 880px; margin: 0 auto; padding: 80px 32px 96px;
  font-size: 16px; line-height: 1.7;
}
.page h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.page h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15;
  letter-spacing: -0.02em; margin: 56px 0 20px;
}
.page h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 20px; line-height: 1.25;
  letter-spacing: -0.015em; margin: 36px 0 14px; color: var(--text);
}
.page p { margin-bottom: 18px; color: #c5c9d6; }
.page p strong, .page li strong { color: var(--text); font-weight: 600; }
.page ul, .page ol { margin: 0 0 22px 0; padding-left: 0; list-style: none; }
.page ul li, .page ol li {
  position: relative; padding-left: 26px;
  margin-bottom: 10px; color: #c5c9d6;
}
.page ul li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 12px; height: 1px; background: var(--accent);
}
.page ol { counter-reset: ol; }
.page ol li { counter-increment: ol; }
.page ol li::before {
  content: counter(ol) '.'; position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  font-weight: 600; line-height: 1.7em;
}
.page a {
  color: var(--accent);
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  transition: border-color .15s;
}
.page a:hover { border-bottom-color: var(--accent); }
.page em { font-style: italic; color: var(--text); }

/* ---------- Info block (callout) ---------- */
.info-block {
  margin: 24px 0;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.info-block p { margin-bottom: 12px; color: #c5c9d6; }
.info-block p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap {
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-wrap th, .table-wrap td {
  padding: 16px 20px; text-align: left;
  border-bottom: 1px solid var(--border);
  color: #c5c9d6; vertical-align: top;
}
.table-wrap th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
  background: var(--surface-2);
}
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: var(--muted); }
.table-wrap td strong { color: var(--text); font-weight: 600; }
@media (max-width: 760px) {
  .table-wrap { overflow-x: auto; }
  .table-wrap table { min-width: 0; font-size: 13px; }
  .table-wrap th, .table-wrap td { padding: 12px 12px; word-break: break-word; overflow-wrap: anywhere; }
}

/* ---------- Features grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.feature {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 17px; line-height: 1.25; letter-spacing: -0.01em;
  margin-bottom: 12px; color: var(--text);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  min-height: 2.5em;
}
.feature p { font-size: 14.5px; line-height: 1.6; color: var(--muted); flex: 1; }

/* Inline feature icons */
.fi { display: inline-block; vertical-align: -3px; margin-right: 4px; color: var(--accent); }
.fi-bolt { color: var(--accent); }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
  align-items: stretch;
}
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  display: flex; flex-direction: column;
  padding: 36px 32px 32px;
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 70%, var(--bg)) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 1;
  transition: border-color .25s, transform .25s, box-shadow .25s, z-index 0s;
}
.plan:hover { z-index: 5; }
.plan:has(.tip:hover), .plan:has(.tip.is-open) { z-index: 50; }
.plan:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -32px rgba(0,0,0,0.6);
}
.plan.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, var(--surface)) 0%, var(--surface) 45%, color-mix(in srgb, var(--surface) 70%, var(--bg)) 100%);
  box-shadow: 0 30px 80px -40px var(--accent-glow), inset 0 1px 0 color-mix(in srgb, var(--accent) 40%, transparent);
}
.plan.featured:hover {
  box-shadow: 0 40px 100px -40px var(--accent-glow), inset 0 1px 0 color-mix(in srgb, var(--accent) 40%, transparent);
}
.plan.featured::before {
  content: 'Популярный';
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--accent); color: #000;
  padding: 6px 14px; border-radius: 100px; font-weight: 700;
  box-shadow: 0 6px 20px -4px var(--accent-glow);
}

.plan-name {
  font-family: var(--display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.015em; color: var(--text);
  margin-bottom: 6px;
}
.plan.featured .plan-name { color: var(--accent); }
.plan-desc {
  font-size: 13px; color: var(--muted); line-height: 1.55;
  margin-bottom: 22px; min-height: 40px;
}
.plan-price {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-family: var(--display); font-weight: 700;
  font-size: 52px; line-height: 1; letter-spacing: -0.04em;
  color: var(--text); margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border);
}
.plan-price span {
  font-family: var(--body); font-size: 13px; font-weight: 500;
  color: var(--muted); letter-spacing: 0;
}

/* Features list — clean rows, hover-tint, accent icon */
.plan-features {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 2px;
  flex: 1;
}
.plan-features li {
  font-size: 13.5px; line-height: 1.5;
  color: #c8ccd9;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background .15s;
  margin: 0;
}
.plan-features li:hover { background: rgba(255,255,255,0.025); }
.plan.featured .plan-features li:hover { background: rgba(6,182,212,0.05); }
.plan-features li::before { display: none; }
.plan-features li > span:first-child {
  flex: 1; min-width: 0;
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.plan-features li svg {
  flex-shrink: 0; color: var(--accent);
  width: 16px; height: 16px;
}
.plan-features li svg.fi-bolt { width: 13px; height: 17px; }
.plan-features li strong { color: var(--text); font-weight: 600; }
.plan-features li a { color: inherit; border-bottom: 1px dashed currentColor; }

.plan-footnote {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted-2); letter-spacing: 0.04em;
  padding: 14px 10px 18px;
  margin: 0;
  border-top: 1px dashed var(--border);
  display: flex; align-items: center; gap: 8px;
  background: transparent; border-radius: 0;
}
.plan-footnote svg { color: var(--muted-2); flex-shrink: 0; }

/* Tip "?" — subtler default, accent on hover */
.tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: transparent; color: var(--muted-2);
  font-size: 9px; font-weight: 700; cursor: pointer;
  border: 1px solid var(--border-strong); position: relative;
  flex-shrink: 0;
  transition: all .15s;
}
.tip:hover, .tip.is-open { background: var(--accent); color: #000; border-color: var(--accent); }
.tip:hover::after, .tip.is-open::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--surface-3); color: var(--text);
  padding: 12px 16px; border-radius: 12px;
  font-size: 12px; line-height: 1.55; font-weight: 400;
  width: max-content; max-width: 280px; text-align: left;
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.7);
  z-index: 100; pointer-events: none;
  letter-spacing: 0;
  font-family: var(--body);
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; margin-top: 24px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 24px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  list-style: none;
  font-family: var(--display); font-size: 17px; font-weight: 500;
  letter-spacing: -0.015em; color: var(--text);
  transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; width: 14px; height: 14px; flex-shrink: 0;
  background: var(--text);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5'><path d='M12 5v14M5 12h14'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5'><path d='M12 5v14M5 12h14'/></svg>") center/contain no-repeat;
  transition: transform .25s, background .15s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--accent); }
.faq-item[open] summary { color: var(--accent); }
.faq-item summary:hover { color: var(--accent); }
.faq-answer {
  padding: 0 0 24px;
  font-size: 15px; line-height: 1.65; color: var(--muted);
  max-width: 720px;
}
.faq-answer p { margin-bottom: 10px; }
.faq-answer a { color: var(--text); border-bottom: 1px dashed var(--border-strong); }
.faq-answer a:hover { border-bottom-color: var(--accent); }
.faq-answer strong { color: var(--text); }

/* ---------- Footer ---------- */
.footer, .footer-home {
  border-top: 1px solid var(--border);
  padding: 56px 0;
  margin-top: 80px;
  font-size: 13px; color: var(--muted);
  background: var(--bg);
}
.footer .wrap, .footer-home {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.footer-home { padding: 56px 32px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.footer p { line-height: 1.7; margin-bottom: 6px; }
.footer-home p { line-height: 1.7; margin-bottom: 6px; }
.footer a, .footer-home a {
  color: var(--muted);
  border-bottom: 1px dashed transparent;
  transition: color .15s, border-color .15s;
}
.footer a:hover, .footer-home a:hover { color: var(--text); border-bottom-color: var(--muted); }
.footer-legal a { color: var(--muted); }
.footer-creds p:first-child { color: #c5c9d6; }
.footer-copy { font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: 0.05em; }
.footer-logos img { max-height: 28px; width: auto; opacity: 0.7; filter: grayscale(0.5) brightness(1.1); }
.footer-payments {
  flex-basis: 100%;
  width: 100%;
  text-align: center;
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  order: -1;
}
.footer-payments img {
  max-width: 100%;
  height: auto;
  max-height: 40px;
  margin: 0 auto;
  opacity: 0.55;
  filter: brightness(1.1);
}
@media (max-width: 760px) {
  .footer-home { flex-direction: column; gap: 24px; }
  .footer-payments { padding: 16px 0; margin-bottom: 16px; }
  .footer-payments img { max-height: 32px; }
}

/* ---------- Hero (used by index, professionals, etc) ---------- */
.hero { padding-top: 80px; padding-bottom: 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 500px at 80% 20%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px;
  align-items: center; position: relative;
}
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 0.98; letter-spacing: -0.035em;
}
.hero-lede {
  font-size: 19px; line-height: 1.55; color: #c5c9d6;
  margin-top: 28px; max-width: 560px;
}
.hero-tag-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.hero-cta-row { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 32px; margin-top: 44px; padding-top: 28px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.hero-meta-item { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }
.hero-meta-item strong {
  display: block; font-family: var(--display); color: var(--text);
  font-size: 22px; letter-spacing: -0.02em; margin-bottom: 4px; font-weight: 600;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 56px; }
}

/* ---------- Stat cards (used in hero/numbers) ---------- */
.stat-card {
  padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); position: relative; overflow: hidden;
  transition: border-color .25s;
  display: flex; flex-direction: column;
}
.stat-card:hover { border-color: var(--border-strong); }
.stat-card .num {
  font-family: var(--display); font-weight: 700;
  font-size: 72px; line-height: 1; letter-spacing: -0.045em;
  background: linear-gradient(180deg, var(--text), var(--muted));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card .num.accent {
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 50%, transparent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card .lbl {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase; margin-top: 18px;
  min-height: 2.5em;
}
.stat-card .desc { font-size: 14.5px; color: #c5c9d6; line-height: 1.55; margin-top: 12px; flex: 1; }

/* ---------- Grid utilities ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

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

/* ---------- Card variants ---------- */
.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ---------- Misc reusable ---------- */
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.divider { height: 1px; background: var(--border); margin: 32px 0; border: 0; }

/* ---------- Pricing callout (centered hero statement) ---------- */
.pricing-callout {
  position: relative;
  margin: 56px auto 0;
  padding: 56px 48px;
  text-align: center;
  max-width: 880px;
  border-radius: 4px 12px 4px 12px;
  background:
    radial-gradient(ellipse 600px 200px at center 100%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 70%, var(--bg)) 100%);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.pricing-callout::before, .pricing-callout::after {
  content: ''; position: absolute; width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.pricing-callout::before { top: 0; left: 50%; transform: translateX(-50%); }
.pricing-callout::after { bottom: 0; left: 50%; transform: translateX(-50%); }
.pricing-callout-eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  padding: 6px 14px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 3px 8px 3px 8px;
  margin-bottom: 24px;
  background: var(--accent-soft);
}
.pricing-callout-text {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2; letter-spacing: -0.02em;
  color: var(--text); margin: 0;
}
.pricing-callout-text .cyan { color: var(--accent); }
@media (max-width: 760px) {
  .pricing-callout { padding: 40px 24px; }
}

/* ---------- Responsive — mobile polish ---------- */
@media (max-width: 760px) {
  .wrap, .wrap-narrow { padding: 0 18px; }
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .section-title { font-size: clamp(28px, 7vw, 38px); margin-top: 16px; }
  .section-sub { font-size: 16px; margin-top: 16px; }

  /* Hero */
  .hero { padding-top: 40px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(36px, 9vw, 52px); letter-spacing: -0.03em; }
  .hero-lede { font-size: 17px; margin-top: 22px; }
  .hero-tag-row { margin-bottom: 22px; gap: 10px; }
  .hero-meta { gap: 22px 28px; margin-top: 36px; padding-top: 24px; }
  .hero-meta-item strong { font-size: 20px; }
  .hero-cta-row { gap: 10px; margin-top: 28px; }
  .hero-cta-row .btn-primary, .hero-cta-row .btn-ghost,
  .final-cta .btn-primary, .final-cta .btn-ghost {
    width: 100%; justify-content: center;
  }

  /* Stat cards */
  .stat-card { padding: 26px; }
  .stat-card .num { font-size: 56px; }

  /* Feature cards */
  .feature { padding: 24px; }
  .feature h3 { font-size: 16px; }

  /* Plans */
  .plan { padding: 28px 24px; }
  .plan-price { font-size: 44px; padding-bottom: 20px; margin-bottom: 20px; }
  .plan-features li { font-size: 14px; padding: 8px 6px; }

  /* Tip — bottom-anchored on small viewports so it doesn't clip on the first card */
  .tip:hover::after, .tip:focus::after, .tip.is-open::after {
    max-width: calc(100vw - 60px);
    font-size: 12.5px;
    padding: 14px 16px;
  }

  /* Final CTA */
  .final-cta { padding: 56px 28px; }
  .final-cta h2 { font-size: clamp(28px, 7vw, 40px); }
  .final-cta p { font-size: 16px; margin-top: 14px; }
  .final-cta .cta-row { margin-top: 28px; flex-direction: column; width: 100%; gap: 10px; }
  .final-cta .cta-row > a { width: 100%; }

  /* FAQ */
  .faq-item summary { font-size: 16px; padding: 20px 0; gap: 16px; }
  .faq-answer { font-size: 14.5px; padding: 0 0 22px; }

  /* Page (prose) */
  .page { padding: 56px 20px 72px; }
  .page h1 { font-size: clamp(32px, 8vw, 44px); margin-bottom: 18px; }
  .page h2 { font-size: 24px; margin: 40px 0 16px; }
  .page h3 { font-size: 18px; margin: 28px 0 10px; }

  /* Tables — encourage horizontal scroll hint */
  .table-wrap {
    position: relative;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 24px;
    background: linear-gradient(90deg, transparent, var(--surface));
    pointer-events: none;
    border-radius: 0 var(--radius) var(--radius) 0;
  }
  .table-wrap th, .table-wrap td { padding: 14px 16px; font-size: 14px; }

  /* Pricing callout */
  .pricing-callout { padding: 44px 24px; margin-top: 40px; }
  .pricing-callout-text { font-size: clamp(20px, 5vw, 26px); }
  .pricing-callout-text br { display: none; }

  /* Info block */
  .info-block { padding: 20px 22px; }

  /* Footer */
  .footer-home { padding: 40px 20px; gap: 20px; }
  .footer-home p { font-size: 12px; }
}

/* Touch devices — show tip on tap (focus-within proxy) */
@media (hover: none) {
  .tip { font-size: 10px; width: 17px; height: 17px; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .footer, .footer-home, .hero::before { display: none; }
  body { background: white; color: black; }
  .page { max-width: none; padding: 0; }
}
