/* Peak Digital — high-contrast black + signal-yellow system per design-tokens.md.
   Layout archetypes distinct from projects 01-05: oversized typography, alternating
   dark/light full-bleed blocks, urgency strip separated from CTA, numbered curriculum
   rows, full-weight guarantee section. Yellow = signal only (countdown, seats, CTA). */
:root {
  --color-bg: #0B0B0C;
  --color-light: #FFFFFF;
  --color-accent: #F4C430;
  --color-accent-dark: #D9AC1D;
  --color-text: #F5F5F3;
  --color-text-dark: #0B0B0C;
  --color-muted: #9A9A9E;
  --color-muted-dark: #55555A;
  --color-border: #2A2A2D;
  --color-border-light: #D9D9DC;
  --radius: 4px;
  --font-head: "Space Grotesk", "Arial Black", Helvetica, sans-serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0 0 16px; }
h1 { font-size: 56px; line-height: 60px; letter-spacing: -0.02em; text-transform: uppercase; }
h2 { font-size: 38px; line-height: 44px; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 27px; }

p { margin: 0 0 16px; }

.caption { font-size: 14px; line-height: 20px; color: var(--color-muted); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 64px; }

section { padding: 88px 0; }

/* Alternating light blocks */
.block-light { background: var(--color-light); color: var(--color-text-dark); }
.block-light h2, .block-light h3 { color: var(--color-text-dark); }
.block-light .caption { color: var(--color-muted-dark); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 18px 36px;
  border-radius: var(--radius);
  border: 2px solid var(--color-accent);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--color-border); }
.block-light .btn-primary:hover { box-shadow: 4px 4px 0 var(--color-border-light); }

