/* ==========================================================================
   Content Gap Visualizer — marketing site
   Static CSS, no build step. Cloudflare Pages serves this as-is.
   ========================================================================== */

:root {
  /* Neutrals — a slightly cool grey ramp, warmer than pure grey */
  --ink:        #0c0e16;
  --ink-2:      #1a1d2b;
  --body:       #4a5065;
  --muted:      #767d94;
  --line:       #e5e7f0;
  --line-soft:  #eef0f6;
  --surface:    #ffffff;
  --surface-2:  #f7f8fc;
  --surface-3:  #eff1f8;

  /* Brand — indigo, with the orange "gap" accent carried over from the icon */
  --brand:      #4f46e5;
  --brand-2:    #6366f1;
  --brand-ink:  #3730a3;
  --brand-wash: #eef0fe;
  --gap:        #ea580c;
  --gap-wash:   #fff2e9;
  --ok:         #059669;
  --ok-wash:    #e8f8f1;

  --radius:     14px;
  --radius-lg:  22px;
  --radius-sm:  9px;

  --shadow-sm:  0 1px 2px rgba(12, 14, 22, .05);
  --shadow:     0 4px 16px -4px rgba(12, 14, 22, .10), 0 2px 6px -2px rgba(12, 14, 22, .06);
  --shadow-lg:  0 24px 60px -18px rgba(12, 14, 22, .28), 0 8px 24px -12px rgba(12, 14, 22, .12);

  --maxw:       1080px;
  --ease:       cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #f2f4fa;
    --ink-2:      #dfe3ee;
    --body:       #a8afc4;
    --muted:      #7d849c;
    --line:       #262b3b;
    --line-soft:  #1e2231;
    --surface:    #0e1018;
    --surface-2:  #141721;
    --surface-3:  #1a1e2b;

    --brand:      #818cf8;
    --brand-2:    #a5b4fc;
    --brand-ink:  #c7d2fe;
    --brand-wash: #1b1f36;
    --gap:        #fb923c;
    --gap-wash:   #2a1c0f;
    --ok:         #34d399;
    --ok-wash:    #10241c;

    --shadow-sm:  0 1px 2px rgba(0, 0, 0, .4);
    --shadow:     0 4px 16px -4px rgba(0, 0, 0, .5);
    --shadow-lg:  0 24px 60px -18px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

/* ------------------------------- layout -------------------------------- */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 720px; }
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--surface-2); }

/* ------------------------------- type ---------------------------------- */

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.025em; font-weight: 680; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.12rem; letter-spacing: -0.015em; }

p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--brand); border-radius: 2px;
}

.lede { font-size: clamp(1.02rem, 1.9vw, 1.2rem); color: var(--body); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 14px; margin-bottom: 0; }

/* ------------------------------- header -------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 66px;
}
.nav a { text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--body); font-size: .93rem; font-weight: 520; }
.nav__links a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .nav__links a:not(.btn) { display: none; }
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }

/* The mark: three filled bars + one hollow "gap" bar. */
.mark { position: relative; width: 20px; height: 19px; flex: none; }
.mark i {
  position: absolute; bottom: 0; width: 3.5px; border-radius: 1.5px; background: var(--brand);
}
.mark i:nth-child(1) { left: 0;   height: 10px; }
.mark i:nth-child(2) { left: 5.5px; height: 15px; }
.mark i:nth-child(3) { left: 11px; height: 19px; background: none; border: 1.5px solid var(--gap); width: 4.5px; }
.mark i:nth-child(4) { right: 0;  height: 12px; }

/* ------------------------------- buttons ------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px;
  font: inherit; font-size: .95rem; font-weight: 620; letter-spacing: -0.01em;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .18s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 6px 18px -6px rgba(79, 70, 229, .55);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 12px 26px -8px rgba(79, 70, 229, .6); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--center { justify-content: center; }

/* -------------------------------- hero --------------------------------- */

.hero { position: relative; padding: 84px 0 76px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto 0; height: 620px; z-index: 0;
  background:
    radial-gradient(52% 55% at 50% 40%, color-mix(in srgb, var(--brand) 17%, transparent), transparent 70%),
    radial-gradient(28% 40% at 78% 22%, color-mix(in srgb, var(--gap) 11%, transparent), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 20px; }
.hero .btn-row { margin-top: 32px; }
.hero__note { margin-top: 16px; font-size: .87rem; color: var(--muted); }

.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 56px 0 60px; }
}

