:root {
    --ink: #17241e;
    --muted: #4a5a52;
    --paper: #fbfaf6;
    --line: #d7dcd3;
    --green: #1b382e;
    --mint: #e6eee6;
    --yellow: #f3de76;
    color: var(--ink);
    background: var(--paper);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
html { scroll-padding-top: 1.5rem; }
:where(a, summary, button):focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

.wrap {
    width: min(100% - 5rem, 72rem);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    z-index: 2;
    top: .75rem;
    left: .75rem;
    padding: .7rem 1rem;
    transform: translateY(-200%);
    background: var(--yellow);
    color: var(--ink);
}
.skip-link:focus { transform: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.site-header { background: var(--paper); }
.header-inner, .footer-inner, .final-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.header-inner { min-height: 4.75rem; }
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.3rem;
    font-weight: 780;
    text-decoration: none;
}
.site-nav, .site-footer nav {
    display: flex;
    align-items: center;
    gap: 1.65rem;
    font-size: .9rem;
    font-weight: 650;
}
.site-nav > a:not(.button), .site-footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
}
.site-nav > a:not(.button):hover, .site-footer nav a:hover {
    text-decoration: underline;
    text-underline-offset: .25em;
}

.language-picker { position: relative; z-index: 1; }
.language-picker summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-width: 3.25rem;
    min-height: 44px;
    padding-inline: .4rem;
    cursor: pointer;
    list-style: none;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker ul {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 8.5rem;
    margin: .25rem 0 0;
    padding: .3rem;
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 8px 18px #17241e26;
}
.language-picker a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: .65rem;
    border-radius: 4px;
    text-decoration: none;
}
.language-picker a:hover, .language-picker a[aria-current] { background: var(--mint); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 46px;
    padding: .65rem 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 720;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}
