/* ============================================================
   ClassroomOps — classroomops.com
   Single stylesheet. No framework, no build step.

   Type:    Fraunces (display, self-hosted variable woff2)
            Inter    (body/UI, self-hosted variable woff2)
   Scale:   1.25 major third from 17px
   Palette: paper #f9f7f2 · navy #14375e · deep #0d2340
            gold accent #d9a441 (primary CTA + key moments only)
   ============================================================ */

/* ---------- Fonts (self-hosted, no CDN) ---------- */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces-latin-var.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-var.woff2") format("woff2-variations");
}

/* ---------- Tokens ---------- */

:root {
  /* surfaces, warm-tinted — never flat pure white page bg */
  --paper: #f9f7f2;        /* page background */
  --paper-deep: #f2eee5;   /* alternate light band */
  --surface: #fffdf9;      /* cards, form */
  --line: #e3ddd0;         /* hairlines on light */
  --line-strong: #cfc7b6;

  /* navy anchor */
  --navy: #14375e;
  --navy-deep: #0d2340;    /* dark bands */
  --navy-ink: #10294a;     /* display headings */
  --navy-tint: #e9eef5;    /* cool tint for technical surfaces (diagrams) */
  --navy-line: #2c4a70;    /* hairlines on dark */

  /* text */
  --ink: #23303d;
  --muted: #5b6572;
  --on-dark: #e9edf3;
  --on-dark-muted: #aebccd;

  /* the one accent */
  --gold: #d9a441;
  --gold-deep: #8a6414;    /* accessible on light surfaces */
  --gold-tint: #f7ecd7;

  /* type scale: 1.25 from 17px */
  --step--1: 0.85rem;      /* 14.4 */
  --step-0: 1rem;          /* 17  */
  --step-1: 1.25rem;       /* 21  */
  --step-2: 1.5625rem;     /* 27  */
  --step-3: 1.953rem;      /* 33  */
  --step-4: 2.441rem;      /* 41  */
  --step-5: 3.052rem;      /* 52  */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --maxw: 1120px;
  --narrow: 760px;
  --radius: 8px;
  --shadow-1: 0 1px 2px rgba(20, 35, 58, 0.05), 0 2px 8px rgba(20, 35, 58, 0.05);
  --shadow-2: 0 2px 4px rgba(20, 35, 58, 0.06), 0 10px 28px rgba(20, 35, 58, 0.10);
}

/* ---------- Reset-ish ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "cv05" 1; /* Inter: open lowercase l */
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-deep); text-decoration-thickness: 2px; }

::selection { background: var(--gold-tint); color: var(--navy-deep); }

/* ---------- Layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 28px; }

section { padding: 76px 0; }
section.tight { padding: 52px 0; }

/* page rhythm: light → deep-light → dark */
.band-alt { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark {
  background: var(--navy-deep);
  color: var(--on-dark);
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: var(--on-dark-muted); }
.band-dark .eyebrow { color: var(--gold); }
.band-dark a { color: var(--on-dark); }
.band-dark a:hover { color: #fff; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 72;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy-ink);
  margin: 0 0 20px;
}
h1 { font-size: var(--step-5); line-height: 1.08; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; }
h4 {
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 650;
  color: var(--navy-ink);
  margin: 0 0 12px;
}

p { margin: 0 0 20px; max-width: 68ch; }
li { max-width: 62ch; }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}
.band-dark .lede { color: var(--on-dark-muted); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--gold-deep);
  margin: 0 0 14px;
}

.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

ul, ol { margin: 0 0 20px; padding-left: 22px; }
li { margin-bottom: 9px; }
li::marker { color: var(--gold-deep); }

hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* ---------- Header / nav ---------- */

