:root {
    --bg: #f3f6fb;
    --surface: #fff;
    --surface-soft: #f8fafc;
    --text: #182230;
    --muted: #637083;
    --line: #dfe6ef;
    --primary: #2457d6;
    --primary-dark: #1946b9;
    --success: #198754;
    --shadow: 0 16px 45px rgba(28, 44, 74, .08);
    --radius: 18px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.55
}

button {
    font: inherit
}

a {
    color: var(--primary)
}

.container {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto
}

.hero {
    color: #fff;
    background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .2), transparent 32%), linear-gradient(135deg, #1b3f98, #2868e0);
    padding: 54px 0 86px
}

.hero__content {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: center
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    opacity: .78
}

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

h1 {
    max-width: 780px;
    margin-bottom: 16px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(23px, 3vw, 31px);
    line-height: 1.2
}

h3 {
    margin: 24px 0 8px;
    font-size: 18px
}

.hero__lead {
    max-width: 720px;
    margin-bottom: 0;
    font-size: 18px;
    opacity: .9
}

.status-card {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px)
}

.status-card__dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 50%;
    background: #5cf29b;
    box-shadow: 0 0 0 6px rgba(92, 242, 155, .15)
}

.status-card strong, .status-card span {
    display: block
}

.status-card span {
    margin-top: 3px;
    font-size: 14px;
    opacity: .8
}

.main-content {
    position: relative;
    margin-top: -46px;
    padding-bottom: 54px
}

.card {
    display: grid;
    grid-template-columns:52px minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 22px;
    padding: 30px;
    border: 1px solid rgba(221, 229, 239, .8);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow)
}

.card__body > :last-child {
    margin-bottom: 0
}

.step-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #fff;
    background: var(--primary);
    font-size: 18px;
    font-weight: 800
}

.step-number--ok {
    background: var(--success)
}

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

.choice-grid--compact {
    max-width: 720px
}

.choice-button {
    display: flex;
    gap: 14px;
    align-items: center;
    width: 100%;
    min-height: 92px;
    padding: 18px;
    border: 2px solid var(--line);
    border-radius: 15px;
    color: var(--text);
    background: var(--surface);
    text-align: left;
    cursor: pointer;
    transition: .18s ease
}

.choice-button:hover {
    border-color: #adc2f4;
    transform: translateY(-1px)
}

.choice-button.is-active {
    border-color: var(--primary);
    background: #f3f7ff;
    box-shadow: 0 0 0 4px rgba(36, 87, 214, .08)
}

.choice-button__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #edf3ff;
    font-size: 23px
}

.choice-button__icon--app {
    overflow: hidden;
    background: #fff
}

.choice-button__icon--app img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain
}

.choice-button__icon--tunnelblick img {
    width: 42px;
    height: 42px
}

.choice-button strong, .choice-button small {
    display: block
}

.choice-button small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px
}

.conditional {
    display: none
}

.conditional.is-visible {
    display: grid
}

.state-list {
    display: grid;
    gap: 12px;
    margin: 22px 0
}

.state-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft)
}

.state-item p {
    margin: 2px 0 0;
    color: var(--muted)
}

.state-dot {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 5px;
    border-radius: 50%
}

.state-item--green .state-dot {
    background: #22a85a;
    box-shadow: 0 0 0 5px rgba(34, 168, 90, .12)
}

.state-item--gray .state-dot {
    background: #8693a4;
    box-shadow: 0 0 0 5px rgba(134, 147, 164, .12)
}

.state-item--yellow .state-dot {
    background: #e5a211;
    box-shadow: 0 0 0 5px rgba(229, 162, 17, .14)
}

.state-icon {
    display: block;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    object-fit: contain;
    margin-top: 1px;
}

.numbered-list {
    padding-left: 24px
}

.numbered-list li {
    margin-bottom: 9px;
    padding-left: 4px
}

.alert {
    margin: 20px 0;
    padding: 15px 17px;
    border: 1px solid transparent;
    border-radius: 13px
}

