/* VarCentral marketing site styles */
:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --border: #d9e0ea;
  --text: #16202e;
  --muted: #566274;
  --brand: #12603f;
  --brand-ink: #0d4a30;
  --brand-soft: #e4f1ea;
  --accent: #1f7a52;
  --ring: #2f9e6b;
  --shadow: 0 1px 2px rgba(16,32,46,.06), 0 8px 24px rgba(16,32,46,.08);
  --radius: 14px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface-2: #1c232d;
    --border: #2a333f;
    --text: #e8edf3;
    --muted: #9aa7b6;
    --brand: #3fcaa0;
    --brand-ink: #7ddcbb;
    --brand-soft: #14241d;
    --accent: #4fd3a8;
    --ring: #3fcaa0;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Focus states */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.brand .mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.nav-links { display: flex; gap: 1.4rem; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  padding: .7rem 1.2rem; border-radius: 10px; border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: .5rem .9rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: .35rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-note { margin-top: 1rem; font-size: .85rem; color: var(--muted); }

/* Mock preview card */
.preview {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.preview-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.preview-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.preview-bar .title { margin-left: .6rem; font-size: .8rem; color: var(--muted); font-weight: 600; }
.preview-body { padding: 1.1rem; display: grid; gap: .8rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: .7rem .8rem; }
.stat .k { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat .v { font-size: 1.15rem; font-weight: 800; }
.v.pos { color: var(--brand); }
.bars { display: flex; align-items: flex-end; gap: .5rem; height: 92px; padding-top: .4rem; }
.bars span { flex: 1; background: var(--brand); border-radius: 5px 5px 0 0; opacity: .85; }
.ledger { display: grid; gap: .45rem; }
.ledger .li { display: flex; justify-content: space-between; font-size: .85rem; padding: .4rem .6rem; background: var(--surface-2); border-radius: 8px; }
.ledger .li .amt.pos { color: var(--brand); font-weight: 700; }
.ledger .li .amt.neg { color: #c0392b; font-weight: 700; }
@media (prefers-color-scheme: dark) { .ledger .li .amt.neg { color: #ff8a7a; } }

/* Sections */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Trust strip */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.trust .item { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .95rem; font-weight: 500; }
.trust .item svg { flex: none; color: var(--brand); }

/* Feature grid */
.features { background: var(--bg); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: .9rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Editions / pricing */
.pricing { background: var(--surface); border-top: 1px solid var(--border); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow);
}
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), var(--shadow); position: relative; }
.plan .badge { position: absolute; top: -12px; left: 1.6rem; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }
.plan h3 { font-size: 1.35rem; margin: 0; }
.plan .tagline { color: var(--muted); font-size: .9rem; margin: 0; min-height: 2.6em; }
.plan .price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan .price-note { font-size: .78rem; color: var(--muted); margin-top: -.6rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.plan ul li { display: flex; gap: .55rem; font-size: .92rem; align-items: flex-start; }
.plan ul li svg { flex: none; color: var(--brand); margin-top: 3px; }
.plan ul li.off { color: var(--muted); }
.plan ul li.off svg { color: var(--border); }
.plan .plan-actions { margin-top: auto; display: grid; gap: .6rem; }

/* Comparison table */
.compare { overflow-x: auto; margin-top: 2.5rem; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
table.cmp caption { text-align: left; font-weight: 700; margin-bottom: .8rem; }
table.cmp th, table.cmp td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--border); font-size: .92rem; }
table.cmp thead th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
table.cmp td.center, table.cmp th.center { text-align: center; }
table.cmp tbody th { font-weight: 600; }
.yes { color: var(--brand); font-weight: 700; }
.no { color: var(--muted); }

/* FAQ */
.faq-list { display: grid; gap: .8rem; max-width: 820px; }
details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 1.1rem; box-shadow: var(--shadow); }
details.faq summary { cursor: pointer; font-weight: 600; padding: 1.05rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); font-weight: 400; line-height: 1; }
details.faq[open] summary::after { content: "\2013"; }
details.faq p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; }
.cta-band .wrap { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 16px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 50ch; margin: 0 auto 1.6rem; }
.cta-band .btn-primary { background: #fff; color: var(--brand-ink); }
.cta-band .btn-primary:hover { background: #eef7f2; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
.footer-grid .col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 .6rem; }
.footer-grid .col a { display: block; color: var(--muted); text-decoration: none; font-size: .92rem; margin-bottom: .35rem; }
.footer-grid .col a:hover { color: var(--text); }
.footer-bottom { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

.placeholder-tag { font-size: .7rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: .1rem .4rem; border-radius: 5px; white-space: nowrap; }

/* ui-ux-pro-max: ensure >=44px touch targets for nav/footer links on touch devices */
@media (pointer: coarse) {
  header nav a,
  footer a,
  .nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
