:root {
    --background: #ffffff;
    --text: #111111;
    --muted: #606060;
    --line: #d8d8d8;
    --line-strong: #b8b8b8;
    --green: #09632d;
    --green-hover: #074b23;
    --warning: #b66a00;
    --warning-line: #d98200;
    --warning-background: #fff9ed;
    --success: #09632d;
    --error: #a02323;
    --content-width: 1480px;
    --page-gutter: clamp(22px, 3.4vw, 54px);
    color-scheme: light;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
}

button,
input,
textarea {
    color: inherit;
    font: inherit;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #2b76c5;
    outline-offset: 3px;
}

.site-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 32px;
    height: 58px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: var(--content-width);
    padding: 0 var(--page-gutter);
}

.brand {
    font-size: 25px;
    font-weight: 760;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    gap: clamp(22px, 3vw, 46px);
}

.main-nav a {
    font-size: 16px;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    text-decoration: underline;
}

main {
    margin: 0 auto;
    max-width: var(--content-width);
}

.hero {
    display: grid;
    grid-template-columns: minmax(520px, 0.95fr) minmax(520px, 1.45fr);
    min-height: 390px;
    overflow: hidden;
    padding-left: var(--page-gutter);
    position: relative;
}

.hero-copy {
    align-self: start;
    max-width: 520px;
    padding: 60px 20px 22px 0;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: clamp(46px, 3.8vw, 60px);
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0 0 16px;
    white-space: nowrap;
}

.hero-copy > p:first-of-type {
    font-size: clamp(20px, 1.65vw, 25px);
    line-height: 1.42;
    margin: 0 0 22px;
    max-width: 520px;
}

.button {
    align-items: center;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    font-size: 17px;
    font-weight: 720;
    justify-content: center;
    min-height: 52px;
    padding: 13px 24px;
    text-align: center;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button-primary {
    background: var(--green);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--green-hover);
}

.hero-button {
    min-width: min(100%, 320px);
}

.compatibility-note {
    color: var(--muted);
    font-size: 16px;
    margin: 12px 0 0;
}

.device-stage {
    min-height: 390px;
    position: relative;
}

.device-shell {
    aspect-ratio: 3 / 4;
    background: #f4f4f4;
    border: 1px solid #d1d1d1;
    border-radius: 22px;
    box-shadow: 16px 18px 24px rgba(0, 0, 0, 0.14);
    height: auto;
    left: 5%;
    padding: 32px 30px 44px;
    position: absolute;
    top: 10px;
    transform: rotate(4deg);
    transform-origin: top center;
    width: 600px;
}

.device-screen {
    background: #ffffff;
    border: 2px solid #9d9d9d;
    height: 100%;
    overflow: hidden;
}

.device-screen img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: top;
    width: 100%;
}

.device-edge {
    background: #d9d9d9;
    border-radius: 50%;
    height: 7px;
    left: 50%;
    position: absolute;
    top: 12px;
    transform: translateX(-50%);
    width: 7px;
}

.stylus {
    background: linear-gradient(90deg, #efefef 0, #ffffff 30%, #dedede 100%);
    border: 1px solid #d2d2d2;
    border-radius: 22px;
    box-shadow: 7px 10px 14px rgba(0, 0, 0, 0.13);
    height: 340px;
    left: min(88%, 760px);
    position: absolute;
    top: 82px;
    transform: rotate(4deg);
    width: 34px;
}

.stylus span {
    color: #9a9a9a;
    font-size: 10px;
    left: 50%;
    position: absolute;
    top: 72px;
    transform: translateX(-50%) rotate(90deg);
    white-space: nowrap;
}

.beta-notice {
    align-items: center;
    background: var(--warning-background);
    border: 1px solid var(--warning-line);
    border-radius: 4px;
    display: flex;
    gap: 16px;
    margin: 0 30px;
    padding: 10px 20px;
}

.warning-icon {
    color: var(--warning);
    flex: 0 0 36px;
    height: 36px;
    width: 36px;
}

.beta-notice h2 {
    color: var(--warning);
    font-size: 19px;
    line-height: 1.2;
    margin: 0 0 4px;
}

.beta-notice p {
    margin: 0;
}

.information-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px var(--page-gutter) 14px;
}

.info-column {
    min-width: 0;
    padding: 0 clamp(24px, 3vw, 54px);
    scroll-margin-top: 24px;
}

.info-column:first-child {
    padding-left: 0;
}

.info-column:last-child {
    padding-right: 0;
}