.alert--info {
    color: #174a82;
    border-color: #c9dcf3;
    background: #edf6ff
}

.alert--warning {
    color: #744b00;
    border-color: #f1d69c;
    background: #fff8e6
}

.alert--success {
    color: #15623b;
    border-color: #bde1cd;
    background: #edfbf3
}

.alert--light {
    color: var(--text);
    border-color: var(--line);
    background: var(--surface-soft)
}

.help-details {
    margin-top: 20px;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft)
}

.help-details summary {
    padding: 16px 0;
    color: var(--primary);
    font-weight: 750;
    cursor: pointer;
    user-select: none
}

.help-details[open] {
    padding-bottom: 18px
}

.help-details figure {
    margin: 8px 0 0
}

.help-details img {
    display: block;
    width: 100%;
    max-width: 860px;
    height: auto;
    border: 1px solid #d9e1eb;
    border-radius: 12px;
    background: #fff
}

.help-details figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px
}

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

.copy-field {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin: 18px 0
}

.copy-field code {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 14px 15px;
    overflow-wrap: anywhere;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #101827;
    color: #dce7ff;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace
}

.copy-button, .primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: .18s ease
}

.copy-button {
    color: #fff;
    background: #34465f
}

.copy-button:hover {
    background: #27384f
}

.copy-button.is-copied {
    background: var(--success)
}

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

.primary-button:hover {
    color: #fff;
    background: var(--primary-dark);
    transform: translateY(-1px)
}

.settings-list {
    display: grid;
    gap: 1px;
    overflow: hidden;
    margin: 4px 0 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--line)
}

.settings-list div {
    display: grid;
    grid-template-columns:180px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 14px;
    background: #fff
}

.settings-list dt {
    color: var(--muted)
}

.settings-list dd {
    margin: 0;
    font-weight: 700
}

.service-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0
}

.service-card {
    display: flex;
    flex-direction: column;
    min-height: 142px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--text);
    background: var(--surface-soft);
    text-decoration: none;
    transition: .18s ease
}

.service-card:hover {
    border-color: #adc2f4;
    background: #f3f7ff;
    transform: translateY(-2px)
}

.service-card strong {
    font-size: 18px
}

.service-card span {
    margin-top: 6px;
    color: var(--muted)
}

.service-card small {
    margin-top: auto;
    padding-top: 18px;
    color: var(--primary);
    font-weight: 700
}

.muted {
    color: var(--muted)
}

.footer {
    padding: 24px 0 38px;
    color: var(--muted);
    text-align: center;
    font-size: 14px
}

.footer p {
    margin: 0
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    max-width: min(360px, calc(100% - 40px));
    padding: 13px 16px;
    border-radius: 12px;
    color: #fff;
    background: #192435;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: .2s ease
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0)
}

@media (max-width: 800px) {
    .hero {
        padding-top: 42px
    }

    .hero__content {
        grid-template-columns:1fr;
        gap: 24px
    }

    .status-card {
        max-width: 520px
    }

    .choice-grid, .service-grid, .screenshots-grid {
        grid-template-columns:1fr
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 20px, 1040px)
    }

    .hero {
        padding-bottom: 70px
    }

    .main-content {
        margin-top: -36px
    }

    .card {
        grid-template-columns:1fr;
        gap: 14px;
        padding: 21px 18px;
        border-radius: 15px
    }

    .step-number {
        width: 38px;
        height: 38px;
        border-radius: 12px
    }

    .copy-field {
        flex-direction: column
    }

    .settings-list div {
        grid-template-columns:1fr;
        gap: 2px
    }
}

@media print {
    body {
        background: #fff
    }

    .hero {
        padding: 24px 0;
        color: #000;
        background: #fff
    }

    .status-card, .choice-grid, .copy-button, .toast {
        display: none !important
    }

    .main-content {
        margin-top: 0
    }

    .card, .conditional {
        display: grid !important;
        box-shadow: none;
        break-inside: avoid
    }

    .help-details {
        break-inside: avoid
    }
}
