/* ------------------------------------------------------------------
   Design tokens — shadcn/ui "Mira" flavour:
   neutral base, green primary, sky chart accent, Inter, default radius
------------------------------------------------------------------ */
:root {
  --background: #ffffff;
  --foreground: #09090b;          /* neutral-950 */
  --muted: #f4f4f5;               /* neutral-100 */
  --muted-foreground: #52525b;    /* neutral-600 */
  --subtle-foreground: #71717a;   /* neutral-500 */
  --border: #e4e4e7;              /* neutral-200 */
  --card: #ffffff;
  --primary: #16a34a;             /* green-600 */
  --primary-hover: #15803d;       /* green-700 */
  --primary-soft: #f0fdf4;        /* green-50 */
  --primary-soft-border: #bbf7d0; /* green-200 */
  --sky: #0ea5e9;                 /* sky-500 — chart colour */
  --sky-soft: #f0f9ff;            /* sky-50 */
  --sky-soft-border: #bae6fd;     /* sky-200 */
  --radius: 0.625rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 30px -10px rgb(9 9 11 / 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 12px; }
p  { color: var(--muted-foreground); }

section { padding: 88px 0; }
section + section { border-top: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--primary-soft-border);
  border-radius: 999px;
  padding: 4px 14px; margin-bottom: 20px;
}

.section-intro { max-width: 720px; margin-bottom: 48px; }
.section-intro p { font-size: 1.05rem; }

/* Buttons — shadcn style */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius);
  padding: 11px 22px;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: #fff; color: var(--foreground); border-color: var(--border); }
.btn-outline:hover { border-color: #a1a1aa; }
.btn-ghost { background: transparent; color: var(--foreground); padding: 11px 14px; }
.btn-ghost:hover { background: var(--muted); border-radius: var(--radius); }

/* ---------------- Header ---------------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: var(--foreground); text-decoration: none; }
.logo span { color: var(--primary); }
nav.main-nav { display: flex; gap: 4px; align-items: center; }
nav.main-nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted-foreground);
  text-decoration: none; padding: 8px 12px; border-radius: var(--radius);
  white-space: nowrap;
}
nav.main-nav a:hover { color: var(--foreground); background: var(--muted); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  nav.main-nav { display: none; }
  nav.main-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }
  .menu-toggle {
    display: inline-flex; background: none; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 8px 12px; font: inherit; cursor: pointer;
  }
}

/* ---------------- Hero ---------------- */
.hero { padding: 96px 0 72px; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800; max-width: 800px; margin-bottom: 20px;
}
.hero .sub {
  font-size: 1.25rem; color: var(--muted-foreground);
  max-width: 680px; margin-bottom: 18px; font-weight: 500;
}
.hero .desc { max-width: 680px; margin-bottom: 32px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

/* Screenshot presentation — browser frame, large */
.shot {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.shot-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d4d8; }
.shot-bar .url {
  margin-left: 10px; font-size: 0.75rem; color: var(--subtle-foreground);
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 10px;
}
.shot img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.shot-caption {
  text-align: center; font-size: 0.9rem; color: var(--subtle-foreground);
  margin-top: 14px;
}

/* ---------------- Problem: two cards ---------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); padding: 32px; box-shadow: var(--shadow-sm);
}
.card .label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 10px; display: inline-block;
  padding: 3px 10px; border-radius: 999px;
}
.card.without .label { color: var(--subtle-foreground); background: var(--muted); }
.card.with { border-color: var(--primary-soft-border); background: var(--primary-soft); }
.card.with .label { color: var(--primary); background: #fff; border: 1px solid var(--primary-soft-border); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.card ul li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--muted-foreground); }
.card ul li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; margin-top: 9px; background: #d4d4d8; }
.card.with ul li::before { background: var(--primary); }

/* ---------------- Feature grid ---------------- */
.grid { display: grid; gap: 24px; }
.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: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.feature h3 { font-size: 1.05rem; margin: 14px 0 8px; }
.feature p { font-size: 0.95rem; }
.icon-chip {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sky-soft); border: 1px solid var(--sky-soft-border);
  color: var(--sky);
}
.icon-chip.green { background: var(--primary-soft); border-color: var(--primary-soft-border); color: var(--primary); }
.icon-chip svg { width: 20px; height: 20px; }

/* ---------------- Product tour rows ---------------- */
.tour-row {
  display: grid; grid-template-columns: 5fr 7fr; gap: 48px;
  align-items: center; margin-top: 64px;
}
.tour-row.flip { grid-template-columns: 7fr 5fr; }
.tour-row.flip .tour-text { order: 2; }
.tour-row.flip .tour-shot { order: 1; }
@media (max-width: 900px) {
  .tour-row, .tour-row.flip { grid-template-columns: 1fr; gap: 20px; }
  .tour-row.flip .tour-text { order: 1; }
  .tour-row.flip .tour-shot { order: 2; }
}
.tour-text h3 { font-size: 1.35rem; margin-bottom: 10px; }
.tour-text p { font-size: 1rem; }

/* ---------------- Steps ---------------- */
.steps { display: grid; gap: 0; counter-reset: step; max-width: 780px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-soft); border: 1px solid var(--primary-soft-border);
  color: var(--primary); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-num::before { content: counter(step); }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.95rem; }

