/* ==========================================================================
   ПИСЬМЕННИЦЬКА ШКОЛА — Shared stylesheet
   Design concept: "Рукопис і червоне чорнило" (Manuscript & Red Ink)
   Paper backdrop, deep ink-green as primary accent, editor's red pen as
   the signature accent used for annotation, corrections, emphasis.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --paper: #f6f1e4;
    --paper-card: #fffdf7;
    --paper-deep: #ece2c8;
    --ink: #211d18;
    --ink-soft: #55503f;
    --ink-faint: #8b8368;
    --green: #2f5233;
    --green-deep: #1e3722;
    --green-tint: #e4ebdf;
    --red: #b23a2e;
    --red-deep: #8e2c22;
    --gold: #b08d57;
    --line: #dcd0b0;

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
    --font-hand: "Caveat", cursive;

    --container: 1160px;
    --radius-s: 6px;
    --radius-m: 12px;
    --radius-l: 20px;

    --shadow-card:
        0 1px 2px rgba(33, 29, 24, 0.06),
        0 12px 28px -14px rgba(33, 29, 24, 0.18);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    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.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
button {
    font: inherit;
    cursor: pointer;
}
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    margin: 0;
    line-height: 1.12;
    font-weight: 600;
}
p {
    margin: 0;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

section {
    position: relative;
}

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

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.6s var(--ease),
        transform 0.6s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Eyebrow / marginalia label ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-hand);
    font-size: 1.35rem;
    color: var(--red);
    transform: rotate(-2deg);
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--red);
    display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: var(--radius-s);
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid transparent;
    transition:
        transform 0.2s var(--ease),
        background 0.2s var(--ease),
        border-color 0.2s var(--ease),
        color 0.2s var(--ease);
    white-space: nowrap;
}
.btn:active {
    transform: translateY(1px);
}
.btn-primary {
    background: var(--green);
    color: var(--paper-card);
}
.btn-primary:hover {
    background: var(--green-deep);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-ghost:hover {
    border-color: var(--red);
    color: var(--red);
}
.btn-block {
    width: 100%;
}
.btn-lg {
    padding: 17px 32px;
    font-size: 1.02rem;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 241, 228, 0.92);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.28rem;
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.logo em {
    font-style: italic;
    color: var(--red);
}
.nav-desktop {
    display: none;
}
.nav-desktop ul {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-desktop a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    position: relative;
    padding: 4px 0;
}
.nav-desktop a:hover {
    color: var(--ink);
}
.nav-desktop a.is-active {
    color: var(--ink);
}
.nav-desktop a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--red);
}
.header-cta {
    display: none;
}
.nav-toggle {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    position: relative;
    transition:
        transform 0.25s var(--ease),
        opacity 0.25s var(--ease);
}
.nav-toggle span::before {
    position: absolute;
    top: -7px;
}
.nav-toggle span::after {
    position: absolute;
    top: 7px;
}
.nav-toggle[aria-expanded="true"] span {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    z-index: 99;
    overflow-y: auto;
}
.nav-mobile.is-open {
    transform: translateX(0);
}
.nav-mobile .container {
    padding-top: 32px;
    padding-bottom: 32px;
}
.nav-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-mobile a {
    display: block;
    padding: 16px 4px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    border-bottom: 1px solid var(--line);
}
.nav-mobile .btn {
    margin-top: 24px;
}

@media (min-width: 900px) {
    .nav-desktop {
        display: block;
    }
    .header-cta {
        display: inline-flex;
    }
    .nav-toggle {
        display: none;
    }
    .nav-mobile {
        display: none;
    }
}

/* ---------- Hero ---------- */
.hero {
    padding: 56px 0 72px;
    overflow: hidden;
}
.hero .container {
    display: grid;
    gap: 44px;
}
.hero h1 {
    font-size: clamp(2.1rem, 5.6vw, 3.4rem);
    letter-spacing: -0.01em;
    margin-top: 18px;
}
.hero .crossed {
    position: relative;
    color: var(--ink-faint);
}
.hero .crossed::after {
    content: "";
    position: absolute;
    left: -2%;
    right: -2%;
    top: 52%;
    height: 2px;
    background: var(--red);
    transform: rotate(-2deg);
}
.hero .handwritten {
    font-family: var(--font-hand);
    color: var(--red);
    font-weight: 700;
    font-size: 1.12em;
    display: inline-block;
    transform: rotate(-2deg);
    margin-left: 2px;
}
.hero-sub {
    margin-top: 22px;
    font-size: 1.12rem;
    color: var(--ink-soft);
    max-width: 46ch;
}
.hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.hero-note {
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--ink-faint);
}

/* Manuscript visual (signature element) */
.manuscript {
    position: relative;
    background: var(--paper-card);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    padding: 34px 30px;
    transform: rotate(1.2deg);
    border: 1px solid var(--line);
    overflow: hidden;
    min-height: 320px;
}
.manuscript::before {
    content: "";
    position: absolute;
    inset: 10px 10px auto 10px;
    height: 1px;
}
.manuscript .line {
    height: 11px;
    border-radius: 3px;
    background: var(--paper-deep);
    margin-bottom: 16px;
}
.manuscript .line.short {
    width: 62%;
}
.manuscript .line.strike {
    position: relative;
    background: var(--paper-deep);
}
.manuscript .line.strike::after {
    content: "";
    position: absolute;
    left: 0;
    right: 20%;
    top: 50%;
    height: 2px;
    background: var(--red);
}
.manuscript img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.manuscript .visual-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.manuscript .margin-note {
    font-family: var(--font-hand);
    color: var(--red);
    font-size: 1.5rem;
    position: absolute;
    right: 18px;
    top: 78px;
    transform: rotate(-4deg);
}
.manuscript .stamp {
    position: absolute;
    left: -18px;
    bottom: -18px;
    width: 92px;
    height: 92px;
    border: 2px solid var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-hand);
    color: var(--red);
    font-size: 1.05rem;
    transform: rotate(-14deg);
    background: rgba(246, 241, 228, 0.9);
    text-align: center;
    line-height: 1.1;
}

@media (min-width: 860px) {
    .hero .container {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: center;
    }
}

/* ---------- Section heading ---------- */
.section-head {
    max-width: 640px;
    margin-bottom: 44px;
}
.section-head h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    margin-top: 14px;
}
.section-head p {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 1.04rem;
}

.section-pad {
    padding: 88px 0;
}
.bg-deep {
    background: var(--paper-deep);
}
.bg-ink {
    background: var(--ink);
    color: var(--paper);
}

/* ---------- Pain points ---------- */
.pain-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
.pain-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 28px 24px;
    position: relative;
}
.pain-card .num {
    font-family: var(--font-hand);
    color: var(--red);
    font-size: 1.7rem;
    transform: rotate(-3deg);
    display: inline-block;
}
.pain-card h3 {
    font-size: 1.18rem;
    margin-top: 10px;
    position: relative;
    display: inline-block;
}
.pain-card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 46px;
    height: 2px;
    background: var(--red);
    opacity: 0.55;
}
.pain-card p {
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 0.98rem;
}
@media (min-width: 700px) {
    .pain-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1040px) {
    .pain-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---------- Solution / features ---------- */
.solution-wrap {
    display: grid;
    gap: 40px;
}
.feature-list {
    display: grid;
    gap: 22px;
}
.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.feature-check {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--green-tint);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.feature-item h4 {
    font-size: 1.08rem;
    font-family: var(--font-body);
    font-weight: 600;
}
.feature-item p {
    color: var(--ink-soft);
    margin-top: 4px;
    font-size: 0.96rem;
}

.solution-card {
    background: var(--green);
    color: var(--paper);
    border-radius: var(--radius-l);
    padding: 34px;
}
.solution-card .eyebrow {
    color: var(--paper);
    opacity: 0.85;
}
.solution-card .eyebrow::before {
    background: var(--paper);
}
.solution-card h3 {
    font-size: 1.4rem;
    margin-top: 14px;
}
.solution-card p {
    margin-top: 12px;
    opacity: 0.9;
    font-size: 0.98rem;
}
.solution-card .btn-ghost {
    border-color: var(--paper);
    color: var(--paper);
    margin-top: 22px;
}
.solution-card .btn-ghost:hover {
    background: var(--paper);
    color: var(--green-deep);
    border-color: var(--paper);
}

@media (min-width: 900px) {
    .solution-wrap {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }
}

/* ---------- Product teaser ---------- */
.product-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 36px;
    display: grid;
    gap: 26px;
    box-shadow: var(--shadow-card);
}
.product-card .tag {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-tint);
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 600;
}
.product-card h3 {
    font-size: 1.5rem;
    margin-top: 14px;
}
.product-card p {
    color: var(--ink-soft);
    margin-top: 10px;
}
.product-list {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}
.product-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.product-list li::before {
    content: "—";
    color: var(--red);
    flex: none;
}
.product-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ---------- Social proof ---------- */
.stats-row {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 52px;
}
.stat {
    text-align: left;
}
.stat .num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.7rem);
    color: var(--green);
}
.stat .label {
    margin-top: 6px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}
@media (min-width: 700px) {
    .stats-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.testi-track {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
.testi-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 26px;
}
.testi-quote {
    font-size: 1rem;
    color: var(--ink);
}
.testi-quote::before {
    content: "«";
    color: var(--red);
}
.testi-quote::after {
    content: "»";
    color: var(--red);
}
.testi-person {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green-tint);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
}
.testi-name {
    font-weight: 600;
    font-size: 0.92rem;
}
.testi-role {
    font-size: 0.82rem;
    color: var(--ink-faint);
}
@media (min-width: 760px) {
    .testi-track {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- About teaser ---------- */
.about-teaser {
    display: grid;
    gap: 36px;
    align-items: center;
}
.about-photo {
    aspect-ratio: 4/5;
    border-radius: var(--radius-l);
    background: linear-gradient(160deg, var(--paper-deep), var(--green-tint));
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.about-photo img,
.about-hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-photo .stamp {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 84px;
    height: 84px;
    border: 2px solid var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-hand);
    color: var(--red);
    font-size: 0.95rem;
    transform: rotate(8deg);
    background: rgba(255, 253, 247, 0.85);
    text-align: center;
}
.about-copy p {
    color: var(--ink-soft);
    margin-top: 14px;
    font-size: 1.02rem;
}
.about-copy .btn {
    margin-top: 24px;
}
@media (min-width: 860px) {
    .about-teaser {
        grid-template-columns: 0.8fr 1.2fr;
    }
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 760px;
}
.faq-item {
    border-bottom: 1px solid var(--line);
}
.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-display);
    font-size: 1.08rem;
    color: var(--ink);
}
.faq-q .plus {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.25s var(--ease);
}
.faq-item.is-open .faq-q .plus {
    transform: rotate(45deg);
    border-color: var(--red);
    color: var(--red);
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
}
.faq-a p {
    padding-bottom: 22px;
    color: var(--ink-soft);
    max-width: 62ch;
}

/* ---------- Final CTA ---------- */
.cta-final {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-l);
    padding: 48px 28px;
    position: relative;
    overflow: hidden;
}
.cta-final h2 {
    font-size: clamp(1.7rem, 3.8vw, 2.3rem);
    max-width: 20ch;
}
.cta-final p {
    color: #c9c3b2;
    margin-top: 14px;
    max-width: 48ch;
}
.cta-grid {
    display: grid;
    gap: 36px;
    margin-top: 8px;
}
.lead-form {
    background: var(--paper-card);
    color: var(--ink);
    border-radius: var(--radius-m);
    padding: 26px;
    display: grid;
    gap: 14px;
}
.field {
    display: grid;
    gap: 6px;
}
.field label {
    font-size: 0.84rem;
    color: var(--ink-soft);
    font-weight: 500;
}
.field input,
.field textarea,
.field select {
    padding: 13px 14px;
    border-radius: var(--radius-s);
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 0.96rem;
    color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-tint);
}
.field-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.82rem;
    color: var(--ink-soft);
}
.field-check input {
    margin-top: 3px;
}
.form-msg {
    font-size: 0.88rem;
    display: none;
    padding: 12px 14px;
    border-radius: var(--radius-s);
}
.form-msg.is-visible {
    display: block;
}
.form-msg.ok {
    background: var(--green-tint);
    color: var(--green-deep);
}
.form-msg.err {
    background: #f5dedb;
    color: var(--red-deep);
}

@media (min-width: 900px) {
    .cta-grid {
        grid-template-columns: 1fr 0.9fr;
        align-items: center;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--paper-deep);
    border-top: 1px solid var(--line);
    padding: 56px 0 28px;
}
.footer-grid {
    display: grid;
    gap: 36px;
}
.footer-brand .logo {
    margin-bottom: 12px;
}
.footer-brand p {
    color: var(--ink-soft);
    font-size: 0.92rem;
    max-width: 34ch;
}
.footer-col h5 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    margin-bottom: 14px;
}
.footer-col ul {
    display: grid;
    gap: 10px;
}
.footer-col a {
    font-size: 0.92rem;
    color: var(--ink-soft);
}
.footer-col a:hover {
    color: var(--red);
}
.footer-bottom {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    font-size: 0.84rem;
    color: var(--ink-faint);
}
@media (min-width: 760px) {
    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
    }
}

