/* ==========================================================================
   JavaGrove: shared stylesheet
   Palette: deep grove green + roasted-coffee amber, warm cream background.
   Fonts: Fraunces (display/serif, crafted warmth) + Inter (UI, clarity/trust)
   ========================================================================== */

:root {
  /* Core palette */
  --forest-900: #0e2a20;
  --forest-800: #123626;
  --forest-700: #1a4a34;
  --forest-600: #235c41;
  --forest-500: #2f7350;
  --forest-100: #e5efe7;

  --amber-700: #8a4e1e;
  --amber-600: #b06a24;
  --amber-500: #cc8a3d;
  --amber-400: #e0a75c;
  --amber-100: #faedd7;

  --cream-50: #faf7f1;
  --cream-100: #f3ede1;
  --cream-200: #e9e0d0;

  --ink-900: #1b1f1c;
  --ink-700: #3a4340;
  --ink-500: #616e68;
  --ink-300: #93a099;

  --white: #ffffff;
  --success: #2f7350;
  --danger: #a8412f;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(14, 42, 32, 0.06), 0 1px 1px rgba(14, 42, 32, 0.04);
  --shadow-md: 0 8px 24px rgba(14, 42, 32, 0.10);
  --shadow-lg: 0 20px 48px rgba(14, 42, 32, 0.16);

  --container: 1120px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--forest-900); }
p { margin: 0 0 1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 60px 0; }
@media (max-width: 720px) {
  section { padding: 40px 0; }
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-600);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--amber-500);
}
.lede {
  font-size: 19px;
  color: var(--ink-700);
  max-width: 62ch;
}
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber-500);
  color: var(--forest-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--amber-400); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: rgba(250, 247, 241, 0.35);
  color: inherit;
}
.btn-outline:hover { border-color: currentColor; }
.btn-dark {
  background: var(--forest-900);
  color: var(--cream-50);
}
.btn-dark:hover { background: var(--forest-700); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--cream-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--forest-900);
}
.brand svg { width: 30px; height: 30px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-700);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--forest-800);
  border-bottom-color: var(--amber-500);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest-900);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-50);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--cream-200);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; }
  .nav-toggle { display: block; }
  .nav-cta-desktop { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(204, 138, 61, 0.14), transparent 60%),
    linear-gradient(180deg, var(--cream-50), var(--cream-50));
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.01em;
}
.hero .lede { margin: 18px 0 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-500);
}
.hero-meta strong { color: var(--forest-800); font-weight: 700; }

.hero-console {
  background: var(--forest-900);
  border-radius: var(--radius-lg);
  padding: 22px 22px 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--forest-700);
}
.hero-console .dots { display: flex; gap: 6px; margin-bottom: 14px; }
.hero-console .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--forest-700); }
.hero-console pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--cream-100);
  overflow-x: auto;
}
.hero-console .c1 { color: var(--amber-400); }
.hero-console .c2 { color: #7fd6a8; }
.hero-console .c3 { color: var(--ink-300); }

/* ---------- Logo strip / trust bar ---------- */
.trust-bar {
  padding: 28px 0;
  border-top: 1px solid var(--cream-200);
  border-bottom: 1px solid var(--cream-200);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 720px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
.trust-grid .num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--forest-800);
  font-weight: 600;
}
.trust-grid .label {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 4px;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 18px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--forest-100);
  color: var(--forest-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-700); font-size: 14.5px; margin-bottom: 0; }
.card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--amber-700);
  background: var(--amber-100);
  padding: 3px 8px;
  border-radius: 5px;
  margin-top: 14px;
}

.runtime-card { display: flex; flex-direction: column; height: 100%; }
.runtime-card .badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 4px; }
.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--forest-100);
  color: var(--forest-700);
  border: 1px solid rgba(47, 115, 80, 0.18);
}