.site-header {
  background: rgba(249, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Text logo */
.logo {
  font-family: var(--serif);
  font-variation-settings: "opsz" 40;
  font-size: 1.35rem;
  font-weight: 640;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
  text-decoration: none;
  white-space: nowrap;
}
.logo .logo-ops { color: var(--navy); }
.logo .logo-dot { color: var(--gold); }
.logo:hover { color: var(--navy-deep); text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-size: 0.95rem;
  font-weight: 520;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.site-nav a.nav-cta {
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 600;
}
.site-nav a.nav-cta:hover { background: var(--navy-deep); }

/* Mobile nav — checkbox pattern, zero JS required */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.nav-toggle .bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-deep);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-input:focus-visible + .nav-toggle { outline: 2px solid var(--navy); outline-offset: 2px; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: 8px 20px 20px;
  }
  .nav-toggle-input:checked ~ .site-nav { display: flex; }
  .nav-toggle-input:checked + .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-input:checked + .nav-toggle .bar:nth-child(2) { opacity: 0; }
  .nav-toggle-input:checked + .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .site-nav a.nav-cta { margin-top: 14px; text-align: center; }
}

/* ---------- Hero ---------- */

.hero { padding: 88px 0 56px; }
.hero h1 { max-width: 22ch; text-wrap: balance; margin-bottom: 26px; }
.hero .positioning {
  font-family: var(--serif);
  font-variation-settings: "opsz" 40;
  font-size: var(--step-2);
  font-weight: 480;
  line-height: 1.4;
  color: var(--navy);
  max-width: 44ch;
  margin: 0 0 22px;
}
.hero .positioning em {
  font-style: italic;
  font-variation-settings: "opsz" 40, "wght" 520;
}
.hero-meta {
  margin-top: 30px;
  font-size: var(--step--1);
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  max-width: 56ch;
}
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 6px;
  border: 1px solid var(--navy);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }

/* the accent is spent here and almost nowhere else */
.btn-primary { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: #c99534; border-color: #c99534; color: var(--navy-deep); }

.btn-secondary { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface); color: var(--navy-deep); border-color: var(--navy); }

.band-dark .btn-secondary { color: var(--on-dark); border-color: var(--navy-line); background: transparent; }
.band-dark .btn-secondary:hover { color: #fff; border-color: var(--on-dark); background: rgba(255,255,255,0.06); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Grids, cards ---------- */

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-1);
}
.card h3 { margin-bottom: 12px; }
.card p { max-width: none; }
.card p:last-child { margin-bottom: 0; }

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card-link:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.card-link h3 { color: var(--navy); }
.card-more { font-weight: 600; color: var(--navy); font-size: var(--step--1); }
.card-link:hover .card-more { color: var(--navy-deep); }

.card-icon { color: var(--navy); margin-bottom: 16px; }
.card-icon svg { display: block; }

/* ---------- Pull quote (problem-as-leaders-describe-it) ---------- */

.pullquote {
  position: relative;
  font-family: var(--serif);
  font-variation-settings: "opsz" 40;
  font-size: var(--step-2);
  font-weight: 480;
  line-height: 1.4;
  color: var(--navy-ink);
  border: 0;
  margin: 0 0 14px;
  padding: 6px 0 6px 30px;
}
.pullquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(var(--gold), var(--gold-deep));
}
.pullquote-attr {
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--muted);
  padding-left: 30px;
  margin-bottom: 30px;
}

/* ---------- Diagrams ---------- */

.diagram-block { margin: 40px 0; }
.diagram-scroll { overflow-x: auto; padding-bottom: 6px; }
.diagram-scroll svg { display: block; min-width: 720px; width: 100%; height: auto; }
.diagram-caption {
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: 12px;
  max-width: 68ch;
}
.band-dark .diagram-caption { color: var(--on-dark-muted); }

.motif { margin: 6px 0 26px; }
.motif svg { display: block; max-width: 460px; width: 100%; height: auto; }

/* ---------- Timeline tier strip ---------- */

.tier-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 34px; }
.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-1);
  position: relative;
}
.tier::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--navy);
}
.tier .step-no {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.tier h3 { margin-bottom: 6px; }
.tier .price {
  font-family: var(--serif);
  font-variation-settings: "opsz" 40;
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--navy-deep);
  margin: 0 0 2px;
  line-height: 1.2;
}
.tier .price-note { font-size: var(--step--1); color: var(--muted); margin-bottom: 14px; }
.tier ul { margin-bottom: 0; }
.tier li { font-size: var(--step--1); margin-bottom: 7px; }
.tier p:last-of-type { margin-bottom: 0; }

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; margin: 0 0 24px; }
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 700px;
  font-size: var(--step--1);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
