/* ExtCafe marketing site: shared lightweight stylesheet (system fonts, no frameworks) */
:root {
  --bg: #07090c;
  --bg-2: #0d1116;
  --card: #11161c;
  --line: #222b35;
  --ink: #eef3f7;
  --dim: #aab6c2;
  --accent: #2ee6cf;
  --accent-ink: #04130f;
  --seo: #2ee6cf;
  --aeo: #b9a0ff;
  --geo: #f5a524;
  --radius: 14px;
  --shadow: 0 20px 50px -24px rgba(46, 230, 207, .35);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-2: #f4f7f9;
    --card: #ffffff;
    --line: #d8e0e6;
    --ink: #0d1a22;
    --dim: #465560;
    --accent: #0b7a6d;
    --accent-ink: #ffffff;
    --seo: #0b7a6d;
    --aeo: #6a3fd1;
    --geo: #a15c00;
    --shadow: 0 20px 50px -28px rgba(11, 122, 109, .45);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; color: var(--dim); }
.lede { font-size: 1.1rem; color: var(--ink); max-width: 62ch; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* blur lives on a pseudo-element so it does not become the containing block of the fixed mobile menu */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.navrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--dim); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer; padding: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
html.nav-open .nav-toggle .icon-menu { display: none; }
html.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav ul {
    position: fixed; inset: 64px 0 0 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 16px; transform: translateX(100%); transition: transform .28s ease; overflow-y: auto; z-index: 40;
  }
  html.nav-open .site-nav ul { transform: translateX(0); }
  html.nav-open { overflow: hidden; }
  .site-nav a { display: flex; width: 100%; padding: 0 6px; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-actions .btn-ghost { display: none; }
}
@media (max-width: 420px) { .nav-actions .btn-primary { display: none; } }

/* sections */
section { padding: 72px 0; scroll-margin-top: 72px; }
@media (min-width: 768px) { section { padding: 96px 0; } }
.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 40px; }

/* hero */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } .hero { padding: 72px 0 88px; } }
.hero h1 { margin-bottom: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-note { font-size: .9rem; margin: 0; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { font-size: .85rem; color: var(--dim); padding: 10px 14px; border-top: 1px solid var(--line); }

/* key facts */
.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; padding: 0; list-style: none; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.facts strong { display: block; font-size: 1.5rem; color: var(--ink); line-height: 1.2; }
.facts span { font-size: .9rem; color: var(--dim); }

/* score cards */
.score-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .score-grid { grid-template-columns: repeat(3, 1fr); } }
.score-card { background: var(--card); border: 1px solid var(--line); border-top-width: 4px; border-radius: var(--radius); padding: 24px; }
.score-card h3 { margin-bottom: 8px; }
.score-card.seo { border-top-color: var(--seo); } .score-card.seo h3 { color: var(--seo); }
.score-card.aeo { border-top-color: var(--aeo); } .score-card.aeo h3 { color: var(--aeo); }
.score-card.geo { border-top-color: var(--geo); } .score-card.geo h3 { color: var(--geo); }
.score-card p { margin: 0; }

/* feature rows */
.feature { display: grid; gap: 28px; align-items: center; margin-top: 64px; }
.feature:first-of-type { margin-top: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature.flip .shot { order: -1; }
}
.feature h3 { font-size: 1.5rem; margin-bottom: 12px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--dim); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); vertical-align: middle; margin-left: 8px; }

/* steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 12px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; }

/* pricing */
.plans { display: grid; gap: 20px; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .price { font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin: 8px 0 4px; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--dim); }
.plan h4 { margin: 20px 0 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.plan .ticks { margin-bottom: 24px; }
.plan .btn { margin-top: auto; }

/* privacy / cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* changelog */
.log { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.log li { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .log li { grid-template-columns: 140px 1fr; gap: 24px; } }
.log time { font-weight: 700; color: var(--accent); }
.log h3 { margin-bottom: 4px; }
.log p { margin: 0; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; max-width: 75ch; }

/* cta band */
.cta-band { text-align: center; }
.cta-band .section-head { margin-left: auto; margin-right: auto; }
.cta-band .cta-row { justify-content: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-2); }
.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot p { margin: 0; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* legal / long-form pages */
.legal { max-width: 860px; }
.legal section { padding: 40px 0 0; }
.legal h2 { margin-bottom: 12px; }
.legal ul { color: var(--dim); padding-left: 1.2rem; }
.legal li { margin-bottom: 6px; }
.legal code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.toc { columns: 2 260px; padding-left: 1.2rem; margin: 0; }
.toc a { display: inline-block; min-height: 32px; }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--dim); }
.data-table th { color: var(--ink); background: var(--bg-2); }
.data-table td strong { color: var(--ink); }
.data-table tr:last-child td { border-bottom: 0; }

.faq h3 { margin: 40px 0 8px; font-size: 1.1rem; color: var(--accent); }
.faq h3:first-child { margin-top: 0; }

/* review quotes */
.quotes { display: grid; gap: 16px; }
@media (min-width: 720px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quotes figure { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.quotes blockquote { margin: 0; }
.quotes blockquote p { color: var(--ink); font-size: 1.05rem; margin: 0; }
.quotes figcaption { font-size: .9rem; color: var(--dim); }
