:root {
  color-scheme: light;
  --ink: #211b3b;
  --muted: #625d78;
  --purple: #6843c2;
  --purple-deep: #40217d;
  --lilac: #eee8ff;
  --lilac-soft: #f7f4ff;
  --teal: #087e78;
  --teal-soft: #dff5ef;
  --lime: #d8f278;
  --paper: #fffefa;
  --line: #e5e0ee;
  --shadow: 0 20px 60px rgba(56, 37, 99, .12);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link {
  position: absolute; z-index: 10; top: 1rem; left: 1rem;
  padding: .7rem 1rem; border-radius: .5rem;
  background: var(--ink); color: white; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #087e78; outline-offset: 4px; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid rgba(80, 61, 120, .1); background: rgba(255,254,250,.9); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font: 700 1.15rem var(--font-display); letter-spacing: -.04em; }
.brand img { width: 38px; height: 38px; border-radius: 12px; }
.header-links { display: flex; align-items: center; gap: 1.35rem; }
.header-links a { color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; }
.header-links a:hover { color: var(--purple); }
.header-links .header-cta { color: white; padding: .68rem 1rem; border-radius: 999px; background: var(--purple); }
.header-links .header-cta:hover { background: var(--purple-deep); color: white; }

.hero {
  overflow: hidden; position: relative;
  padding: clamp(3.6rem, 8vw, 7.2rem) 0 5.5rem;
  background:
    radial-gradient(ellipse at 82% 28%, rgba(216,242,120,.47), transparent 25rem),
    radial-gradient(ellipse at 8% 85%, rgba(202,185,255,.35), transparent 26rem),
    #f3efff;
}
.hero::after {
  content: ""; position: absolute; right: -130px; bottom: -265px;
  width: 490px; height: 490px; border: 1px solid rgba(104,67,194,.12); border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(104,67,194,.035), 0 0 0 84px rgba(104,67,194,.025);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.2rem; color: var(--purple-deep); font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.045em; }
h1 { max-width: 720px; margin-bottom: .65rem; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; }
.welsh-subtitle { margin: 0 0 1.5rem; color: var(--purple); font-size: clamp(1rem, 2vw, 1.18rem); font-weight: 600; }
.hero-copy { max-width: 610px; margin-bottom: 1.65rem; color: #514b68; font-size: clamp(1rem, 1.45vw, 1.16rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .75rem 1.25rem; border: 2px solid transparent; border-radius: 999px; background: var(--purple); color: white; font-weight: 700; text-decoration: none; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; box-shadow: 0 8px 18px rgba(104,67,194,.18); }
.button:hover { transform: translateY(-2px); background: var(--purple-deep); box-shadow: 0 12px 24px rgba(104,67,194,.23); }
.button-secondary { background: transparent; border-color: #c9bddf; color: var(--purple-deep); box-shadow: none; }
.button-secondary:hover { background: white; color: var(--purple-deep); }
.hero-note { margin: 1rem 0 0; color: var(--muted); font-size: .84rem; }
.hero-art { position: relative; min-height: 365px; display: grid; place-items: center; }
.orbit { position: absolute; width: 340px; height: 340px; border: 1px solid rgba(104,67,194,.2); border-radius: 50%; }
.orbit::before, .orbit::after { content: ""; position: absolute; border: 1px solid rgba(104,67,194,.13); border-radius: 50%; inset: 24px; }
.orbit::after { inset: 54px; }
.paper-card { position: relative; width: min(330px, 84%); padding: 1.55rem 1.45rem 1.3rem; border: 1px solid #e6e0f0; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); transform: rotate(-3deg); }
.paper-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: .8rem; border-bottom: 1px solid var(--line); color: var(--purple); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.paper-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--ink); font: 700 .75rem var(--font-display); }
.paper-title { margin: 1rem 0 .9rem; font: 700 1.25rem var(--font-display); letter-spacing: -.04em; }
.question { display: grid; grid-template-columns: 26px 1fr; gap: .65rem; padding: .6rem 0; border-top: 1px dashed #e6e0f0; color: #514b68; font-size: .8rem; }
.question b { color: var(--teal); font-family: var(--font-display); }
.answer-line { height: 1px; margin-top: .5rem; background: #d9d2e7; }
.paper-foot { display: flex; justify-content: space-between; margin-top: .8rem; color: var(--muted); font-size: .69rem; }
.floating-stamp { position: absolute; right: 0; bottom: 36px; display: grid; place-items: center; width: 90px; height: 90px; border: 7px solid #f3efff; border-radius: 50%; background: var(--teal); color: white; text-align: center; font: 700 .72rem/1.2 var(--font-display); transform: rotate(9deg); box-shadow: 0 8px 22px rgba(8,126,120,.2); }

.trust-strip { padding: 1rem 0; background: var(--ink); color: #f9f7ff; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 2.2rem; align-items: center; text-align: center; }
.trust-item { color: #d8d1eb; font-size: .86rem; }
.trust-item strong { color: var(--lime); font-family: var(--font-display); font-weight: 600; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--lilac-soft); }
.section-heading { max-width: 760px; margin: 0 auto 2.7rem; text-align: center; }
.section-heading h2 { margin-bottom: .75rem; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; }
.section-heading p { color: var(--muted); }
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.unit-card { position: relative; padding: 1.45rem; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); transition: transform .2s ease, box-shadow .2s ease; }
.unit-card:hover { transform: translateY(-4px); box-shadow: 0 14px 35px rgba(56,37,99,.09); }
.unit-number { display: inline-block; margin-bottom: 1.1rem; padding: .35rem .65rem; border-radius: 6px; background: var(--teal-soft); color: #075e59; font: 700 .75rem var(--font-display); letter-spacing: .06em; }
.unit-card h3 { margin-bottom: .5rem; font-size: 1.23rem; line-height: 1.25; }
.unit-card p { margin-bottom: 0; color: var(--muted); font-size: .93rem; }
.unit-qualifier { display: block; margin-top: .9rem; color: var(--purple); font-size: .77rem; font-weight: 700; }
.explainer { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.explainer h2 { max-width: 390px; margin-bottom: .8rem; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; }
.explainer-intro { color: var(--muted); }
.tier-panel { padding: 1.7rem; border: 1px solid var(--line); border-radius: 18px; background: white; }
.tier-row { display: grid; grid-template-columns: 115px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.tier-row:first-child { padding-top: 0; }
.tier-row:last-child { padding-bottom: 0; border: 0; }
.tier-badge { align-self: start; width: fit-content; padding: .38rem .68rem; border-radius: 999px; background: var(--lilac); color: var(--purple-deep); font-size: .79rem; font-weight: 700; }
.tier-row p { margin: 0; color: var(--muted); font-size: .92rem; }
.tier-row strong { color: var(--ink); }
.feature-intro { display: grid; grid-template-columns: .8fr 1.2fr; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.feature-intro h2 { max-width: 430px; margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
.feature-intro p { max-width: 530px; margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { padding: 1.4rem 1.1rem 1.5rem 0; }
.feature + .feature { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.feature-index { display: block; margin-bottom: 1.2rem; color: var(--teal); font: 700 .78rem var(--font-display); }
.feature h3 { margin-bottom: .4rem; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: .87rem; }
.language-section { position: relative; overflow: hidden; background: var(--teal); color: white; }
.language-section::before { content: "Aa"; position: absolute; right: 4%; top: -5.5rem; color: rgba(255,255,255,.08); font: 700 23rem/.9 var(--font-display); letter-spacing: -.12em; pointer-events: none; }
.language-section .shell { position: relative; z-index: 1; }
.language-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 7rem); align-items: center; }
.language-copy h2 { margin-bottom: .8rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
.language-copy p { max-width: 490px; margin-bottom: 0; color: #d8f4ef; }
.language-section .eyebrow { color: var(--lime); }
.language-section .eyebrow::before { background: var(--lime); }
.language-quote { padding: 1.65rem; border-left: 3px solid var(--lime); background: rgba(0,0,0,.1); border-radius: 0 14px 14px 0; }
.language-quote p { margin-bottom: .65rem; color: white; font-size: 1.15rem; font-weight: 600; }
.language-quote small { color: #bfe7e1; }
.workflow { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.workflow h2 { margin-bottom: .8rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
.workflow-copy p { color: var(--muted); }
.step-list { margin: 1.3rem 0 0; padding: 0; list-style: none; counter-reset: steps; }
.step-list li { display: grid; grid-template-columns: 38px 1fr; gap: .8rem; align-items: start; margin: 1rem 0; counter-increment: steps; }
.step-list li::before { content: counter(steps, decimal-leading-zero); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lilac); color: var(--purple-deep); font: 700 .72rem var(--font-display); }
.step-list strong { display: block; font-size: .95rem; }
.step-list span { color: var(--muted); font-size: .87rem; }
.feedback-card { position: relative; padding: 1.6rem; border: 1px solid var(--line); border-radius: 18px; background: var(--lilac-soft); }
.feedback-card::before { content: "AFTER YOU FINISH"; display: inline-block; margin-bottom: 1rem; color: var(--purple); font: 700 .7rem var(--font-display); letter-spacing: .12em; }
.feedback-card h3 { margin-bottom: .5rem; font-size: 1.4rem; }
.feedback-card p { margin-bottom: 1.2rem; color: var(--muted); font-size: .92rem; }
.feedback-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.feedback-tags span { padding: .4rem .72rem; border-radius: 999px; background: white; color: var(--purple-deep); font-size: .78rem; font-weight: 700; }
.teacher-band { padding: 2.1rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; border-radius: 18px; background: #f0ecfa; }
.teacher-band h2 { margin-bottom: .5rem; font-size: 1.6rem; }
.teacher-band p { max-width: 680px; margin: 0; color: var(--muted); }
.teacher-band a { white-space: nowrap; }
.honesty { border-top: 1px solid var(--line); padding: 1.2rem 0; color: var(--muted); font-size: .84rem; }
.honesty strong { color: var(--ink); }
.cta-section { padding: clamp(4rem, 8vw, 6rem) 0; background: var(--purple-deep); color: white; }
.cta-layout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.cta-section .eyebrow { color: var(--lime); }
.cta-section h2 { max-width: 700px; margin-bottom: .7rem; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.05; }
.cta-section p { max-width: 660px; margin-bottom: 0; color: #ded4f6; }
.cta-section .button { background: var(--lime); color: var(--ink); box-shadow: none; }
.cta-section .button:hover { background: #e4f89d; }
.cta-caption { display: block; margin-top: .7rem; color: #c8bce7; text-align: center; font-size: .76rem; }
.site-footer { padding: 1.5rem 0; background: #211b3b; color: #cdc5de; font-size: .82rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #e4def0; text-underline-offset: 3px; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 325px; }
  .unit-grid { grid-template-columns: 1fr 1fr; }
  .explainer, .workflow { grid-template-columns: 1fr; gap: 1.8rem; }
  .feature-intro { grid-template-columns: 1fr; gap: .8rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .feature:nth-child(4) { border-top: 1px solid var(--line); }
  .language-grid { gap: 2rem; }
  .cta-layout { grid-template-columns: 1fr; }
  .cta-layout > div:last-child { justify-self: start; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 32px, 1160px); }
  .header-inner { min-height: 66px; }
  .brand { font-size: 1.02rem; }
  .brand img { width: 34px; height: 34px; }
  .header-links { gap: .7rem; }
  .header-links a:not(.header-cta) { display: none; }
  .header-links .header-cta { padding: .58rem .82rem; font-size: .8rem; }
  .hero { padding: 3.5rem 0 3rem; }
  h1 { font-size: clamp(2.45rem, 12vw, 3.5rem); }
  .hero-art { min-height: 300px; }
  .orbit { width: 280px; height: 280px; }
  .paper-card { width: min(300px, 83%); }
  .floating-stamp { right: 2px; bottom: 14px; width: 76px; height: 76px; font-size: .63rem; }
  .trust-inner { justify-content: flex-start; text-align: left; gap: .5rem 1.2rem; }
  .trust-item { font-size: .77rem; }
  .unit-grid { grid-template-columns: 1fr; }
  .unit-card { padding: 1.2rem; }
  .tier-panel { padding: 1.15rem; }
  .tier-row { grid-template-columns: 1fr; gap: .45rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 1.1rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .feature:first-child { border-top: 0; }
  .feature-index { margin-bottom: .6rem; }
  .language-grid { grid-template-columns: 1fr; }
  .language-section::before { right: -1rem; top: -2rem; font-size: 14rem; }
  .teacher-band { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.4rem; }
  .teacher-band a { justify-self: start; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
