/* More Mathematics – moremathematics.co.uk */
:root {
  --blue: #0F75BC;
  --blue-dark: #0b5a91;
  --orange: #F7941E;
  --orange-dark: #d97a08;
  --green: #8CC640;
  --ink: #1f2a37;
  --ink-soft: #4a5565;
  --tint: #f3f8fc;
  --line: #dfe7ef;
  --white: #ffffff;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { font-family: "Quicksand", sans-serif; font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.2em 0 0.5em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
section { padding: 56px 0; }
section.tint { background: var(--tint); }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.small { font-size: 0.9rem; color: var(--ink-soft); }
.eyebrow, .step {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  font-weight: 700; color: var(--orange-dark); margin: 0 0 0.6em;
}

/* Buttons */
.btn {
  display: inline-block; background: var(--orange); color: var(--white);
  padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--orange);
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-small { padding: 8px 18px; font-size: 0.95rem; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand img { display: block; width: 230px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a.btn { color: var(--white); }
.menu-toggle, .menu-button { display: none; }

@media (max-width: 860px) {
  .menu-button {
    display: block; width: 44px; height: 44px; cursor: pointer; position: relative;
  }
  .menu-button span, .menu-button span::before, .menu-button span::after {
    position: absolute; left: 10px; width: 24px; height: 3px; border-radius: 2px; background: var(--ink); content: "";
  }
  .menu-button span { top: 20px; }
  .menu-button span::before { left: 0; top: -8px; }
  .menu-button span::after { left: 0; top: 8px; }
  .site-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 16px 20px 24px; border-bottom: 1px solid var(--line);
  }
  .menu-toggle:checked ~ .site-nav { display: flex; }
  .brand img { width: 190px; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--tint), var(--white)); padding: 72px 0; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; display: block; box-shadow: 0 18px 40px rgba(15, 117, 188, 0.15); }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* Key facts under the hero */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.facts div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; text-align: center; }
.facts span { display: block; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 700; color: var(--orange-dark); }
.facts strong { font-family: "Quicksand", sans-serif; font-size: 1.15rem; color: var(--blue); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .photo-strip img { min-width: 200px; height: 200px; } }

/* Statement strip */
.statement { padding: 48px 0; }
.statement p {
  font-family: "Quicksand", sans-serif; font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.4;
  border-left: 6px solid var(--orange); padding-left: 24px; margin: 0; color: var(--ink);
}

/* Photo strip */
.photo-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 8px; }
.photo-strip img { flex: 0 0 auto; width: calc((100% - 48px) / 7); min-width: 170px; height: 240px; object-fit: cover; border-radius: 12px; scroll-snap-align: start; }

.section-title { margin-top: 0; }
.eyebrow.center { text-align: center; }

/* Step cards with photos */
.card.photo-card { padding: 0; overflow: hidden; }
.photo-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.photo-card img.pos-top { object-position: center 30%; }
.card-body { padding: 22px 24px 26px; }
.tint .btn-ghost { background: var(--white); }
.tint p.center { margin-top: 32px; }

/* Founder row */
.founder-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.founder-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.founder-row h2 { margin-top: 0; }
@media (max-width: 760px) { .founder-row { grid-template-columns: 1fr; } }

/* Page heads with a photo */
.page-head.with-photo { padding: 48px 0; }
.head-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.head-inner img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
@media (max-width: 760px) { .head-inner { grid-template-columns: 1fr; } .head-inner img { aspect-ratio: 16 / 9; } }

/* Cards */
.cards { display: grid; gap: 24px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
@media (max-width: 760px) { .cards.three, .cards.two { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  border-top: 4px solid var(--blue);
}
.link-card { text-decoration: none; color: var(--ink); display: block; }
.link-card:hover { border-color: var(--orange); }
.link-card img { width: 56px; margin-bottom: 8px; }
.link-card p { color: var(--ink-soft); margin: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two-col h2 { margin-top: 0; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.founder { max-width: 760px; }
.founder h2 { margin-top: 0; }

/* How it works steps */
.page-head { background: var(--tint); padding: 56px 0 40px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 64px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-family: "Quicksand", sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.note { background: var(--tint); border-left: 4px solid var(--orange); padding: 18px 22px; border-radius: 8px; margin: 28px 0; }

/* Pricing */
.price-card { border: 2px solid var(--blue); border-radius: 16px; padding: 28px; }
.price { font-family: "Quicksand", sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--blue); margin: 0 0 8px; }
.price span { font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.prices { width: 100%; border-collapse: collapse; margin: 12px 0; }
.prices td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }

/* FAQs */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.08rem; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

/* Call to action */
.cta { background: var(--blue); color: var(--white); text-align: center; }
.cta h2 { color: var(--white); margin-top: 0; }
.cta p { max-width: 620px; margin: 0 auto 24px; }

/* Footer */
.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding: 44px 0 20px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-size: 1rem; margin-bottom: 10px; }
.footer-grid p { margin: 0 0 6px; color: var(--ink-soft); }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--blue); }
.footer-logo { width: 200px; margin-bottom: 10px; }
.copyright { margin-top: 28px; font-size: 0.85rem; color: var(--ink-soft); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
