/* ============================================================
   Inkwell Tuition — demo site
   Identity: "the mark" — marked exam scripts, report-card data
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Hanken+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --paper:     #F3F4EE;
  --paper-2:   #FBFBF7;
  --ink:       #15241C;
  --ink-soft:  #4B5A50;
  --green:     #16704A;
  --green-deep:#0E5538;
  --highlight: #F4CB45;
  --red:       #CE3B2B;
  --line:      #D9DBD0;

  --display: 'Fraunces', Georgia, serif;
  --body:    'Hanken Grotesk', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1120px;
  --r: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
}

/* the signature: highlighter swipe behind a word */
.mark {
  position: relative;
  white-space: nowrap;
}
.mark::after {
  content: "";
  position: absolute;
  left: -.06em; right: -.06em; bottom: .08em;
  height: .42em;
  background: var(--highlight);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  animation: swipe .7s cubic-bezier(.2,.7,.3,1) .35s forwards;
  border-radius: 2px;
}
@keyframes swipe { to { transform: scaleX(1); } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--body); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 100px;
  border: 1.5px solid var(--ink);
  cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* ---------- nav ---------- */
.stickytop { position: sticky; top: 0; z-index: 100; }
.nav {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.logo .nib { width: 13px; height: 13px; background: var(--green); border-radius: 2px 2px 2px 7px; transform: rotate(45deg); display: inline-block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 15px; color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { font-size: 14.5px !important; padding: 9px 18px; border: 1.5px solid var(--ink); border-radius: 100px; color: var(--ink) !important; }
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 18px 0 22px; }
.hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 30ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); margin-top: 18px; }

/* report card (hero signature object) */
.report {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 20px 50px -28px rgba(21,36,28,.4);
  overflow: hidden;
  transform: rotate(1.4deg);
}
.report:hover { transform: rotate(0); transition: transform .3s ease; }
.report-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px dashed var(--line); }
.report-top span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.report-top b { font-family: var(--mono); font-weight: 600; color: var(--green); }
.report-body { padding: 8px 20px 18px; }
.grade-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.grade-row:last-child { border-bottom: 0; }
.grade-subj { font-weight: 600; font-size: 15.5px; }
.grade-old { font-family: var(--mono); color: var(--ink-soft); text-decoration: line-through; font-size: 15px; }
.grade-arrow { color: var(--green); font-weight: 700; }
.grade-new { font-family: var(--mono); font-weight: 600; color: var(--ink); background: var(--highlight); padding: 2px 9px; border-radius: 6px; font-size: 15.5px; }
.report-foot { padding: 13px 20px; background: var(--green); color: #fff; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }

/* ---------- ledger strip ---------- */
.ledger { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.ledger .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.ledger-cell { padding: 26px 20px; border-left: 1px solid var(--line); }
.ledger-cell:first-child { border-left: 0; }
.ledger-num { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--green); letter-spacing: -.02em; }
.ledger-lbl { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- generic section ---------- */
.section { padding: 80px 0; }
.section-head { max-width: 56ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 12px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 18px; }

/* programmes */
.prog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.prog {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 26px 24px; transition: transform .18s ease, box-shadow .18s ease;
}
.prog:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -26px rgba(21,36,28,.4); }
.prog-level { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.prog h3 { font-size: 23px; margin: 8px 0 10px; }
.prog p { color: var(--ink-soft); font-size: 15.5px; }
.prog-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); }

/* why — tick list */
.why { background: var(--ink); color: var(--paper); }
.why .section-head h2 { color: var(--paper); }
.why .section-head p { color: #B7C2BA; }
.why .eyebrow { color: var(--highlight); }
.tick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.tick { display: flex; gap: 16px; align-items: flex-start; }
.tick .check { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin-top: 2px; }
.tick .check svg { width: 16px; height: 16px; }
.tick h3 { font-size: 19px; color: var(--paper); margin-bottom: 5px; }
.tick p { color: #B7C2BA; font-size: 15px; }

/* results */
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; }
.quote .jump { font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--green); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }
.quote .jump s { color: var(--ink-soft); }
.quote blockquote { margin: 0 0 18px; font-family: var(--display); font-size: 19px; line-height: 1.4; }
.quote .who { font-size: 14px; color: var(--ink-soft); margin-top: auto; }
.quote .who b { color: var(--ink); font-weight: 600; }

/* enquiry / cta */
.enquire { background: var(--green); color: #fff; }
.enquire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.enquire .eyebrow { color: var(--highlight); }
.enquire h2 { color: #fff; font-size: clamp(28px,4vw,40px); margin: 12px 0 16px; }
.enquire p { color: #DDEFE4; font-size: 17px; max-width: 36ch; }
.enquire .perk { font-family: var(--mono); font-size: 13px; color: #BCE0CC; margin-top: 18px; display: flex; align-items: center; gap: 9px; }
.form { background: var(--paper-2); color: var(--ink); border-radius: var(--r); padding: 28px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; font-family: var(--body); font-size: 15.5px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,112,74,.15); }
.form .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }
.form-success { display: none; text-align: center; padding: 22px 8px; }
.form-success.show { display: flex; flex-direction: column; align-items: center; }
.form-success .stamp { width: 56px; height: 56px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); font-size: 15px; max-width: 34ch; }
.success-cta { margin-top: 20px; text-decoration: none; }
.success-demo-note { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); margin-top: 14px; }

/* footer */
.footer { padding: 50px 0 40px; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer .logo { margin-bottom: 10px; }
.footer p { color: var(--ink-soft); font-size: 14px; max-width: 32ch; }
.footer-links { display: flex; gap: 44px; }
.footer-col h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; font-weight: 600; }
.footer-col a { display: block; font-size: 14.5px; margin-bottom: 8px; color: var(--ink); }
.footer-col a:hover { color: var(--green); }
.demo-banner {
  background: var(--ink); color: var(--paper); text-align: center;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; padding: 9px 16px;
}
.demo-banner a { color: var(--highlight); text-decoration: underline; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero-grid, .enquire-grid { grid-template-columns: 1fr; gap: 38px; }
  .report { transform: none; max-width: 420px; }
  .ledger .wrap { grid-template-columns: repeat(2, 1fr); }
  .ledger-cell:nth-child(3) { border-left: 0; }
  .prog-grid, .tick-grid, .results-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .mark::after { transform: scaleX(1); }
  .reveal { opacity: 1; transform: none; }
}