/* ---------- Feature rows (alternating) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
  padding: 38px 0;
  border-top: 1px solid var(--cream-200);
}
.feature-row:first-of-type { border-top: none; }
.feature-row.reverse { grid-template-columns: 1.1fr 0.9fr; }
.feature-row.reverse .feature-visual { order: 2; }
@media (max-width: 860px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-visual { order: 0; }
}
.feature-visual {
  background: var(--forest-900);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--cream-100);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  box-shadow: var(--shadow-md);
}
.feature-list { margin-top: 18px; display: grid; gap: 10px; }
.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-700);
  font-size: 15px;
}
.feature-list svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--forest-600); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 1080px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan-card {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.plan-card.featured {
  border-color: var(--amber-500);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
@media (max-width: 1080px) { .plan-card.featured { transform: none; } }
.plan-card .ribbon {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--amber-500);
  color: var(--forest-900);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 5px;
  text-transform: uppercase;
}
.plan-card h3 { font-size: 20px; margin-bottom: 4px; }
.plan-card .plan-desc { font-size: 13.5px; color: var(--ink-500); margin-bottom: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.plan-price .amount { font-family: var(--font-display); font-size: 40px; color: var(--forest-900); font-weight: 600; }
.plan-price .period { font-size: 13.5px; color: var(--ink-500); }
.plan-card .plan-note { font-size: 12.5px; color: var(--ink-300); margin-bottom: 22px; }
.plan-list { display: grid; gap: 10px; margin: 4px 0 26px; flex: 1; }
.plan-list li { display: flex; gap: 8px; font-size: 14px; color: var(--ink-700); align-items: flex-start; }
.plan-list svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--forest-600); }

.compare-table-wrap { overflow-x: auto; margin-top: 8px; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table.compare th, table.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--cream-200);
  font-size: 14px;
}
table.compare thead th {
  background: var(--forest-900);
  color: var(--cream-50);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table.compare tbody tr:nth-child(even) { background: var(--cream-100); }
table.compare td:first-child, table.compare th:first-child { font-weight: 600; color: var(--forest-800); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--cream-200);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--forest-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--amber-600);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--ink-700); font-size: 14.5px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--forest-900);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--cream-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background-image: radial-gradient(600px 260px at 90% 0%, rgba(204, 138, 61, 0.22), transparent 60%);
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: var(--cream-200); margin-bottom: 0; max-width: 46ch; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 44px 0 34px;
  border-bottom: 1px solid var(--cream-200);
  background: linear-gradient(180deg, var(--forest-100), var(--cream-50));
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.page-hero .lede { margin-top: 14px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--forest-800); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--forest-500);
  box-shadow: 0 0 0 3px rgba(47, 115, 80, 0.15);
}
textarea { resize: vertical; min-height: 140px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-list { display: grid; gap: 22px; margin-top: 24px; }
.contact-info-item { display: flex; gap: 14px; }
.contact-info-item .card-icon { margin-bottom: 0; flex: none; }
.contact-info-item h4 { font-size: 15px; margin-bottom: 2px; }
.contact-info-item p { font-size: 14px; color: var(--ink-700); margin: 0; }
.note-box {
  background: var(--amber-100);
  border: 1px solid rgba(204, 138, 61, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--amber-700);
  margin-top: 24px;
}
.success-box {
  background: var(--forest-100);
  border: 1px solid rgba(47, 115, 80, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--forest-800);
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.success-box svg { flex: none; color: var(--forest-600); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-900);
  color: var(--cream-200);
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 247, 241, 0.12);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; color: var(--white); margin-bottom: 12px; }
.footer-brand svg { width: 26px; height: 26px; }
.footer-grid p { font-size: 13.5px; color: var(--cream-200); opacity: 0.8; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber-400);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--cream-200); opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--amber-400); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--cream-200);
  opacity: 0.65;
}
.footer-bottom .legal-links { display: flex; gap: 18px; }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--cream-200); border: none; margin: 0; }
.kicker-link { color: var(--forest-700); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.kicker-link:hover { color: var(--amber-600); }

/* ==========================================================================
   Scroll-reveal + counters
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view .stagger-child {
  animation: revealFade 0.5s ease forwards;
}
.stagger-child { opacity: 0; }
.stagger-child:nth-child(1) { animation-delay: 0.02s; }
.stagger-child:nth-child(2) { animation-delay: 0.08s; }
.stagger-child:nth-child(3) { animation-delay: 0.14s; }
.stagger-child:nth-child(4) { animation-delay: 0.20s; }
.stagger-child:nth-child(5) { animation-delay: 0.26s; }
.stagger-child:nth-child(6) { animation-delay: 0.32s; }
@keyframes revealFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-child { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

.stat-counter { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Bento-style asymmetric grid (homepage)
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 16px;
}
.bento-wide { grid-column: span 2; }
.bento-narrow { grid-column: span 1; }
.bento-tall { grid-row: span 2; }
.bento-full { grid-column: span 4; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide, .bento-full { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento-wide, .bento-full, .bento-narrow { grid-column: span 1; }
  .bento-tall { grid-row: auto; }
}
.bento-card {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.bento-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bento-card.dark {
  background: var(--forest-900);
  color: var(--cream-100);
  border-color: var(--forest-700);
}
.bento-card.dark h3, .bento-card.dark strong { color: var(--white); }
.bento-card.amber {
  background: var(--amber-100);
  border-color: rgba(204, 138, 61, 0.35);
}
.bento-card h3 { font-size: 17px; margin-bottom: 6px; }
.bento-card p { font-size: 14px; color: var(--ink-700); margin-bottom: 0; }
.bento-card.dark p { color: var(--cream-200); }
.bento-card .card-icon { margin-bottom: 12px; }
.bento-card-row { display: flex; align-items: flex-start; gap: 14px; }
.bento-card-row .card-icon { margin-bottom: 0; flex: none; }
.bento-stat { font-family: var(--font-display); font-size: 30px; color: var(--forest-900); font-weight: 600; line-height: 1; margin-bottom: 6px; }
.bento-card.dark .bento-stat { color: var(--amber-400); }

/* ==========================================================================
   Tabs
   ========================================================================== */
