/* ═══════════════════════════════════════════════════════════════
   Indexly marketing site — design system
   Palette pulled from the real extension theme (navy + green),
   extended with a cool paper base and a mono face for the
   status-chip / URL-bar motifs that run through the whole site.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Brand */
  --navy:        #0A2450;
  --navy-dark:   #071A38;
  --green:       #2DA043;
  --green-dark:  #1F7A32;
  --green-bg:    #E6F4EA;

  /* Base */
  --paper:       #F5F7FA;
  --paper-raised:#FFFFFF;
  --ink:         #16233F;
  --ink-muted:   #5B6B85;
  --border:      #DEE3EC;
  --border-soft: #E9ECF3;

  /* Status accents (mirror the extension's own status colors) */
  --status-green:  #2DA043;
  --status-red:    #C5221F;
  --status-yellow: #B06000;
  --status-gray:   #5B6B85;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Rhythm */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10,36,80,0.06), 0 1px 1px rgba(10,36,80,0.04);
  --shadow-md: 0 8px 24px rgba(10,36,80,0.10);
  --shadow-lg: 0 20px 48px rgba(10,36,80,0.16);
  --max-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink); }
a  { color: var(--green-dark); }
.lede { font-size: 1.15rem; color: var(--ink-muted); max-width: 640px; }

code, .mono { font-family: var(--font-mono); }

img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.78); }
.section--raised { background: var(--paper-raised); }

/* ── grid dot texture — used sparingly, once, behind the hero ── */
.dot-field {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(10,36,80,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 40%, transparent 90%);
  pointer-events: none;
}

/* ═══ Eyebrow / status chip — the site's structural signature ═══ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--green-dark); background: var(--green-bg);
  border: 1px solid rgba(45,160,67,0.25);
  padding: 6px 14px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.82rem;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--paper-raised); color: var(--ink-muted);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.chip--green  { color: var(--status-green);  background: var(--green-bg);           border-color: rgba(45,160,67,0.25); }
.chip--green  .dot { background: var(--status-green); }
.chip--red    { color: var(--status-red);    background: #FCE8E6; border-color: rgba(197,34,31,0.25); }
.chip--red    .dot { background: var(--status-red); }
.chip--yellow { color: var(--status-yellow); background: #FEF7E0; border-color: rgba(176,96,0,0.25); }
.chip--yellow .dot { background: var(--status-yellow); }
.chip--gray   { color: var(--status-gray);   background: var(--border-soft); }
.chip--gray   .dot { background: var(--status-gray); }

/* ═══════════════════════════ Buttons ═══════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.96rem;
  padding: 13px 24px; border-radius: 11px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:focus-visible { outline: 3px solid rgba(45,160,67,0.5); outline-offset: 2px; }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--navy); background: rgba(10,36,80,0.04); }
.btn--on-navy { background: var(--green); color: #fff; }
.btn--on-navy:hover { background: var(--green-dark); }
.btn--ghost-on-navy { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn--ghost-on-navy:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn--sm { padding: 9px 16px; font-size: 0.86rem; border-radius: 9px; }

/* ═══════════════════════════ Header ═══════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,247,250,0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand__tag { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-muted); letter-spacing: 0.03em; margin-top: -2px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-muted); text-decoration: none;
  padding: 8px 14px; border-radius: 8px; transition: color 0.15s ease, background 0.15s ease;
}
.site-nav a:hover { color: var(--navy); background: rgba(10,36,80,0.05); }
.site-nav a.is-active { color: var(--navy); background: rgba(10,36,80,0.06); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }

@media (max-width: 880px) {
  .site-nav { position: fixed; inset: 60px 16px auto 16px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg); flex-direction: column; align-items: stretch;
    padding: 10px; gap: 2px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.18s ease; }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .nav-actions .btn span.btn-full-label { display: inline; }
}

/* ═══════════════════════════ Hero ═══════════════════════════ */
.hero { position: relative; overflow: hidden; padding: 76px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero__grid > * { min-width: 0; }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { margin: 18px 0 20px; }
.hero .lede { margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-proof__item { display: flex; align-items: baseline; gap: 8px; font-size: 0.88rem; color: var(--ink-muted); }
.hero-proof__item strong { font-family: var(--font-display); color: var(--navy); font-size: 1.1rem; }

/* ── Real product screenshot frame — replaces the hand-built mockups.
   No internal padding: the screenshot IS the content, so the frame is
   just a border/shadow, nothing extra around it. ── */
.shot {
  display: block; width: 100%; max-width: 400px; margin: 0 auto;
  border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.shot--wide { max-width: 480px; }
.shot--sm { max-width: 340px; }

/* ═══════════════════════════ Log strip ═══════════════════════════ */
.log-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.log-strip .chip { padding: 8px 14px; font-size: 0.85rem; }

/* ═══════════════════════════ Feature grid ═══════════════════════════ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-grid--pair { grid-template-columns: repeat(2, 1fr); margin: 0 auto; }
@media (max-width: 640px) { .feature-grid--pair { grid-template-columns: 1fr; } }
.feature-card {
  min-width: 0; /* grid items default to a min-content floor — without this, a long word
                   can stop the column from ever shrinking to fill its track */
  background: var(--paper-raised); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px 24px; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(45,160,67,0.3); }
.feature-card__icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--green-bg); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.1rem;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--ink-muted); font-size: 0.94rem; margin: 0; }

