/* Pynnacle subpage system.
   The same tokens, type and buttons as the main page: one accent (orange),
   two families (Archivo display, Geist text), tinted shadows, quiet motion.
   Used by /team-ai-workshop and /404. */

/* ---------------------------------------------------------------- fonts -- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/geist.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/geist.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/geist.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/geist-mono.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/geist-mono.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- tokens -- */
:root {
  --sc-canvas:      #0A0F15;
  --sc-surface:     #121B25;
  --sc-ink:         #E9EEF0;
  --sc-ink-soft:    #97A6B2;
  --sc-accent:      #FF8A5C;
  --sc-accent-ink:  #1B0D07;
  --sc-shadow-color: 212 45% 3%;
  --glow: #FF8A5C;
  --sc-hairline:       color-mix(in oklab, var(--sc-ink) 12%, transparent);
  --sc-hairline-strong: color-mix(in oklab, var(--sc-ink) 22%, transparent);
  --sc-font-display: "Archivo", "Geist", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --sc-font-mono:    "Geist Mono", ui-monospace, monospace;
  --sc-r-sm: 6px;
  --sc-r-md: 12px;
  --sc-e1: 0 1px 2px hsl(var(--sc-shadow-color) / 0.28),
           0 2px 6px -1px hsl(var(--sc-shadow-color) / 0.20);
  --sc-e2: 0 2px 4px hsl(var(--sc-shadow-color) / 0.24),
           0 8px 18px -4px hsl(var(--sc-shadow-color) / 0.30);
  --sc-e3: 0 4px 8px hsl(var(--sc-shadow-color) / 0.22),
           0 18px 40px -8px hsl(var(--sc-shadow-color) / 0.38),
           0 48px 90px -24px hsl(var(--sc-shadow-color) / 0.30);
  --sc-edge: inset 0 1px 0 color-mix(in oklab, var(--sc-ink) 10%, transparent);
  --sc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sc-d-fast: 160ms;
  --t-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
  --t-sm:   clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --t-base: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --t-lg:   clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --t-xl:   clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --t-2xl:  clamp(1.9rem, 1.5rem + 2.2vw, 3.1rem);
  --t-hero: clamp(2.4rem, 1.7rem + 3.6vw, 4.4rem);
  --wrap: 1060px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

/* ---------------------------------------------------------------- reset -- */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font-family: var(--sc-font-text);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
a { color: inherit; }

/* ------------------------------------------------------------------ type -- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.mono { font-family: var(--sc-font-mono); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); }
.soft { color: var(--sc-ink-soft); }
h1, h2, h3 {
  font-family: var(--sc-font-display);
  font-variation-settings: "wdth" 86;
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--t-hero); max-width: 15ch; }
h2 { font-size: var(--t-2xl); margin-bottom: 0.6em; }
h3 { font-size: var(--t-lg); font-weight: 620; }
main { animation: rise 900ms var(--sc-ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------- button */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap;
  font-family: var(--sc-font-text);
  font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  padding: 0.8rem 1.25rem; border-radius: var(--sc-r-sm); border: 0;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  box-shadow: var(--sc-e1), inset 0 1px 0 color-mix(in oklab, white 35%, transparent);
  transition: transform var(--sc-d-fast) var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out), box-shadow var(--sc-d-fast) var(--sc-ease-out);
}
.btn svg { width: 1rem; height: 1rem; transition: transform var(--sc-d-fast) var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: color-mix(in oklab, var(--sc-accent) 88%, white); box-shadow: var(--sc-e2); }
  .btn:hover svg { transform: translateX(2px) translateY(-2px); }
}
.btn:active { transform: scale(0.97); }
.btn--quiet { background: transparent; color: var(--sc-ink); box-shadow: inset 0 0 0 1px var(--sc-hairline-strong); }
@media (hover: hover) and (pointer: fine) {
  .btn--quiet:hover { background: color-mix(in oklab, var(--sc-ink) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sc-ink) 40%, transparent); }
}

/* ------------------------------------------------------------------- bar -- */
.bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--pad);
  background: color-mix(in srgb, var(--sc-canvas) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sc-hairline);
}
.mark { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--sc-ink); }
.mark svg { width: 2.5rem; height: 2.5rem; flex: none; }
.mark__text { display: grid; gap: 0.3rem; }
.mark__name { font-family: var(--sc-font-display); font-variation-settings: "wdth" 112; font-weight: 700; font-size: 1.75rem; line-height: 0.9; letter-spacing: -0.02em; }
.mark__tag { font-family: var(--sc-font-text); font-weight: 500; font-size: 0.78rem; line-height: 1.2; letter-spacing: 0.01em; color: var(--sc-ink-soft); white-space: nowrap; }
@media (max-width: 860px) {
  .mark { gap: 0.55rem; }
  .mark svg { width: 1.9rem; height: 1.9rem; }
  .mark__name { font-size: 1.35rem; }
  .mark__tag { font-size: 0.62rem; white-space: normal; max-width: 15.5em; line-height: 1.25; }
}
.bar__nav { display: flex; gap: 1.4rem; font-size: var(--t-sm); }
.bar__nav a { text-decoration: none; color: var(--sc-ink-soft); transition: color var(--sc-d-fast) var(--sc-ease-out); }
.bar__nav a:hover { color: var(--sc-ink); }

/* ------------------------------------------------------------------ hero -- */
.hero { padding: clamp(4rem, 10vh, 7rem) 0 3.5rem; }
.hero__sub { max-width: 56ch; margin-top: 1.4rem; font-size: var(--t-lg); line-height: 1.5; color: var(--sc-ink); }
.hero__meta { margin-top: 1.6rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

/* ------------------------------------------------------------ sections -- */
section { border-top: 1px solid var(--sc-hairline); }
.sec { padding: clamp(3.5rem, 8vh, 6rem) 0; }
.sec__label { margin-bottom: 1.2rem; }

/* -------------------------------------------------------------- the day -- */
.day { list-style: none; counter-reset: step; padding: 0; }
.day > li {
  counter-increment: step;
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.4rem;
  padding: 1.6rem 0; border-top: 1px solid var(--sc-hairline);
}
.day > li:first-child { border-top: 0; padding-top: 0; }
.day__n::before {
  content: "0" counter(step);
  font-family: var(--sc-font-mono); font-size: var(--t-base);
  color: var(--sc-accent); letter-spacing: 0.05em;
}
.day p { max-width: 62ch; margin-top: 0.35rem; color: var(--sc-ink-soft); }

/* ----------------------------------------------------------------- cards -- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: color-mix(in oklab, var(--sc-surface) 92%, transparent);
  border-radius: var(--sc-r-md);
  box-shadow: var(--sc-e1), var(--sc-edge);
  padding: 1.5rem;
}
.card p { margin-top: 0.5rem; color: var(--sc-ink-soft); font-size: var(--t-sm); line-height: 1.55; }

/* ---------------------------------------------------------------- ladder -- */
.ladder { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; counter-reset: rung; }
.rung { border-top: 2px solid var(--sc-hairline-strong); padding-top: 1.1rem; counter-increment: rung; }
.rung--now { border-top-color: var(--sc-accent); }
.rung__n::before { content: "0" counter(rung); font-family: var(--sc-font-mono); }
.rung__n { color: var(--sc-accent); }
.rung h3 { margin-top: 0.3rem; }
.rung p { margin-top: 0.4rem; color: var(--sc-ink-soft); font-size: var(--t-sm); }

/* ----------------------------------------------------------------- facts -- */
.facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--sc-hairline); border-radius: var(--sc-r-md); overflow: hidden;
  background: color-mix(in oklab, var(--sc-surface) 70%, transparent);
}
.facts > div { padding: 1.4rem 1.5rem; border-top: 1px solid var(--sc-hairline); }
.facts > div:nth-child(-n+2) { border-top: 0; }
.facts > div:nth-child(odd) { border-right: 1px solid var(--sc-hairline); }
.facts .mono { display: block; margin-bottom: 0.45rem; color: var(--sc-accent); }

/* ------------------------------------------------------------------- faq -- */
.faq__list { display: grid; gap: 0; border-top: 1px solid var(--sc-hairline); }
details.faq__item { border-bottom: 1px solid var(--sc-hairline); padding: 1.3rem 0; }
details.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
details.faq__item summary::-webkit-details-marker { display: none; }
details.faq__item summary h3 { font-size: var(--t-lg); }
details.faq__item summary svg { flex: none; width: 16px; height: 16px; color: var(--sc-ink-soft); transition: transform 320ms var(--sc-ease-out); }
details.faq__item[open] summary svg { transform: rotate(45deg); color: var(--sc-accent); }
details.faq__item p { max-width: 64ch; margin-top: 0.8rem; color: var(--sc-ink-soft); }

/* ----------------------------------------------------------------- close -- */
.close { padding-bottom: clamp(3.5rem, 8vh, 6rem); }
.close__box {
  background: color-mix(in oklab, var(--sc-surface) 92%, transparent);
  border-radius: var(--sc-r-md);
  box-shadow: var(--sc-e1), var(--sc-edge);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.close__box h2 { max-width: 20ch; }
.close__box p { max-width: 56ch; margin-top: 1rem; color: var(--sc-ink-soft); }
.close__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

/* ------------------------------------------------------------------ foot -- */
.foot {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between;
  padding: 1.4rem 0 2rem; border-top: 1px solid var(--sc-hairline);
  font-size: var(--t-xs); color: var(--sc-ink-soft);
}
.foot a { color: inherit; }

/* ----------------------------------------------------------- responsive -- */
@media (max-width: 860px) {
  .grid3 { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-right: 0 !important; border-top: 1px solid var(--sc-hairline); }
  .facts > div:first-child { border-top: 0; }
  .bar__nav .opt { display: none; }
}