/* Compact system shared by the 15 independent topic landing folders. */
:root {
    /* Legacy donor styles still reference these names. Keep them mapped to
       the current page tokens so buttons never lose their fill or contrast. */
    --color-primary-hover: var(--accent);
    --color-accent-hover: var(--cta-hover);
    --color-on-primary: var(--paper);
    --fs-display: 64px;
    --fs-h3: 24px;
    --fs-body-lg: 18px;
    --fs-body: 16px;
    --fs-body-sm: 14px;
    --fs-kicker: 14px;
    --fs-nav: 16px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --radius-pill: 999px;
    --ease: cubic-bezier(.2,.75,.25,1);
}

html {
    scroll-padding-top: 88px;
}
body, .page {
    overflow: visible;
}
.wrap {
    width: min(calc(100% - 32px), 1200px);
}
main > .section, .section, .final {
    padding-block: 24px;
}
h1, h2, h3, p, a, span, .question__button {
    overflow-wrap: break-word;
}
h1 {
    max-width: 18ch;
    margin: 0 auto 16px;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.03em;
}
h2 {
    margin-bottom: 12px;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.17;
    letter-spacing: normal;
}
h3, .pain-solution h3 {
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: normal;
}
p, .hero-copy > p:not(.free-note), .feature-card p, .slide-card p, .benefit p, .question p {
    font-size: var(--fs-nav);
    line-height: 1.55;
}
.hero-copy > p:not(.kicker):not(.free-note) {
    font-size: 21px;
    line-height: 1.45;
    font-weight: 400;
}
img, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}
.button, .header-shell .button, .hero-actions .button:first-child, .hero-actions .button--ghost, .final .button, .footer-cta {
    width: auto;
    min-width: 0;
    min-height: 0;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: var(--fs-nav);
    line-height: 1;
    white-space: nowrap;
}
.button {
    background: var(--cta);
    color: var(--cta-text);
}
.button--ghost, .header-login {
    border-color: var(--accent);
    background: transparent;
    color: var(--ink);
}
.site-header {
    top: 20px;
}
.header-shell {
    display: flex;
    min-height: 74px;
    gap: 24px;
    padding: 12px;
}
.brand {
    justify-self: start;
}
.brand img {
    width: 191px;
    height: auto;
}
.nav {
    justify-self: center;
    margin-left: auto;
    gap: 12px;
}
.nav a {
    min-height: 40px;
    padding: 8px 16px;
    font-size: var(--fs-nav);
}
.header-actions {
    justify-self: end;
}
.header-shell .button {
    padding-inline: 12px;
}
.header-try {
    border: 0;
}
.hero {
    padding: 96px 0 24px;
}
.hero-copy > h1:first-child {
    margin-top: 0;
}
.hero-copy > p:not(.free-note) {
    max-width: 720px;
    margin-inline: auto;
}
.hero-actions {
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.microtrust {
    margin-top: 12px;
}
.hero-visual {
    min-height: 0;
    margin-top: 24px;
    padding: 16px;
    border-radius: 18px;
}
.hero-raster {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}
.hero-panel {
    left: 28px;
    bottom: 28px;
    padding: 16px;
}
.section-head {
    max-width: 760px;
    margin-bottom: 16px;
}
.pain-grid, .process-grid, .quality-grid, .faq-grid {
    gap: 24px;
}
.pain-grid {
    align-items: start;
    gap: 20px;
}
.pain h2 {
    max-width: 18ch;
}
.pain-list {
    margin-top: 12px;
}
.pain-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
}
.pain-item strong {
    font-size: 16px;
    line-height: 1.35;
}
.pain-item p {
    font-size: 14px;
    line-height: 1.45;
}
.pain-solution {
    min-height: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pain-solution h3 {
    max-width: 24ch;
    font-size: clamp(24px, 2.5vw, 28px);
    font-weight: 600;
    line-height: 1.2;
}
.pain-solution p {
    max-width: none;
}
.pain-solution .kicker,
.pain-solution h3,
.pain-solution p {
    margin: 0;
}
.pain-solution img {
    position: static;
    width: 100%;
    height: clamp(128px, 12vw, 156px);
    max-height: none;
    margin-top: 6px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center 58%;
}
.feature-grid, .slide-track, .benefit-grid, .checks, .examples-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 12px;
}
.feature-grid > *, .slide-track > *, .benefit-grid > *, .checks > *, .examples-grid > *, .pain-grid > *, .process-grid > *, .quality-grid > *, .faq-grid > * {
    min-width: 0;
}
.feature-card, .slide-card, .benefit, .check, .step, .example-main, .example-side {
    min-height: 0;
    gap: 12px;
    padding: 16px;
}
.feature-card {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 34%);
}
.feature-card img, .structure-flow, .example-main img, .example-side img {
    position: static;
    width: 100%;
    height: auto;
    max-height: 180px;
    margin-top: 12px;
    object-fit: contain;
    transform: none;
}
.benefit svg {
    margin-bottom: 12px;
}
.example-main, .example-side {
    display: flex;
    flex-direction: column;
}
.steps {
    gap: 8px;
}
.step:nth-child(n) {
    margin-left: 0;
}
.faq {
    padding-block: 24px;
}
.faq-grid {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: start;
}
.faq-grid > div:first-child {
    padding: 20px;
    border: 1px solid #d8dee3;
    border-radius: 12px;
    background: #fff;
}
.faq-grid > div:first-child .kicker {
    margin-bottom: 12px;
}
.faq-grid > div:first-child h2 {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(25px, 2.5vw, 32px);
    line-height: 1.14;
}
.questions {
    gap: 8px;
}
.question {
    overflow: hidden;
    border-color: #d8dee3;
    transition: background-color 180ms ease, border-color 180ms ease;
}
.question:hover,
.question:has(> .question__button[aria-expanded='true']) {
    border-color: var(--color-primary-hover);
    background: #fff;
}
.question__button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: -3px;
}
.question__button {
    position: relative;
    width: 100%;
    min-height: 52px;
    padding: 12px 48px 12px 16px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}