.tabs { margin-top: 8px; }
.tab-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--cream-200);
  margin-bottom: 24px;
}
.tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-500);
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-btn:hover { color: var(--forest-800); }
.tab-btn.active { color: var(--forest-900); border-bottom-color: var(--amber-500); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: revealFade 0.35s ease; }

/* ==========================================================================
   Infrastructure spec list (used inside tab panels)
   ========================================================================== */
.spec-list { display: grid; gap: 0; border: 1px solid var(--cream-200); border-radius: var(--radius-md); overflow: hidden; background: var(--white); }
.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--cream-200);
  font-size: 14.5px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(even) { background: var(--cream-100); }
.spec-row dt { font-weight: 600; color: var(--forest-800); font-family: var(--font-mono); font-size: 13px; }
.spec-row dd { margin: 0; color: var(--ink-700); }
@media (max-width: 620px) {
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ==========================================================================
   Timeline (about page)
   ========================================================================== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--cream-200);
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber-500);
  border: 2px solid var(--cream-50);
  box-shadow: 0 0 0 2px var(--forest-600);
}
.timeline-item h4 { font-size: 15.5px; margin-bottom: 4px; color: var(--forest-900); }
.timeline-item p { font-size: 14px; color: var(--ink-700); margin-bottom: 0; }
.timeline-tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--amber-700); text-transform: uppercase; letter-spacing: 0.05em; }

/* ==========================================================================
   Fanatic fact grid (about page)
   ========================================================================== */
.fact-card {
  background: var(--forest-900);
  color: var(--cream-100);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.fact-card .mono-num { font-family: var(--font-mono); color: var(--amber-400); font-weight: 700; font-size: 15px; flex: none; }

/* ==========================================================================
   Chat trigger + panel (top-right, site-wide)
   "Talk to us" in the header and "Chat with us" in the mobile menu are the
   same control: both carry .chat-trigger and open the one panel below.
   ========================================================================== */
.chat-trigger-link {
  display: none;
}
@media (max-width: 860px) {
  .chat-trigger-link {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--amber-600);
    padding: 10px 0;
    cursor: pointer;
  }
}

.chat-panel {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 60;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.chat-panel.open { display: flex; animation: revealFade 0.2s ease; }
.chat-panel-head {
  background: var(--forest-900);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
}
.chat-panel-head button { background: none; border: none; color: var(--cream-200); cursor: pointer; font-size: 16px; line-height: 1; }
.chat-panel-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 240px; overflow-y: auto; }
.chat-bubble {
  background: var(--cream-100);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--ink-700);
  align-self: flex-start;
  max-width: 88%;
}
.chat-bubble.me { background: var(--forest-100); align-self: flex-end; color: var(--forest-900); }
.chat-panel-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--cream-200); }
.chat-panel-form input { flex: 1; padding: 9px 12px; font-size: 13.5px; }
.chat-panel-form button {
  background: var(--forest-900);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  cursor: pointer;
  font-weight: 600;
}

/* ==========================================================================
   Checkout wizard
   ========================================================================== */
.checkout-shell {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) { .checkout-shell { grid-template-columns: 1fr; } }