.info-column + .info-column {
    border-left: 1px solid var(--line-strong);
}

.info-column h2,
.contact-section h2 {
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 10px;
}

.feature-list,
.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list {
    display: grid;
    gap: 6px;
}

.feature-list li {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: 32px 1fr;
}

.feature-list svg {
    border: 1px solid var(--text);
    border-radius: 3px;
    fill: none;
    height: 32px;
    padding: 6px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 32px;
}

.feature-list span,
.step-list li,
.check-row {
    font-size: 14px;
    line-height: 1.35;
}

.update-note {
    border-top: 1px solid var(--line);
    font-size: 14px;
    margin: 8px 0 0;
    padding-top: 8px;
}

.step-list {
    display: grid;
    gap: 7px;
}

.step-list li {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 32px 1fr;
}

.step-list span {
    align-items: center;
    border: 1px solid var(--text);
    border-radius: 2px;
    display: flex;
    font-size: 18px;
    font-weight: 700;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.check-row {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    gap: 12px;
}

.check-row input {
    appearance: none;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 2px;
    cursor: pointer;
    flex: 0 0 23px;
    height: 23px;
    margin: 1px 0 0;
    position: relative;
    width: 23px;
}

.check-row input:checked::after {
    border: solid var(--green);
    border-width: 0 3px 3px 0;
    content: "";
    height: 11px;
    left: 7px;
    position: absolute;
    top: 3px;
    transform: rotate(45deg);
    width: 6px;
}

.button-download {
    background: var(--green);
    color: #ffffff;
    margin-top: 15px;
    width: 100%;
}

.button-download:hover {
    background: var(--green-hover);
}

.button-download.is-disabled {
    background: #e5e5e5;
    color: #8b8b8b;
    cursor: not-allowed;
}

.release-meta {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 7px;
    margin-top: 11px;
}

.text-button {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.checksum {
    background: #f3f3f3;
    border: 1px solid var(--line);
    display: block;
    font-size: 12px;
    margin-top: 12px;
    overflow-wrap: anywhere;
    padding: 10px;
}

.download-dialog {
    background: transparent;
    border: 0;
    color: var(--text);
    margin: auto;
    max-height: calc(100vh - 32px);
    max-width: calc(100vw - 32px);
    padding: 0;
    width: 680px;
}

.download-dialog::backdrop {
    background: rgba(0, 0, 0, 0.56);
}

.download-dialog-panel {
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    padding: 34px;
    position: relative;
}

.download-dialog-close {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex;
    font-size: 32px;
    height: 44px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 12px;
    top: 10px;
    width: 44px;
}

.download-dialog-kicker {
    color: var(--green);
    font-size: 14px;
    font-weight: 760;
    margin: 0 52px 8px 0;
}

.download-dialog h2 {
    font-size: 30px;
    margin: 0 52px 12px 0;
}

.download-dialog-text {
    color: var(--muted);
    font-size: 17px;
    margin: 0;
    max-width: 580px;
}

.download-dialog-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    margin-top: 26px;
}

.button-support {
    background: var(--green);
    color: #ffffff;
}

.button-support:hover {
    background: var(--green-hover);
}

.button-direct-download {
    background: #ffffff;
    border: 1px solid var(--text);
    color: var(--text);
}

.button-direct-download:hover {
    background: #f1f1f1;
}

.download-dialog-note {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    margin: 24px 0 0;
    padding-top: 16px;
}

.contact-section {
    border-top: 1px solid var(--line);
    display: grid;
    gap: clamp(36px, 7vw, 120px);
    grid-template-columns: minmax(240px, 0.55fr) minmax(560px, 1.45fr);
    padding: 10px var(--page-gutter) 6px;
    scroll-margin-top: 24px;
}

.contact-intro p {
    margin: 0;
    max-width: 300px;
}

.contact-form {
    align-items: center;
    display: grid;
    gap: 3px 16px;
    grid-template-columns: 130px 1fr;
    position: relative;
}

.contact-form > label {
    font-size: 14px;
}

.contact-form input[type="email"],
.contact-form input[type="text"],
.contact-form textarea {
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    min-height: 30px;
    padding: 5px 9px;
    width: 100%;
}

.contact-form textarea {
    height: 58px;
    min-height: 58px;
    resize: vertical;
}

.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
    border-color: var(--error);
}

