:root {
  --paper: #f7f8f6;
  --paper-2: #edf1f4;
  --ink: #15294a;
  --graphite: #2b2f36;
  --muted: #5a6270;
  --grid: #dde4ea;
  --red-pen: #c9352b;
  --green-pen: #1f7a4d;
  --highlight: #ffd84d;
  --highlight-ink: #15294a;
  --white: #ffffff;
  --radius-s: 6px;
  --radius-m: 12px;
  --wrap: 1120px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --pen: "Caveat", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font: 700 1rem/1 var(--font);
  font-stretch: 105%;
  padding: .95rem 1.4rem;
  border-radius: var(--radius-s);
  border: 2px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--highlight); color: var(--highlight-ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-primary:hover { background: #ffe57f; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--white); }
.btn-small { padding: .65rem 1rem; font-size: .9375rem; box-shadow: 2px 2px 0 var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 248, 246, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grid);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .8rem; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
.brand-name { font-weight: 900; font-stretch: 118%; color: var(--ink); font-size: 1.15rem; margin: 0; }
.brand-sub { font-size: .8rem; color: var(--muted); }
.nav-links { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--graphite); }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .nav-links { display: none; } .brand-sub { display: none; } }

/* Hero */
.hero {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--grid);
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(3rem, 8vw, 6rem);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 900;
  font-stretch: 112%;
  letter-spacing: -.02em;
  line-height: 1.02;
  max-width: 14ch;
}
.hero-lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 34em; margin: 1.5rem 0 2rem; color: var(--graphite); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-actions .btn-ghost { background: var(--paper); }
.hero-facts {
  list-style: none; padding: 0; margin: 2.25rem 0 0;
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.hero-facts li {
  background: var(--white); border: 1px solid var(--grid); border-radius: 999px;
  padding: .35rem .85rem; font-size: .9rem; font-weight: 600; color: var(--ink);
}
.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  border-radius: var(--radius-m);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  background: var(--paper-2);
  aspect-ratio: 560 / 654;
  object-fit: cover;
}
.hero-photo figcaption { margin-top: 1.1rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; order: -1; }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tint { background: var(--paper-2); }
.section-ink { background: var(--ink); color: #dfe6f0; }
.section-ink h2 { color: var(--white); }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 850; font-stretch: 108%; letter-spacing: -.01em; margin-bottom: 1.25rem; max-width: 22ch; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head p { color: var(--graphite); }
h3.sub { font-size: 1.25rem; margin: 2.5rem 0 1rem; }
.big { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink); font-weight: 500; }

/* Pain points */
.pains { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.pains li {
  position: relative; padding: 1rem 1.2rem 1rem 3.1rem;
  background: var(--white); border: 1px solid var(--grid); border-radius: var(--radius-s);
}
.pains li::before {
  content: "✗"; position: absolute; left: 1.15rem; top: .85rem;
  font-family: var(--pen); font-size: 1.6rem; line-height: 1; color: var(--red-pen);
}
.solution {
  margin-top: 2.25rem; padding-left: 1.2rem; border-left: 4px solid var(--highlight);
  font-size: 1.1rem; color: var(--ink);
}

/* FeBit */
.febit { border-top: 2px solid var(--ink); }
.febit-row {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 2rem;
  padding: 1.35rem 0; border-bottom: 1px solid #c9d3dc;
}
.febit-row strong { color: var(--ink); font-size: 1.08rem; line-height: 1.4; }
.febit-row p { margin: 0; }
.febit-head { padding: .8rem 0; font-size: .9rem; font-weight: 700; color: var(--muted); }
@media (max-width: 720px) {
  .febit-row { grid-template-columns: 1fr; gap: .4rem; }
  .febit-head { display: none; }
}

/* Compare */
.compare { margin-top: clamp(3rem, 6vw, 4.5rem); }
.compare h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); max-width: 30ch; margin-bottom: 1.75rem; font-stretch: 105%; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare-col { padding: 1.5rem; border-radius: var(--radius-m); border: 1px solid #c9d3dc; background: var(--paper); }
.compare-col h4 { font-size: 1.1rem; }
.compare-who { font-size: .92rem; color: var(--muted); margin: .25rem 0 1rem; }
.compare-col ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; }
.compare-us { background: var(--white); border: 2px solid var(--ink); }
@media (max-width: 720px) { .compare-grid { grid-template-columns: 1fr; } }