.link-secondary {
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.link-secondary:hover { color: var(--color-accent); }

/* ---------- Header / logo ---------- */
.site-header { padding: 24px 0; border-bottom: 1px solid var(--color-border); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark .peak-mark { width: 22px; height: 22px; flex-shrink: 0; }
.wordmark .wm-peak {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.wordmark .wm-digital {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
}

/* Language toggle — sharp bracket chip, yellow on black (Peak variant) */
.lang-toggle {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 7px 14px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-toggle:hover { background: var(--color-accent); color: var(--color-text-dark); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero .sub { font-size: 18px; line-height: 28px; color: var(--color-muted); max-width: 560px; }
.hero-visual { border: 2px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.hero .cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 36px; }

/* Urgency strip — separated from CTA per research */
.urgency-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  margin: 36px 0 0;
  overflow: hidden;
}
.urgency-cell { padding: 18px 24px; flex: 1 1 auto; min-width: 220px; }
.urgency-cell + .urgency-cell { border-left: 2px solid var(--color-accent); }
.urgency-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 6px;
}
.countdown {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}
.countdown .unit { font-size: 12px; letter-spacing: 0.08em; color: var(--color-muted); margin-right: 10px; }
.seats-count {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}
.sim-note { display: block; font-size: 12px; line-height: 17px; color: var(--color-muted); margin-top: 4px; }

/* ---------- Value proposition (light): two-list split ---------- */
.value-props .lead { max-width: 760px; color: #3A3A3E; }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.fit-col { border: 2px solid var(--color-text-dark); border-radius: var(--radius); padding: 32px; }
.fit-col.hold { border-color: var(--color-border-light); }
.fit-col h3 { text-transform: uppercase; letter-spacing: 0.04em; font-size: 17px; }
.fit-col ul { list-style: none; padding: 0; margin: 16px 0 0; }
.fit-col li { padding: 10px 0 10px 32px; position: relative; font-size: 16px; line-height: 25px; border-top: 1px solid var(--color-border-light); }
.fit-col li::before {
  content: "→";
  position: absolute; left: 0; top: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  color: #85670C; /* yellow darkened for 3:1+ contrast on white */
}
.fit-col.hold li::before { content: "✕"; color: var(--color-muted-dark); }

/* ---------- Curriculum (dark): numbered week rows ---------- */
.curriculum .sub-copy { color: var(--color-muted); max-width: 640px; }
.curriculum-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: start; margin-top: 48px; }
.week-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
}
.week-row:last-child { border-bottom: 1px solid var(--color-border); }
.week-row .wk {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.week-row h3 { margin-bottom: 8px; }
.week-row p { margin: 0; color: var(--color-muted); font-size: 15.5px; line-height: 25px; }
.curriculum-side { position: sticky; top: 24px; }
.curriculum-side .visual { border: 2px solid var(--color-border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.included-box { border: 2px solid var(--color-accent); border-radius: var(--radius); padding: 28px; }
.included-box h3 { text-transform: uppercase; font-size: 15px; letter-spacing: 0.08em; }
.included-box ul { list-style: none; padding: 0; margin: 16px 0 0; }
.included-box li { padding: 8px 0 8px 28px; position: relative; font-size: 15px; line-height: 23px; }
.included-box li::before { content: "▸"; position: absolute; left: 0; color: var(--color-accent); }

/* ---------- Instructor (light): editorial split ---------- */
.instructor .container { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.instructor-visual { border: 2px solid var(--color-text-dark); border-radius: var(--radius); overflow: hidden; }
.instructor .credential {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-dark);
  margin-bottom: 20px;
}
.instructor blockquote {
  margin: 28px 0 0;
  padding: 24px 28px;
  border-left: 4px solid var(--color-accent);
  background: #F5F5F3;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
}

/* ---------- Testimonials (dark): stacked oversized quotes ---------- */
.testimonials h2 em { font-style: normal; font-family: var(--font-body); font-weight: 400; font-size: 15px; color: var(--color-muted); display: block; margin-top: 8px; text-transform: none; letter-spacing: 0; }
.quote-stack { margin-top: 48px; }
.quote-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--color-border);
  align-items: start;
}
.quote-row:last-child { border-bottom: 1px solid var(--color-border); }
.quote-row .avatar { width: 56px; height: 56px; }
.quote-row blockquote {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 24px;
  line-height: 34px;
}
.quote-row cite { font-style: normal; font-size: 14px; color: var(--color-muted); }

/* ---------- Guarantee (light, full weight) ---------- */
.guarantee { text-align: center; }
.guarantee .badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--color-text-dark);
  border-radius: 999px;
  padding: 12px 26px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.guarantee .badge svg { width: 24px; height: 24px; }
.guarantee h2 { max-width: 720px; margin-left: auto; margin-right: auto; }
.guarantee p { max-width: 680px; margin: 0 auto; color: #3A3A3E; }

/* ---------- CTA band (dark, yellow frame) ---------- */
.cta-band {
  border: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.cta-band p { color: var(--color-muted); margin: 0; }
.cta-band .cta-side { text-align: center; }
.cta-band .seats-reminder { margin-top: 16px; }
.cta-band .seats-reminder .seats-count { font-size: 22px; }
section.cta-section { padding-top: 0; }

/* ---------- FAQ (light): numbered accordion rows ---------- */
.faq-list { margin-top: 48px; }
.faq-list details { border-top: 1px solid var(--color-border-light); }
.faq-list details:last-child { border-bottom: 1px solid var(--color-border-light); }
.faq-list summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 24px 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-head);
  font-size: 26px;
  color: #85670C; /* yellow darkened for 3:1+ contrast on white */
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 48px 24px 0; color: #3A3A3E; }
.faq-list .faq-answer {
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.33, 1, 0.68, 1),
              opacity 0.3s ease,
              transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- Footer (dark) ---------- */
.site-footer { padding: 64px 0 48px; border-top: 1px solid var(--color-border); font-size: 15px; line-height: 25px; color: var(--color-muted); }
.site-footer a { color: var(--color-text); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-grid h3 { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text); }
.site-footer .legal { border-top: 1px solid var(--color-border); padding-top: 24px; font-size: 13px; line-height: 20px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-accent);
  padding: 12px 16px;
  text-align: center;
  transform: translateY(110%);
  transition: transform 0.3s ease;
  z-index: 50;
  display: none;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta a {
  color: var(--color-text-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  display: block;
}

/* ---------- Scroll reveal ---------- */
html.anim .reveal { opacity: 0; transform: translateY(24px); }
html.anim .reveal.revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease var(--rd, 0ms),
              transform 0.6s cubic-bezier(0.33, 1, 0.68, 1) var(--rd, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .lang-toggle { transition: none; transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  body { font-size: 16px; line-height: 26px; }
  h1 { font-size: 34px; line-height: 38px; }
  h2 { font-size: 27px; line-height: 33px; }
  .container { padding: 0 24px; }
  section { padding: 48px 0; }
  .hero { padding: 40px 0 48px; }
  .hero .container, .curriculum-layout, .instructor .container { grid-template-columns: 1fr; gap: 40px; }
  .fit-grid { grid-template-columns: 1fr; }
  .urgency-cell + .urgency-cell { border-left: none; border-top: 2px solid var(--color-accent); }
  .curriculum-side { position: static; }
  .quote-row { grid-template-columns: 44px 1fr; gap: 16px; }
  .quote-row blockquote { font-size: 19px; line-height: 28px; }
  .cta-band { grid-template-columns: 1fr; padding: 36px 24px; }
  .sticky-cta { display: block; }
}
