/* =========================================================================
   JustDraw marketing site. Self-contained, no webfonts, no JS required.
   ========================================================================= */
:root {
  --accent: #d97706;
  --accent-dark: #b45309;
  --accent-soft: #fef3c7;
  --ink: #1c1917;
  --body: #44403c;
  --muted: #78716c;
  --bg: #fffdf9;
  --panel: #ffffff;
  --line: #ece5db;
  --radius: 14px;
  --max: 1100px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #fbbf24;
    --accent-dark: #fcd34d;
    --accent-soft: #3a2c13;
    --ink: #f5f1ea;
    --body: #c9c1b5;
    --muted: #9b9185;
    --bg: #14120f;
    --panel: #1d1a16;
    --line: #322c24;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-top: 0; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.muted { color: var(--muted); }
section { padding: 72px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

/* ------------------------------------------------------------------- nav */
header.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.08rem; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent);
  display: grid; place-items: center; color: #fff; font-size: 15px;
}
.nav nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav nav a { color: var(--body); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav nav a:hover { color: var(--accent-dark); }
@media (max-width: 720px) { .nav nav a.hide-sm { display: none; } }

/* ----------------------------------------------------------------- button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 11px; font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease;
}
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 2px 0 var(--accent-dark); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #1c1917; } }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(217,119,6,.35); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--panel); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.sm { padding: 9px 16px; font-size: .92rem; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 76px 0 56px; text-align: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-dark); padding: 6px 14px;
  border-radius: 999px; margin-bottom: 22px; letter-spacing: .01em;
}
.hero p.lede { font-size: clamp(1.05rem, 2.2vw, 1.22rem); max-width: 640px; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .reassure { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.shot {
  margin: 48px auto 0; max-width: 980px; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 60px -18px rgba(0,0,0,.22);
  background: var(--panel);
}
.shot img { display: block; width: 100%; height: auto; }

/* --------------------------------------------------------------- features */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card .ico {
  width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 14px; font-size: 18px;
}
.card p { margin: 0; font-size: .96rem; }
.card h3 { margin-bottom: 6px; }

/* ----------------------------------------------------------------- lists */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.checks li { padding-left: 28px; position: relative; font-size: .97rem; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-dark); font-weight: 700;
}

/* ----------------------------------------------------------------- table */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: .95rem; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-weight: 650; color: var(--ink); background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--accent-dark); font-weight: 600; }

/* ------------------------------------------------------------------- faq */
details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  padding: 0 20px; margin-bottom: 10px;
}
details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
summary {
  cursor: pointer; font-weight: 600; color: var(--ink); padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-dark); font-size: 1.3rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details > p { margin: 0 0 16px; font-size: .97rem; }

/* ------------------------------------------------------------ shortcuts */
.keys { display: grid; gap: 8px 26px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.keys div { display: flex; align-items: baseline; gap: 10px; font-size: .93rem; padding: 4px 0; }
.keys span { flex: 1; color: var(--muted); }
kbd {
  font: 600 .8rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--panel); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 4px 7px; color: var(--ink); white-space: nowrap;
}

/* ------------------------------------------------------------------- cta */
.band {
  background: var(--accent-soft); border-radius: 20px; padding: 52px 28px; text-align: center;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
}

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .9rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer a { color: var(--body); text-decoration: none; }
footer a:hover { color: var(--accent-dark); }
footer .sp { margin-left: auto; }

/* --------------------------------------------------------------- sponsor */
/* One slot, below the fold, height reserved up front so a late-arriving ad
   can never shift the page. Never rendered inside the editor. */
.sponsor {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  min-height: 150px;                 /* reserved — prevents layout shift */
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sponsor-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
}
[data-sponsor-slot] { display: flex; align-items: center; min-height: 100px; }
[data-sponsor-slot] img { border-radius: 8px; }

.sponsor-house, .sponsor-custom {
  display: flex; gap: 14px; align-items: center; text-decoration: none;
  color: var(--body); font-size: .92rem; line-height: 1.5;
}
.sponsor-house { flex-direction: column; align-items: flex-start; gap: 4px; }
.sponsor-house strong, .sponsor-custom strong { color: var(--ink); display: block; }
.sponsor-house:hover strong, .sponsor-custom:hover strong { color: var(--accent-dark); }
.sponsor-custom span span { display: block; color: var(--muted); font-size: .88rem; }

/* Carbon / EthicalAds default markup, toned down to match the page */
.sponsor #carbonads, .sponsor .ea-content {
  font: inherit !important; background: transparent !important; border: 0 !important;
}
.sponsor #carbonads a, .sponsor .ea-content a { color: var(--body) !important; text-decoration: none; }
.sponsor .carbon-poweredby, .sponsor .ea-callout {
  color: var(--muted) !important; font-size: .72rem !important;
}