/* ═══════════════════════════ Step list (genuine sequences only) ═══ */
.step-list { display: flex; flex-direction: column; gap: 0; counter-reset: step; min-width: 0; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 30px 0; position: relative;
  border-bottom: 1px solid var(--border-soft);
  min-width: 0; /* same nested-grid fix as .feature-card above */
}
.step > div { min-width: 0; } /* the text column specifically — this is the one that was collapsing */
.step:last-child { border-bottom: none; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.95rem; color: var(--green-dark); font-weight: 500;
  background: var(--green-bg); border-radius: 50%; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; align-self: start;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-muted); margin: 0; }
.step__meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ═══════════════════════════ Cards / content blocks ═══════════════════════════ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col > * { min-width: 0; } /* stops a nested grid/long word inside from forcing this column narrow */
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }
.two-col--reverse .two-col__media { order: 2; }

.card { background: var(--paper-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-row > * { min-width: 0; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: left; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--navy); }
.stat span { font-size: 0.85rem; color: var(--ink-muted); }

/* ═══════════════════════════ Compare table ═══════════════════════════ */
.compare-table { width: 100%; border-collapse: collapse; background: var(--paper-raised); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.compare-table th, .compare-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); font-size: 0.92rem; }
.compare-table th { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); background: var(--paper); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }

/* ═══════════════════════════ CTA band ═══════════════════════════ */
.cta-band {
  background: var(--navy); border-radius: var(--radius-lg); padding: 56px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto 26px; }
.cta-band__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════ Forms ═══════════════════════════ */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; font-family: var(--font-body); font-size: 0.94rem; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,160,67,0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--ink-muted); margin-top: 4px; }
.form-success {
  display: none; background: var(--green-bg); border: 1px solid rgba(45,160,67,0.3); color: var(--green-dark);
  padding: 14px 16px; border-radius: 10px; font-size: 0.9rem; margin-top: 16px;
}
.form-success.is-visible { display: block; }

.contact-info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .ci-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--green-bg); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; flex: none; font-size: 1rem;
}
.contact-info-list strong { display: block; color: var(--navy); font-size: 0.92rem; }
.contact-info-list span, .contact-info-list a { font-size: 0.9rem; color: var(--ink-muted); text-decoration: none; }
.contact-info-list a:hover { color: var(--green-dark); }

/* ═══════════════════════════ Legal pages ═══════════════════════════ */
.legal {
  margin: 0 auto;
}
.legal .updated-chip { margin-bottom: 18px; }
.legal h2 { margin-top: 2.2em; font-size: 1.35rem; padding-top: 0.2em; }
.legal h2:first-of-type { margin-top: 0.6em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-muted); font-size: 0.97rem; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 0.5em; }
.legal a { color: var(--green-dark); }
.legal-toc {
  background: var(--paper-raised); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 24px; margin: 28px 0 40px;
}
.legal-toc strong { display: block; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; gap: 24px; }
.legal-toc li { font-size: 0.88rem; margin-bottom: 6px; }
.legal-toc a { color: var(--navy); text-decoration: none; }
.legal-toc a:hover { color: var(--green-dark); text-decoration: underline; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

/* ═══════════════════════════ Footer ═══════════════════════════ */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid > * { min-width: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; text-decoration: none; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.05rem; }
.site-footer p.footer-desc { font-size: 0.88rem; max-width: 280px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-bottom: 14px; font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ═══════════════════════════ Page hero (non-home pages) ═══════════════════════════ */
.page-hero { padding: 60px 0 20px; }
.page-hero .lede { margin-bottom: 0; }

/* ═══════════════════════════ Utility ═══════════════════════════ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { margin: 0 auto 48px; text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }