@font-face {
    font-family: "Raleway";
    src: url("../fonts/Raleway-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Raleway";
    src: url("../fonts/Raleway-Bold.ttf") format("truetype");
    font-weight: 700 900;
    font-display: swap;
}

:root {
    --ink: #172033;
    --muted: #5c687a;
    --purple: #6d3bd1;
    --purple-dark: #4e279f;
    --lavender: #f2edff;
    --line: #dce3ec;
    --paper: #fff;
    --page: #f7f8fc;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: "Raleway", system-ui, sans-serif;
    line-height: 1.65;
}

a { color: inherit; }

.site-header,
.site-footer,
main {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-size: 1.25rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -.035em;
}

.brand span { color: var(--purple); }

.site-header nav,
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-header nav a,
.site-footer nav a {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.hero {
    background: linear-gradient(135deg, #fff 0%, #f5f0ff 100%);
    border: 1px solid #e6dffd;
    border-radius: 28px;
    padding: clamp(28px, 5vw, 68px);
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
    box-shadow: 0 24px 70px rgba(53, 39, 96, .08);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--purple);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1, h2 {
    line-height: 1.15;
    letter-spacing: -.035em;
}

h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(2.25rem, 5vw, 4.4rem);
}

h2 { font-size: clamp(1.45rem, 2.5vw, 2.15rem); }

.lede {
    color: var(--muted);
    max-width: 760px;
    font-size: 1.12rem;
}

.builder-form {
    margin-top: 28px;
    max-width: 720px;
}

.builder-form label {
    display: block;
    margin-bottom: 7px;
    font-weight: 800;
}

.input-row {
    display: flex;
    gap: 10px;
}

input {
    min-width: 0;
    flex: 1;
    border: 2px solid #cfd6e2;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 1.05rem;
}

input:focus {
    border-color: var(--purple);
    outline: 3px solid rgba(109, 59, 209, .16);
}

button {
    border: 0;
    border-radius: 12px;
    padding: 14px 20px;
    color: #fff;
    background: var(--purple);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(109, 59, 209, .2);
}

button:hover { background: var(--purple-dark); }

.privacy-note,
.form-error {
    margin: 8px 0 0;
    font-size: .84rem;
}

.privacy-note { color: var(--muted); }
.form-error { color: #a52222; font-weight: 700; }

.hero-card,
.related-card {
    border: 1px solid #e2dcf5;
    border-radius: 20px;
    padding: 24px;
    background: rgba(255,255,255,.75);
}

.hero-card strong { font-size: 1.1rem; }
.hero-card ul { padding-left: 20px; margin-bottom: 0; }

.preview-section { margin-top: 54px; }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading h2 { margin: 0; }

.article-shell {
    margin-top: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 48px;
    align-items: start;
}

.educator-content {
    padding: clamp(26px, 5vw, 58px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}

.educator-content section + section {
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}

.educator-content h2 { margin: 0 0 18px; }
.educator-content p { color: #3f4a5b; }

.related-card {
    position: sticky;
    top: 20px;
    background: #fff;
}

.related-card h2 { margin-top: 0; font-size: 1.25rem; }

.related-card a {
    display: block;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    text-decoration: none;
}

.related-card strong,
.related-card span { display: block; }
.related-card span { color: var(--muted); font-size: .85rem; line-height: 1.45; }

.static-page {
    min-height: 55vh;
    padding: clamp(36px, 8vw, 90px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
}

.site-footer {
    margin-top: 70px;
    padding: 35px 0 48px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 30px;
}

.site-footer p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 860px) {
    .site-header nav { display: none; }
    .hero, .article-shell { grid-template-columns: 1fr; }
    .related-card { position: static; }
}

@media (max-width: 580px) {
    .input-row, .section-heading, .site-footer { align-items: stretch; flex-direction: column; }
    .input-row button, .download-button { width: 100%; }
    h1 { font-size: 2.35rem; }
}