/* --------------------------- product mockup ---------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-3deg) rotateX(1.5deg);
}
@media (max-width: 900px) { .panel { transform: none; } }

.panel__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2);
}
.panel__title { font-size: .84rem; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.panel__pill {
  margin-left: auto; font-size: .68rem; font-weight: 700; color: var(--muted);
  background: var(--surface-3); border-radius: 999px; padding: 3px 9px;
}
.panel__body { padding: 16px; }
.panel__kicker {
  font-size: .68rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}

.gapcard {
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gap);
  border-radius: var(--radius-sm);
  padding: 11px 13px; margin-bottom: 9px; background: var(--surface);
}
.gapcard--med { border-left-color: #d97706; }
.gapcard--low { border-left-color: var(--muted); }
.gapcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gapcard__name { font-size: .93rem; font-weight: 620; color: var(--ink); letter-spacing: -0.012em; }
.gapcard__count {
  flex: none; font-size: .68rem; font-weight: 700; padding: 2.5px 8px; border-radius: 999px;
  color: var(--gap); background: var(--gap-wash); white-space: nowrap;
}
.gapcard--med .gapcard__count { color: #b45309; background: #fef6e7; }
.gapcard--low .gapcard__count { color: var(--muted); background: var(--surface-3); }
.gapcard__why { margin: 6px 0 0; font-size: .82rem; line-height: 1.5; color: var(--body); }
@media (prefers-color-scheme: dark) {
  .gapcard--med .gapcard__count { color: #fcd34d; background: #2b2410; }
}

/* -------------------------------- steps -------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }

.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: .84rem; font-weight: 720; color: var(--brand);
  background: var(--brand-wash); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}
.step h3 { margin-bottom: 7px; }
.step p { margin: 0; font-size: .92rem; }

/* ------------------------------ features ------------------------------- */

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), border-color .18s var(--ease);
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 36px; height: 36px; border-radius: 10px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 1rem;
  background: var(--brand-wash); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}

/* ------------------------------- pricing ------------------------------- */

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 940px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.tier--featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow);
  position: relative;
}
.tier__flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: .68rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase;
  color: #fff; background: var(--brand); padding: 4px 12px; border-radius: 999px;
  white-space: nowrap;
}
.tier__name { font-size: .8rem; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tier__price { display: flex; align-items: baseline; gap: 4px; margin: 12px 0 4px; }
.tier__amount { font-size: 2.3rem; font-weight: 700; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.tier__per { font-size: .88rem; color: var(--muted); }
.tier__meta { font-size: .84rem; color: var(--muted); margin: 0 0 18px; min-height: 1.4em; }
.tier ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.tier li { position: relative; padding-left: 25px; margin-bottom: 9px; font-size: .91rem; line-height: 1.5; }
.tier li::before {
  content: ""; position: absolute; left: 3px; top: .5em;
  width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.tier li.no::before { border-color: var(--line); }
.tier li.no { color: var(--muted); }

/* ---------------------------------- faq -------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 620; color: var(--ink); font-size: 1.02rem; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > *:not(summary) { margin-bottom: 20px; font-size: .96rem; }

/* -------------------------------- cta ---------------------------------- */

.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #4338ca, #6d28d9 55%, #7c3aed);
  border-radius: var(--radius-lg);
  padding: 60px 40px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta::after {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 300px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(255,255,255,.16), transparent 70%);
  pointer-events: none;
}
.cta h2, .cta p { color: #fff; position: relative; z-index: 1; }
.cta p { opacity: .88; max-width: 52ch; margin: 14px auto 28px; }
.cta .btn-row { position: relative; z-index: 1; }
.cta .btn--ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; backdrop-filter: blur(6px); }
.cta .btn--ghost:hover { background: rgba(255,255,255,.22); }
.cta .btn--primary { background: #fff; color: var(--brand-ink); box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); }

/* ------------------------------- footer -------------------------------- */

.footer { border-top: 1px solid var(--line); padding: 52px 0 40px; background: var(--surface-2); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer__links a { color: var(--body); font-size: .92rem; }
.footer__legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ------------------------------- tables -------------------------------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
td strong { color: var(--ink); }

/* ------------------------- legal / doc pages --------------------------- */

.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.doc h2 { font-size: 1.28rem; margin: 40px 0 12px; }
.doc h3 { font-size: 1.02rem; margin: 26px 0 8px; }
.doc ul, .doc ol { margin: 0 0 1em; padding-left: 24px; }
.doc li { margin-bottom: 8px; }
.doc__meta { color: var(--muted); font-size: .9rem; margin-bottom: 32px; }

.callout {
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ------------------------------ utilities ------------------------------ */

.code {
  display: block; padding: 15px 18px; margin: 16px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.1rem; letter-spacing: .12em; text-align: center; word-break: break-all;
  color: var(--ink); background: var(--surface-2);
  border: 1px dashed var(--brand); border-radius: var(--radius-sm);
  user-select: all;
}
.status { padding: 14px 18px; border-radius: var(--radius-sm); margin: 16px 0; font-size: .95rem; }
.status--wait { background: var(--surface-2); color: var(--muted); }
.status--err { background: var(--gap-wash); color: var(--gap); }

.badge {
  display: inline-block; font-size: .7rem; font-weight: 720; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: var(--ok-wash); color: var(--ok);
}
