:root {
    --navy-950: #04111d;
    --navy-900: #061827;
    --navy-800: #0b2941;
    --ink: #0a2134;
    --ink-soft: #466071;
    --muted: #526b7a;
    --line: #d7e4ea;
    --mist: #eef4f6;
    --white: #ffffff;
    --cyan: #32d7f1;
    --lime: #b8f34a;
    --lime-hover: #ccff6b;
    --success: #28c789;
    --error: #c93258;
    --shell: min(1120px, calc(100% - 40px));
    --shadow: 0 28px 70px rgba(4, 17, 29, 0.14);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 280px;
    background: var(--mist);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 70%, rgba(50, 215, 241, 0.08), transparent 24%),
        var(--mist);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

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

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

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

.flow-shell {
    width: var(--shell);
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 9px 14px;
    color: var(--navy-950);
    background: var(--lime);
    border-radius: 8px;
    font-weight: 800;
    transform: translateY(-150%);
}

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

.flow-header {
    color: var(--white);
    background: var(--navy-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-header-inner {
    display: grid;
    min-height: 76px;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 20px;
}

.flow-logo {
    display: inline-flex;
    width: 166px;
}

.flow-logo img {
    width: 100%;
}

.demo-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    color: #a8c0ce;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 750;
}

.demo-badge i,
.panel-status i {
    width: 6px;
    height: 6px;
    background: var(--lime);
    border-radius: 50%;
}

.flow-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94adbb;
    font-size: 0.74rem;
    font-weight: 700;
    transition: color 150ms ease;
}

.back-home:hover {
    color: var(--white);
}

.flow-language {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.72rem;
    font-weight: 800;
}

.flow-language a {
    display: grid;
    min-width: 32px;
    min-height: 32px;
    place-items: center;
    color: #708d9d;
}

.flow-language a:hover,
.flow-language a[aria-current="page"] {
    color: var(--white);
}

.back-home:focus-visible,
.flow-language a:focus-visible,
.flow-button:focus-visible,
.pin-actions button:focus-visible,
.restart-form button:focus-visible,
.flow-legal-links a:focus-visible,
input:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

.flow-main {
    min-height: calc(100vh - 76px);
    padding: 40px 0 28px;
}

.progress {
    position: relative;
    display: grid;
    width: min(100%, 670px);
    margin: 0 auto 34px;
    grid-template-columns: repeat(3, 1fr);
}

.progress::before {
    position: absolute;
    top: 17px;
    right: 16.66%;
    left: 16.66%;
    height: 2px;
    background: #cbd9df;
    content: "";
}

.progress-step {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #566f7d;
    text-align: center;
}

.progress-step > span {
    display: grid;
    width: 36px;
    height: 36px;
    color: #435f6e;
    border: 1px solid #c5d4db;
    border-radius: 50%;
    background: var(--mist);
    font-size: 0.7rem;
    font-weight: 850;
    place-items: center;
}

.progress-step strong {
    font-size: 0.68rem;
    font-weight: 700;
}

.progress-step.is-current > span {
    color: var(--navy-950);
    border-color: var(--lime);
    background: var(--lime);
    box-shadow: 0 0 0 5px rgba(184, 243, 74, 0.17);
}

.progress-step.is-current strong {
    color: var(--ink);
}

.progress-step.is-complete > span {
    color: var(--white);
    border-color: var(--success);
    background: var(--success);
}

.progress-step.is-complete strong {
    color: #466071;
}

.flow-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.95fr);
    align-items: stretch;
    gap: 22px;
}

.flow-layout > * {
    min-width: 0;
}

.product-panel,
.flow-card {
    min-width: 0;
    border-radius: 28px;
}

.product-panel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    padding: clamp(38px, 5vw, 64px);
    color: var(--white);
    background:
        radial-gradient(circle at 75% 28%, rgba(50, 215, 241, 0.14), transparent 32%),
        linear-gradient(145deg, var(--navy-900), #0a2b45);
    box-shadow: 0 24px 70px rgba(4, 17, 29, 0.18);
    isolation: isolate;
}

.product-panel-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.panel-eyebrow,
.step-kicker {
    margin-bottom: 16px;
    color: var(--cyan);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.product-panel h1 {
    max-width: 500px;
    margin-bottom: 20px;
    font-size: clamp(2.6rem, 4.5vw, 4.25rem);
    font-weight: 780;
    letter-spacing: -0.055em;
    line-height: 1.03;
    overflow-wrap: anywhere;
}

.panel-lead {
    max-width: 540px;
    color: #a9c0ce;
    font-size: 0.98rem;
}

.mini-tunnel {
    display: grid;
    max-width: 460px;
    min-height: 150px;
    margin: 34px 0 22px;
    grid-template-columns: 72px 1fr 72px;
    align-items: center;
    gap: 8px;
}

.mini-node {
    display: grid;
    width: 66px;
    height: 66px;
    color: var(--cyan);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    place-items: center;
}

.mini-node svg {
    width: 28px;
}

.mini-server {
    color: var(--lime);
}

.mini-route {
    position: relative;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--lime));
    box-shadow: 0 0 18px rgba(50, 215, 241, 0.4);
}

.mini-route i {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    border: 7px solid var(--navy-800);
    border-radius: 50%;
    background: var(--lime);
    transform: translate(-50%, -50%);
}

.mini-route i::before {
    position: absolute;
    inset: 9px 7px;
    border: 2px solid var(--navy-950);
    border-top: 0;
    border-radius: 3px 3px 8px 8px;
    content: "";
}

.mini-route span {
    position: absolute;
    top: -3px;
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 9px #fff;
    animation: travel 2.6s linear infinite;
}

@keyframes travel {
    from { left: 0; opacity: 0; }
    15%, 85% { opacity: 1; }
    to { left: calc(100% - 8px); opacity: 0; }
}

.panel-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin: 20px 0 30px;
    padding: 0;
    list-style: none;
}

.panel-benefits li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #d4e4ec;
    font-size: 0.78rem;
    font-weight: 680;
}

.panel-benefits span {
    color: var(--lime);
}

.panel-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 11px;
    color: #85a3b3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.64rem;
}

.flow-card {
    align-self: center;
    width: 100%;
    padding: clamp(34px, 5vw, 58px);
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
}

.flow-card h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 780;
    letter-spacing: -0.05em;
    line-height: 1.06;
    overflow-wrap: anywhere;
}

.step-intro {
    margin-bottom: 28px;
    color: var(--ink-soft);
    font-size: 0.93rem;
}

.checkout-offer {
    margin: -7px 0 24px;
    padding: 15px 16px;
    border: 1px solid #cfe1e7;
    border-radius: 14px;
    background: linear-gradient(145deg, #f7fbfc, #eef8f9);
}

.checkout-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 3px;
}

.checkout-price strong {
    color: var(--navy-900);
    font-size: 1.65rem;
    font-weight: 850;
    letter-spacing: -0.045em;
    line-height: 1;
}

.checkout-price span,
.checkout-renewal,
.checkout-cancel,
.checkout-support,
.checkout-demo {
    font-size: 0.68rem;
    line-height: 1.5;
}

.checkout-price span {
    color: var(--muted);
    font-weight: 750;
}

.checkout-renewal {
    margin-bottom: 9px;
    color: var(--ink-soft);
}

.checkout-cancel {
    margin-bottom: 2px;
    color: var(--ink);
    font-weight: 800;
}

