/* ==========================================================================
   Skylight Education Solutions — chalk and slate
   Single stylesheet. Palette via custom properties.
   ========================================================================== */

:root {
  --paper: #F7F4ED;
  --panel: #EFEADC;
  --slate: #22302C;
  --slate-deep: #1B2724;
  --ink: #16211E;
  --body: #4E5C56;
  --muted: #8FA098;
  --hairline: #E2DCCF;
  --yellow: #E9B949;
  --coral: #E2664A;
  --coral-dark: #C9502F;
  --sage: #9BC47F;
  --yellow-dark: #D9A92F;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- type ---------- */

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.016em;
  line-height: 1.18;
  margin: 0 0 0.5em;
}

h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 21px; letter-spacing: -0.01em; }
h4 { font-size: 17px; }

p { margin: 0 0 1em; }

a { color: var(--ink); text-decoration-color: var(--coral); text-underline-offset: 3px; }
a:hover { color: var(--coral-dark); }

.measure { max-width: 66ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 14px;
}

.eyebrow--yellow { color: var(--yellow); }

.lead { font-size: 18.5px; color: var(--ink); }

strong { color: var(--ink); }

/* ---------- layout ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 88px 0; }
.section--tight { padding: 60px 0; }
.section--panel { background: var(--panel); }
.section--slate { background: var(--slate); }
.section--slate h2, .section--slate h3, .section--slate h4 { color: var(--paper); }
.section--slate p, .section--slate li { color: #E9E4D8; }
.section--slate a { color: var(--paper); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

/* skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; color: var(--paper); }

/* ---------- header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.wordmark {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark-sub {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 8px;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  color: var(--body);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 6px;
}
.site-nav a:hover { color: var(--ink); background: var(--panel); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--panel); }

.nav-toggle {
  display: none;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 8px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.4s var(--ease);
}

.btn-coral { background: var(--coral); color: var(--ink); }
.btn-coral:hover { background: var(--coral-dark); color: var(--ink); }

.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-dark); color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--panel); color: var(--ink); }

.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid var(--muted);
}
.btn-ghost-light:hover { background: var(--slate-deep); color: var(--paper); }

.header-cta { padding: 10px 20px; font-size: 15px; white-space: nowrap; }

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

/* ---------- hero ---------- */

.hero { border-bottom: 1px solid var(--hairline); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
}

.hero-left { padding: 96px 56px 96px 0; }
.hero-right {
  background: var(--slate);
  padding: 96px 0 96px 56px;
  display: flex;
  align-items: center;
}
.hero-right .rewrite-card { margin-right: 0; }

.hero h1 { font-size: 46px; }

/* ---------- rewrite card (signature component) ---------- */

.rewrite-card {
  background: var(--slate);
  border-radius: 12px;
  padding: 26px;
  width: 100%;
}
.hero-right .rewrite-card { background: transparent; padding: 26px 56px 26px 0; border-radius: 0; }

.rc-box {
  border: 1px solid rgba(247, 244, 237, 0.22);
  border-radius: 10px;
  padding: 22px 24px;
  background: var(--slate-deep);
}
.rc-before { margin-bottom: 18px; }

.rc-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.rc-label--coral { color: var(--coral); }
.rc-label--yellow { color: var(--yellow); }

.rc-task {
  color: var(--paper);
  font-size: 16.5px;
  margin: 0 0 14px;
}
.rc-task em { color: #E9E4D8; }

.rc-note {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 14.5px;
  margin: 0;
  color: #C9C4B6;
}

.dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.dot--coral { background: var(--coral); }
.dot--sage { background: var(--sage); }

/* animation: before appears, after slides up 600ms later, once */
.js .rc-before,
.js .rc-after {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js .rc-after { transform: translateY(28px); }
.js .rewrite-card.in .rc-before { opacity: 1; transform: none; }
.js .rewrite-card.in .rc-after {
  opacity: 1;
  transform: none;
  transition-delay: 0.6s;
}

/* ---------- reveal once ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- strands ---------- */

.strand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
}

.strand {
  background: var(--paper);
  padding: 34px 30px;
}
.strand--panel { background: var(--panel); }

.strand-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  display: block;
  margin-bottom: 14px;
}

.strand h3 { margin-bottom: 10px; }
.strand p { margin: 0; }

/* ---------- cards and panels ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 34px;
}

.panel-slate {
  background: var(--slate);
  border-radius: 12px;
  padding: 44px;
}
.panel-slate h2, .panel-slate h3 { color: var(--paper); }
.panel-slate p, .panel-slate li { color: #E9E4D8; }

/* deliverables list */
.deliverables {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.deliverables li {
  background: var(--slate-deep);
  border: 1px solid rgba(247, 244, 237, 0.16);
  border-radius: 10px;
  padding: 20px 22px;
  color: var(--paper);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.deliverables svg { flex: 0 0 auto; margin-top: 3px; }

/* sample excerpt (policy pack) */
.sample {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 22px 24px;
  margin-top: 18px;
}
.sample-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.sample p { font-size: 15px; margin-bottom: 0.6em; }

/* ---------- pricing ---------- */

.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.price-table th {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table td strong { font-size: 18px; }

.price-figure {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

/* badge */
.badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
}

/* ---------- sessions (programme page) ---------- */

.session {
  border-top: 1px solid var(--hairline);
  padding: 48px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
}
.session-meta .strand-num { margin-bottom: 8px; }
.session-time {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.session h2 { font-size: 27px; }
.session .rc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }

.kv { margin: 22px 0 0; }
.kv dt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 4px;
}
.kv dd { margin: 0 0 16px; }

/* ---------- testimonial ---------- */

.testimonial {
  border-left: 3px solid var(--yellow);
  padding: 6px 0 6px 26px;
  max-width: 62ch;
}
.testimonial p { font-size: 19px; color: var(--ink); }
.testimonial cite {
  font-style: normal;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- forms ---------- */

.form-block { max-width: 720px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-grid .full { grid-column: 1 / -1; }

label, legend {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1.5px solid var(--hairline);
  border-radius: 8px;
  padding: 11px 14px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
  border-color: var(--coral);
}
textarea { min-height: 130px; resize: vertical; }

.radio-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 4px; }
.radio-row label, .consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  color: var(--body);
  margin: 0;
}
.radio-row input, .consent input { margin-top: 4px; }

.consent { margin: 22px 0; }
.consent strong { color: var(--ink); }

.field-error-msg {
  display: none;
  color: var(--coral-dark);
  font-size: 14px;
  font-weight: 600;
  margin-top: 6px;
}
.field-error-msg.show { display: block; }

/* honeypot: positioned off-screen, never display:none */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-banner {
  border-radius: 10px;
  padding: 26px 28px;
  margin-bottom: 28px;
}
.form-banner h3 { margin-bottom: 6px; }
.form-banner p { margin-bottom: 0.5em; }
.form-banner p:last-child { margin-bottom: 0; }

.form-success {
  background: var(--slate);
  border-left: 4px solid var(--sage);
}
.form-success h3 { color: var(--paper); }
.form-success p { color: #E9E4D8; }

.form-error {
  background: var(--panel);
  border-left: 4px solid var(--coral);
}
.form-error h3 { color: var(--ink); }

/* email typo chip */
.typo-chip {
  display: none;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: 6px;
  padding: 7px 12px;
  cursor: pointer;
}
.typo-chip.show { display: inline-block; }
.typo-chip:hover { background: var(--yellow-dark); }

/* footer newsletter form (on slate) */
.site-footer label { color: var(--paper); }
.site-footer input[type="email"] {
  background: var(--slate);
  border-color: rgba(247, 244, 237, 0.25);
  color: var(--paper);
}
.site-footer .consent { color: #C9C4B6; }
.site-footer .form-success { background: var(--slate); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--slate-deep);
  color: #C9C4B6;
  padding: 72px 0 40px;
  margin-top: 0;
}
.site-footer h2, .site-footer h3 { color: var(--paper); font-size: 19px; }
.site-footer a { color: #E9E4D8; text-decoration-color: var(--muted); }
.site-footer a:hover { color: var(--yellow); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247, 244, 237, 0.14);
}

.footer-brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--paper);
  margin-bottom: 14px;
}
.footer-brand span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 8px;
}

.footer-tag { font-size: 15px; line-height: 1.8; color: #C9C4B6; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.footer-nav a { font-size: 15px; font-weight: 600; text-decoration: none; }

.footer-copy {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.footer-copy a { color: #C9C4B6; }

/* ---------- people (about) ---------- */

.person {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 26px;
  align-items: start;
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
}
.person-initials {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  background: var(--slate);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.person h3 { margin-bottom: 2px; }
.person-role {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}

/* ---------- misc ---------- */

.tag-list { list-style: none; margin: 0; padding: 0; }
.tag-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.tag-list li:last-child { border-bottom: 0; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 30px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}
.check-list--sage li::before { background: var(--sage); }
.section--slate .check-list li, .panel-slate .check-list li { color: #E9E4D8; }

.note {
  font-size: 14.5px;
  color: var(--muted);
}

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

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left { padding: 64px 0 40px; }
  .hero-right { padding: 48px 28px; margin: 0 -28px; }
  .hero-right .rewrite-card { padding: 0; background: transparent; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .session { grid-template-columns: 1fr; gap: 18px; }
  .session .rc-pair { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  h1 { font-size: 34px; }
  .hero h1 { font-size: 36px; }
  h2 { font-size: 27px; }
  .section { padding: 64px 0; }

  .header-inner { flex-wrap: wrap; padding: 14px 28px; gap: 12px; }
  .nav-toggle { display: inline-block; }
  .header-cta { display: none; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 2px;
    margin-left: 0;
    padding: 10px 0 6px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 12px; font-size: 16px; }

  .strand-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; gap: 28px; }
  .deliverables { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .person { grid-template-columns: 72px 1fr; gap: 18px; }
  .person-initials { width: 72px; height: 72px; font-size: 20px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .js .reveal,
  .js .rc-before,
  .js .rc-after {
    opacity: 1 !important;
    transform: none !important;
  }
}