.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}
.checkout-steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--cream-200);
  z-index: 0;
}
.checkout-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
}
.checkout-step .step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--cream-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-500);
  transition: all 0.2s ease;
}
.checkout-step .step-label { font-size: 12px; color: var(--ink-500); font-weight: 600; }
.checkout-step.active .step-dot { border-color: var(--amber-500); background: var(--amber-500); color: var(--forest-900); }
.checkout-step.active .step-label { color: var(--forest-900); }
.checkout-step.done .step-dot { border-color: var(--forest-600); background: var(--forest-600); color: var(--white); }
.checkout-step.done .step-label { color: var(--forest-700); }

.checkout-panel {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: none;
}
.checkout-panel.active { display: block; animation: revealFade 0.3s ease; }
.checkout-panel h2 { font-size: 21px; margin-bottom: 4px; }
.checkout-panel .step-sub { font-size: 13.5px; color: var(--ink-500); margin-bottom: 24px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice-card {
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice-card:hover { border-color: var(--forest-500); }
.choice-card input { accent-color: var(--forest-600); width: 16px; height: 16px; flex: none; }
.choice-card.selected { border-color: var(--forest-600); background: var(--forest-100); }

.plan-pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .plan-pick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .plan-pick-grid { grid-template-columns: 1fr; } }
.plan-pick {
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.plan-pick:hover { border-color: var(--forest-500); }
.plan-pick.selected { border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(204, 138, 61, 0.18); }
.plan-pick h4 { font-size: 15px; margin-bottom: 2px; color: var(--forest-900); }
.plan-pick .price { font-family: var(--font-display); font-size: 22px; color: var(--forest-900); font-weight: 600; }
.plan-pick .price span { font-size: 12px; font-family: var(--font-body); color: var(--ink-500); font-weight: 400; }
.plan-pick p { font-size: 12.5px; color: var(--ink-500); margin: 4px 0 0; }

.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--cream-200);
  font-size: 14px;
}
.addon-row:last-child { border-bottom: none; }
.addon-row label { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-900); margin: 0; }
.addon-row input { width: 16px; height: 16px; accent-color: var(--forest-600); }
.addon-row .addon-price { font-family: var(--font-mono); color: var(--ink-500); font-size: 13px; }

.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--cream-200);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 20px;
}
.billing-toggle button {
  border: none;
  background: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-500);
  cursor: pointer;
}
.billing-toggle button.active { background: var(--forest-900); color: var(--white); }

.checkout-nav { display: flex; justify-content: space-between; margin-top: 28px; }

.order-summary {
  background: var(--forest-900);
  color: var(--cream-100);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: sticky;
  top: 92px;
}
.order-summary h3 { color: var(--white); font-size: 17px; margin-bottom: 16px; }
.order-line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid rgba(250, 247, 241, 0.12); color: var(--cream-200); }
.order-line strong { color: var(--white); font-weight: 600; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(250, 247, 241, 0.2); }
.order-total .amount { font-family: var(--font-display); font-size: 30px; color: var(--amber-400); font-weight: 600; }
.order-summary .fine-print { font-size: 11.5px; color: var(--cream-200); opacity: 0.7; margin-top: 14px; }

.confirm-panel { text-align: center; padding: 40px 20px; }
.confirm-panel .check-badge {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--forest-100); color: var(--forest-700);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.confirm-panel .ref-code {
  font-family: var(--font-mono);
  background: var(--cream-100);
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--forest-800);
  font-weight: 700;
  margin: 12px 0 20px;
}

/* ==========================================================================
   Express checkout (/order/): single-page, invoice-style, distinct from
   the /checkout/ wizard on purpose.
   ========================================================================== */
.order-shell {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) { .order-shell { grid-template-columns: 1fr; } }

.order-block {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: 4px;
  padding: 26px 28px;
  margin-bottom: 18px;
}
.order-block-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cream-200);
}
.order-block-head .idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber-700);
  background: var(--amber-100);
  border-radius: 4px;
  padding: 2px 8px;
  flex: none;
}
.order-block-head h2 { font-size: 17px; margin: 0; }
.order-block-head .idx-sub { font-size: 12.5px; color: var(--ink-500); margin-left: auto; }

.customer-tabs {
  display: inline-flex;
  border: 1px solid var(--cream-200);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 20px;
}
.customer-tabs button {
  border: none;
  background: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-500);
  cursor: pointer;
}
.customer-tabs button.active { background: var(--forest-900); color: var(--white); }
.customer-pane { display: none; }
.customer-pane.active { display: block; animation: revealFade 0.3s ease; }

.login-inline-note {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 10px;
}