.checkout-support {
    margin-bottom: 10px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.checkout-demo {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0;
    padding-top: 9px;
    color: #3c626d;
    border-top: 1px solid #d8e8ec;
}

.checkout-demo i {
    width: 7px;
    height: 7px;
    margin-top: 0.35em;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 3px rgba(184, 243, 74, 0.16);
}

.inline-demo-badge,
.receipt-badge {
    display: inline-flex;
    margin: 0 0 16px;
    padding: 5px 8px;
    color: #2e611a;
    border: 1px solid #c7e8a6;
    border-radius: 6px;
    background: #f2ffe5;
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.receipt-badge {
    color: #426075;
    border-color: #c5dbe5;
    background: #edf7fa;
}

.signup-form label {
    display: block;
    margin-bottom: 9px;
    font-size: 0.76rem;
    font-weight: 800;
}

.phone-field,
.pin-field {
    display: flex;
    min-height: 66px;
    align-items: stretch;
    border: 1.5px solid #b9cdd7;
    border-radius: 12px;
    background: #fbfdfe;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.phone-field:focus-within,
.pin-field:focus-within {
    border-color: #149bb9;
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(25, 186, 217, 0.12);
}

.phone-field.is-valid,
.pin-field.is-valid {
    border-color: var(--success);
}

.phone-field.has-error,
.pin-field.has-error {
    border-color: var(--error);
}

.country-code {
    display: flex;
    width: 92px;
    flex: 0 0 92px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--ink);
    border-right: 1px solid var(--line);
    font-size: 0.92rem;
    font-weight: 780;
}

.country-code small {
    display: grid;
    width: 26px;
    height: 20px;
    color: var(--white);
    background: #bb2148;
    border-radius: 4px;
    font-size: 0.51rem;
    letter-spacing: 0.04em;
    place-items: center;
}

.phone-field input,
.pin-field input {
    width: 100%;
    min-width: 0;
    padding: 0 17px;
    color: var(--ink);
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1.18rem;
    font-weight: 760;
}

.phone-field input::placeholder,
.pin-field input::placeholder {
    color: #a4b5be;
}

.field-check {
    display: grid;
    width: 24px;
    height: 24px;
    margin: auto 16px auto 2px;
    flex: 0 0 24px;
    color: var(--white);
    background: var(--success);
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 900;
    opacity: 0;
    place-items: center;
    transform: scale(0.75);
    transition: opacity 150ms ease, transform 150ms ease;
}

.phone-field.is-valid .field-check {
    opacity: 1;
    transform: scale(1);
}

.pin-field input {
    height: 66px;
    padding-inline: 22px;
    font-size: 1.65rem;
    letter-spacing: 0.52em;
    text-align: center;
}

.field-help,
.field-error,
.form-footer-note {
    font-size: 0.7rem;
    line-height: 1.55;
}

.field-help {
    margin: 10px 0 20px;
    color: var(--muted);
}

.field-error {
    margin: 8px 0 -3px;
    color: var(--error);
    font-weight: 700;
}

.flow-button {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px 0 24px;
    color: var(--navy-950);
    border: 0;
    border-radius: 11px;
    background: var(--lime);
    box-shadow: 0 12px 26px rgba(150, 207, 45, 0.2);
    font-size: 0.9rem;
    font-weight: 850;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.flow-button:hover:not(:disabled) {
    background: var(--lime-hover);
    box-shadow: 0 15px 30px rgba(150, 207, 45, 0.26);
    transform: translateY(-2px);
}

.flow-button:disabled {
    color: #7a8e70;
    background: #dfe9d1;
    box-shadow: none;
    opacity: 0.78;
}

.flow-button i {
    font-style: normal;
    font-size: 1.15rem;
}

.flow-button.is-loading i {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(4, 17, 29, 0.22);
    border-top-color: var(--navy-950);
    border-radius: 50%;
    font-size: 0;
    animation: spin 650ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-footer-note {
    margin: 12px 0 0;
    color: #5b7280;
    text-align: center;
}

.phone-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -8px 0 24px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f6fafb;
}

.phone-summary span {
    color: var(--muted);
    font-size: 0.68rem;
}

.phone-summary strong {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.pin-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
}

.pin-actions form {
    margin: 0;
}

.pin-actions button,
.restart-form button {
    padding: 0;
    color: #587384;
    border: 0;
    background: transparent;
    font-size: 0.71rem;
    font-weight: 720;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pin-actions button:disabled {
    color: #9aabb4;
    text-decoration: none;
}

.pin-actions small {
    display: block;
    margin-top: 2px;
    color: #a7b5bc;
    font-size: 0.58rem;
    font-weight: 500;
}

.flow-legal-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    color: #536d7c;
    font-size: 0.67rem;
}

.flow-legal-links a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 0.75rem;
}

.alert-error {
    color: #8a2340;
    border: 1px solid #f0bfd0;
    background: #fff3f7;
}

.receipt-success {
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 24px;
    color: #176e4c;
    border: 1px solid #a9e6cb;
    border-radius: 50%;
    background: #e9fff5;
    place-items: center;
    box-shadow: 0 0 0 7px rgba(40, 199, 137, 0.08);
}

.receipt-success svg {
    width: 30px;
}

.receipt-intro {
    margin-bottom: 22px;
}

.receipt {
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fbfdfe;
}

.receipt h3 {
    margin: 0;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 0.86rem;
    letter-spacing: -0.01em;
}

.receipt dl {
    margin: 0;
}

.receipt dl > div {
    display: flex;
    min-height: 39px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 18px;
    border-bottom: 1px solid #e8eff2;
}

.receipt dt {
    color: var(--muted);
    font-size: 0.66rem;
}

.receipt dd {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.7rem;
    font-weight: 760;
    text-align: right;
}

.demo-status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

.receipt .receipt-id {
    border-bottom: 0;
}

.receipt > p {
    margin: 0;
    padding: 10px 18px;
    color: #8195a0;
    border-top: 1px dashed #cfdee5;
    background: #f3f8fa;
    font-size: 0.59rem;
}

.restart-form {
    margin: 15px 0 0;
    text-align: center;
}

.flow-footer-note {
    margin: 22px 0 0;
    color: #526d7c;
    font-size: 0.67rem;
    text-align: center;
}

@media (max-width: 880px) {
    :root {
        --shell: min(100% - 34px, 680px);
    }

    .flow-main {
        padding-top: 30px;
    }

    .flow-layout {
        grid-template-columns: 1fr;
    }

    .flow-card {
        order: -1;
    }

    .product-panel {
        min-height: 0;
    }

    .product-panel h1 {
        max-width: 560px;
    }

    .mini-tunnel {
        min-height: 115px;
    }
}

@media (max-width: 600px) {
    :root {
        --shell: calc(100% - 24px);
    }

    .flow-header-inner {
        min-height: 66px;
        grid-template-columns: 1fr auto auto;
        gap: 9px;
    }

    .flow-logo {
        width: 136px;
    }

    .demo-badge {
        padding: 5px 7px;
        font-size: 0.56rem;
    }

    .back-home {
        display: none;
    }

    .flow-header-actions {
        gap: 0;
    }

    .flow-language {
        font-size: 0.66rem;
    }

    .flow-main {
        min-height: calc(100vh - 66px);
        padding: 24px 0 18px;
    }

    .progress {
        margin-bottom: 24px;
    }

    .progress-step strong {
        font-size: 0.61rem;
    }

    .flow-layout {
        gap: 14px;
    }

    .flow-card,
    .product-panel {
        border-radius: 20px;
    }

    .flow-card {
        padding: 29px 22px;
    }

    .flow-card h2 {
        font-size: 2rem;
    }

    .product-panel {
        padding: 34px 24px;
    }

    .product-panel h1 {
        font-size: 2.45rem;
    }

    .mini-tunnel {
        grid-template-columns: 62px 1fr 62px;
    }

    .mini-node {
        width: 58px;
        height: 58px;
    }

    .panel-benefits {
        grid-template-columns: 1fr;
    }

    .phone-field,
    .pin-field {
        min-height: 62px;
    }

    .country-code {
        width: 84px;
        flex-basis: 84px;
    }

    .phone-field input {
        padding-inline: 13px;
        font-size: 1.03rem;
    }

    .field-check {
        margin-right: 11px;
    }

    .pin-actions {
        flex-direction: column;
    }

    .receipt dl > div {
        gap: 10px;
        padding-inline: 14px;
    }

    .receipt dt {
        max-width: 44%;
    }
}

@media (max-width: 350px) {
    :root {
        --shell: calc(100% - 16px);
    }

    .flow-logo {
        width: 118px;
    }

    .demo-badge {
        display: none;
    }

    .flow-card {
        padding-inline: 17px;
    }

    .country-code {
        width: 76px;
        flex-basis: 76px;
        gap: 4px;
    }

    .country-code small {
        width: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
