/* ── Avablue tokens ───────────────────────────────────────────────── */
:root {
  --ink: #0a1a2e;
  --ink-soft: #2a3b53;
  --muted: #5e7591;
  --muted-2: #8a9bb3;
  --line: rgba(11, 58, 102, 0.10);
  --line-soft: rgba(11, 58, 102, 0.06);
  --bg: #fbfcfe;
  --bg-tint: #f3f6fb;
  --primary: #0b3a66;
  --primary-700: #082c4d;
  --primary-100: #e3ebf5;
  --primary-50: #eef3f9;
  --accent: #4a7cb8;        /* mid blue for hovers/highlights */
  --shadow-sm: 0 1px 2px rgba(11, 58, 102, 0.05);
  --shadow:    0 1px 2px rgba(11, 58, 102, 0.04), 0 8px 24px rgba(11, 58, 102, 0.06);
  --shadow-lg: 0 2px 6px rgba(11, 58, 102, 0.06), 0 20px 48px rgba(11, 58, 102, 0.10);
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container: 1180px;
  --pad: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── typography ────────────────────────────────────────────────────── */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; color: var(--ink); margin: 0; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: 56px; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: 38px; font-weight: 600; letter-spacing: -0.025em; }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.005em; }
p  { margin: 0; color: var(--ink-soft); }
.lead { font-size: 18px; color: var(--ink-soft); text-wrap: pretty; }
.muted { color: var(--muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

/* ── nav ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 254, 0.78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-row {
  height: 64px;
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(160deg, var(--primary) 0%, #1f5da0 60%, #4a7cb8 100%);
  position: relative;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.25), 0 1px 2px rgba(11,58,102,0.2);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 4px;
  background: var(--bg);
  border-radius: 3px;
  clip-path: polygon(0 60%, 50% 30%, 100% 60%, 100% 100%, 0 100%);
}
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--primary-50); color: var(--primary); }
.nav-links a.active { color: var(--primary); background: var(--primary-50); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* ── nav dropdown ─────────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active { background: var(--primary-50); color: var(--primary); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 280px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
}
.nav-dropdown-header {
  padding: 12px 16px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  border-bottom: 1px solid var(--line-soft);
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  transition: background 0.15s;
}
.nav-dropdown-item:hover { background: var(--primary-50); }
.nav-dropdown-item.active { background: var(--primary-50); }
.nav-dropdown-icon { flex-shrink: 0; }
.app-icon-small {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--primary) 0%, #1f5da0 60%, #4a7cb8 100%);
  color: #fff;
}
.app-icon-small svg { width: 16px; height: 16px; }
.nav-dropdown-text { display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.nav-dropdown-status {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.nav-dropdown-status[data-status="live"] { color: #1d7a3c; }
.nav-dropdown-status[data-status="soon"] { color: var(--muted); }
.nav-dropdown-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-tint);
}
.nav-dropdown-footer a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--primary);
}
.nav-dropdown-footer a:hover svg { transform: translateX(2px); }
.nav-dropdown-footer svg { transition: transform 0.15s; }

/* ── breadcrumb ───────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--line); }
.breadcrumb-current { color: var(--ink); }

/* ── buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 1px 2px rgba(11,58,102,0.25), 0 4px 14px rgba(11,58,102,0.20);
}
.btn.primary:hover { background: var(--primary-700); }
.btn.ghost {
  background: transparent; color: var(--ink-soft); border-color: var(--line);
}
.btn.ghost:hover { background: var(--primary-50); color: var(--primary); border-color: transparent; }
.btn.subtle {
  background: var(--primary-50); color: var(--primary); border-color: transparent;
}
.btn.subtle:hover { background: var(--primary-100); }
.btn.lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }

/* ── placeholder (subtle striped) ─────────────────────────────────── */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(11, 58, 102, 0.04) 0 6px,
      rgba(11, 58, 102, 0.00) 6px 12px
    ),
    var(--primary-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 24px;
}
.placeholder.compact { padding: 12px; }
.placeholder::before, .placeholder::after {
  content: ""; position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--line);
}
.placeholder::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.placeholder::after  { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

/* ── cards ────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s cubic-bezier(.3,.7,.4,1), box-shadow 0.18s, border-color 0.18s;
}
.card.hoverable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}

/* ── sections ─────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section.tight { padding: 56px 0; }
.section.loose { padding: 120px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 0; }

/* ── footer ───────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 36px;
  background: var(--bg);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--ink-soft); font-size: 14px; }
.footer a:hover { color: var(--primary); }
.footer-base { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; }

/* ── App card ─────────────────────────────────────────────────────── */
.app-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px;
  cursor: pointer;
}
.app-card .app-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--primary) 0%, #1f5da0 60%, #4a7cb8 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  position: relative;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.25), 0 1px 2px rgba(11,58,102,0.2);
}
.app-card .app-icon svg { width: 22px; height: 22px; }
.app-card h3 { font-size: 18px; }
.app-card .app-blurb { color: var(--muted); font-size: 14px; line-height: 1.55; }
.app-card .app-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.app-card .app-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: #4ec273; }
.app-card .badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── density variants ─────────────────────────────────────────────── */
.density-compact .app-card { padding: 16px; gap: 10px; }
.density-compact .app-card .app-icon { width: 36px; height: 36px; border-radius: 8px; }
.density-compact .app-card .app-icon svg { width: 18px; height: 18px; }
.density-compact .app-card h3 { font-size: 16px; }
.density-compact .section { padding: 60px 0; }

