:root {
    --ink: #11110f;
    --paper: #f4f1e8;
    --card: #fbfaf6;
    --line: rgba(17, 17, 15, 0.18);
    --muted: #68665f;
    --signal: #ff5c35;
    --acid: #dfff4f;
    --shadow: 0 24px 80px rgba(36, 30, 18, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 92, 53, 0.08), transparent 26rem),
        var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.page-shell {
    width: min(100% - 40px, 1320px);
    margin: 0 auto;
}

.site-header {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-decoration: none;
}

.brand-mark,
.card-badge {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--paper);
    background: var(--ink);
    font-size: 0.82rem;
    font-weight: 900;
}

.brand-mark {
    transform: rotate(-7deg);
}

.header-link {
    color: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.header-link span {
    display: inline-block;
    margin-left: 8px;
    color: var(--signal);
}

.hero {
    min-height: calc(100vh - 92px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.82fr);
    align-items: center;
    gap: clamp(48px, 7vw, 120px);
    padding: 76px 0 92px;
}

.eyebrow,
.section-index,
.step-label,
.preview-kicker {
    margin: 0;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 5px rgba(255, 92, 53, 0.12);
}

.hero h1 {
    margin: 26px 0 28px;
    max-width: 760px;
    font-size: clamp(4.2rem, 7.8vw, 7.7rem);
    font-weight: 820;
    letter-spacing: -0.075em;
    line-height: 0.82;
}

.hero h1 em {
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.hero-description {
    max-width: 560px;
    margin: 0;
    color: #46443e;
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.65;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 36px;
}

.trust-row span {
    padding: 8px 11px;
    border: 1px solid var(--line);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.download-card {
    position: relative;
    isolation: isolate;
    padding: clamp(24px, 4vw, 42px);
    overflow: hidden;
    border: 1px solid rgba(17, 17, 15, 0.24);
    background: var(--card);
    box-shadow: var(--shadow);
}

.download-card::before {
    position: absolute;
    content: "";
    z-index: 0;
    top: -108px;
    right: -78px;
    width: 160px;
    height: 160px;
    border: 24px solid var(--acid);
    border-radius: 50%;
    opacity: 0.68;
    pointer-events: none;
}

.download-card > * {
    position: relative;
    z-index: 1;
}

.card-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
}

.card-badge {
    position: relative;
}

.field-group {
    margin-bottom: 22px;
}

.field-group > label {
    display: block;
    margin-bottom: 9px;
    font-size: 0.76rem;
    font-weight: 800;
}

.url-control,
.select-wrap {
    display: flex;
    min-height: 58px;
    border: 1px solid var(--ink);
    background: white;
}

.url-control:focus-within,
.select-wrap:focus-within {
    outline: 3px solid rgba(255, 92, 53, 0.25);
    outline-offset: 2px;
}

.url-control input,
.select-wrap select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.url-control input {
    padding: 0 15px;
    font-size: 0.9rem;
}

.url-control input::placeholder {
    color: #9b9991;
}

.url-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    margin: 8px;
}

.paste-button,
.clear-button {
    padding: 0 13px;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.paste-button {
    background: #e9e6dc;
}

.paste-button:hover {
    background: var(--acid);
}

.clear-button {
    border: 1px solid var(--line);
    background: transparent;
}

.clear-button:hover {
    border-color: var(--ink);
    background: #f3f0e7;
}

.clear-button:disabled {
    cursor: default;
    opacity: 0.38;
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    position: absolute;
    content: "⌄";
    top: 50%;
    right: 17px;
    pointer-events: none;
    transform: translateY(-58%);
    font-size: 1.2rem;
}

.select-wrap select {
    padding: 0 44px 0 15px;
    appearance: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.terms-check {
    position: relative;
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 10px;
    margin-top: 2px;
    color: #56544e;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1.5;
}

.terms-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.custom-check {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    margin-top: 1px;
    border: 1px solid var(--ink);
    background: white;
}

.terms-check input:checked + .custom-check {
    background: var(--ink);
}

.terms-check input:checked + .custom-check::after {
    content: "✓";
    color: white;
    font-size: 0.72rem;
    font-weight: 900;
}

.terms-check input:focus-visible + .custom-check {
    outline: 3px solid rgba(255, 92, 53, 0.25);
    outline-offset: 2px;
}

.field-error {
    margin: 8px 0 0;
    color: #b92b13;
    font-size: 0.76rem;
    font-weight: 700;
}

.terms-error {
    margin-left: 30px;
}

.alert {
    margin: -10px 0 22px;
    padding: 12px 14px;
    border-left: 3px solid var(--signal);
    background: #fff0eb;
    color: #842713;
    font-size: 0.82rem;
    line-height: 1.5;
}

.actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    margin-top: 26px;
}

.primary-button,
.secondary-button {
    min-height: 58px;
    border: 1px solid var(--ink);
    cursor: pointer;
    font-weight: 850;
}

.secondary-button {
    padding: 0 18px;
    background: transparent;
    color: var(--ink);
    font-size: 0.76rem;
}

.secondary-button:hover {
    background: #ece9df;
}

.primary-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 20px;
    color: white;
    background: var(--ink);
    font-size: 0.88rem;
}

.primary-button:hover {
    background: #2a2925;
}

.primary-button:disabled,
.secondary-button:disabled {
    cursor: wait;
    opacity: 0.64;
}

.button-arrow {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    color: var(--ink);
    background: var(--acid);
    font-size: 1rem;
}

.privacy-note,
.form-status {
    margin: 16px 0 0;
    color: #77746c;
    font-size: 0.68rem;
    line-height: 1.5;
    text-align: center;
}

.privacy-note span {
    margin-right: 5px;
    color: #439556;
}

.form-status:empty {
    display: none;
}

.form-status.is-error {
    color: #b92b13;
    font-weight: 700;
}

.preview {
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.preview:not([hidden]) {
    display: grid;
}

.preview-media {
    display: grid;
    place-items: center;
    width: 92px;
    height: 68px;
    overflow: hidden;
    background: var(--ink);
}

.preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-placeholder {
    color: var(--paper);
    font-size: 1.5rem;
    font-weight: 900;
}

.preview-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.preview-kicker {
    color: #439556;
    font-size: 0.58rem;
}

.preview-copy strong {
    overflow: hidden;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-copy > span:last-child {
    color: var(--muted);
    font-size: 0.7rem;
}

.how-it-works {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(60px, 10vw, 150px);
    padding: 120px 0;
    border-top: 1px solid var(--line);
}

.how-it-works h2,
.responsible-use h2 {
    margin: 22px 0 0;
    font-size: clamp(2.5rem, 4.8vw, 5.1rem);
    letter-spacing: -0.06em;
    line-height: 0.94;
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 20px;
    padding: 27px 0;
    border-bottom: 1px solid var(--line);
}

.steps li:first-child {
    border-top: 1px solid var(--line);
}

.step-number {
    color: var(--signal);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-style: italic;
}

.steps h3 {
    margin: 0 0 7px;
    font-size: 1.1rem;
}

.steps p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.responsible-use {
    display: grid;
    grid-template-columns: 0.4fr 1fr;
    gap: 50px;
    padding: 90px clamp(24px, 6vw, 90px);
    color: var(--paper);
    background: var(--ink);
}

.responsible-use .section-index {
    color: var(--acid);
}

.responsible-use h2 {
    margin-top: 0;
}

.responsible-use p:last-child {
    max-width: 720px;
    color: #bdbbb3;
    font-size: 1rem;
    line-height: 1.75;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 32px 0 42px;
    color: var(--muted);
    font-size: 0.72rem;
}

@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 58px;
    }

    .hero h1 {
        font-size: clamp(4rem, 14vw, 7rem);
    }

    .download-card {
        width: min(100%, 680px);
    }

    .how-it-works {
        grid-template-columns: 1fr;
    }

    .responsible-use {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 560px) {
    .page-shell {
        width: min(100% - 24px, 1320px);
    }

    .site-header {
        min-height: 74px;
    }

    .header-link {
        display: none;
    }

    .hero {
        padding: 54px 0 72px;
    }

    .hero h1 {
        margin-top: 22px;
        font-size: clamp(3.4rem, 18vw, 5.2rem);
    }

    .download-card {
        padding: 23px 18px;
    }

    .download-card::before {
        top: -82px;
        right: -62px;
        width: 126px;
        height: 126px;
        border-width: 19px;
    }

    .actions {
        grid-template-columns: 1fr;
    }

    .secondary-button {
        min-height: 50px;
        order: 2;
    }

    .how-it-works {
        padding: 86px 0;
    }

    .responsible-use {
        margin: 0 -12px;
        padding: 66px 24px;
    }

    footer {
        flex-direction: column;
        line-height: 1.5;
    }
}

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