.pay-method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 560px) { .pay-method-grid { grid-template-columns: 1fr; } }
.pay-method {
  border: 1px solid var(--cream-200);
  border-radius: 4px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pay-method:hover { border-color: var(--forest-500); }
.pay-method.selected { border-color: var(--forest-700); background: var(--forest-100); }
.pay-method .pm-icon {
  width: 38px; height: 38px; border-radius: 4px;
  background: var(--cream-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--forest-700);
  flex: none;
}
.pay-method.selected .pm-icon { background: var(--forest-700); color: var(--white); }
.pay-method .pm-name { font-weight: 700; font-size: 14.5px; color: var(--forest-900); }
.pay-method .pm-sub { font-size: 12px; color: var(--ink-500); }

.pay-detail-pane { display: none; border-top: 1px dashed var(--cream-200); padding-top: 18px; margin-top: 4px; }
.pay-detail-pane.active { display: block; animation: revealFade 0.3s ease; }

.crypto-coins { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.crypto-coins span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  color: var(--ink-700);
  padding: 4px 9px;
  border-radius: 4px;
}

/* Receipt-style sticky summary, deliberately different from .order-summary */
.invoice {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: 4px;
  padding: 0;
  position: sticky;
  top: 92px;
  overflow: hidden;
}
.invoice-head {
  background: var(--forest-900);
  color: var(--cream-50);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.invoice-head .inv-num { color: var(--amber-400); font-weight: 700; }
.invoice-body { padding: 18px 20px; }
.invoice-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-700);
  padding: 6px 0;
}
.invoice-divider {
  border: none;
  border-top: 1px dashed var(--cream-200);
  margin: 10px 0;
}
.invoice-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--forest-900);
  padding-top: 10px;
}
.invoice-total .amt { font-size: 22px; color: var(--forest-900); }
.invoice-foot {
  font-size: 11.5px;
  color: var(--ink-500);
  padding: 14px 20px;
  border-top: 1px solid var(--cream-200);
  background: var(--cream-100);
}

.order-submit-row { display: flex; justify-content: flex-end; margin-top: 4px; }

/* ==========================================================================
   Status page
   ========================================================================== */
.status-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-left: 5px solid var(--success);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 34px;
}
.status-banner.degraded { border-left-color: var(--amber-600); }
.status-banner.outage { border-left-color: var(--danger); }
.status-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
  position: relative;
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--success);
  animation: statusPulse 2.2s ease-out infinite;
}
.status-banner.degraded .status-dot,
.status-banner.degraded .status-dot::after { background: var(--amber-600); border-color: var(--amber-600); }
.status-banner.degraded .status-dot { background: var(--amber-600); }
.status-banner.outage .status-dot,
.status-banner.outage .status-dot::after { background: var(--danger); border-color: var(--danger); }
@keyframes statusPulse {
  from { opacity: 0.6; transform: scale(1); }
  to { opacity: 0; transform: scale(1.9); }
}
.status-banner-text h2 { font-size: 18px; margin-bottom: 2px; color: var(--forest-900); }
.status-banner-text p { font-size: 13.5px; color: var(--ink-500); margin: 0; font-family: var(--font-mono); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(47, 115, 80, 0.12);
  color: var(--success);
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.status-pill.degraded { background: rgba(204, 138, 61, 0.16); color: var(--amber-700); }
.status-pill.outage { background: rgba(168, 65, 47, 0.14); color: var(--danger); }

.status-list { display: grid; gap: 0; border: 1px solid var(--cream-200); border-radius: var(--radius-md); overflow: hidden; background: var(--white); }
.status-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--cream-200);
}
.status-row:last-child { border-bottom: none; }
.status-row:nth-child(even) { background: var(--cream-100); }
.status-row-name { font-weight: 600; color: var(--forest-900); font-size: 14.5px; }
.status-row-sub { font-size: 12.5px; color: var(--ink-500); margin-top: 1px; }
.status-uptime {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-700);
  text-align: right;
  min-width: 92px;
}
.status-uptime .num { color: var(--forest-800); font-weight: 700; }
@media (max-width: 640px) {
  .status-row { grid-template-columns: 1fr; }
  .status-uptime { text-align: left; }
}

.status-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-500);
  font-size: 14px;
}
.status-empty svg { color: var(--forest-500); margin-bottom: 10px; }

.status-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-500);
}

@media (prefers-reduced-motion: reduce) {
  .status-dot::after { animation: none; opacity: 0; }
}