.question__button:hover,
.question__button[aria-expanded='true'] {
    color: var(--ink);
}
.question__button::after {
    content: '';
    position: absolute;
    display: block;
    box-sizing: border-box;
    top: 50%;
    right: 18px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--accent-ink);
    border-bottom: 2px solid var(--accent-ink);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 180ms ease;
}
.question__button[aria-expanded='true']::after {
    content: '';
    animation: none;
    transform: translateY(-35%) rotate(225deg);
}
.question .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 180ms ease;
}
.question__button[aria-expanded='true'] + .faq-answer {
    grid-template-rows: 1fr;
}
.question .faq-answer > div {
    min-height: 0;
    overflow: hidden;
    border-top: 1px solid #e3e7ea;
}
.question p {
    padding: 12px 16px 14px;
    color: #3f4650;
    font-size: 14px;
    line-height: 18px;
}

.footer h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: normal;
}

@media (min-width: 769px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.final {
    padding-block: 24px;
    text-align: center;
}
.final::before, .final::after {
    display: none;
}
.final .wrap {
    display: flex;
    max-width: 760px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
}
.final h2, .final p {
    margin: 0;
}
.footer {
    padding: 28px 0 calc(24px + env(safe-area-inset-bottom));
}
.footer-catalog {
    gap: 24px;
    padding-bottom: 16px;
}
.footer-logo {
    display: flex;
    width: min(223px, 100%);
    min-height: 68px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid #dedede;
    border-radius: 12px;
    background: #fff;
}
.footer-logo img {
    display: block;
    width: 191px;
    max-width: 100%;
    height: auto;
    filter: none;
}
.footer-links {
    gap: 16px;
}
.footer-line {
    padding-top: 16px;
}
@media (max-width: 1090px) {
    .header-shell {
        grid-template-columns: 1fr auto;
    }
    .header-actions {
        grid-column: 2;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .faq-grid > div:first-child h2 {
        max-width: none;
    }
}
@media (max-width: 768px) {
    .section, main > .section, .final {
        padding-block: 24px;
    }
    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .hero-actions .button {
        width: auto;
    }
}
@media (max-width: 600px) {
    .wrap {
        width: min(calc(100% - 24px), 1200px);
    }
    .site-header {
        top: 8px;
    }
    .header-shell {
        min-height: 60px;
        gap: 4px;
        padding: 8px;
    }
    .brand img {
        width: clamp(104px, 30vw, 128px);
    }
    .header-actions {
        gap: 4px;
    }
    .header-shell .button {
        height: 36px;
        padding-inline: clamp(7px, 2vw, 10px);
        font-size: clamp(10px, 2.7vw, 12px);
    }
    .header-login, .header-try {
        min-width: 0;
    }
    .hero {
        padding: 80px 0 24px;
    }
    .hero h1 {
        max-width: 100%;
        font-size: clamp(32px, 9vw, 40px);
        line-height: 1.08;
        letter-spacing: -.03em;
    }
    .hero-copy > p:not(.kicker):not(.free-note) {
        font-size: 18px;
        line-height: 1.45;
    }
    .question__button {
        font-size: 16px;
    }
    .faq-grid > div:first-child {
        padding: 16px;
    }
    .hero-visual {
        margin-top: 16px;
        padding: 8px;
    }
    .feature-card {
        grid-template-columns: 1fr;
    }
    .feature-card img, .structure-flow, .example-main img, .example-side img {
        max-height: 150px;
    }
    .pain-solution, .feature-card, .slide-card, .benefit, .check, .step, .example-main, .example-side {
        padding: 16px;
    }

    .pain-solution h3 {
        max-width: none;
        font-size: 22px;
        line-height: 1.15;
    }

    .pain-solution img {
        height: 128px;
        max-height: none;
    }
    .final {
        text-align: center;
    }
    .final .wrap {
        align-items: center;
        padding: 16px 16px;
    }
    .final .button, .footer-cta {
        width: auto;
        height: 40px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .question .faq-answer, .question__button::after {
        transition: none;
    }
}
