/* SkillForge site styles. No external fonts, frameworks or CDNs. */
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #f7f4ef;
  --bg-alt: #efe9e0;
  --surface: #fffdf9;
  --ink: #1d1719;
  --muted: #574c4f;
  --line: #ddd4c8;
  --accent: #b11f4b;
  --accent-ink: #9a1a41;
  --accent-soft: #f7e1e7;
  --on-accent: #ffffff;
  --link: #9a1a41;
  --focus: #1d1719;
  --ok: #17703a;
  --bad: #b3261e;
  /* the dark "forge" bands look the same in both modes */
  --forge: #1a1214;
  --forge-2: #261a1d;
  --forge-line: #4a3539;
  --forge-ink: #f7f4ef;
  --forge-muted: #d3c5c7;
  --forge-accent: #ff8fa6;
  --ember: #ffc061;
  --radius: 18px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(29, 23, 25, .06), 0 12px 32px rgba(29, 23, 25, .10);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .45);
  --wrap: min(1180px, 100% - 2.5rem);
  --font: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141011;
    --bg-alt: #1b1517;
    --surface: #211a1c;
    --ink: #f3ede6;
    --muted: #cdbfc1;
    --line: #3d3135;
    --accent: #ff8fa6;
    --accent-ink: #ff8fa6;
    --accent-soft: #3a1f27;
    --on-accent: #1a0f12;
    --link: #ffa3b6;
    --focus: #ffc061;
    --ok: #6fdc95;
    --bad: #ff9c94;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; background: var(--bg); color: var(--ink); text-rendering: optimizeLegibility; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.forge :focus-visible, .site-footer :focus-visible { outline-color: var(--ember); }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .75rem 1rem; border-radius: var(--radius-s); font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-block; padding: .5rem .7rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .98rem; }
.nav-links a:hover { background: var(--accent-soft); }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 700; padding: .55rem .9rem; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; min-height: 44px; }
  .menu-btn svg { width: 20px; height: 20px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1.25rem; box-shadow: var(--shadow); }
  .nav-links.open a { padding: .8rem 1rem; font-size: 1.1rem; }
  /* Without JavaScript, assets/css/nojs.css (loaded in <noscript>) shows the links instead of the menu button.
     Hiding them by default avoids a layout shift on phones when the deferred script starts. */
  .nav .btn-header { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .8rem 1.35rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { background: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .btn-primary:hover { background: #ffb0c0; } }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.forge .btn-primary { background: #e23a68; color: #fff; }
.forge .btn-primary:hover { background: #ff5582; }
.btn-header { min-height: 42px; padding: .5rem 1.05rem; font-size: .96rem; }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-2px); } }

/* ---------- forge (dark) bands ---------- */
.forge { background: var(--forge); color: var(--forge-ink); position: relative; isolation: isolate; overflow: hidden; }
.forge a:not(.btn) { color: var(--forge-accent); }
.forge .muted, .forge p { color: var(--forge-muted); }
.forge h1, .forge h2, .forge h3 { color: var(--forge-ink); }
.forge::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 70% at 85% 10%, rgba(226, 58, 104, .38), transparent 70%),
  radial-gradient(40% 50% at 0% 100%, rgba(255, 170, 70, .16), transparent 70%),
  linear-gradient(180deg, transparent, rgba(0, 0, 0, .25)); }
.forge::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; background-image:
  linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 80%); -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 80%); }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 1rem; }
.forge .eyebrow { color: var(--ember); }
.eyebrow .pip { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 25%, transparent); }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: .35em; }
.hero h1 .glow { background: linear-gradient(100deg, #ff8fa6 0%, #ffc061 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--forge-muted); max-width: 36rem; }
.hero .lead strong { color: var(--forge-ink); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.5rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: .5rem 1.25rem; font-size: .98rem; color: var(--forge-ink); }
.ticks li { display: flex; gap: .5rem; align-items: flex-start; }
.ticks svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .22rem; color: var(--ember); }

.stage { position: relative; perspective: 1600px; }
.device { position: relative; border-radius: 16px; background: #0c0809; padding: 10px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08) inset; transform: rotateY(-7deg) rotateX(3deg); transform-style: preserve-3d; }
.device-bar { display: flex; align-items: center; gap: 6px; padding: 2px 6px 9px; }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b2c30; }
.device-bar span { margin-left: .5rem; font-size: .78rem; color: #b9a9ac; letter-spacing: .02em; }
.device video, .device img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #2a2224; }
.video-toggle { display: inline-flex; vertical-align: middle; align-items: center; gap: .4rem; padding: .45rem .75rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(12, 8, 9, .72); color: #fff; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; min-height: 36px; }
.video-toggle svg { width: 14px; height: 14px; }
.video-toggle[hidden] { display: inline-flex; visibility: hidden; } /* keep its space so the caption does not shift (CLS) when JS shows it */
.stage figcaption { margin-top: 1.4rem; font-size: .9rem; color: var(--forge-muted); text-align: center; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
#stage-cap { min-height: calc(3 * 1.6em); max-width: 30rem; } /* room for 3 lines in either font, so the web-font swap does not move the content below (CLS) */
@media (prefers-reduced-motion: no-preference) {
  .device { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .stage:hover .device { transform: rotateY(-2deg) rotateX(1deg); }
}

/* ---------- generic sections ---------- */
.section { padding: clamp(4rem, 3rem + 4vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { font-size: 1.15rem; color: var(--muted); }
.forge .section-head p { color: var(--forge-muted); }
.kicker { font-weight: 700; color: var(--accent-ink); letter-spacing: .08em; text-transform: uppercase; font-size: .88rem; margin-bottom: .75rem; display: block; }
.forge .kicker { color: var(--ember); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; counter-reset: st; }
.steps li { counter-increment: st; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.35rem; position: relative; }
.steps li::before { content: counter(st, decimal-leading-zero); display: block; font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--accent); margin-bottom: .8rem; letter-spacing: -.03em; }
.steps h3 { font-size: 1.3rem; }
.forge .steps li { background: var(--forge-2); border-color: var(--forge-line); }
.forge .steps li::before { color: var(--ember); }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }
.forge .steps p { color: var(--forge-muted); }
/* ---------- panels ---------- */
.panel { background: var(--forge-2); border: 1px solid var(--forge-line); border-radius: 22px; padding: clamp(1.1rem, 2.5vw, 1.75rem); }

/* ---------- courses ---------- */
.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.course { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem 1.5rem; box-shadow: var(--shadow); }
.course h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); }
.course p { color: var(--muted); margin: 0; }
.course.tailored { border: 2px solid var(--accent); }
.course p.ambition { margin-top: .8rem; font-style: italic; }
.tag { display: inline-flex; align-items: center; padding: .3rem .75rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .85rem; margin-bottom: .9rem; }
.tag.tag-alt { background: transparent; border: 2px solid var(--accent); color: var(--accent-ink); }

/* ---------- audiences ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.aud-grid li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-s); padding: 1.2rem 1.25rem; }
.aud-grid h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.aud-grid p { color: var(--muted); margin: 0; font-size: .98rem; }
.uses-head { font-size: 1.12rem; margin: 2rem 0 .7rem; }
.uses { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.uses li { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .98rem; }
.note { margin: 1.5rem 0 0; color: var(--muted); font-size: 1.02rem; max-width: 46rem; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) { .feature:hover { transform: translateY(-3px); } }
.ficon { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: .9rem; }
.ficon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.feature p { color: var(--muted); font-size: .97rem; margin: 0; }
/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem .25rem; font-weight: 700; font-size: 1.1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; width: .7rem; height: .7rem; border-right: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(45deg); flex: none; margin-right: .3rem; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list .a { padding: 0 .25rem 1.1rem; color: var(--muted); }
.faq-list .a p:last-child { margin: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.contact h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.75rem); }
.mail-big { display: inline-flex; align-items: center; gap: .6rem; font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); font-weight: 700; color: #fff !important; text-decoration: none; border-bottom: 3px solid #e23a68; padding-bottom: .15rem; word-break: break-all; }
.mail-big:hover { border-color: var(--ember); }
.builder label, .builder .lbl { display: block; font-weight: 700; color: #fff; margin: 0 0 .4rem; }
.builder select, .builder textarea { width: 100%; font: inherit; color: #1d1719; background: #fffdf9; border: 2px solid #8b6f75; border-radius: 12px; padding: .7rem .8rem; min-height: 48px; }
.builder textarea { min-height: 6rem; resize: vertical; }
.builder .row { margin-bottom: 1rem; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.checks label { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--forge-line); font-weight: 400; color: var(--forge-ink); cursor: pointer; margin: 0; min-height: 44px; }
.checks label:has(input:checked) { border-color: var(--ember); background: rgba(255, 192, 97, .1); }
.checks input { accent-color: #ffc061; width: 1.1rem; height: 1.1rem; margin: 0; }
.builder .hint { font-size: .9rem; color: var(--forge-muted); margin-top: .8rem; }
.config-flag { display: inline-block; font-size: .8rem; padding: .15rem .55rem; border-radius: 999px; border: 1px dashed var(--ember); color: var(--ember); margin-left: .3rem; vertical-align: middle; }

/* ---------- footer ---------- */
.site-footer { background: #0f0a0b; color: #d3c5c7; padding: 3.5rem 0 2.5rem; font-size: .95rem; }
.site-footer a { color: #f7f4ef; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: #fff; font-size: 1.15rem; margin-bottom: .8rem; }
.foot-brand img { width: 46px; height: 46px; }
.site-footer h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot-legal { border-top: 1px solid #33262a; margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .88rem; }
.foot-legal p { margin: 0; }

/* ---------- reveal on scroll (only with JS and motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aud-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aud-grid.aud-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .aud-grid.aud-main { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero-grid, .faq, .contact-grid, .courses { grid-template-columns: 1fr; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 1; } .hero-copy h1 { order: 2; } .hero .stage { order: 3; margin: .75rem 0 2rem; }
  .hero-copy .lead { order: 4; } .hero-copy .cta-row { order: 5; margin-top: .5rem; } .hero-copy .ticks { order: 6; }
  .device { transform: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .ticks { grid-template-columns: 1fr; }
  .features, .steps, .courses, .aud-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
}
@media (forced-colors: active) {
  .btn, .course, .feature, .aud-grid li, .uses li { border: 1px solid CanvasText; }
  .hero h1 .glow { color: CanvasText; background: none; }
}
@media print {
  .site-header, .stage, .video-toggle { display: none !important; }
  .forge { background: #fff; color: #000; }
  .forge p, .forge h1, .forge h2 { color: #000; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; align-items: center; }
.notfound-brand { color: #fff !important; text-decoration: none; display: inline-flex; margin-bottom: 2rem; }

/* Privacy page */
.prose-page { padding-top: 2.5rem; }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 .4em; }
.prose h2 { font-size: 1.4rem; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.12rem; margin: 1.4em 0 .4em; }
.prose p, .prose li { line-height: 1.6; }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose code { font-size: .92em; overflow-wrap: anywhere; }
.prose .updated { color: inherit; opacity: .8; }
.prose a { overflow-wrap: anywhere; }
