/* Fonts are self-hosted (SIL Open Font Licence, see fonts/OFL-*.txt).
   Copied from Hazel's @hazel/fonts package; no Google Fonts requests. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Prompt";
  src: url("/fonts/prompt-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1e2a5e;
  --klein-blue: #1624a1;
  --platinum: #d8dbe2;
  --white: #ffffff;
  --text: #1e2a5e;
  --muted: #4a5170;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Prompt", var(--font-body);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
  background: var(--platinum);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.card {
  width: 100%;
  max-width: 40rem;
  padding: 3rem 2.5rem;
  background: var(--white);
  border-radius: 1rem;
  text-align: center;
}

.logo {
  margin: 0 0 1.25rem;
  line-height: 0;
}

.logo img {
  width: 100%;
  max-width: 26rem;
  height: auto;
}

.lead {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  line-height: 1.3;
  color: var(--navy);
}

.badge {
  display: inline-block;
  margin: 0 0 1.75rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: var(--klein-blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.card p:not(.lead):not(.badge) {
  margin: 0 auto 0.75rem;
  max-width: 32rem;
}

a {
  color: var(--klein-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--navy);
}

a:focus-visible {
  outline: 3px solid var(--klein-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 30rem) {
  .card {
    padding: 2rem 1.25rem;
  }
}

/* The Business Show QR page (/event). Phone first: one column, the
   booking widget on the page background so its own card is the panel. */
body.event-page {
  justify-content: flex-start;
  gap: 0;
  padding: 0 0 2rem;
}

.event-header {
  width: 100%;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  line-height: 0;
}

.event-header img {
  width: 100%;
  max-width: 16rem;
  height: auto;
}