caption { text-align: left; color: var(--muted); font-size: var(--step--1); padding-bottom: 12px; caption-side: top; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  font-family: var(--sans);
  background: var(--navy-deep);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 0;
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--paper); }
td strong, tbody th { color: var(--navy-ink); }

/* ---------- Callouts ---------- */

.callout {
  background: var(--navy-tint);
  border: 1px solid #d3ddea;
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  padding: 22px 24px;
  margin: 0 0 26px;
}
.callout h3 { font-size: var(--step-0); font-family: var(--sans); font-weight: 650; margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

.placeholder-note {
  border: 1px dashed var(--gold-deep);
  background: var(--gold-tint);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: var(--step--1);
  color: #5c430f;
  margin: 0 0 24px;
}

/* Demo video placeholders */
.demo-slot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 26px;
}
.demo-frame {
  background: var(--navy-tint);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  margin-bottom: 20px;
  padding: 12px;
}
.demo-slot h2 { font-size: var(--step-1); margin-bottom: 8px; }
.demo-slot h3 {
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 650;
  margin: 18px 0 10px;
}
.demo-slot p { font-size: var(--step--1); color: var(--muted); max-width: none; }
.proves {
  font-size: var(--step--1);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 16px;
}
.proves strong { color: var(--gold-deep); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.12em; }

/* ---------- FAQ / Q-and-A ---------- */

.qa { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.qa:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

/* ---------- Inline list strip (custom solutions) ---------- */

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 24px; list-style: none; }
.chip-list li {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--navy-line);
  color: var(--on-dark);
  font-size: var(--step--1);
  border-radius: 999px;
  padding: 7px 16px;
  margin: 0;
}

/* ---------- Credential strip ---------- */

.cred-strip {
  font-size: var(--step--1);
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 34px 0;
  letter-spacing: 0.01em;
}
.cred-strip .sep { color: var(--line-strong); padding: 0 8px; }

/* ---------- Form ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 34px 32px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: var(--step--1);
  margin-bottom: 6px;
  color: var(--navy-ink);
}
.field .hint { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-footnote { font-size: var(--step--1); color: var(--muted); margin: 14px 0 0; }
button[type="submit"] {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  background: var(--gold);
  color: var(--navy-deep);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 14px 30px;
  cursor: pointer;
  transition: background 0.15s ease;
}
button[type="submit"]:hover { background: #c99534; border-color: #c99534; }

/* ---------- CTA band ---------- */

.cta-band { padding: 64px 0; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 58ch; }

/* ---------- Breadcrumb ---------- */

.breadcrumb { font-size: var(--step--1); color: var(--muted); padding: 20px 0 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-dark-muted);
  padding: 56px 0 36px;
  font-size: var(--step--1);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .logo { color: #fff; }
.site-footer .logo .logo-ops { color: var(--on-dark-muted); }
.site-footer .footer-h {
  color: #fff;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; max-width: none; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-tagline { max-width: 30ch; margin-top: 14px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--navy-line);
  font-size: 0.8rem;
  color: #8fa2b8;
}
.footer-bottom p { color: #8fa2b8; max-width: none; }

/* ---------- Scroll reveals (progressive enhancement) ----------
   Without JS nothing here applies: content is fully visible.
   js/main.js adds .js to <html> and .in-view as sections enter. */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--navy-deep);
  color: #fff;
  padding: 10px 16px;
  z-index: 60;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  h1 { font-size: var(--step-4); }
  .grid-3, .tier-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  h1 { font-size: var(--step-3); }
  h2 { font-size: var(--step-2); }
  .hero { padding: 52px 0 40px; }
  section { padding: 52px 0; }
  .hero .positioning, .pullquote { font-size: var(--step-1); }
  .grid-2, .grid-3, .tier-strip { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-card { padding: 24px 20px; }
}

@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle { display: none; }
  body { font-size: 12pt; background: #fff; }
}
