:root {
  --purple: #4D44E5;
  --purple-deep: #3A32C4;
  --purple-ink: #231E7A;
  --yellow: #F4B544;
  --white: #FFFFFF;
  --paper: #F7F5F1;
  --ink: #1D2041;
  --muted: #5B5F7A;
  --nav-h: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,.12);
}
.nav .wrap { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; }
.nav-brand img { width: 36px; height: auto; }
.nav-brand span { color: var(--yellow); }
.nav-brand b { font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; text-decoration: none; font-weight: 700;
  padding: 8px 14px; border-radius: 999px;
  transition: background .15s;
}
.nav-links a:hover, .nav-links a:focus-visible { background: rgba(255,255,255,.14); }
.nav-links a[aria-current="page"] { background: rgba(255,255,255,.18); }
.nav-links a.cta { background: var(--yellow); color: var(--purple-ink); }
.nav-links a.cta:hover, .nav-links a.cta:focus-visible { background: #F7C467; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: transparent; color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle:hover, .nav-toggle:focus-visible { background: rgba(255,255,255,.14); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav.open .nav-toggle .icon-open { display: none; }
.nav.open .nav-toggle .icon-close { display: block; }

/* Hero */
.hero {
  /* purple fades into the lavender the next section starts with, so there's no hard edge */
  background: linear-gradient(180deg, var(--purple) 0%, var(--purple) 62%, #7A73EE 80%, #C2BEF6 93%, #E6E4FB 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0 150px;
}
.brand { display: inline-flex; align-items: center; gap: 22px; }
.brand img { width: 112px; height: auto; }
.wordmark { font-size: clamp(56px, 10vw, 96px); font-weight: 800; letter-spacing: -1px; line-height: 1; }
.wordmark span { color: var(--yellow); }
.tagline { font-size: clamp(22px, 3.2vw, 30px); font-weight: 600; margin: 28px 0 8px; }
.subline { font-size: 17px; opacity: .8; margin: 0; overflow-wrap: anywhere; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 800; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-yellow { background: var(--yellow); color: var(--purple-ink); }
.btn-yellow:hover { background: #F7C467; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-deep); }

.btn .play { width: 18px; height: 18px; margin-left: -4px; }

/* Video pop-up */
.video-modal {
  width: min(960px, 92vw);
  padding: 0; border: 0; border-radius: 16px;
  background: #000; overflow: visible;
}
.video-modal::backdrop { background: rgba(15, 13, 50, .82); }
.video-frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-close {
  position: absolute; top: -52px; right: 0;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); color: var(--white); cursor: pointer;
  display: grid; place-items: center;
}
.video-close:hover, .video-close:focus-visible { background: rgba(255,255,255,.28); }
.video-close svg { width: 24px; height: 24px; }

/* Sections */
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); margin: 0 0 12px; }
.problem {
  padding: 88px 0 24px; text-align: center;
  /* soft lavender that fades into the page colour, so the purple hero doesn't end abruptly */
  background: linear-gradient(180deg, #E6E4FB 0%, #EFEEF9 40%, var(--paper) 100%);
}
.problem h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; line-height: 1.15; margin: 0; }
.problem h2 .slip { color: #E39A1B; }
.problem p { font-size: 19px; color: var(--muted); max-width: 640px; margin: 20px auto 0; }
/* the answer to the problem: bigger, bolder, in brand purple */
.problem p.solution {
  font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; line-height: 1.3;
  color: #7C78B8; /* softer lavender-grey so the brand name stands out */
  margin-top: 28px; max-width: none;
}
.problem p.solution .brand-name {
  color: var(--purple); font-weight: 800;
  white-space: nowrap;
}
.problem p.solution .brand-name img {
  height: 1.05em; width: auto;
  vertical-align: -0.2em; margin-right: .3em;
}
.problem p.solution mark {
  color: #5B57A0;
  background: none;
  /* thin Klubbo-blue underline sitting below the letters (clear of the "p" descender) */
  text-decoration: underline;
  text-decoration-color: rgba(77,68,229,.6);
  text-decoration-thickness: 2px;
  text-underline-offset: .32em;
  text-decoration-skip-ink: none;
  white-space: nowrap;
}

.features { padding: 64px 0 88px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 1px 2px rgba(29,32,65,.06), 0 8px 24px rgba(29,32,65,.06);
}
.card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: #ECEBFD; color: var(--purple);
  font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); }

.rules { background: var(--purple); color: var(--white); padding: 88px 0; }
.rules .eyebrow { color: var(--yellow); }
.rules h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; margin: 0 0 32px; }
.rule-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.rule-list li {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 700;
}
.check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--yellow); color: var(--purple-ink);
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.rules .closing { margin: 32px 0 0; font-size: 19px; }
.rules .closing strong { color: var(--yellow); }

/* Contact band on home page */
.contact-band { padding: 80px 0; text-align: center; }
.contact-band h2 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; margin: 0 0 10px; }
.contact-band p { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.contact-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-outline { border-color: var(--purple); color: var(--purple); }
.btn-outline:hover { background: #ECEBFD; }

/* Contact page */
.page-hero { background: var(--purple); color: var(--white); text-align: center; padding: 64px 0 72px; }
.page-hero h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; margin: 0 0 12px; line-height: 1.1; }
.page-hero p { font-size: 19px; opacity: .9; margin: 0 auto; max-width: 620px; }
.contact-layout {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px;
  margin-top: -40px; padding-bottom: 88px; align-items: start;
}
.panel {
  background: var(--white); border-radius: 20px; padding: 28px;
  box-shadow: 0 1px 2px rgba(29,32,65,.06), 0 8px 24px rgba(29,32,65,.08);
}
.panel h2 { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.panel > p { color: var(--muted); margin: 0 0 20px; }
.form-frame { width: 100%; height: 900px; border: 0; border-radius: 12px; background: var(--paper); }
.form-placeholder {
  border: 2px dashed #CFCCF6; border-radius: 14px; padding: 32px 24px;
  text-align: center; color: var(--muted); background: #FAFAFF;
}
.form-placeholder strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.email-address {
  display: block; font-weight: 800; font-size: 18px; color: var(--purple);
  margin: 4px 0 18px; overflow-wrap: anywhere; text-decoration: none;
}
.email-address:hover { text-decoration: underline; }
.side-note { font-size: 15px; color: var(--muted); margin: 18px 0 0; }
.btn-block { width: 100%; justify-content: center; }
.btn-copy { background: #ECEBFD; color: var(--purple); margin-top: 10px; }
.btn-copy:hover { background: #E0DEFB; }

/* Footer */
footer { background: var(--purple-ink); color: rgba(255,255,255,.75); padding: 32px 0; font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
footer .mini { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 20px; text-decoration: none; }
footer .mini img { width: 34px; height: auto; }
footer .mini span { color: var(--yellow); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,.85); }
.footer-links a:hover { color: var(--white); text-decoration: underline; }

@media (max-width: 860px) {
  .grid, .rule-list { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--purple); padding: 8px 16px 18px;
    box-shadow: 0 12px 24px rgba(29,32,65,.25);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 16px; border-radius: 12px; font-size: 18px; }
  .nav-links a.cta { text-align: center; margin-top: 6px; }
}
@media (max-width: 560px) {
  .hero { padding: 56px 0 120px; }
  .brand { gap: 14px; }
  .brand img { width: 72px; }
  .grid, .rule-list { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .panel { padding: 22px 18px; }
  .form-frame { height: 1000px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
