/* Shared styles for the per-offering pages (/consulting/, /kooli/, ...).
   Same brand tokens as index.html; kept as a file so the six pages share it. */
:root {
  --bg: #12283d;
  --bg-elevated: #1c3a5c;
  --ink: #f7f2e7;
  --ink-muted: #93a5bc;
  --rule: rgba(247, 242, 231, 0.14);
  --accent: #ff6b47;
  --accent-ink: #12283d;

  --consulting: #274a76;
  --consulting-ink: #f7f2e7;
  --contentpilot: #1a5c4c;
  --contentpilot-ink: #eef6f1;
  --kooli: #7c5622;
  --kooli-ink: #fbf1e2;
  --club: #5c2a52;
  --club-ink: #f9eef5;
  --tuition: #2f5233;
  --tuition-ink: #eef6ee;
  --gold: #8a6416;
  --gold-ink: #fdf3dc;
  --tournament: #0e6377;
  --tournament-ink: #e6f6fa;

  --font-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Rounded", "Segoe UI", system-ui, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f2e7;
    --bg-elevated: #ffffff;
    --ink: #12283d;
    --ink-muted: #5c6c81;
    --rule: rgba(18, 40, 61, 0.13);
  }
}
:root[data-theme="light"] { --bg: #f7f2e7; --bg-elevated: #ffffff; --ink: #12283d; --ink-muted: #5c6c81; --rule: rgba(18, 40, 61, 0.13); }
:root[data-theme="dark"] { --bg: #12283d; --bg-elevated: #1c3a5c; --ink: #f7f2e7; --ink-muted: #93a5bc; --rule: rgba(247, 242, 231, 0.14); }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; text-wrap: balance; margin: 0; }
.product-voice { font-family: var(--font-display); font-weight: 800; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

/* nav */
.site-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand-word { font-family: var(--font-serif); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--ink-muted); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-ctas { display: flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; text-decoration: none; cursor: pointer; border: none; white-space: nowrap; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); padding: 11px 22px; }
.btn-primary:hover { box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); padding: 10px 20px; }
.btn-ghost:hover { border-color: var(--ink-muted); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* breadcrumb */
.crumbs { padding-top: 22px; font-size: 0.82rem; color: var(--ink-muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* hero */
.hero { position: relative; padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 6vw, 64px); }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.tone-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tone, var(--accent)); flex: none; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; letter-spacing: -0.01em; max-width: 22ch; }
.hero p.lede { margin: 22px 0 0; max-width: 60ch; font-size: 1.08rem; color: var(--ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }

/* sections */
.section-block { padding: clamp(48px, 7vw, 84px) 0; border-top: 1px solid var(--rule); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 40px); }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin-top: 10px; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--rule); background: var(--bg-elevated); border-radius: 999px; padding: 8px 16px; font-size: 0.9rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature-card { border: 1px solid var(--rule); border-radius: 16px; padding: 24px; background: var(--bg-elevated); display: flex; flex-direction: column; gap: 10px; }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { margin: 0; color: var(--ink-muted); font-size: 0.94rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 760px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 4px 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-family: var(--font-body); font-size: 1rem; }
.steps p { margin: 4px 0 0; color: var(--ink-muted); font-size: 0.94rem; max-width: 60ch; }

.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq-item { border: 1px solid var(--rule); border-radius: 14px; background: var(--bg-elevated); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 0.98rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { color: var(--accent); font-family: var(--font-serif); font-size: 1.2rem; flex: none; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--ink-muted); font-size: 0.92rem; max-width: 62ch; }

/* app screenshots (optional per offering) */
.screens { padding: 0 0 clamp(40px, 6vw, 72px); }
.screens-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.screen { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.screen img { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--rule); background: #0b0b0b; box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.7); }
.screen figcaption { font-size: 0.82rem; font-weight: 700; color: var(--ink-muted); text-align: center; }
@media (max-width: 860px) {
  .screens-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 clamp(20px, 5vw, 56px); gap: 14px; padding-bottom: 8px; margin: 0 calc(-1 * clamp(20px, 5vw, 56px)); padding-left: clamp(20px, 5vw, 56px); padding-right: clamp(20px, 5vw, 56px); }
  .screen { flex: 0 0 min(72vw, 280px); scroll-snap-align: start; }
}

.screens-note { margin: 14px 0 0; text-align: center; font-size: 0.8rem; color: var(--ink-muted); }
.screens.phones .screens-row { grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; align-items: end; gap: 28px; }
.screens.phones .screen img { border: 0; border-radius: 0; background: transparent; box-shadow: none; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35)); }
@media (max-width: 860px) { .screens.phones .screens-row { display: flex; justify-content: flex-start; align-items: flex-end; } }

