/* CommercifAI website. One stylesheet, no build step, no third-party requests:
   no web fonts, analytics or CDN, so a visit sends nothing to anyone but Cloudflare. */

:root {
  --navy: #0b1f3a;
  --navy-2: #13294b;
  --accent: #8c9bff;
  --accent-ink: #3d4fd6;

  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --surface: #ffffff;
  --text: #0f1b2d;
  --muted: #4a5568;
  --line: #e2e8f0;
  --link: var(--accent-ink);
  --warn-bg: #fff4e5;
  --warn-line: #f0b35b;
  --warn-text: #6b3d00;

  --radius: 14px;
  --max: 1120px;
  --prose: 72ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1424;
    --bg-soft: #0f1d33;
    --surface: #12223b;
    --text: #e8edf6;
    --muted: #a7b3c7;
    --line: #22355a;
    --link: #aab6ff;
    --warn-bg: #2b2112;
    --warn-line: #a8742a;
    --warn-text: #f5d7a8;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
}

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

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px #2f4777; }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: #d6dcf0; text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, #24407a 0%, transparent 60%), var(--navy);
  color: #fff;
  padding: 56px 0 0;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 18px; max-width: 20ch;
  text-wrap: balance;
}
h2, h3 { text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 1.15rem; color: #d6dcf0; max-width: 60ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 40px; }
.hero-shot {
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid #2a4170; border-bottom: 0;
  box-shadow: 0 -10px 60px rgba(140, 155, 255, 0.18);
  margin: 0 auto; width: 100%; max-width: 1000px;
}

.btn {
  display: inline-block; padding: 12px 20px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: #a5b1ff; }
.btn-ghost { color: #fff; border-color: #3a5288; }
.btn-ghost:hover { border-color: var(--accent); }
.pill {
  display: inline-block; font-size: 0.85rem; color: #d6dcf0;
  border: 1px solid #3a5288; border-radius: 999px; padding: 6px 12px;
}

/* Sections */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700;
  color: var(--accent-ink); margin: 0 0 8px;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--accent); } }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 14px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
.section-lede { color: var(--muted); max-width: 64ch; margin: 0 0 36px; font-size: 1.05rem; }

.grid { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card p { margin: 0; color: var(--muted); }
.card .num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--navy); color: var(--accent); font-weight: 700; margin-bottom: 12px;
}

.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(11, 31, 58, 0.10); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7.5' fill='none' stroke='%238c9bff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.checklist.no li::before {
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 6l8 8M14 6l-8 8' fill='none' stroke='%234a5568' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
  border: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .checklist.no li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 6l8 8M14 6l-8 8' fill='none' stroke='%23a7b3c7' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  }
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 6px 14px; font-size: 0.92rem;
}

code {
  font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
}

/* Pricing */
.price-card {
  max-width: 560px; margin: 0 auto; background: var(--surface);
  border: 2px solid var(--accent); border-radius: 20px; padding: 32px;
}
.price-card .plan { font-weight: 700; font-size: 1.1rem; margin: 0; }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 12px 0 4px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-note { color: var(--muted); margin: 0 0 24px; }
.fine { color: var(--muted); font-size: 0.92rem; margin-top: 20px; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line); padding: 18px 0;
}
.faq summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq details p { color: var(--muted); margin: 10px 0 0; max-width: var(--prose); }

/* Prose pages (privacy, terms, support) */
.page-head { background: var(--navy); color: #fff; padding: 48px 0 40px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.15; }
.page-head p { margin: 0; color: #d6dcf0; }
.prose { max-width: var(--prose); padding: 48px 0 72px; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 10px; }
.prose h3 { margin: 28px 0 6px; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }
.prose address { font-style: normal; }

/* Release blocker: visible locally, and scripts/check-release.mjs fails the Cloudflare build while one exists. */
.draft-note {
  background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text);
  border-radius: 10px; padding: 14px 18px; margin: 0 0 28px; font-size: 0.95rem;
}
.draft-note strong { display: block; margin-bottom: 4px; }
.draft-note ul { margin: 6px 0 0; padding-left: 1.2em; }

/* Footer */
.site-footer { background: var(--navy); color: #c3cbe0; padding: 40px 0; font-size: 0.93rem; }
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr; } }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer address { font-style: normal; }
