:root {
    color-scheme: light;
    --ink: #14201c;
    --muted: #65736f;
    --line: #d9e1dd;
    --paper: #f7f8f3;
    --panel: #ffffff;
    --accent: #1f8a70;
    --accent-dark: #12624f;
    --amber: #c58a2c;
    --danger: #a33a2f;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

:target {
    scroll-margin-top: 24px;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible {
    outline: 3px solid rgba(31, 138, 112, 0.34);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 10px 12px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-weight: 720;
    text-decoration: none;
    transform: translateY(-160%);
}

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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 0 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 248, 243, 0.92);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 760;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    letter-spacing: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.nav a {
    text-decoration: none;
}

.nav a:hover {
    color: var(--ink);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
    gap: 56px;
    align-items: center;
    min-height: calc(88svh - 72px);
    padding: 48px 32px 42px;
}

.hero-copy,
.section-inner {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.hero-copy {
    max-width: 600px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 760;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(44px, 7vw, 84px);
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 1.2;
}

.lead {
    max-width: 560px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 19px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    font-weight: 720;
    text-decoration: none;
    touch-action: manipulation;
}

.button.secondary {
    background: transparent;
    color: var(--ink);
}

.button:hover {
    transform: translateY(-1px);
}

.product-visual {
    width: min(680px, 100%);
    margin: 0 auto;
    border: 1px solid #22332d;
    border-radius: 8px;
    background: #101a17;
    color: #edf7f1;
    box-shadow: 0 24px 70px rgba(15, 24, 21, 0.22);
    overflow: hidden;
}

.visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #adc4ba;
    font-size: 13px;
}

.visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.visual-cell {
    min-height: 154px;
    padding: 20px;
    background: #101a17;
}

.visual-cell strong {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    color: #fff;
}

.metric {
    font-size: 42px;
    line-height: 1;
    font-weight: 780;
}

.metric small {
    display: block;
    margin-top: 8px;
    color: #adc4ba;
    font-size: 13px;
    font-weight: 500;
}

.visual-list {
    display: grid;
    gap: 10px;
    color: #dcebe4;
    font-size: 14px;
}

.visual-list span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section {
    padding: 72px 32px;
    border-top: 1px solid var(--line);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.price-card {
    display: flex;
    flex-direction: column;
    min-height: 390px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.price-card.featured {
    border-color: var(--accent);
    box-shadow: inset 0 4px 0 var(--accent);
}

.price {
    margin: 18px 0;
    font-size: 42px;
    font-weight: 780;
    line-height: 1;
}

.price span {
    color: var(--muted);
    font-size: 15px;
    font-weight: 560;
}

.features {
    display: grid;
    gap: 10px;
    margin: 0 0 26px;
    padding: 0;
    color: var(--muted);
    list-style: none;
}

.features li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: 1px;
}

.price-card .button {
    margin-top: auto;
}

.workflow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.step {
    padding-top: 18px;
    border-top: 2px solid var(--ink);
}

.step span {
    display: block;
    margin-bottom: 18px;
    color: var(--amber);
    font-weight: 760;
}

.success-shell {
    display: grid;
    place-items: center;
    min-height: calc(100svh - 72px);
    padding: 48px 24px;
}

.success-panel {
    width: min(720px, 100%);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.success-panel h1 {
    font-size: clamp(34px, 6vw, 58px);
}

.license-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f3f6f1;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-weight: 720;
}

.license-box[hidden] {
    display: none;
}

.status-note {
    color: var(--muted);
}

.status-note.error {
    color: var(--danger);
}

.page-shell {
    padding: 54px 32px 88px;
}

.page-head,
.content-grid,
.content-body,
.support-grid {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.page-head {
    padding: 36px 0 28px;
}

.page-head h1 {
    max-width: 860px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 44px;
    align-items: start;
}

.content-body {
    max-width: 820px;
}

.content-body section,
.support-panel,
.doc-shot,
.article-card {
    margin-bottom: 34px;
}

.content-body h2,
.content-body h3 {
    scroll-margin-top: 24px;
}

.content-body p,
.content-body li {
    color: var(--muted);
    font-size: 17px;
}

.content-body strong,
.content-body h2,
.content-body h3 {
    color: var(--ink);
}

.content-body a {
    color: var(--accent-dark);
    font-weight: 700;
}

.toc {
    position: sticky;
    top: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.toc strong {
    display: block;
    margin-bottom: 12px;
}

.toc a {
    display: block;
    padding: 7px 0;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.toc a:hover {
    color: var(--ink);
}

.doc-shot {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow: hidden;
}

.doc-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.doc-shot figcaption {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.step-list,
.check-list,
.issue-list {
    display: grid;
    gap: 14px;
    padding: 0;
    list-style: none;
}

.step-list li,
.check-list li,
.issue-list li,
.article-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.step-list b,
.check-list b,
.issue-list b {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 28px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.data-table th,
.data-table td {
    padding: 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--ink);
    font-size: 14px;
}

.data-table td {
    color: var(--muted);
}

.notice-band {
    padding: 16px;
    border-left: 4px solid var(--accent);
    background: #eef7f3;
}

.support-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
    gap: 24px;
}

.support-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.support-form {
    display: grid;
    gap: 14px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.support-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 700;
}

.support-form input,
.support-form select,
.support-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.validation-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(380px, 0.82fr);
    gap: 64px;
    align-items: center;
    min-height: min(760px, calc(88svh - 72px));
    padding: 58px 32px 48px;
}

.validation-copy {
    width: min(680px, 100%);
    margin-left: auto;
}

.validation-hero h1 {
    max-width: 760px;
    font-size: clamp(42px, 4.6vw, 58px);
}

.research-boundary {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.research-visual {
    width: min(620px, 100%);
    border: 1px solid #24362f;
    border-radius: 8px;
    background: #101a17;
    color: #edf7f1;
    box-shadow: 0 24px 70px rgba(15, 24, 21, 0.2);
    overflow: hidden;
}

.research-visual-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #bdd0c7;
    font-size: 13px;
}

.research-visual-head b {
    color: #f1c676;
}

.research-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.research-metrics div {
    min-height: 148px;
    padding: 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.research-metrics div:nth-child(2n) {
    border-right: 0;
}

.research-metrics dt {
    margin-bottom: 18px;
    color: #adc4ba;
    font-size: 13px;
}

.research-metrics dd {
    margin: 0;
    font-size: 34px;
    font-weight: 780;
    line-height: 1;
}

.research-metrics small {
    display: block;
    margin-top: 8px;
    color: #adc4ba;
    font-size: 12px;
    font-weight: 520;
}

.research-visual > p {
    margin: 0;
    padding: 17px 20px 19px;
    color: #adc4ba;
    font-size: 13px;
}

.evidence-layout,
.direction-layout,
.validation-form-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 64px;
    align-items: start;
}

.section-heading {
    position: sticky;
    top: 24px;
}

.evidence-list {
    border-top: 2px solid var(--ink);
}

.evidence-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.evidence-row > span {
    color: var(--amber);
    font-weight: 780;
}

.evidence-row p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.direction-list,
.compact-facts {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.direction-list li,
.compact-facts li {
    position: relative;
    padding: 16px 0 16px 30px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.direction-list li::before,
.compact-facts li::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 2px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.validation-form {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.optional {
    color: var(--muted);
    font-size: 12px;
    font-weight: 520;
}

.consent-field {
    grid-template-columns: 20px 1fr !important;
    align-items: start;
    gap: 10px !important;
    color: var(--muted) !important;
    font-size: 14px;
    font-weight: 520 !important;
}

.consent-field input {
    min-height: 18px;
    margin: 2px 0 0;
}

.consent-field a {
    color: var(--accent-dark);
    font-weight: 700;
}

.website-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.button:disabled {
    cursor: wait;
    opacity: 0.58;
    transform: none;
}

.support-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-status {
    min-height: 24px;
    color: var(--muted);
    font-weight: 700;
}

.form-status.error {
    color: var(--danger);
}

.form-status.success {
    color: var(--accent-dark);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }

    .button:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-copy,
    .product-visual,
    .price-card,
    .step,
    .success-panel {
        animation: rise 520ms ease both;
    }

    .product-visual {
        animation-delay: 90ms;
    }

    .price-card:nth-child(2) {
        animation-delay: 70ms;
    }

    .price-card:nth-child(3) {
        animation-delay: 120ms;
    }

    @keyframes rise {
        from {
            opacity: 0;
            transform: translateY(18px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 920px) {
    .site-header {
        padding: 0 20px;
    }

    .nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 52px 20px 42px;
    }

    .validation-hero,
    .evidence-layout,
    .direction-layout,
    .validation-form-layout {
        grid-template-columns: 1fr;
    }

    .validation-hero {
        min-height: auto;
        gap: 38px;
        padding: 52px 20px 42px;
    }

    .validation-copy {
        margin-left: 0;
    }

    .section-heading {
        position: static;
    }

    .section {
        padding: 54px 20px;
    }

    .pricing-grid,
    .workflow,
    .content-grid,
    .support-grid,
    .field-grid,
    .visual-grid {
        grid-template-columns: 1fr;
    }

    .research-metrics {
        grid-template-columns: 1fr;
    }

    .research-metrics div {
        min-height: 118px;
        border-right: 0;
    }

    .price-card {
        min-height: auto;
    }

    .license-box {
        align-items: stretch;
        flex-direction: column;
    }

    .page-shell {
        padding: 38px 20px 64px;
    }

    .toc {
        position: static;
        order: -1;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }
}
