/* ============================================================
   TOASTDECK LEARNING SYSTEMS — MAIN STYLESHEET
   Design direction: Industrial editorial / field briefing
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:           #F6F4F0;
  --bg-surface:   #EDEBE6;
  --bg-dark:      #111111;
  --text:         #111111;
  --text-mid:     #4A4845;
  --text-muted:   #888480;
  --blue:         #1A40B0;
  --blue-light:   #EEF2FF;
  --rule:         #C8C4BC;
  --rule-strong:  #888480;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w:        720px;
  --max-w-wide:   960px;
  --pad-x:        clamp(1.25rem, 5vw, 3rem);
  --section-gap:  clamp(4rem, 10vw, 8rem);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.0625rem);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
ul { list-style: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

.label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.text-muted { color: var(--text-muted); }
.text-mid   { color: var(--text-mid); }

p + p { margin-top: 1em; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--wide {
  max-width: var(--max-w-wide);
}

section {
  padding-block: var(--section-gap);
  border-top: 1px solid var(--rule);
}

/* ── NAV ────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}
.nav-wordmark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-wordmark span {
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue) !important;
  border: 1.5px solid var(--blue);
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--blue); color: var(--bg) !important; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  margin-block: 5px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem var(--pad-x);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding-block: 0.65rem;
    width: 100%;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { border: none; padding-inline: 0; }
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(5rem, 14vw, 10rem);
  border-top: 3px solid var(--blue);
}
.hero__label { margin-bottom: 1.75rem; }
.hero__headline {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-style: italic;
  max-width: 14ch;
  margin-bottom: 1.75rem;
  line-height: 1.08;
}
.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--text-mid);
  max-width: 56ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--blue); color: var(--bg); text-decoration: none; }
.btn--dark {
  color: var(--bg);
  border-color: var(--bg);
  background: transparent;
}
.btn--dark:hover { background: var(--bg); color: var(--text); }

/* ── PROBLEM ─────────────────────────────────────────────── */
.problem__list {
  margin-block: 2rem;
}
.problem__list li {
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1rem, 2vw, 1.0625rem);
  color: var(--text-mid);
}
.problem__list li:first-child { border-top: 1px solid var(--rule); }
.problem__declaration {
  margin-top: 2.5rem;
}
.problem__declaration p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--text);
}
.problem__declaration p + p { margin-top: 0.75rem; }

/* ── POSITIONING ─────────────────────────────────────────── */
.positioning__lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.positioning__body p {
  color: var(--text-mid);
  font-size: clamp(1rem, 2vw, 1.0625rem);
}
.positioning__standout {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--blue);
  background: var(--blue-light);
}
.positioning__standout p {
  font-weight: 500;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.0625rem);
}

/* ── SEQUENCE ────────────────────────────────────────────── */
.sequence {
  margin-block: 2rem;
}
.sequence__correct {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  flex-wrap: wrap;
}
.sequence__step {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
}
.sequence__arrow {
  font-size: 1.25rem;
  color: var(--blue);
  font-weight: 300;
}
.sequence__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.sequence__wrong {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  opacity: 0.45;
  text-decoration: line-through;
}
.sequence__wrong .sequence__step { font-weight: 400; font-style: italic; }

.how-list {
  margin-top: 2rem;
}
.how-list li {
  padding-block: 0.75rem;
  padding-left: 1.25rem;
  border-bottom: 1px solid var(--rule);
  color: var(--text-mid);
  position: relative;
}
.how-list li:first-child { border-top: 1px solid var(--rule); }
.how-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

/* ── DIFFERENT ────────────────────────────────────────────── */
.different__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-block: 2rem;
}
.different__cell {
  background: var(--bg);
  padding: 1.5rem;
}
.different__cell h3 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.different__cell p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.different__cell--blue h3 { color: var(--blue); }
.different__cell--blue p { color: var(--text); font-weight: 500; }

@media (max-width: 520px) {
  .different__grid { grid-template-columns: 1fr; }
}

/* ── WHO ──────────────────────────────────────────────────── */
.domains {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.domain {
  background: var(--bg);
  padding: 1.25rem 1.5rem;
}
.domain__num {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.domain__name {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
}
.domain__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.5;
}

/* ── OUTCOME ─────────────────────────────────────────────── */
.outcome__items {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.outcome__item {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text);
  font-weight: 700;
}
.outcome__item:first-child { border-top: 1px solid var(--rule); }

/* ── EARLY ACCESS ────────────────────────────────────────── */
.access {
  background: var(--bg-dark);
  padding-block: clamp(4rem, 8vw, 6rem);
  border-top: none;
}
.access .label { color: var(--blue-light); opacity: 0.7; }
.access h2 { color: #F6F4F0; margin-block: 0.75rem 1rem; }
.access p { color: #999490; max-width: 52ch; }
.access__form {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.access__input {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1rem;
  background: #1C1C1C;
  border: 1px solid #333;
  color: #F6F4F0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s;
}
.access__input::placeholder { color: #555; }
.access__input:focus { border-color: var(--blue); }
.access__note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #555;
  font-style: italic;
}

/* ── DARK SECTION ────────────────────────────────────────── */
.dark-section {
  background: var(--bg-dark);
  color: #F6F4F0;
  border-top: none;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid #222;
  padding-block: 3rem;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-wordmark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: #F6F4F0;
  text-decoration: none;
}
.footer-tagline {
  font-size: 0.8125rem;
  color: #555;
  max-width: 44ch;
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
}
.footer-nav a {
  font-size: 0.8125rem;
  color: #666;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover { color: #F6F4F0; }
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy {
  font-size: 0.75rem;
  color: #444;
}

/* ── PAGE HEADER (interior pages) ───────────────────────── */
.page-header {
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
  border-top: 3px solid var(--blue);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.page-header .label { margin-bottom: 1rem; }
.page-header h1 { max-width: 18ch; }
.page-header p {
  margin-top: 1rem;
  color: var(--text-mid);
  max-width: 54ch;
  font-size: clamp(1rem, 2vw, 1.0625rem);
}

/* ── PROSE (for manifesto/doctrine pages) ────────────────── */
.prose {
  padding-block: var(--section-gap);
}
.prose h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin-top: clamp(3rem, 6vw, 4rem);
  margin-bottom: 1rem;
}
.prose h3 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-mid);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.prose p { color: var(--text-mid); }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--blue);
  padding: 1.25rem 1.5rem;
  background: var(--blue-light);
  margin-block: 2rem;
}
.prose blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text);
  font-weight: 700;
  line-height: 1.4;
}
.prose .rule { border: none; border-top: 1px solid var(--rule); margin-block: 3rem; }
.prose ol {
  list-style: decimal;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-mid);
  margin-block: 1.5rem;
}
.prose ul.dash-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-block: 1.5rem;
}
.prose ul.dash-list li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-mid);
}
.prose ul.dash-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 300;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── UTILITIES ───────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }

/* ── SKIP LINK ───────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--blue); color: #fff;
  padding: 0.5rem 1rem; z-index: 999;
  text-decoration: none; font-size: 0.875rem;
}
.skip-link:focus { top: 0; }