/* ---------------- Historical trends ---------------- */
.benefits {
  border: 1px solid var(--primary-soft-border); background: var(--primary-soft);
  border-radius: var(--radius); padding: 28px 32px; margin-top: 40px;
}
.benefits h3 { font-size: 1.05rem; margin-bottom: 14px; }
.benefits ul { list-style: none; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--muted-foreground); }
.benefits li svg { flex: none; width: 18px; height: 18px; color: var(--primary); margin-top: 3px; }

/* ---------------- Help ---------------- */
.help-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .help-list { grid-template-columns: 1fr; } }
.help-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-decoration: none; display: block;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.help-card:hover { border-color: var(--sky); box-shadow: var(--shadow-sm); }
.help-card h3 { font-size: 1rem; color: var(--foreground); margin-bottom: 8px; }
.help-card p { font-size: 0.9rem; }
.help-card .read-more { display: inline-block; margin-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--sky); }

/* ---------------- Contact ---------------- */
.contact-band {
  background: var(--foreground); color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: 64px 48px; text-align: center;
}
.contact-band h2 { color: #fff; }
.contact-band p { color: #d4d4d8; max-width: 640px; margin: 0 auto 32px; }
.contact-band .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact-band .btn-outline { background: transparent; color: #fff; border-color: #52525b; }
.contact-band .btn-outline:hover { border-color: #a1a1aa; }
.contact-email { margin-top: 28px; font-size: 0.9rem; color: #a1a1aa; }
.contact-email a { color: #fff; }

/* ---------------- Footer ---------------- */
footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 0.85rem; color: var(--subtle-foreground);
}
.footer-inner a { color: var(--subtle-foreground); text-decoration: none; margin-left: 18px; }
.footer-inner a:hover { color: var(--foreground); }

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(9, 9, 11, 0.85);
  display: none; align-items: center; justify-content: center;
  padding: 32px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: var(--radius); background: #fff;
}

/* ---------------- Help hub & article pages ---------------- */
.container-narrow { max-width: 760px; }

.breadcrumb {
  font-size: 0.85rem; color: var(--subtle-foreground);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--subtle-foreground); text-decoration: none; }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb span[aria-hidden] { margin: 0 6px; }

.help-hub .section-intro h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.hub-meta {
  display: block; margin-top: 12px;
  font-size: 0.8rem; color: var(--subtle-foreground);
}

/* Article body */
.article-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 28px; }
.article-body { font-size: 1.05rem; }
.article-body h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.article-body h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { color: var(--muted-foreground); margin-bottom: 8px; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body a:hover { color: var(--primary-hover); }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.article-body strong { color: var(--foreground); }

.related {
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related h2 { font-size: 1.2rem; margin-bottom: 16px; }
.related-links { display: grid; gap: 10px; }
.related-links a {
  color: var(--sky); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.related-links a:hover { text-decoration: underline; }

.article-cta {
  margin-top: 56px; padding: 40px;
  background: var(--primary-soft); border: 1px solid var(--primary-soft-border);
  border-radius: calc(var(--radius) + 6px); text-align: center;
}
.article-cta h2 { font-size: 1.4rem; margin-bottom: 20px; }
.article-cta .btn { margin: 0 6px; }
