/* =================================================================
   Kit Creator Strategy — page stylesheet
   Hosted at grow.kit.com/assets/kit-strategy.css
   Strategy pages link this file, so brand updates apply everywhere.
   Built on the Kit Design System tokens.
   ================================================================= */

@font-face {
  font-family: "KitSans";
  src: url("/assets/fonts/KitSans-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/fonts/LibreFranklin-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/fonts/LibreFranklin-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --kit-blue: #44b1ff;
  --soft-black: #1e1e1e;
  --warm-white: #f2efe9;
  --off-white: #f9f7f4;
  --orange: #ff7647;
  --green: #65dc8d;
  --purple: #e4acff;
  --blue-bg: #f0f9ff;
  --gray-600: #3d3d3d;
  --fg: var(--soft-black);
  --fg-muted: var(--gray-600);
  --fg-subtle: #8a8a8a;
  --border: rgba(30,30,30,0.12);
  --border-soft: rgba(30,30,30,0.07);
  --bg: var(--warm-white);
  --bg-elev: #ffffff;

  --font-display: "KitSans", "Libre Franklin", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Libre Franklin", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(30,30,30,0.06), 0 2px 4px rgba(30,30,30,0.06);
  --shadow-md: 0 1px 2px rgba(30,30,30,0.05), 0 6px 12px rgba(30,30,30,0.07), 0 12px 24px rgba(30,30,30,0.09);

  --maxw: 760px;
}

* { box-sizing: border-box; }

html {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { margin: 0; }

a { color: #1273c4; text-decoration: none; border-bottom: 1px solid rgba(18,115,196,0.25); }
a:hover { border-bottom-color: rgba(18,115,196,0.6); }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--fg-muted);
}
.hl-blue { color: var(--kit-blue); }
.hl-warm { color: var(--warm-white); }

/* ---------- Sticky header ---------- */
.kit-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--soft-black);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.kit-header img { height: 22px; display: block; }
.kit-header .badge {
  font-family: var(--font-sans); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px;
  color: var(--warm-white);
  border: 1px solid rgba(242,239,233,0.3);
  padding: 5px 12px; border-radius: var(--radius-pill);
}

/* ---------- Hero ---------- */
.kit-hero {
  background: var(--soft-black);
  color: var(--warm-white);
  padding: 64px 24px 72px;
  position: relative; overflow: hidden;
}
.kit-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("/assets/grain.png");
  background-size: 320px; opacity: 0.07; mix-blend-mode: overlay;
  pointer-events: none;
}
.kit-hero .wrap { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.kit-hero .eyebrow { color: rgba(242,239,233,0.7); }
.kit-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 7vw, 72px); line-height: 0.98;
  letter-spacing: -0.01em; margin: 14px 0 0;
}
.kit-hero .subtitle {
  font-size: 20px; line-height: 1.4;
  color: rgba(242,239,233,0.82);
  margin: 20px 0 0; max-width: 620px;
}

/* ---------- Content area ---------- */
.kit-main { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 24px; }
.kit-main > * + * { margin-top: 22px; }

.kit-main h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 30px; line-height: 1.1; letter-spacing: -0.01em;
  margin: 8px 0 0;
}
.kit-main h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 21px; line-height: 1.2; margin: 0 0 6px;
}
.kit-main p { font-size: 17px; line-height: 1.6; margin: 0; }
.kit-main p + p { margin-top: 14px; }
.kit-main ul, .kit-main ol { font-size: 17px; line-height: 1.6; padding-left: 22px; margin: 8px 0 0; }
.kit-main li + li { margin-top: 6px; }
.kit-main strong { font-weight: 600; }

/* Intro paragraph (stays open, sets the frame) */
.intro {
  font-size: 19px; line-height: 1.6; color: var(--fg);
  border-left: 3px solid var(--kit-blue);
  padding-left: 18px;
}

/* ---------- Toggle / dropdown sections (the skimmable middle) ----------
   Pattern: <details class="ts" open><summary>Title</summary><div class="sc">…</div></details>
   Open the first/intro and the closing; collapse the middle strategy sections. */
details.ts {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
details.ts + details.ts { margin-top: 14px; }
details.ts > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; line-height: 1.2;
}
details.ts > summary::-webkit-details-marker { display: none; }
details.ts > summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--fg-subtle); border-bottom: 2.5px solid var(--fg-subtle);
  transform: rotate(45deg); transition: transform .18s ease; margin-top: -4px;
}
details.ts[open] > summary::after { transform: rotate(-135deg); margin-top: 2px; }
details.ts[open] > summary { border-bottom: 1px solid var(--border-soft); }
details.ts .sc { padding: 4px 22px 22px; }
details.ts .sc > *:first-child { margin-top: 14px; }

/* ---------- Audience snapshot table ---------- */
.kit-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 16px; }
.kit-table th, .kit-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); }
.kit-table th { font-family: var(--font-sans); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-muted); }
.kit-table td:last-child, .kit-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.kit-table tr:last-child td { border-bottom: none; }

/* ---------- Callout ---------- */
.callout {
  background: var(--blue-bg);
  border: 1px solid rgba(68,177,255,0.25);
  border-radius: var(--radius-md);
  padding: 16px 18px; font-size: 16px;
}

/* ---------- Next steps card (dark) ----------
   White text required inside the dark card or it disappears. */
.ns {
  background: #111111; color: rgba(255,255,255,0.85);
  border-radius: var(--radius-xl);
  padding: 28px 26px; margin-top: 28px;
}
.ns .eyebrow { color: rgba(255,255,255,0.6); }
.ns h2 { color: #ffffff; margin: 8px 0 0; }
.ns p, .ns li { color: rgba(255,255,255,0.85); }
.ns strong { color: #ffffff; }
.ns a { color: var(--kit-blue); border-bottom-color: rgba(68,177,255,0.4); }
.ns table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.ns td { color: rgba(255,255,255,0.85); padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,0.12); vertical-align: top; }
.ns td strong { color: #ffffff; }
.ns tr:last-child td { border-bottom: none; }

/* ---------- Footer ---------- */
.kit-footer {
  max-width: var(--maxw); margin: 40px auto 0; padding: 28px 24px 56px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.kit-footer img { height: 18px; opacity: 0.8; }
.kit-footer .meta { font-size: 13px; color: var(--fg-subtle); }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .kit-hero { padding: 48px 20px 56px; }
  .kit-main { padding: 40px 20px 16px; }
  .kit-header { padding: 12px 18px; }
  details.ts > summary { font-size: 18px; padding: 18px; }
  .kit-footer { flex-direction: column; align-items: flex-start; }
}
