/* SchemaDrift Guardian — marketing site.
 *
 * Deliberately dependency-free: no build step, no framework, no CDN. Cloudflare
 * Pages serves this directory as-is, which means nothing between a git push and
 * the page being live, and nothing to break on a dependency bump.
 */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --fg: #12141a;
  --fg-muted: #5a6072;
  --fg-faint: #878da0;
  --line: #e4e7ee;
  --accent: #6d5ef7;
  --accent-soft: #efedff;
  --breaking: #c8324b;
  --breaking-bg: #fdeef1;
  --warning: #9a6400;
  --warning-bg: #fdf3e2;
  --info: #1c7a4f;
  --info-bg: #e9f7f0;
  --code-bg: #f1f2f6;
  --radius: 10px;
  --max: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f14;
    --bg-alt: #14171e;
    --fg: #eef0f5;
    --fg-muted: #a4abbd;
    --fg-faint: #757c8f;
    --line: #242833;
    --accent: #8b7dff;
    --accent-soft: #1e1b3a;
    --breaking: #ff8397;
    --breaking-bg: #2c1219;
    --warning: #e8b667;
    --warning-bg: #2b2110;
    --info: #6cd6a4;
    --info-bg: #0f2620;
    --code-bg: #1b1f28;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

code {
  background: var(--code-bg);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  font: 0.87em/1.4 ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

a {
  color: inherit;
}

section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 24px;
  border-top: 1px solid var(--line);
}

section > h2 {
  font-size: 1.85rem;
  margin-bottom: 0.6em;
}

.section-lede {
  color: var(--fg-muted);
  max-width: 62ch;
  margin: -0.4em 0 2em;
}

/* --- nav ------------------------------------------------------------------ */
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), #4b3fd6);
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
}

.nav nav a {
  color: var(--fg-muted);
  text-decoration: none;
}

.nav nav a:hover {
  color: var(--fg);
}

.cta-small {
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 8px;
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  border-top: 0;
  padding-top: 68px;
  padding-bottom: 84px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  max-width: 18ch;
}

.lede {
  font-size: 1.14rem;
  color: var(--fg-muted);
  max-width: 60ch;
  margin: 1.1em 0 2em;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 560;
  padding: 12px 22px;
  border-radius: 9px;
}

.cta:hover {
  filter: brightness(1.08);
}

.cta.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}

.micro {
  color: var(--fg-faint);
  font-size: 0.86rem;
  margin-top: 18px;
}

/* --- columns -------------------------------------------------------------- */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.cols.three {
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.cols h3 {
  font-size: 1.05rem;
}

.cols p {
  color: var(--fg-muted);
}

@media (max-width: 760px) {
  .cols,
  .cols.three {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* --- steps ---------------------------------------------------------------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.steps li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: var(--bg-alt);
}

.num {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 13px;
}

.steps h3 {
  font-size: 1.05rem;
}

.steps p {
  color: var(--fg-muted);
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* --- sample PR comment ---------------------------------------------------- */
.comment {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}

.comment-head {
  padding: 15px 20px;
  font-weight: 620;
  border-bottom: 1px solid var(--line);
}

.comment table,
.rules {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comment th,
.comment td,
.rules th,
.rules td {
  text-align: left;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.comment th,
.rules th {
  color: var(--fg-faint);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comment-foot {
  padding: 16px 20px;
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.92rem;
}

/* Wide tables scroll inside their own box rather than the page. */
.sample .comment,
.catches .rules {
  display: block;
  overflow-x: auto;
}

.rules {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rules tr:last-child td {
  border-bottom: 0;
}

.sev {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 620;
}

.sev.breaking {
  background: var(--breaking-bg);
  color: var(--breaking);
}

.sev.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.sev.info {
  background: var(--info-bg);
  color: var(--info);
}

.aside {
  color: var(--fg-muted);
  font-size: 0.94rem;
  margin-top: 22px;
  max-width: 70ch;
}

/* --- pricing -------------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.plan.featured {
  border-color: var(--accent);
  background: var(--bg-alt);
}

.plan h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.later {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

.price {
  font-size: 2rem;
  font-weight: 680;
  letter-spacing: -0.03em;
  margin: 6px 0 16px;
}

.price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg-faint);
}

.plan ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--fg-muted);
  font-size: 0.94rem;
}

.plan li {
  margin-bottom: 7px;
}

@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* --- faq ------------------------------------------------------------------ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 560;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  margin-right: 11px;
}

.faq details[open] summary::before {
  content: "–";
}

.faq p {
  color: var(--fg-muted);
  margin: 12px 0 2px 25px;
  max-width: 68ch;
}

/* --- closer / footer ------------------------------------------------------ */
.closer {
  text-align: center;
}

.closer p {
  color: var(--fg-muted);
  max-width: 52ch;
  margin: 0 auto 26px;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px 60px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

footer p {
  margin: 0 0 4px;
}

.muted {
  color: var(--fg-faint);
}
