/* ==========================================================================
   Frank AI Academy — v1 styles
   ========================================================================== */

/* Fonts are self-hosted (no visitor data sent to Google). Both are SIL Open Font License. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --ink: #14213d;
  --ink-2: #2b3a5c;
  --muted: #5b6478;
  --paper: #fdfaf4;
  --paper-2: #f5efe3;
  --line: #e7dfcf;
  --accent: #f4a259;
  --accent-dark: #d9822b;
  --teal: #3d8c84;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 8px 24px rgba(20, 33, 61, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, 0.16);
  --max: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 800px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.9rem;
}

/* Icons -------------------------------------------------------------------- */
.ic {
  width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.float-badge { display: inline-flex; align-items: center; gap: 0.45rem; }
.float-badge .ic { color: var(--teal); }
.tab-list button { display: inline-flex; align-items: center; gap: 0.5rem; }
.contact-list li { display: flex; align-items: center; gap: 0.6rem; }
.contact-list .ic { width: 22px; height: 22px; color: var(--teal); }

mark.fill { background: rgba(244, 162, 89, 0.22); color: var(--ink); border-radius: 4px; padding: 0 0.15em; }
.new-badge {
  display: inline-block; margin-left: 0.5rem; vertical-align: 0.15em;
  font: 700 0.68rem/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.5rem; border-radius: 999px; background: var(--teal); color: var(--white);
}
.updated { font-size: 0.92rem; color: var(--muted); margin: -0.25rem 0 0; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--white); box-shadow: 0 6px 16px rgba(20, 33, 61, 0.2); }
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: rgba(255, 255, 255, 0.25); }
.btn-light:hover { background: rgba(255, 255, 255, 0.18); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 250, 244, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(20, 33, 61, 0.05); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
}
.logo em { font-style: normal; color: var(--accent-dark); }
.logo-light { color: var(--white); }
.logo-light em { color: var(--accent); }
.logo-light img { border-radius: 9px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.35); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: 0.97rem; color: var(--ink-2);
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--accent); transition: width 0.2s ease;
}
.site-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 0.5rem; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero --------------------------------------------------------------------- */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(244, 162, 89, 0.18), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(61, 140, 132, 0.12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.underline {
  background: linear-gradient(transparent 62%, rgba(244, 162, 89, 0.45) 62%, rgba(244, 162, 89, 0.45) 90%, transparent 90%);
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 1.6rem; }
.hero-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  font-size: 0.93rem; color: var(--muted);
}
.hero-points li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 0.4rem; }