/* ==========================================================================
   SERVICES PAGE — additional components
   ========================================================================== */

/* ---------- Page intro (non-landing pages) ---------- */
.page-hero {
    padding: 52px 0 40px;
    border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow {
    margin-bottom: 4px;
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 2.9rem);
    margin-top: 12px;
    max-width: 18ch;
}
.page-hero p {
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: 1.06rem;
    max-width: 56ch;
}

/* ---------- Offer quick-nav (chips) ---------- */
.offer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.offer-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--paper-card);
    transition:
        border-color 0.2s var(--ease),
        color 0.2s var(--ease);
}
.offer-nav a:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ---------- Detailed offer card ---------- */
.offer-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 36px;
    scroll-margin-top: 96px;
}
.offer-card + .offer-card {
    margin-top: 24px;
}
.offer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}
.offer-top .tag {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-tint);
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 600;
}
.offer-card h3 {
    font-size: 1.55rem;
    margin-top: 12px;
}
.offer-for {
    margin-top: 8px;
    color: var(--ink-faint);
    font-size: 0.92rem;
}
.offer-price {
    text-align: right;
}
.offer-price .amount {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--ink);
}
.offer-price .period {
    font-size: 0.82rem;
    color: var(--ink-faint);
}

.offer-problem {
    margin-top: 18px;
    padding: 14px 18px;
    border-left: 3px solid var(--red);
    background: rgba(178, 58, 46, 0.06);
    font-size: 0.96rem;
    color: var(--ink-soft);
}

.offer-body {
    margin-top: 24px;
    display: grid;
    gap: 24px;
}
.offer-includes {
    display: grid;
    gap: 10px;
}
.offer-includes li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.offer-includes li::before {
    content: "✓";
    color: var(--green);
    flex: none;
    font-weight: 700;
}

.offer-meta {
    display: grid;
    gap: 14px;
    align-content: start;
}
.offer-meta .meta-item dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-faint);
}
.offer-meta .meta-item dd {
    margin: 4px 0 0;
    font-size: 0.96rem;
    font-weight: 500;
}

.offer-actions {
    margin-top: 24px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

@media (min-width: 800px) {
    .offer-body {
        grid-template-columns: 1.5fr 1fr;
    }
}

/* ---------- Pricing comparison table ---------- */
.plan-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.plan-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: var(--paper-card);
    border-radius: var(--radius-m);
    overflow: hidden;
    border: 1px solid var(--line);
}
.plan-table th,
.plan-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}
.plan-table thead th {
    font-family: var(--font-display);
    font-size: 1.05rem;
    background: var(--paper-deep);
}
.plan-table thead th.is-popular {
    position: relative;
    color: var(--green);
}
.plan-table tbody th {
    font-weight: 500;
    color: var(--ink-soft);
    text-align: left;
}
.plan-table td {
    color: var(--ink-soft);
}
.plan-table td.yes {
    color: var(--green);
    font-weight: 600;
}
.plan-table td.no {
    color: var(--ink-faint);
}
.plan-table tfoot td {
    border-bottom: none;
    padding-top: 20px;
}
.popular-badge {
    display: inline-block;
    font-family: var(--font-hand);
    color: var(--red);
    font-size: 1.05rem;
    transform: rotate(-3deg);
    margin-left: 6px;
}

