:root {
  color-scheme: light dark;
  --canvas: #f5f7fa;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #172033;
  --muted: #64748b;
  --hover: #f1f5f9;
  --brand: #047857;
  --brand-hover: #065f46;
  --brand-soft: #ecfdf5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0b1220;
    --surface: #101a2a;
    --border: #263449;
    --text: #e5edf7;
    --muted: #94a3b8;
    --hover: #1c2a3e;
    --brand: #10b981;
    --brand-hover: #059669;
    --brand-soft: #12392f;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--canvas);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.045);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px; gap: 20px; position: relative;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 11px; }
.brand-mark { width: 42px; height: 60px; display: block; flex: 0 0 42px; overflow: hidden; position: relative; }
.brand-mark img { height: 60px; width: auto; max-width: none; display: block; }
.brand-name { color: var(--text); font-size: 1.55rem; font-weight: 800; letter-spacing: -0.045em; white-space: nowrap; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none !important; }
  .logo-dark { display: block !important; }
}
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 0.94rem; font-weight: 500; }
.nav-pages { display: flex; align-items: center; }
.nav-pages { gap: 3px; }
.nav-pages a, .nav-login {
  color: var(--muted);
  border-radius: 9px;
  padding: 9px 11px;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.nav-pages a:hover, .nav-login:hover { color: var(--text); background: var(--hover); }
.nav-login { color: var(--text); font-weight: 600; }
.nav-cta { gap: 8px; white-space: nowrap; box-shadow: 0 5px 12px rgba(4, 120, 87, 0.18); flex: 0 0 auto; }
.cta-short { display: none; }
.nav-cta span { font-size: 1.1em; transition: transform .15s; }
.nav-cta:hover span { transform: translateX(3px); }
.nav-toggle { display: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent);
  outline-offset: 3px;
}

/* Buttons (solid Akauntify emerald, no gradients) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 0.94rem;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--brand); color: #fff !important; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--text) !important; border-color: var(--border); }
.btn-secondary:hover { background: var(--hover); }
.btn-outline { background: transparent; color: var(--brand) !important; border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-block { width: 100%; margin-top: auto; }

/* Hero */
.hero { padding: 64px 0; border-bottom: 1px solid var(--border); background: var(--canvas); }
.hero-compact { padding: 48px 0; text-align: center; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1.15fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.95rem, 3.4vw, 2.75rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
.lead { font-size: 1.06rem; color: var(--muted); margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-compact .hero-actions { justify-content: center; }
.hero-facts {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 6px;
  font-size: 0.9rem; color: var(--muted);
}
.hero-facts li::before { content: "✓ "; color: var(--brand); font-weight: 700; }

/* Browser-framed product screenshots */
.browser-frame {
  margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.10);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: var(--canvas); border-bottom: 1px solid var(--border);
}
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: inline-block; }
.browser-url {
  min-width: 0; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--muted); font-family: ui-monospace, monospace; font-size: 0.78rem;
}

.app-mock { display: grid; grid-template-columns: 132px 1fr; min-height: 290px; }
.mock-rail { background: var(--canvas); border-right: 1px solid var(--border); padding: 14px 10px; font-size: 0.78rem; }
.mock-brand { font-weight: 700; color: var(--brand); padding: 0 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.mock-nav-item { padding: 6px 8px; border-radius: 6px; color: var(--muted); margin-bottom: 2px; }
.mock-nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.mock-main { padding: 18px; }
.mock-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.mock-title { font-weight: 700; font-size: 0.96rem; }
.mock-sub { font-size: 0.78rem; color: var(--muted); }
.status-pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 0.72rem; font-weight: 700;
}
.status-pill.warn { background: #fef3c7; color: #92400e; }

.mock-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.mock-table th {
  text-align: left; padding: 8px; border-bottom: 1px solid var(--border);
  background: var(--canvas); color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.mock-table td { padding: 8px; border-bottom: 1px solid var(--border); }
.mock-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Sections & Tabs */
.section { padding: 64px 0; }
.section-surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 660px; margin: 0 0 32px; }
.section-head h2 { font-size: 1.75rem; margin: 0 0 8px; letter-spacing: -0.015em; }
.section-head p { color: var(--muted); margin: 0; }

.screen-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab-btn {
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--canvas); color: var(--muted); font-weight: 600; font-size: 0.88rem; cursor: pointer;
}
.tab-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.screen-panel { display: none; }
.screen-panel.active { display: block; }
.screen-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: center; }
.screen-notes h3 { margin: 0 0 10px; font-size: 1.25rem; }
.screen-notes p { color: var(--muted); margin: 0 0 16px; }

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: stretch; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.module-card h3, .step-card h3, .faq-wrap h3 { margin: 0 0 8px; font-size: 1.06rem; }
.module-card p, .step-card p, .faq-wrap p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.step-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }

/* Pricing */
.plan-card { display: flex; flex-direction: column; }
.plan-card.featured { border: 2px solid var(--brand); }
.pricing-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.pricing-empty h3 { margin: 0 0 6px; font-size: 1.15rem; }
.pricing-empty p { margin: 0; color: var(--muted); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-top h3 { margin: 0; font-size: 1.2rem; }
.pill {
  padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  background: var(--brand-soft); color: var(--brand); text-transform: uppercase;
}
.price { font-size: 2rem; font-weight: 800; margin: 12px 0 4px; letter-spacing: -0.02em; }
.price span { font-size: 0.92rem; font-weight: 500; color: var(--muted); margin-left: 2px; }
.trial-note { margin: 0 0 10px; font-size: 0.85rem; font-weight: 600; color: var(--brand); }
.muted { color: var(--muted); font-size: 0.92rem; }
.check-list { list-style: none; padding: 0; margin: 14px 0 24px; display: grid; gap: 8px; font-size: 0.92rem; }
.check-list li { padding-left: 22px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.center-link { margin-top: 24px; font-weight: 600; }

/* Toggle */
.toggle {
  display: inline-flex; padding: 4px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
}
.toggle a { padding: 7px 18px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.toggle a.on { background: var(--brand); color: #fff; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0; color: var(--muted); font-size: 0.88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-copy { margin-top: 4px; font-size: 0.82rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

@media (max-width: 980px) {
  .topbar-inner { height: 88px; gap: 12px; }
  .brand-mark { width: 36px; height: 50px; flex-basis: 36px; }
  .brand-mark img { height: 50px; }
  .brand-name { font-size: 1.35rem; }
  .nav-links { gap: 8px; font-size: 0.88rem; }
  .nav-pages a, .nav-login { padding: 8px; }
  .nav-cta { padding: 10px 12px; }
}
@media (max-width: 900px) {
  .hero-grid, .screen-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar-inner {
    height: 76px;
    gap: 8px;
  }
  .topbar .container { padding-left: 16px; padding-right: 16px; }
  .brand { gap: 7px; }
  .brand-mark { width: 27px; height: 38px; flex-basis: 27px; }
  .brand-mark img { height: 38px; }
  .brand-name { font-size: 1.2rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 18px rgba(15, 23, 42, 0.12);
  }
  .nav-links.is-open { display: flex; }
  .nav-pages { align-items: stretch; flex-direction: column; gap: 2px; }
  .nav-pages a, .nav-login { padding: 10px 12px; }
  .nav-login { border-top: 1px solid var(--border); border-radius: 0; }
  .nav-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--text); }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .nav-cta { padding: 9px 10px; }
  .grid-2, .grid-3, .plans-grid { grid-template-columns: 1fr; }
  .pricing-empty { align-items: stretch; flex-direction: column; }
  .app-mock { grid-template-columns: 1fr; }
  .mock-rail { display: none; }
}
@media (max-width: 430px) {
  .brand { gap: 5px; }
  .brand-mark { width: 25px; flex-basis: 25px; }
  .brand-name { font-size: 1.15rem; }
  .nav-cta { padding: 9px 10px; font-size: 0.86rem; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 1.08rem; }
  .nav-cta { padding: 8px; font-size: 0.82rem; }
}

.screenshot-img { display: block; width: 100%; height: auto; }