.event-strip {
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 0.875rem 1rem;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.event-strip p {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 0.9375rem;
}

.event-strip .event-strip-show {
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.event {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 40rem;
  padding: 0 1rem;
}

.event h1,
.event h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

.event h1 {
  font-size: clamp(1.75rem, 7vw, 2.25rem);
}

.event h2 {
  font-size: 1.25rem;
}

.event p {
  margin: 0 0 0.75rem;
}

.event-section {
  padding: 1.75rem 1.25rem;
  background: var(--white);
  border-radius: 1rem;
}

.event-section > :last-child,
.event-book > :last-child {
  margin-bottom: 0;
}

.event-lead {
  font-size: 1.125rem;
}

.event-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border: 2px solid var(--klein-blue);
  border-radius: 999px;
  background: var(--klein-blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.btn:focus-visible {
  border-radius: 999px;
}

.btn-secondary {
  background: var(--white);
  color: var(--klein-blue);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}

.event-note,
.event-fallback {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Ticks are drawn in CSS: tick characters can render as emoji. */
.event-ticks {
  display: grid;
  gap: 0.625rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.event-ticks li {
  position: relative;
  padding-left: 1.875rem;
  font-weight: 600;
}

.event-ticks li::before {
  content: "";
  position: absolute;
  top: 0.25em;
  left: 0.375rem;
  width: 0.4375rem;
  height: 0.875rem;
  border: solid var(--klein-blue);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.event-book {
  padding: 0.5rem 0.25rem;
  scroll-margin-top: 1rem;
}

.event-page .footer {
  margin-top: 2rem;
  padding: 0 1rem;
}

/* Hazel's booking widget reads these through its shadow root. Platinum
   is a decorative edge only (as in Hazel's own theme); input borders use
   --muted, because a text box's edge needs 3:1 against white. */
kuhr-booking {
  display: block;
  margin: 1rem 0;
  text-align: left;
  --cb-primary: var(--klein-blue);
  --cb-primary-text: var(--white);
  --cb-accent: var(--navy);
  --cb-bg: var(--white);
  --cb-text: var(--navy);
  --cb-muted: var(--muted);
  --cb-border: var(--platinum);
  --cb-input-border: var(--muted);
  --cb-radius: 1rem;
  --cb-font: var(--font-body);
  --cb-heading-font: var(--font-display);
}

@media (min-width: 40rem) {
  .event-section {
    padding: 2.25rem 2rem;
  }

  .event-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ------------------------------------------------------------------
   Home page (/). Built from the Hazel export of the "LearnSure"
   service page. Section colours are Kate's brand swatches (Hazel's
   --color-ku-* tokens); text stays LearnSure navy. Scoped to
   body.home so the holding-style 404 and /event keep their layout.
   ------------------------------------------------------------------ */
:root {
  --oxford: #000834;
  --mardi: #97026d;
  --teal: #007878;
  --light-pink: #b890b8;
  --cyan: #7cd1d1;
  --light-grey: #f3f4f7;
  --pink-tint: #f4ecf4;
  --line: #d8dbe2;
}

body.home {
  display: block;
  min-height: 0;
  padding: 0;
  background: var(--white);
}

.home h1,
.home h2,
.home h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

.home h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
}

.home h2 {
  margin: 0 0 1rem;
  max-width: 44rem;
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
}

.home h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.home p {
  margin: 0 0 1rem;
}

.home .centred {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.wrap-narrow {
  max-width: 50rem;
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--white);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-logo {
  line-height: 0;
}

.site-logo img {
  width: 10rem;
  height: auto;
}

.btn-small {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

/* Room for the sticky header when a link jumps to a section. */
.section[id] {
  scroll-margin-top: 4.5rem;
}

.section-tint,
.bg-light-grey {
  background: var(--light-grey);
}

.bg-light-pink {
  background: var(--pink-tint);
}

.section-body {
  max-width: 46rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.actions-centred {
  justify-content: center;
}

/* Hero */
.hero {
  padding: 3rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-body {
  font-size: 1.1875rem;
  color: var(--muted);
}

.hero-picture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
}

/* Tick lists. Ticks are drawn in CSS: tick characters can render as
   emoji. Colour comes from the accent class. */
.ticks {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
  --accent: var(--klein-blue);
}

.ticks li {
  position: relative;
  padding-left: 2rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0.4375rem;
  width: 0.4375rem;
  height: 0.875rem;
  border: solid var(--accent);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.accent-teal {
  --accent: var(--teal);
}

.accent-mardi {
  --accent: var(--mardi);
}

/* Cards */
.cards {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-item {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
}

.card-item > :last-child {
  margin-bottom: 0;
}

.cards.edge-top .card-item {
  border-top: 4px solid var(--accent);
}

.section-tint .card-item {
  border-color: transparent;
}

.edge-top .card-item p:only-child {
  font-weight: 600;
  color: var(--navy);
}

.icon-cards .card-item {
  text-align: left;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background: #e6e8f6;
  color: var(--klein-blue);
}

.callout {
  margin: 1.25rem 0 0;
  padding: 1.25rem 1.5rem;
  border-radius: 0.875rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
}

.home .callout h3,
.callout p {
  margin: 0;
  color: var(--white);
}

.home .callout h3 {
  margin-bottom: 0.25rem;
}

.callout p {
  font-weight: 400;
}

p.callout {
  font-weight: 600;
}

/* Testimonials */
.testimonials {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.testimonial {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--white);
  border-radius: 0.875rem;
  border-top: 4px solid var(--light-pink);
}

.testimonial blockquote {
  flex: 1;
  margin: 0 0 1.25rem;
}

.testimonial blockquote p {
  margin: 0;
}

.testimonial blockquote p::before {
  content: "\201C";
}

.testimonial blockquote p::after {
  content: "\201D";
}

.testimonial figcaption {
  display: flex;
  flex-direction: column;
  font-size: 0.9375rem;
}

.t-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
}

.t-role {
  color: var(--muted);
}

/* Prices */
.prices {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.price-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
}

.price-card-best {
  border: 3px solid var(--klein-blue);
}

.home .price-badge {
  position: absolute;
  top: 0;
  left: 1.5rem;
  margin: 0;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  background: var(--klein-blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  transform: translateY(-50%);
}

.home .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem;
  margin: 0.75rem 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--navy);
}

.price-from,
.price-vat {
  color: var(--muted);
  font-size: 0.9375rem;
}

.price-card .ticks {
  gap: 0.625rem;
  font-size: 0.9375rem;
}

/* FAQ */
.faq {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1.125rem 2.5rem 1.125rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 1.45rem;
  right: 0.5rem;
  width: 0.625rem;
  height: 0.625rem;
  border: solid var(--klein-blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  top: 1.7rem;
  transform: rotate(-135deg);
}

.faq summary:focus-visible {
  outline: 3px solid var(--klein-blue);
  outline-offset: 2px;
}

.faq details p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

/* CTA band: Oxford to Klein */
.band {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--oxford), var(--klein-blue));
  color: var(--white);
  text-align: center;
}

.home .band h2 {
  margin-left: auto;
  margin-right: auto;
  color: var(--white);
}

.band p {
  font-size: 1.125rem;
}

.btn-on-dark {
  border-color: var(--white);
  background: var(--white);
  color: var(--klein-blue);
}

.btn-on-dark:hover {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--oxford);
}

.band .btn:focus-visible {
  outline-color: var(--cyan);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--light-grey);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer p:last-child {
  margin: 0;
}

@media (min-width: 40rem) {
  .site-logo img {
    width: 12rem;
  }

  .ticks-2,
  .cards-2,
  .cards-3,
  .cards-4,
  .prices {
    grid-template-columns: repeat(2, 1fr);
  }

  .ticks-2 {
    column-gap: 2rem;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .hero {
    padding: 4.5rem 0 5rem;
  }

  .cards-3,
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-4,
  .prices {
    grid-template-columns: repeat(4, 1fr);
  }
}