/* ---------- Process steps ---------- */
.process-list {
    display: grid;
    gap: 0;
    counter-reset: step;
}
.process-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 20px;
    padding-bottom: 34px;
    position: relative;
}
.process-item:last-child {
    padding-bottom: 0;
}
.process-item::before {
    counter-increment: step;
    content: counter(step);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    z-index: 1;
}
.process-item::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: var(--line);
}
.process-item:last-child::after {
    display: none;
}
.process-item h4 {
    font-size: 1.08rem;
    font-family: var(--font-body);
    font-weight: 600;
    padding-top: 8px;
}
.process-item p {
    margin-top: 6px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

@media (min-width: 700px) {
    .process-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    .process-item {
        grid-template-columns: 1fr;
        padding-bottom: 0;
    }
    .process-item::before {
        margin-bottom: 8px;
    }
    .process-item::after {
        left: auto;
        top: 22px;
        right: -12px;
        width: 24px;
        height: 2px;
    }
    .process-item:nth-child(4)::after {
        display: none;
    }
}

/* ==========================================================================
   ABOUT PAGE — additional components
   ========================================================================== */

/* ---------- Bio hero ---------- */
.about-hero {
    padding: 52px 0 72px;
}
.about-hero .container {
    display: grid;
    gap: 40px;
}
.about-hero-photo {
    aspect-ratio: 4/5;
    border-radius: var(--radius-l);
    background: linear-gradient(160deg, var(--paper-deep), var(--green-tint));
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.about-hero-photo .stamp {
    position: absolute;
    left: -16px;
    bottom: -16px;
    width: 96px;
    height: 96px;
    border: 2px solid var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-hand);
    color: var(--red);
    font-size: 1rem;
    transform: rotate(-10deg);
    background: rgba(246, 241, 228, 0.9);
    text-align: center;
    line-height: 1.1;
}
.about-hero-copy .eyebrow {
    margin-bottom: 6px;
}
.about-hero-copy h1 {
    font-size: clamp(2rem, 4.8vw, 2.8rem);
    margin-top: 10px;
}
.about-hero-copy .role {
    margin-top: 8px;
    color: var(--ink-faint);
    font-size: 1rem;
}
.about-hero-copy p {
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 56ch;
}
.about-hero-copy .btn {
    margin-top: 26px;
}

@media (min-width: 860px) {
    .about-hero .container {
        grid-template-columns: 0.78fr 1.22fr;
        align-items: center;
    }
}

/* ---------- Credentials ---------- */
.credential-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
.credential-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 26px;
}
.credential-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--green-tint);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-family: var(--font-display);
}
.credential-card h4 {
    font-size: 1.05rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-top: 14px;
}
.credential-card p {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 0.94rem;
}
@media (min-width: 700px) {
    .credential-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1040px) {
    .credential-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---------- Student achievements (book grid) ---------- */
.book-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, 1fr);
}
.book-card {
    aspect-ratio: 3/4.2;
    border-radius: var(--radius-s);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--paper);
    position: relative;
    box-shadow: var(--shadow-card);
}
.book-card .book-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.2;
}
.book-card .book-author {
    margin-top: 6px;
    font-size: 0.8rem;
    opacity: 0.85;
}
.book-c1 {
    background: linear-gradient(160deg, #2f5233, #1e3722);
}
.book-c2 {
    background: linear-gradient(160deg, #b23a2e, #8e2c22);
}
.book-c3 {
    background: linear-gradient(160deg, #5c5340, #332e23);
}
.book-c4 {
    background: linear-gradient(160deg, #b08d57, #7c6438);
}
.book-c5 {
    background: linear-gradient(160deg, #3a4e5c, #232f38);
}
.book-c6 {
    background: linear-gradient(160deg, #6b3f52, #402535);
}
@media (min-width: 640px) {
    .book-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 980px) {
    .book-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.media-mentions {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.media-mentions span {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.86rem;
    color: var(--ink-soft);
    background: var(--paper-card);
}

/* ---------- Methodology ---------- */
.method-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
.method-card {
    padding: 26px;
    border-radius: var(--radius-m);
    background: var(--paper-card);
    border: 1px solid var(--line);
    position: relative;
}
.method-card .quote-mark {
    font-family: var(--font-hand);
    color: var(--red);
    font-size: 2.4rem;
    line-height: 1;
    display: block;
}
.method-card h4 {
    font-size: 1.05rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-top: 6px;
}
.method-card p {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 0.94rem;
}
@media (min-width: 760px) {
    .method-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Trust block ---------- */
.trust-wrap {
    display: grid;
    gap: 32px;
}
.trust-list {
    display: grid;
    gap: 16px;
}
.trust-list .meta-item dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-faint);
}
.trust-list .meta-item dd {
    margin: 4px 0 0;
    font-size: 0.98rem;
}
.trust-list .meta-item dd a {
    color: var(--green);
    font-weight: 500;
}
.trust-list .meta-item dd a:hover {
    color: var(--red);
}
.trust-note {
    padding: 22px;
    border-radius: var(--radius-m);
    background: var(--green-tint);
    color: var(--green-deep);
    font-size: 0.94rem;
}
@media (min-width: 860px) {
    .trust-wrap {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   CONTACT PAGE — additional components
   ========================================================================== */

.contact-grid {
    display: grid;
    gap: 28px;
}
.contact-form-panel {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 32px;
    box-shadow: var(--shadow-card);
}
.contact-form-panel h3 {
    font-size: 1.3rem;
}
.contact-form-panel > p {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 0.94rem;
}
.contact-form-panel form {
    margin-top: 22px;
    display: grid;
    gap: 16px;
}
.field-row {
    display: grid;
    gap: 16px;
}
@media (min-width: 560px) {
    .field-row {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    display: grid;
    gap: 20px;
    align-content: start;
}
.info-card {
    background: var(--paper-deep);
    border-radius: var(--radius-m);
    padding: 24px;
}
.info-card h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.channel-list {
    display: grid;
    gap: 12px;
}
.channel-list a,
.channel-list span.channel {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.channel-list a:hover {
    color: var(--red);
}
.channel-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--paper-card);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    color: var(--green);
    flex: none;
}

.hours-list {
    display: grid;
    gap: 8px;
    font-size: 0.92rem;
}
.hours-list div {
    display: flex;
    justify-content: space-between;
    color: var(--ink-soft);
}
.hours-list div span:last-child {
    color: var(--ink);
    font-weight: 500;
}

.map-placeholder {
    aspect-ratio: 16/9;
    border-radius: var(--radius-m);
    border: 1px solid var(--line);
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 23px,
            rgba(33, 29, 24, 0.05) 23px,
            rgba(33, 29, 24, 0.05) 24px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 23px,
            rgba(33, 29, 24, 0.05) 23px,
            rgba(33, 29, 24, 0.05) 24px
        ),
        var(--paper-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    font-size: 0.88rem;
    text-align: center;
    padding: 20px;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1.3fr 0.9fr;
    }
}

/* ==========================================================================
   LEGAL PAGES — additional components
   ========================================================================== */

.legal-hero {
    padding: 52px 0 36px;
    border-bottom: 1px solid var(--line);
}
.legal-hero .eyebrow {
    margin-bottom: 4px;
}
.legal-hero h1 {
    font-size: clamp(1.9rem, 4.6vw, 2.6rem);
    margin-top: 12px;
}
.legal-updated {
    margin-top: 14px;
    color: var(--ink-faint);
    font-size: 0.88rem;
}

.legal-layout {
    display: grid;
    gap: 40px;
}
.legal-toc {
    align-self: start;
    position: sticky;
    top: 96px;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 22px;
}
.legal-toc h5 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-faint);
    margin-bottom: 12px;
}
.legal-toc ol {
    display: grid;
    gap: 9px;
    counter-reset: toc;
}
.legal-toc li {
    counter-increment: toc;
    font-size: 0.9rem;
}
.legal-toc a {
    color: var(--ink-soft);
}
.legal-toc a:hover {
    color: var(--red);
}
.legal-toc li::before {
    content: counter(toc) ". ";
    color: var(--ink-faint);
}

.legal-content {
    max-width: 74ch;
}
.legal-content section {
    margin-bottom: 38px;
    scroll-margin-top: 96px;
}
.legal-content h2 {
    font-size: 1.3rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}
.legal-content p {
    color: var(--ink-soft);
    font-size: 0.98rem;
    margin-bottom: 14px;
}
.legal-content ul {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}
.legal-content ul li {
    padding-left: 18px;
    position: relative;
    color: var(--ink-soft);
    font-size: 0.96rem;
}
.legal-content ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--red);
}
.legal-content strong {
    color: var(--ink);
}
.legal-note {
    padding: 16px 18px;
    border-left: 3px solid var(--green);
    background: var(--green-tint);
    color: var(--green-deep);
    font-size: 0.92rem;
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

@media (min-width: 900px) {
    .legal-layout {
        grid-template-columns: 260px 1fr;
    }
}

/* ==========================================================================
   TEAM SECTION (about page) — additional components
   ========================================================================== */

.team-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}
.team-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 26px;
    position: relative;
}
.team-photo {
    aspect-ratio: 1/1;
    width: 76px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--paper-deep), var(--green-tint));
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--green-deep);
    overflow: hidden;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team-solves {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--font-hand);
    color: var(--red);
    font-size: 1.15rem;
    transform: rotate(-2deg);
}
.team-card h4 {
    font-size: 1.12rem;
    margin-top: 12px;
}
.team-card .role {
    margin-top: 4px;
    color: var(--ink-faint);
    font-size: 0.86rem;
}
.team-card p.bio {
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 0.93rem;
}

@media (min-width: 700px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1040px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