.hero-visual { position: relative; padding: 2rem 1rem; }
.workflow-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.4rem 1.4rem;
  transform: rotate(-1.2deg);
}
.wc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 1rem; }
.wc-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.wc-head .dot:nth-child(1) { background: #f28b82; }
.wc-head .dot:nth-child(2) { background: #fbd38d; }
.wc-head .dot:nth-child(3) { background: #9ae6b4; }
.wc-head p { margin: 0 0 0 0.6rem; font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.wc-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.wc-list li {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0; border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.check {
  flex: none; width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid var(--line); position: relative;
}
.check.done { background: var(--teal); border-color: var(--teal); }
.check.done::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tag {
  margin-left: auto; flex: none;
  font-size: 0.72rem; font-weight: 600;
  padding: 0.2rem 0.55rem; border-radius: 999px;
  background: rgba(61, 140, 132, 0.12); color: var(--teal);
}
.tag-human { background: rgba(244, 162, 89, 0.18); color: var(--accent-dark); }
.wc-foot strong { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.bar { height: 10px; background: var(--paper-2); border-radius: 999px; margin: 0.4rem 0 0.8rem; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--accent)); border-radius: inherit; }
.wc-note { margin: 0; font-size: 0.85rem; color: var(--muted); font-style: italic; }

.float-badge {
  position: absolute;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 0.9rem; font-size: 0.85rem; font-weight: 600;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.badge-1 { top: 0; right: 0; }
.badge-2 { top: 0.25rem; left: 0; animation-delay: -2s; }
.badge-3 { bottom: -0.5rem; right: 8%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Built for ---------------------------------------------------------------- */
.built-for { border-block: 1px solid var(--line); padding: 1.25rem 0; background: var(--paper-2); }
.built-for .container { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.built-for p { margin: 0; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.built-for ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; padding: 0; margin: 0; justify-content: center; }
.built-for li { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-2); }

/* Sections ----------------------------------------------------------------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .eyebrow { color: var(--accent); }
.section-dark .section-head p:not(.eyebrow) { color: rgba(255, 255, 255, 0.72); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(244, 162, 89, 0.16); color: var(--accent-dark); margin-bottom: 1.1rem;
}
.icon .ic { width: 26px; height: 26px; }

/* Tabs --------------------------------------------------------------------- */
.tab-list {
  display: inline-flex; gap: 0.35rem; padding: 0.35rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  margin-bottom: 2rem;
}
.tab-list button {
  border: 0; background: transparent; cursor: pointer;
  font: 600 1rem/1 var(--font-body); color: var(--muted);
  padding: 0.8rem 1.3rem; border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.tab-list button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.tab-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow);
}
.panel-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.panel-grid h3 { font-size: 1.7rem; }
.panel-grid p { color: var(--muted); margin-bottom: 1.6rem; }
.use-cases { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.use-cases li {
  display: grid; gap: 0.15rem;
  padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  background: var(--paper); border-left: 4px solid var(--accent);
}
.use-cases span { color: var(--muted); font-size: 0.95rem; }

/* Steps -------------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: none; }
.step { position: relative; padding-top: 1.5rem; border-top: 3px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -3px; left: 0; width: 40%; height: 3px; background: var(--accent);
}
.step-num { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 0.8rem; }
.step p { color: var(--muted); margin: 0; }

/* Programs ----------------------------------------------------------------- */
.program {
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px; padding: 2rem;
}
.program.featured { background: var(--white); color: var(--ink); border-color: var(--white); transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); }
.program-tag {
  align-self: flex-start;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(244, 162, 89, 0.18); color: var(--accent);
}
.program.featured .program-tag { background: var(--accent); color: var(--ink); }
.program-desc { color: rgba(255, 255, 255, 0.72); }
.program.featured .program-desc { color: var(--muted); }
.program ul { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.6rem; flex: 1; }
.program li { padding-left: 1.6rem; position: relative; font-size: 0.97rem; }
.program li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.program.featured li::before { color: var(--teal); }

/* Principles --------------------------------------------------------------- */
/* 5 principles: 3 on the top row, 2 below */
.principles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.principles .principle { grid-column: span 2; }
.principles .principle:nth-child(n+4) { grid-column: span 3; }
.principle { padding: 1.6rem; border-radius: var(--radius); background: var(--paper-2); }
.principle h3 { display: flex; align-items: center; gap: 0.5rem; }
.principle h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.principle p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* Mission ------------------------------------------------------------------ */
.mission {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: linear-gradient(135deg, var(--accent) 0%, #f7b97a 100%);
}
.mission blockquote { margin: 0 auto; max-width: 900px; text-align: center; }
.mission blockquote p {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; color: var(--ink);
}
.mission footer { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; color: var(--ink-2); }

/* FAQ ---------------------------------------------------------------------- */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 1.4rem; transition: box-shadow 0.2s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.2rem 2rem 1.2rem 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent-dark); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; }

/* Contact ------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.6rem; font-weight: 500; }
.contact-alt a { color: var(--ink); font-weight: 600; }

.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-lg);
  display: grid; gap: 1.1rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.8rem 0.95rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(244, 162, 89, 0.25);
}
.field.invalid input, .field.invalid select { border-color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.char-count { justify-self: end; font-size: 0.8rem; color: var(--muted); }
.form-note { margin: -0.25rem 0 0; font-size: 0.85rem; color: var(--muted); }
.form-note a { color: var(--ink); font-weight: 600; }
.form-status { margin: 0; font-size: 0.95rem; min-height: 1.5em; text-align: center; }
.form-status.success { color: var(--teal); font-weight: 600; }
.form-status.error { color: #c0392b; font-weight: 600; }

/* Footer ------------------------------------------------------------------- */
/* Extra bottom padding keeps the fixed Netlify badge clear of the footer text */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding: 3.5rem 0 5.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.footer-grid > div p { margin-top: 1rem; max-width: 26rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: flex-end; align-content: start; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--white); }
.copyright {
  grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.5rem; margin: 1rem 0 0; font-size: 0.9rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
}
.copyright a { text-decoration: none; }
.copyright a:hover { color: var(--white); }

/* Founder ------------------------------------------------------------------ */
.founder { display: grid; grid-template-columns: 340px 1fr; gap: 4rem; align-items: start; }
.founder-card {
  position: sticky; top: 100px;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: 2rem; text-align: center; box-shadow: var(--shadow);
}
.founder-photo {
  width: 180px; height: 180px; border-radius: 50%; margin: 0 auto 1.25rem;
  object-fit: cover; border: 6px solid var(--paper-2);
}
.founder-initials {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 60%, var(--teal) 100%);
  color: var(--paper); font: 700 3.6rem/1 var(--font-display); letter-spacing: 0.02em;
}
.founder-card h3 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.founder-role { font-weight: 600; color: var(--accent-dark); margin-bottom: 0.3rem; }
.founder-loc { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.25rem; }
.founder-card .btn { gap: 0.5rem; }
.founder-card .btn .ic { color: #0a66c2; }
.founder-copy p:not(.eyebrow) { color: var(--ink-2); font-size: 1.07rem; }
.creds { list-style: none; padding: 0; margin: 1.75rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.creds li {
  font-size: 0.88rem; font-weight: 600; padding: 0.45rem 0.85rem; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line);
}
.awards { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.awards li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; color: var(--ink-2); }
.awards .ic { width: 22px; height: 22px; color: var(--accent-dark); margin-top: 0.05rem; }

/* Resources teaser (home) -------------------------------------------------- */
.resources-teaser {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 3.25rem); box-shadow: var(--shadow);
}
.resources-teaser h2 { margin-bottom: 0.4em; }
.resources-teaser p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.kit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.kit-list li {
  display: flex; gap: 0.8rem; align-items: center;
  padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); background: var(--paper-2); font-weight: 600;
}
.kit-list .ic { width: 22px; height: 22px; color: var(--accent-dark); }

/* Inner pages -------------------------------------------------------------- */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background: radial-gradient(700px 360px at 90% 0%, rgba(244, 162, 89, 0.18), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 820px; }
.page-hero .lede { max-width: 44rem; }

.toc { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.toc a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 0.55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
}
.toc a:hover { border-color: var(--ink); }
.toc .ic { color: var(--accent-dark); }
.link-card { display: flex; flex-direction: column; }
.link-card p { flex: 1; margin-bottom: 1.25rem; }
.link-card .btn { align-self: flex-start; }

.kit-section { padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); }
.kit-section .section-head { margin-bottom: 2rem; }