.honeypot {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

.consent-row,
.contact-actions,
.form-status {
    grid-column: 2;
}

.contact-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.contact-actions .button {
    min-width: 190px;
    min-height: 36px;
    padding: 6px 20px;
}

.contact-actions p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.form-status {
    font-size: 14px;
    font-weight: 650;
    margin: 0;
    min-height: 20px;
}

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

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

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

.site-footer {
    border-top: 1px solid var(--line);
    display: flex;
    gap: 30px;
    margin: 0 auto;
    max-width: var(--content-width);
    padding: 10px var(--page-gutter);
}

.site-footer a {
    font-size: 14px;
}

.legal-page {
    margin: 0 auto;
    max-width: 820px;
    padding: 60px var(--page-gutter) 80px;
}

.legal-page h1 {
    font-size: 42px;
    line-height: 1.1;
    margin: 0 0 34px;
}

.legal-page h2 {
    font-size: 22px;
    margin: 34px 0 10px;
}

.legal-page p,
.legal-page li {
    line-height: 1.65;
}

.legal-page .back-link {
    display: inline-block;
    margin-bottom: 34px;
}

@media (max-width: 1050px) {
    .hero {
        grid-template-columns: minmax(420px, 0.95fr) minmax(400px, 1.05fr);
    }

    .device-shell {
        left: 8%;
        width: 520px;
    }

    .stylus {
        left: 91%;
    }

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

    .download-column {
        border-left: 0 !important;
        border-top: 1px solid var(--line-strong);
        grid-column: 1 / -1;
        margin-top: 28px;
        padding: 26px 0 0;
    }

    .contact-section {
        grid-template-columns: minmax(200px, 0.45fr) minmax(460px, 1.55fr);
    }
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
        height: auto;
        padding-bottom: 14px;
        padding-top: 16px;
    }

    .brand {
        font-size: 20px;
    }

    .main-nav {
        gap: 16px;
        max-width: 58vw;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .main-nav a {
        font-size: 14px;
        white-space: nowrap;
    }

    .hero {
        display: block;
        min-height: 700px;
        padding: 0;
    }

    .hero-copy {
        padding: 44px var(--page-gutter) 22px;
    }

    .hero h1 {
        font-size: 44px;
        white-space: normal;
    }

    .hero-copy > p:first-of-type {
        font-size: 19px;
    }

    .device-stage {
        min-height: 370px;
    }

    .device-shell {
        left: 12%;
        padding: 22px 20px 34px;
        top: 18px;
        width: min(480px, 82vw);
    }

    .stylus {
        height: 310px;
        left: auto;
        right: 5%;
        top: 55px;
        width: 28px;
    }

    .beta-notice {
        align-items: flex-start;
        margin: 0 var(--page-gutter);
        padding: 15px 16px;
    }

    .warning-icon {
        flex-basis: 34px;
        height: 34px;
        width: 34px;
    }

    .information-grid {
        display: block;
        padding-bottom: 22px;
        padding-top: 20px;
    }

    .info-column,
    .info-column:first-child,
    .info-column:last-child {
        border-left: 0;
        padding: 0;
    }

    .info-column + .info-column {
        border-left: 0;
        border-top: 1px solid var(--line-strong);
        margin-top: 26px;
        padding-top: 26px;
    }

    .contact-section {
        display: block;
        padding-bottom: 32px;
        padding-top: 18px;
    }

    .contact-intro {
        margin-bottom: 24px;
    }

    .contact-form {
        display: block;
    }

    .contact-form input[type="email"],
    .contact-form input[type="text"],
    .contact-form textarea {
        min-height: 38px;
        padding: 8px 10px;
    }

    .contact-form textarea {
        height: 96px;
        min-height: 96px;
    }

    .contact-form > label {
        display: block;
        font-weight: 650;
        margin: 14px 0 6px;
    }

    .consent-row {
        margin-top: 16px;
    }

    .contact-actions {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        margin-top: 18px;
    }

    .contact-actions .button {
        min-height: 52px;
        padding: 13px 24px;
        width: 100%;
    }

    .download-dialog-panel {
        padding: 28px 22px 24px;
    }

    .download-dialog h2 {
        font-size: 26px;
    }

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

    .form-status {
        margin-top: 14px;
    }
}

@media (max-width: 430px) {
    .site-header {
        display: block;
    }

    .main-nav {
        margin-top: 12px;
        max-width: 100%;
    }

    .hero {
        min-height: 690px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero-button {
        width: 100%;
    }

    .device-shell {
        left: 9%;
        width: 88vw;
    }

    .stylus {
        display: none;
    }
}

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

    .button {
        transition: none;
    }
}