.density-spacious .app-card { padding: 32px; gap: 22px; }
.density-spacious .section { padding: 100px 0; }

/* ── announcement bar preview ─────────────────────────────────────── */
.ab-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ab-bar {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 11px 16px;
  text-align: center;
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.ab-bar .ab-pill {
  background: rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}
.ab-bar .ab-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; opacity: 0.7; cursor: default;
}
.ab-bar .ab-close::before, .ab-bar .ab-close::after {
  content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1.5px; background: #fff; border-radius: 2px;
}
.ab-bar .ab-close::before { transform: rotate(45deg); }
.ab-bar .ab-close::after  { transform: rotate(-45deg); }
.ab-storefront {
  background: var(--bg);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line-soft);
}
.ab-storefront .sf-logo {
  height: 22px; background: rgba(11,58,102,0.18); border-radius: 4px;
}
.ab-storefront .sf-nav { display: flex; gap: 10px; justify-content: center; }
.ab-storefront .sf-nav i {
  display: inline-block; width: 38px; height: 6px;
  background: rgba(11,58,102,0.12); border-radius: 3px;
}
.ab-storefront .sf-cart {
  height: 22px; background: rgba(11,58,102,0.12); border-radius: 4px;
}
.ab-storefront-body {
  background: var(--bg);
  padding: 0 22px 22px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
}
.ab-storefront-body i {
  display: block; aspect-ratio: 1; background: var(--primary-100); border-radius: 6px;
  border: 1px solid var(--line-soft);
}

/* ── reviews / testimonial cards ──────────────────────────────────── */
.review-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.review-card .quote { font-size: 16px; line-height: 1.55; color: var(--ink); }
.review-card .reviewer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-card .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(160deg, #c7d7ee, #8aaad1);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
}
.review-card .reviewer-name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.review-card .reviewer-store { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em; }
.stars { display: inline-flex; gap: 2px; color: #f0b429; }
.stars svg { width: 14px; height: 14px; }

/* ── pricing ──────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier {
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
.tier.featured {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.tier.featured h3, .tier.featured .price, .tier.featured ul li { color: #fff; }
.tier.featured .tier-desc, .tier.featured .tier-foot { color: rgba(255,255,255,0.7); }
.tier.featured ul li::before { color: rgba(255,255,255,0.85); }
.tier .price { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; }
.tier .price-unit { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.tier.featured .price-unit { color: rgba(255,255,255,0.7); }
.tier ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tier ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.tier ul li::before {
  content: "✓"; color: var(--primary); font-weight: 700; flex-shrink: 0;
}
.tier-foot { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; }
.tier .featured-pill {
  position: absolute; top: 16px; right: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.18); color: #fff;
  padding: 4px 8px; border-radius: 20px;
}

/* pricing toggle */
.toggle-wrap { display: flex; justify-content: center; gap: 12px; align-items: center; margin-bottom: 36px; }
.toggle-pill {
  display: inline-flex; background: var(--primary-50); padding: 4px; border-radius: 999px; gap: 4px;
}
.toggle-pill button {
  appearance: none; background: transparent; border: 0; padding: 8px 18px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  border-radius: 999px; cursor: default; transition: all 0.18s;
}
.toggle-pill button.on {
  background: #fff; color: var(--primary);
  box-shadow: 0 1px 3px rgba(11,58,102,0.10);
}
.save-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: #e7f5ec; color: #1d7a3c;
  padding: 4px 10px; border-radius: 20px;
  letter-spacing: 0.04em;
}

/* ── changelog ────────────────────────────────────────────────────── */
.changelog-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 200px 1fr; gap: 32px;
}
.changelog-item:first-child { padding-top: 0; }
.changelog-item:last-child { border-bottom: 0; }
.changelog-date { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.changelog-tag {
  display: inline-block; margin-top: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  padding: 3px 8px; border-radius: 4px; letter-spacing: 0.08em; text-transform: uppercase;
}
.changelog-tag.feature { background: #e3ebf5; color: var(--primary); }
.changelog-tag.fix { background: #fff3cd; color: #856100; }
.changelog-tag.improve { background: #e7f5ec; color: #1d7a3c; }
.changelog-body h3 { margin-bottom: 8px; }
.changelog-body ul { padding-left: 18px; margin: 12px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

/* ── form ─────────────────────────────────────────────────────────── */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: 'JetBrains Mono', monospace; }
.form-row input, .form-row textarea, .form-row select {
  font-family: inherit; font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-50);
}
.form-row textarea { resize: vertical; min-height: 120px; }

/* ── KBD-style key ────────────────────────────────────────────────── */
.kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ── arrow link ───────────────────────────────────────────────────── */
.arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 14px;
}
.arrow-link svg { transition: transform 0.18s; }
.arrow-link:hover svg { transform: translateX(2px); }

/* ── responsive guardrails ────────────────────────────────────────── */
@media (max-width: 900px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .changelog-item { grid-template-columns: 1fr; gap: 12px; }
}
