:root {
    --wagona-green: #0d8c3a;
    --wagona-green-dark: #08662e;
    --wagona-mint: #dff8ed;
    --wagona-bright: #00d783;
    --wagona-red: #ef2538;
    --wagona-forest: #092e27;
    --wagona-ink: #17253d;
    --wagona-muted: #667085;
    --wagona-paper: #fffdf9;
    --wagona-line: #dfe8e4;
    --wagona-shadow: 0 20px 55px rgba(8, 50, 38, .12);
    --wagona-serif: Georgia, "Times New Roman", serif;
    --wagona-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--wagona-ink);
    background: var(--wagona-paper);
    font-family: var(--wagona-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: #fff;
    background: var(--wagona-forest);
    border-radius: 8px;
    transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 4px;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    height: 94px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(9, 46, 39, .1);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1460px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
}

.site-brand { flex: 0 0 auto; }
.site-brand img { width: 76px; height: 78px; object-fit: contain; }

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.1vw, 38px);
}

.site-nav a {
    position: relative;
    color: var(--wagona-green-dark);
    font-size: .92rem;
    font-weight: 750;
    text-decoration: none;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--wagona-red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }

.site-nav .nav-signup {
    padding: 10px 18px;
    color: #fff;
    background: var(--wagona-green);
    border-radius: 999px;
}

.site-nav .nav-signup::after { display: none; }

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--wagona-line);
    border-radius: 12px;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--wagona-forest);
}

.heritage-hero {
    position: relative;
    display: flex;
    min-height: calc(100svh - 94px);
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: var(--wagona-forest) url('/images/website/heritage/hero-home.png') center 44% / cover no-repeat;
}

.heritage-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 31, 26, .84) 0%, rgba(3, 31, 26, .62) 43%, rgba(3, 31, 26, .12) 75%);
}

.heritage-hero__content {
    position: relative;
    z-index: 1;
    width: min(1460px, calc(100% - 48px));
    margin: 0 auto;
    padding: 80px 5vw 130px;
}

.heritage-hero h1 {
    max-width: 730px;
    margin: 14px 0 24px;
    font-family: var(--wagona-serif);
    font-size: clamp(4.2rem, 8vw, 8.5rem);
    font-weight: 700;
    line-height: .84;
    letter-spacing: -.055em;
}

.heritage-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    font-weight: 650;
}