/* About + exam paper */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-copy p { max-width: 62ch; }
.story { font-size: 1.15rem; color: var(--ink); }
.exam {
  position: sticky; top: 110px;
  background-color: var(--white);
  background-image: linear-gradient(transparent 39px, #cfe0f2 40px);
  background-size: 100% 40px;
  border: 1px solid #c9d3dc;
  border-left: 3px double #e7a3a3;
  border-radius: 4px;
  padding: 1.25rem 1.5rem 1.5rem 2rem;
  box-shadow: 0 1px 0 #c9d3dc, 6px 6px 0 rgba(21, 41, 74, .08);
  transform: rotate(-1.2deg);
}
.exam-head { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; color: var(--ink); font-size: .95rem; padding-bottom: .9rem; }
.exam-lines { list-style: none; margin: 0; padding: 0; }
.exam-lines li { display: flex; align-items: center; justify-content: space-between; height: 80px; border-bottom: 1px dashed #d8e1ea; }
.exam-label { font-weight: 600; color: var(--graphite); }
.mark { font-family: var(--pen); font-weight: 700; font-size: 3.4rem; line-height: 1; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; }
.mark-fail { color: var(--red-pen); border: 3px solid var(--red-pen); transform: rotate(-8deg); }
.mark-pass { color: var(--green-pen); border: 3px solid var(--green-pen); transform: rotate(6deg); }
.exam-note { font-family: var(--pen); font-size: 1.7rem; color: var(--red-pen); margin: 1rem 0 0; transform: rotate(-2deg); }
.quals { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .exam { position: static; max-width: 420px; }
}

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.quote { margin: 0; padding: 1.6rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-m); display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--white); }
.quote figcaption { font-weight: 700; color: var(--highlight); font-size: .95rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.tier {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-m);
  padding: 1.75rem; display: flex; flex-direction: column;
}
.tier h3 { font-size: 1.5rem; font-weight: 900; font-stretch: 115%; }
.tier-schedule { color: var(--muted); margin: .35rem 0 1.25rem; font-weight: 600; }
.tier-price { margin: 0 0 1.25rem; color: var(--graphite); }
.tier-price .amount { font-size: 2.6rem; font-weight: 900; color: var(--ink); letter-spacing: -.02em; margin-right: .2rem; }
.tier ul { list-style: none; padding: 1.1rem 0 0; margin: 0 0 1.75rem; border-top: 1px solid var(--grid); display: grid; gap: .55rem; flex: 1; align-content: start; }
.tier li { padding-left: 1.6rem; position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--green-pen); font-weight: 800; }
.tier-actions { display: grid; gap: .6rem; }
.policy { margin-top: 2rem; max-width: 720px; padding: 1.25rem 1.4rem; border-left: 4px solid var(--ink); background: var(--white); border-radius: var(--radius-s); }
.policy h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.policy p { margin: 0; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; max-width: 520px; } }

/* Booking */
.book-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.book-facts { margin: 1.75rem 0 0; display: grid; gap: .9rem; }
.book-facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; border-top: 1px solid #c9d3dc; padding-top: .9rem; }
.book-facts dt { font-weight: 700; color: var(--ink); }
.book-facts dd { margin: 0; }
.calendar { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-m); overflow: hidden; min-height: 320px; }
.calendar .cal-inline { width: 100%; min-height: 640px; overflow: auto; }
.calendar-empty { padding: 2rem; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }

/* Form */
.form { margin-top: 2rem; display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.field input {
  font: inherit; padding: .85rem 1rem; border-radius: var(--radius-s);
  border: 2px solid #b9c4cf; background: var(--white); color: var(--graphite);
}
.field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(21, 41, 74, .2); }
.field input[aria-invalid="true"] { border-color: var(--red-pen); }
.hint { margin: -.3rem 0 0; font-size: .92rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: var(--green-pen); }
.form-status.err { color: var(--red-pen); }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--ink); color: #c8d2df; padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.footer .brand-name { color: var(--white); }
.footer p { margin: 0 0 .3rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: end; }
.footer-small { font-size: .88rem; color: #9fb0c6; text-align: right; }
.footer-small a { color: #dfe6f0; }