.button-outline { border-color: #9daaa1; }
.button-outline:hover { background: var(--mint); }
.button-accent { background: var(--yellow); color: var(--ink); }
.button-accent:hover { background: #ffe98a; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--green); }
.hero .button:focus-visible { outline-color: white; }
.final-cta .button:focus-visible { outline-color: var(--ink); }
.button span { font-size: 1.2em; }

.hero {
    position: relative;
    isolation: isolate;
    display: block;
    background: #c93252;
    color: white;
}
.hero-inner {
    padding-block: 2rem 2.25rem;
}
.journey-steps {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(3, minmax(16rem, 1fr) 2.5rem) minmax(16rem, 1fr);
    gap: .25rem;
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 1.25rem 1.5rem;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
}
.journey-steps li { scroll-snap-align: start; font-weight: 650; }
.journey-steps span { color: var(--yellow); margin-right: .4rem; }
.journey-steps img { display: block; width: 100%; height: auto; margin-top: .75rem; }
.journey-transition { display: flex; align-items: flex-start; justify-content: center; padding-top: 5rem; }
.journey-arrow { display: block; width: 100%; height: auto; color: var(--yellow); overflow: visible; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .journey-steps img { transition: transform .2s ease-out; }
    .journey-steps li:hover img { transform: translateY(-3px); }
}
.eyebrow {
    font-size: .76rem;
    font-weight: 770;
    line-height: 1.45;
    text-transform: uppercase;
}
.hero-label { color: #f9e48e; }
.hero h1 {
    margin-top: .5rem;
    font-size: 6.5rem;
    font-weight: 790;
    line-height: .96;
}
.hero h1 span { color: var(--yellow); }
.hero-tagline {
    margin-top: 1.15rem;
    font: italic 2.45rem/1.12 Georgia, serif;
}
.hero-description {
    max-width: 24rem;
    margin-top: 1.25rem;
    color: #f0f3ef;
    font-size: 1.08rem;
    line-height: 1.55;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.5rem;
    margin-top: 1.6rem;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    font-weight: 650;
    text-underline-offset: .27em;
}
.text-link:hover { color: var(--yellow); }

.flow, .preview { padding-block: 4.5rem; }
.flow h2, .preview h2, .final-cta h2 {
    font-size: 2.55rem;
    line-height: 1.1;
    font-weight: 780;
    overflow-wrap: break-word;
}
.flow h2, .preview h2 { margin-top: .55rem; }
.flow .eyebrow, .preview .eyebrow { color: #2b6250; }
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}
.steps li {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.step-number {
    color: #2b6250;
    font: italic 1.25rem Georgia, serif;
}
.steps h3 { margin-top: .75rem; font-size: 1.12rem; }
.steps p, .preview-copy > p:last-child {
    margin-top: .55rem;
    color: var(--muted);
    line-height: 1.6;
}

.preview { background: var(--mint); }
.preview-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
}
.preview-copy { padding-top: 1rem; }
.preview-copy > p:last-child { max-width: 24rem; margin-top: .85rem; }
.sample-card {
    padding: 1.35rem 1.55rem;
    border: 1px solid #b9c9bf;
    border-radius: 8px;
    background: white;
    box-shadow: 0 5px 0 #cddbd1;
    overflow-wrap: break-word;
}
.sample-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .4rem .8rem;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 680;
}
.sample-term {
    display: grid;
    align-content: center;
    min-height: 7rem;
    padding-block: .9rem;
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 760;
}
.sample-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    min-height: 46px;
    border-top: 1px solid var(--line);
    color: #23523f;
    font-weight: 720;
    cursor: pointer;
    list-style: none;
}
.sample-card summary::-webkit-details-marker { display: none; }
.sample-card summary:hover { text-decoration: underline; }
.answer-icon {
    width: .56rem;
    height: .56rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-right: .25rem;
}
.sample-card details[open] .answer-icon { transform: rotate(225deg); }
.hide-answer, .sample-card details[open] .show-answer { display: none; }
.sample-card details[open] .hide-answer { display: inline; }
.sample-answer {
    display: grid;
    gap: .3rem;
    line-height: 1.5;
    color: var(--muted);
}
.sample-answer p:first-child { font-weight: 720; color: var(--ink); }
.sample-example { margin-top: .45rem; color: var(--ink); font-style: italic; }
.sample-controls:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .7rem;
    padding-top: .75rem;
    border-top: 1px solid var(--line);
}
.sample-count { color: var(--muted); font-size: .83rem; font-variant-numeric: tabular-nums; }
.sample-controls-buttons { display: flex; gap: .45rem; }
.sample-controls button {
    width: 44px;
    height: 44px;
    border: 1px solid #b9c9bf;
    border-radius: 6px;
    background: var(--mint);
    color: var(--ink);
    font: 1.25rem/1 system-ui, sans-serif;
    cursor: pointer;
}
.sample-controls button:hover:not(:disabled) { background: #d0e2d5; }
.sample-controls button:disabled { opacity: .43; cursor: default; }

.final-cta { padding-block: 3.75rem; background: #c93252; }
.final-cta p { margin-top: .7rem; line-height: 1.5; }
.final-inner .button { flex: 0 0 auto; }
.site-footer { padding-block: 1rem; }

@media (max-width: 800px) {
    .wrap { width: calc(100% - 3rem); }
    .hero h1 { font-size: 5.25rem; }
    .hero-tagline { font-size: 2.15rem; }
    .journey-steps { grid-template-columns: repeat(3, min(76vw, 21rem) 2.5rem) min(76vw, 21rem); }
    .flow, .preview { padding-block: 3rem; }
    .flow h2, .preview h2, .final-cta h2 { font-size: 2.1rem; }
}

@media (max-width: 640px) {
    .wrap { width: calc(100% - 2.5rem); }
    .header-inner { min-height: 4rem; gap: .7rem; }
    .site-nav { gap: .75rem; font-size: .82rem; }
    .site-nav > a.nav-preview { display: none; }
    .site-nav .button { padding-inline: .6rem; }
    .wordmark { font-size: 1.12rem; gap: .4rem; }
    .wordmark img { width: 28px; height: 28px; }
    .hero-inner { padding-block: 1.75rem; }
    .hero h1 { font-size: 4rem; }
    .hero-tagline { font-size: 1.85rem; }
    .hero-description { font-size: 1rem; }
    .hero-actions { margin-top: 1.3rem; }
    .flow, .preview { padding-block: 2.25rem; }
    .flow h2, .preview h2, .final-cta h2 { font-size: 1.9rem; }
    .steps, .preview-inner { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
    .steps { margin-top: 1.6rem; }
    .preview-copy { padding-top: 0; }
    .sample-term { font-size: 1.9rem; }
    .final-cta { padding-block: 2.35rem; }
    .final-inner { align-items: flex-start; flex-direction: column; }
    .footer-inner { flex-wrap: wrap; gap: .5rem 1.5rem; }
    .site-footer nav { gap: 1.1rem; }
}

@media (max-width: 360px) {
    .wrap { width: calc(100% - 2rem); }
    .hero-inner { padding-block: 1.5rem; }
    .hero h1 { font-size: 3.5rem; }
    .hero-tagline { margin-top: .85rem; font-size: 1.6rem; }
    .hero-description { margin-top: 1rem; }
    .hero-actions { margin-top: 1rem; column-gap: .85rem; }
}

@media (max-width: 440px) {
    .site-nav .nav-signup { display: none; }
}