.prompt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.prompt {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.prompt h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.prompt-text {
  flex: 1; margin: 0 0 1rem; padding: 1rem 1.1rem;
  background: var(--paper); border-radius: var(--radius-sm); border-left: 4px solid var(--teal);
  font-size: 0.95rem; color: var(--ink-2); white-space: pre-line;
}
.copy-btn {
  align-self: flex-start;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  font: 600 0.88rem/1 var(--font-body); padding: 0.6rem 1rem; border-radius: 999px; cursor: pointer;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.copied { background: var(--teal); border-color: var(--teal); color: var(--white); }

.rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; counter-reset: rule; }
.rules li {
  counter-increment: rule; position: relative;
  padding: 1.4rem 1.4rem 1.4rem 4.2rem; border-radius: var(--radius); background: var(--paper-2);
}
.rules li::before {
  content: counter(rule); position: absolute; left: 1.3rem; top: 1.3rem;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); font-weight: 700;
}
.rules strong { display: block; margin-bottom: 0.2rem; }
.rules span { color: var(--muted); font-size: 0.97rem; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.checklist li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem 1.1rem 3.2rem; position: relative;
}
.checklist li::before {
  content: ""; position: absolute; left: 1.2rem; top: 1.3rem; width: 18px; height: 18px;
  border: 2px solid var(--teal); border-radius: 5px;
}
.checklist strong { display: block; }
.checklist span { color: var(--muted); font-size: 0.97rem; }

.note {
  margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  background: rgba(244, 162, 89, 0.14); color: var(--ink-2); font-size: 0.95rem;
}

.cta-band { background: var(--ink); color: var(--white); padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; }
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { color: rgba(255, 255, 255, 0.72); max-width: 38rem; margin: 0 auto 1.75rem; font-size: 1.08rem; }
.cta-band .btn-primary { background: var(--accent); color: var(--ink); }
.cta-band .btn-primary:hover { background: #f7b97a; }

.prose { padding-bottom: clamp(3rem, 6vw, 5rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.25rem; }
.prose a { font-weight: 600; }

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.not-found .big { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; color: var(--accent); line-height: 1; margin: 0; }
.not-found .hero-ctas { justify-content: center; }

/* Reveal on scroll --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid, .panel-grid, .contact-grid, .resources-teaser, .founder { grid-template-columns: 1fr; gap: 2.5rem; }
  .founder-card { position: static; max-width: 420px; width: 100%; margin-inline: auto; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principles .principle, .principles .principle:nth-child(n+4) { grid-column: auto; }
  .principles .principle:last-child { grid-column: 1 / -1; }
  .program.featured { transform: none; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    box-shadow: 0 20px 30px rgba(20, 33, 61, 0.08);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1rem; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-4, .steps, .field-row, .prompt-grid, .rules { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
  .tab-list { display: flex; width: 100%; }
  .tab-list button { flex: 1; padding: 0.8rem 0.6rem; font-size: 0.92rem; }
  .tag { display: none; }
}

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

/* Print: show everything (scroll animations never ran) and drop on-screen-only parts */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .nav-toggle, .copy-btn, .toc, .cta-band, .site-footer nav, .hero-visual { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section, .kit-section, .page-hero { padding: 1rem 0; background: none !important; }
  .prompt, .rules li, .checklist li, .card { box-shadow: none; break-inside: avoid; }
  .site-footer { padding: 1rem 0; break-inside: avoid; }
  a { text-decoration: none; }
}