.eyebrow {
    display: inline-block;
    color: var(--wagona-green);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow--light { color: #a9efc4; }

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
}

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.play-button span {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    color: var(--wagona-forest);
    background: #fff;
    border: 7px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background-clip: padding-box;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    color: #fff;
    background: var(--wagona-green);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(13, 140, 58, .22);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.button:hover { background: var(--wagona-green-dark); transform: translateY(-2px); }
.button--red { background: var(--wagona-red); box-shadow: 0 10px 25px rgba(239, 37, 56, .24); }
.button--red:hover { background: #c9192b; }
.button--light { color: var(--wagona-forest); background: #fff; }
.button--light:hover { color: #fff; }

.hero-scroll {
    position: absolute;
    z-index: 1;
    bottom: 28px;
    left: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    text-decoration: none;
    transform: translateX(-50%);
}

.audience-section, .numbers-section, .recognition-section, .testimonials-section, .content-section, .section {
    padding: clamp(70px, 8vw, 120px) 24px;
}

.section-heading {
    width: min(820px, 100%);
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading--left { width: min(1460px, 100%); text-align: left; }

.section-heading h2, .method-section h2, .closing-cta h2, .page-hero h1 {
    margin: 8px 0 0;
    font-family: var(--wagona-serif);
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.audience-grid, .numbers-grid, .recognition-grid, .testimonial-grid, .content-section__grid {
    display: grid;
    width: min(1460px, 100%);
    margin: 0 auto;
    gap: 22px;
}

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

.audience-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--wagona-line);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(9, 46, 39, .07);
}

.audience-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    content: "";
    background: linear-gradient(90deg, var(--wagona-red), var(--wagona-green));
}

.audience-card img { width: 86px; height: 86px; margin-bottom: 18px; object-fit: contain; }
.audience-card h3 { margin: 0; font-family: var(--wagona-serif); font-size: 1.65rem; }
.audience-card p { min-height: 78px; color: var(--wagona-muted); }
.audience-card a { color: var(--wagona-green-dark); font-weight: 800; text-decoration: none; }

.teacher-story {
    display: grid;
    grid-template-columns: minmax(280px, 500px) minmax(0, 720px);
    align-items: center;
    justify-content: center;
    gap: clamp(38px, 8vw, 120px);
    padding: clamp(70px, 8vw, 120px) 24px 0;
    background: linear-gradient(180deg, #fff 0%, #edfff7 100%);
}

.teacher-story__portrait { align-self: end; }
.teacher-story__portrait img { width: 100%; max-height: 610px; object-fit: contain; object-position: bottom; }
.teacher-story blockquote { position: relative; margin: 0; padding-bottom: 70px; }
.teacher-story blockquote > p { margin: 0; font-family: var(--wagona-serif); font-size: clamp(1.8rem, 3.2vw, 3.25rem); font-weight: 700; line-height: 1.2; }
.quote-mark { display: block; height: 60px; color: var(--wagona-red); font-family: var(--wagona-serif); font-size: 7rem; line-height: 1; }
.teacher-story footer { display: flex; flex-direction: column; margin-top: 28px; }
.teacher-story footer strong { color: var(--wagona-green-dark); font-size: 1.15rem; }
.teacher-story footer span { color: var(--wagona-muted); }

.method-section {
    position: relative;
    display: flex;
    min-height: 650px;
    align-items: center;
    padding: 90px 24px;
    color: #fff;
    background: var(--wagona-forest) url('/images/website/heritage/math-bg.jpg') center / cover fixed;
}

.method-section::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(4, 41, 33, .96), rgba(4, 41, 33, .72)); }
.method-section__content { position: relative; width: min(940px, 100%); margin: 0 auto; text-align: center; }
.method-section p { margin: 26px auto; color: rgba(255,255,255,.9); font-family: var(--wagona-serif); font-size: clamp(1.25rem, 2.2vw, 1.8rem); font-style: italic; }
.text-link { color: #b8f5cd; font-weight: 800; text-decoration: none; }

.numbers-grid { grid-template-columns: repeat(4, 1fr); }
.numbers-grid div { padding: 35px 22px; text-align: center; border: 1px solid #9debc7; border-radius: 14px; }
.numbers-grid strong { display: block; color: var(--wagona-green); font-family: var(--wagona-serif); font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: 1; }
.numbers-grid span { display: block; margin-top: 12px; color: var(--wagona-muted); font-weight: 750; }

.recognition-section { background: #f5faf8; }
.recognition-grid { grid-template-columns: repeat(4, 1fr); }
.recognition-grid figure { margin: 0; padding: 24px; text-align: center; background: #fff; border-radius: 16px; }
.recognition-grid img { height: 105px; margin: 0 auto 16px; object-fit: contain; }
.recognition-grid figcaption { font-weight: 750; }

.testimonials-section {
    background: #f8fbff url('/images/website/heritage/testimonial-pattern.png') center / cover no-repeat;
}

.testimonial-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial-grid blockquote { min-height: 330px; margin: 0; padding: 36px; background: rgba(255,255,255,.96); border-radius: 18px; box-shadow: var(--wagona-shadow); }
.testimonial-grid blockquote > p { font-family: var(--wagona-serif); font-size: 1.35rem; font-style: italic; font-weight: 700; }
.stars { color: var(--wagona-red); letter-spacing: .15em; }
.testimonial-grid footer { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.testimonial-grid footer img { width: 58px; height: 58px; object-fit: cover; border: 3px solid var(--wagona-red); border-radius: 50%; }

.closing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: clamp(55px, 7vw, 90px) max(24px, calc((100% - 1460px) / 2));
    color: #fff;
    background: var(--wagona-forest);
}

.closing-cta h2 { max-width: 900px; font-size: clamp(2.2rem, 4vw, 4rem); }
.closing-cta .eyebrow { color: #9ee9ba; }

.page-hero, .hero {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: flex-end;
    padding: 80px 24px;
    color: #fff;
    background: var(--wagona-forest) url('/images/website/heritage/hero-secondary.png') center 40% / cover no-repeat;
}

.page-hero::before, .hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(4, 39, 33, .92), rgba(4, 39, 33, .42)); }
.page-hero__content, .hero .wrap { position: relative; width: min(1460px, 100%); margin: 0 auto; }
.page-hero__content { max-width: 1460px; }
.page-hero p, .hero p { max-width: 740px; margin: 18px 0 0; color: rgba(255,255,255,.9); font-size: 1.2rem; }
.page-hero .eyebrow, .hero .eyebrow { color: #a9efc4; }
.hero h1 { margin: 8px 0 0; font-family: var(--wagona-serif); font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; }

.content-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-card { position: relative; padding: 38px; background: #fff; border: 1px solid var(--wagona-line); border-radius: 18px; box-shadow: 0 14px 35px rgba(9,46,39,.06); }
.content-card--wide { grid-column: 1 / -1; }
.content-card__number { color: var(--wagona-red); font-family: var(--wagona-serif); font-size: 1.1rem; font-weight: 800; }
.content-card h2 { margin: 10px 0 12px; font-family: var(--wagona-serif); font-size: 2rem; }
.content-card p, .content-card li { color: var(--wagona-muted); }
.content-card ul { padding-left: 22px; }
.content-card .button { margin-top: 12px; }

/* Secondary public pages: the visual language of the original Wagona site,
   rebuilt as a responsive, accessible editorial system. */
.heritage-page-wrap {
    width: min(1260px, calc(100% - 48px));
    margin-inline: auto;
}

.heritage-page-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 520px;
    align-items: end;
    overflow: hidden;
    color: #fff;
    background: var(--wagona-forest) url('/images/website/heritage/hero-secondary.png') center 42% / cover no-repeat;
}

.heritage-page-hero::before,
.heritage-page-hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
}

.heritage-page-hero::before {
    background: linear-gradient(90deg, rgba(3, 35, 29, .97) 0%, rgba(3, 35, 29, .78) 50%, rgba(3, 35, 29, .4) 100%);
}

.heritage-page-hero::after {
    opacity: .34;
    background:
        linear-gradient(120deg, transparent 0 56%, rgba(169, 239, 196, .16) 56% 56.35%, transparent 56.35%),
        radial-gradient(circle at 78% 20%, rgba(169, 239, 196, .2), transparent 26%);
}

.heritage-page-hero__content {
    padding: clamp(110px, 13vw, 180px) 0 clamp(65px, 8vw, 96px);
}

.heritage-page-hero .eyebrow {
    color: #a9efc4;
}

.heritage-page-hero h1 {
    max-width: 900px;
    margin: 12px 0 0;
    font-family: var(--wagona-serif);
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    line-height: .94;
    letter-spacing: -.045em;
}

.heritage-page-hero p {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.heritage-statement {
    position: relative;
    padding: clamp(54px, 7vw, 88px) 0;
    color: #063b2c;
    background: linear-gradient(135deg, #bdf5df, #e5fff3);
    border-bottom: 1px solid #8bdcb9;
}

.heritage-statement blockquote {
    max-width: 1120px;
    margin: 0 auto;
    font-family: var(--wagona-serif);
    font-size: clamp(1.6rem, 3.1vw, 2.8rem);
    font-style: italic;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.heritage-section {
    padding: clamp(66px, 8vw, 112px) 0;
    background: #fff;
}

.heritage-section--principles,
.heritage-section--roles,
.heritage-section--steps,
.heritage-section--brag,
.heritage-section--plans,
.heritage-section--contact {
    background: #f5faf8;
}

.heritage-section__header {
    display: flex;
    max-width: 980px;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 38px;
}

.heritage-section__header h2,
.heritage-prose h2,
.heritage-split h2,
.heritage-inline-cta h2 {
    margin: 0;
    font-family: var(--wagona-serif);
    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: 1.06;
    letter-spacing: -.025em;
}

.heritage-section__header p,
.heritage-prose p,
.heritage-split p,
.heritage-inline-cta p {
    color: var(--wagona-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.heritage-section__index {
    flex: 0 0 auto;
    padding-top: .42em;
    color: var(--wagona-red);
    font-family: var(--wagona-serif);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.heritage-prose {
    position: relative;
    max-width: 930px;
    padding-left: 72px;
}

.heritage-prose > .heritage-section__index {
    position: absolute;
    top: 0;
    left: 0;
}

.heritage-prose p {
    max-width: 840px;
    margin: 22px 0 0;
}

.heritage-prose--legal {
    max-width: 960px;
}

.heritage-prose--legal h2 {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.heritage-card-grid,
.heritage-brag-grid,
.heritage-plan-grid,
.heritage-contact-grid {
    display: grid;
    gap: 22px;
}

.heritage-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.heritage-card {
    position: relative;
    min-height: 250px;
    padding: 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--wagona-line);
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(8, 51, 41, .07);
}

.heritage-card::after {
    position: absolute;
    right: -34px;
    bottom: -46px;
    width: 125px;
    height: 125px;
    content: "";
    background: rgba(13, 140, 58, .08);
    border-radius: 50%;
}

.heritage-card__mark {
    color: var(--wagona-red);
    font-family: var(--wagona-serif);
    font-size: 1rem;
    font-weight: 800;
}

.heritage-card h3,
.heritage-steps h3,
.heritage-brag-card h3,
.heritage-plan h3,
.heritage-contact-card h3 {
    margin: 24px 0 10px;
    font-family: var(--wagona-serif);
    font-size: 1.55rem;
    line-height: 1.15;
}

.heritage-card p,
.heritage-steps p,
.heritage-brag-card p,
.heritage-plan p,
.heritage-contact-card p {
    margin: 0;
    color: var(--wagona-muted);
    line-height: 1.65;
}

.heritage-steps {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--wagona-line);
}

.heritage-steps li {
    display: grid;
    min-height: 205px;
    padding: 34px 30px;
    grid-template-columns: 62px 1fr;
    gap: 20px;
    border-right: 1px solid var(--wagona-line);
    border-bottom: 1px solid var(--wagona-line);
}

.heritage-steps li:nth-child(even) {
    border-right: 0;
}

.heritage-steps__number {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #fff;
    background: var(--wagona-forest);
    border-radius: 50%;
    font-family: var(--wagona-serif);
    font-weight: 800;
}

.heritage-steps h3 {
    margin-top: 4px;
}

.heritage-split {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: clamp(45px, 8vw, 110px);
}

.heritage-split__copy {
    display: grid;
    grid-template-columns: 48px 1fr;
}

.heritage-split__copy h2,
.heritage-split__copy p {
    grid-column: 2;
}

.heritage-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--wagona-line);
}

.heritage-checklist li {
    position: relative;
    padding: 19px 10px 19px 42px;
    color: #23473e;
    border-bottom: 1px solid var(--wagona-line);
    font-weight: 730;
}

.heritage-checklist li::before {
    position: absolute;
    top: 18px;
    left: 8px;
    display: grid;
    width: 22px;
    height: 22px;
    content: "\2713";
    place-items: center;
    color: #fff;
    background: var(--wagona-green);
    border-radius: 50%;
    font-size: .75rem;
}

.heritage-brag-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.heritage-brag-card {
    position: relative;
    min-height: 260px;
    padding: 34px 28px;
    overflow: hidden;
    color: #fff;
    background: #16211e;
    border-radius: 18px;
}

.heritage-brag-card > span {
    display: block;
    width: 38px;
    height: 5px;
    background: currentColor;
    border-radius: 10px;
}

.heritage-brag-card h3 {
    color: #fff;
}

.heritage-brag-card p {
    color: rgba(255, 255, 255, .84);
}

.heritage-brag-card--black { background: #17201e; }
.heritage-brag-card--red { background: #a7192d; }
.heritage-brag-card--amber { background: #9a5a00; }
.heritage-brag-card--green { background: #087443; }

.heritage-plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.heritage-plan {
    display: flex;
    min-height: 440px;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--wagona-line);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(8, 51, 41, .07);
    flex-direction: column;
}

.heritage-plan__label {
    width: fit-content;
    padding: 7px 11px;
    color: #075b31;
    background: #e4f9ee;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.heritage-plan ul {
    margin: 25px 0 30px;
    padding-left: 20px;
    color: #35564d;
    line-height: 1.8;
}

.heritage-plan .button {
    margin-top: auto;
}

.heritage-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.heritage-contact-card {
    padding: 28px 30px;
    background: #fff;
    border: 1px solid var(--wagona-line);
    border-radius: 16px;
}

.heritage-contact-card h3 {
    margin-top: 0;
}

.heritage-contact-card a {
    color: var(--wagona-green-dark);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.heritage-contact__cta {
    margin-top: 28px;
}

.heritage-inline-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    padding: clamp(38px, 6vw, 70px);
    color: #fff;
    background:
        linear-gradient(115deg, rgba(4, 41, 33, .96), rgba(4, 41, 33, .82)),
        url('/images/website/heritage/math-bg.jpg') center / cover;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(4, 41, 33, .2);
}

.heritage-inline-cta .eyebrow {
    color: #a9efc4;
}

.heritage-inline-cta p {
    max-width: 720px;
    color: rgba(255, 255, 255, .84);
}

.heritage-inline-cta .button {
    flex: 0 0 auto;
}

.wrap { width: min(1180px, 100%); margin: 0 auto; }
.section { background: #f6faf8; }
.section .card { padding: clamp(24px, 4vw, 44px); background: #fff; border: 1px solid var(--wagona-line); border-radius: 18px; box-shadow: var(--wagona-shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 750; }
.field input:not([type="checkbox"]), .field select, .field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    color: var(--wagona-ink);
    background: #fff;
    border: 1px solid #cfdcd7;
    border-radius: 10px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input[type="checkbox"] { width: 20px; height: 20px; margin: 0 8px 0 0; vertical-align: middle; accent-color: var(--wagona-green); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wagona-green); box-shadow: 0 0 0 4px rgba(13,140,58,.12); outline: 0; }
.notice { margin-bottom: 22px; padding: 16px 18px; color: #075b31; background: #e5faef; border: 1px solid #a7e8c5; border-radius: 10px; }
.error { color: #b42318; font-size: .9rem; font-weight: 700; }

.site-footer { color: #073829; background: var(--wagona-bright); }
.site-footer__grid { display: grid; width: min(1460px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 55px; grid-template-columns: 1.25fr .8fr 1fr; gap: clamp(35px, 7vw, 100px); }
.site-footer h2 { margin: 0 0 16px; font-family: var(--wagona-serif); font-size: 1.5rem; }
.site-footer p { max-width: 440px; }
.site-footer section > a:not(.footer-button), .footer-links a { display: block; width: fit-content; margin: 8px 0; font-weight: 700; text-decoration: none; }
.footer-links { display: grid; gap: 4px; }
.footer-button { display: block; width: fit-content; margin-top: 12px; padding: 11px 18px; color: #fff; background: var(--wagona-forest); border-radius: 8px; font-weight: 800; text-decoration: none; }
.footer-button--ghost { color: var(--wagona-forest); background: transparent; border: 1px solid rgba(7,56,41,.45); }
.site-footer__base { padding: 18px 24px; text-align: center; border-top: 1px solid rgba(7,56,41,.2); }

.back-to-top {
    position: fixed;
    z-index: 80;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    color: #fff;
    background: var(--wagona-red);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(239,37,56,.32);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.cookie-banner {
    position: fixed;
    z-index: 200;
    right: 22px;
    bottom: 22px;
    width: min(480px, calc(100% - 44px));
    padding: 20px;
    color: #fff;
    background: var(--wagona-forest);
    border-radius: 14px;
    box-shadow: 0 22px 70px rgba(0,0,0,.3);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 14px; }
.cookie-banner div { display: flex; justify-content: flex-end; gap: 10px; }
.cookie-banner button { padding: 9px 14px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; font-weight: 750; }
.cookie-banner button:last-child { color: var(--wagona-forest); background: #a9efc4; border-color: #a9efc4; }

@media (max-width: 1100px) {
    .site-header { height: 82px; }
    .site-brand img { width: 65px; height: 66px; }
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed;
        top: 82px;
        right: 0;
        bottom: 0;
        left: 0;
        display: none;
        align-items: stretch;
        padding: 28px 24px 50px;
        overflow-y: auto;
        background: #fff;
        flex-direction: column;
        gap: 0;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 15px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--wagona-line); }
    .site-nav a::after { display: none; }
    .site-nav .nav-signup { margin-top: 18px; text-align: center; border: 0; }
    .heritage-hero { min-height: calc(100svh - 82px); }
    .audience-grid, .numbers-grid, .recognition-grid { grid-template-columns: repeat(2, 1fr); }
    .heritage-card-grid, .heritage-brag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .heritage-plan-grid { grid-template-columns: 1fr; }
    .heritage-plan { min-height: 0; }
}

@media (max-width: 760px) {
    .site-header__inner, .heritage-hero__content, .site-footer__grid { width: min(100% - 32px, 1460px); }
    .heritage-hero { min-height: 720px; align-items: flex-start; background-position: 58% center; }
    .heritage-hero__shade { background: linear-gradient(180deg, rgba(3,31,26,.84) 0%, rgba(3,31,26,.46) 70%, rgba(3,31,26,.28)); }
    .heritage-hero__content { padding: 72px 0 140px; }
    .heritage-hero h1 { font-size: clamp(3.8rem, 18vw, 5.8rem); }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .audience-grid, .numbers-grid, .recognition-grid, .testimonial-grid, .content-section__grid, .form-grid { grid-template-columns: 1fr; }
    .audience-card p { min-height: auto; }
    .teacher-story { grid-template-columns: 1fr; padding-top: 70px; }
    .teacher-story blockquote { order: -1; padding-bottom: 0; }
    .teacher-story__portrait img { max-height: 430px; }
    .method-section { min-height: 560px; background-attachment: scroll; }
    .closing-cta { align-items: flex-start; flex-direction: column; }
    .content-card { padding: 28px 24px; }
    .field.full { grid-column: auto; }
    .site-footer__grid { grid-template-columns: 1fr; padding: 55px 0 42px; }
    .back-to-top { right: 16px; bottom: 16px; }
    .heritage-page-wrap { width: min(100% - 32px, 1260px); }
    .heritage-page-hero { min-height: 430px; background-position: 60% center; }
    .heritage-page-hero::before { background: linear-gradient(180deg, rgba(3, 35, 29, .9), rgba(3, 35, 29, .7)); }
    .heritage-page-hero__content { padding: 98px 0 54px; }
    .heritage-page-hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
    .heritage-statement blockquote { text-align: left; }
    .heritage-section__header { gap: 15px; }
    .heritage-prose { padding-left: 0; }
    .heritage-prose > .heritage-section__index { position: static; display: block; margin-bottom: 10px; }
    .heritage-card-grid, .heritage-brag-grid, .heritage-contact-grid { grid-template-columns: 1fr; }
    .heritage-card { min-height: 0; }
    .heritage-steps { grid-template-columns: 1fr; }
    .heritage-steps li, .heritage-steps li:nth-child(even) { border-right: 0; }
    .heritage-steps li { min-height: 0; padding-inline: 0; grid-template-columns: 52px 1fr; }
    .heritage-steps__number { width: 46px; height: 46px; }
    .heritage-split { grid-template-columns: 1fr; gap: 35px; }
    .heritage-split__copy { grid-template-columns: 1fr; }
    .heritage-split__copy h2, .heritage-split__copy p { grid-column: 1; }
    .heritage-inline-cta { align-items: flex-start; padding: 32px 24px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .method-section { background-attachment: scroll; }
}

@media (prefers-contrast: more) {
    :root { --wagona-muted: #334155; --wagona-line: #82958d; }
    .button, .nav-signup { border: 2px solid currentColor; }
}