/* founder story (optional per offering) */
.story-body { max-width: 680px; border-left: 3px solid var(--accent); padding-left: clamp(18px, 3vw, 28px); }
.story-body p { margin: 0 0 16px; font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.6; }
.story-body p.story-sign { margin: 6px 0 0; font-family: var(--font-body); font-size: 0.86rem; font-weight: 700; color: var(--ink-muted); letter-spacing: 0.02em; }

.chips.sports li strong { font-weight: 800; }

/* scope: what we do / don't / never without approval */
.section-intro { margin: 10px 0 0; color: var(--ink-muted); max-width: 56ch; }
.scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.scope-col { border: 1px solid var(--rule); border-radius: 16px; padding: 24px; background: var(--bg-elevated); }
.scope-col h3 { font-size: 1.12rem; margin-bottom: 14px; }
.scope-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.scope-col li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--ink-muted); }
.scope-col li::before { flex: none; font-weight: 800; }
.scope-col[data-kind="yes"] li::before { content: "✓"; color: var(--accent); }
.scope-col[data-kind="no"] li::before { content: "✕"; color: var(--ink-muted); }
.scope-col[data-kind="ask"] { border-color: var(--accent); }
.scope-col[data-kind="ask"] li::before { content: "!"; color: var(--accent); }
.feature-card .card-link { margin-top: auto; font-weight: 700; font-size: 0.9rem; color: var(--accent); text-decoration: none; }
.feature-card .card-link:hover { text-decoration: underline; }

/* related */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.related-card { border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; min-height: 130px; }
.related-card[data-tone="consulting"] { background: var(--consulting); color: var(--consulting-ink); }
.related-card[data-tone="contentpilot"] { background: var(--contentpilot); color: var(--contentpilot-ink); }
.related-card[data-tone="kooli"] { background: var(--kooli); color: var(--kooli-ink); }
.related-card[data-tone="club"] { background: var(--club); color: var(--club-ink); }
.related-card[data-tone="tuition"] { background: var(--tuition); color: var(--tuition-ink); }
.related-card[data-tone="gold"] { background: var(--gold); color: var(--gold-ink); }
.related-card[data-tone="tournament"] { background: var(--tournament); color: var(--tournament-ink); }
.related-card .product-voice { font-size: 1.05rem; }
.related-card p { margin: 0; font-size: 0.82rem; opacity: 0.88; }
.related-card .go { margin-top: auto; font-size: 0.78rem; font-weight: 700; opacity: 0.9; }

/* final cta */
.final-cta-inner { padding: clamp(32px, 6vw, 52px); border-radius: 24px; background: var(--accent); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.final-cta-inner h2 { color: var(--accent-ink); font-size: clamp(1.4rem, 3vw, 1.9rem); max-width: 22ch; }
.final-cta-inner .btn-ghost { background: var(--accent-ink); color: var(--accent); border: none; }

/* footer */
footer.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 calc(48px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand svg { width: 22px; height: 22px; }
.footer-brand span { font-family: var(--font-serif); font-weight: 700; font-size: 1rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col address { text-decoration: none; font-size: 0.88rem; color: var(--ink-muted); font-style: normal; font-weight: 600; }
.footer-col a:hover { color: var(--ink); }
.footer-note { color: var(--ink-muted); font-size: 0.88rem; max-width: 34ch; margin-top: 12px; }
.footer-meta { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.8rem; color: var(--ink-muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* mobile sticky cta */
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--rule); gap: 10px; }
.mobile-cta .btn { flex: 1; justify-content: center; }
@media (max-width: 640px) { .mobile-cta { display: flex; } body { padding-bottom: 64px; } .nav-ctas { display: none; } }
@media (max-width: 860px) { .nav-links { display: none; } }

/* lead form modal */
.lead-overlay { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, #000 62%, transparent); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lead-overlay[hidden] { display: none; }
.lead-modal { width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; background: var(--bg-elevated); color: var(--ink); border-radius: 20px; border: 1px solid var(--rule); padding: clamp(24px, 5vw, 32px); position: relative; }
.lead-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lead-close:hover { border-color: var(--ink-muted); }
.lead-modal h2 { font-size: 1.4rem; padding-right: 30px; }
.lead-modal .lede { margin: 8px 0 0; color: var(--ink-muted); font-size: 0.92rem; }
.lead-form { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.lead-field { display: flex; flex-direction: column; gap: 6px; }
.lead-field label { font-size: 0.82rem; font-weight: 700; color: var(--ink-muted); }
.lead-field input, .lead-field select { font: inherit; font-size: 0.96rem; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; padding: 11px 13px; }
.lead-field input:focus-visible, .lead-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-submit { margin-top: 4px; width: 100%; justify-content: center; }
.lead-submit[disabled] { opacity: 0.6; cursor: default; transform: none; }
.lead-status { margin: 0; font-size: 0.88rem; min-height: 1.2em; }
.lead-status[data-state="ok"] { color: var(--accent); }
.lead-status[data-state="error"] { color: #ff8a75; }
