/* SPIDTECH account and purchase flows — the parts js/pricing.js (and js/trial.js) draw into
   .flow: headings, steps, choice tiles, fields, buttons, notices. EliteZone system with
   Spider red as the accent (Apple buy-flow patterns: one question per step, big tap targets,
   selection outlined in the accent colour). Built on inner.css. */

.flow > h2 {
    margin: 0;
    color: var(--g900);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .005em;
    text-wrap: balance;
}

.flow > h2:focus {
    outline: none;
}

.st-muted {
    margin: 10px 0 0;
    color: var(--g700);
    font-size: 17px;
    line-height: 1.6;
}

.flow > form,
.flow > .st-summary {
    margin-top: 28px;
}

.flow > .st-primary,
.flow > .st-secondary {
    margin-top: 28px;
}

/* progress: Account · Verify · Review */
.st-steps {
    display: flex;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.st-steps li {
    flex: 1;
    padding-top: 12px;
    border-top: 3px solid var(--g300);
    color: var(--g700);
    font-size: 14px;
    font-weight: 500;
}

.st-steps li[aria-current="step"] {
    border-color: var(--red);
    color: var(--g900);
    font-weight: 600;
}

.st-steps li:has(~ li[aria-current="step"]) {
    border-color: var(--g900);
    color: var(--g900);
}

/* choice tiles (the licenses) */
.sp-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sp-plan {
    position: relative;
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 132px;
    padding: 22px 56px 22px 24px;
    border: 1px solid var(--g400);
    border-radius: 18px;
    background: #fff;
    text-align: left;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.sp-plan:hover {
    border-color: var(--g700);
}

.sp-plan strong {
    color: var(--g900);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
}

/* the license's price for the chosen country (pricing.js: plan_prices from the server) */
.sp-plan-price {
    display: block;
    margin-top: 6px;
    color: var(--g900);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.005em;
    font-variant-numeric: tabular-nums;
}

.sp-plan-price span {
    color: var(--g700);
    font-size: 14px;
    font-weight: 400;
}

.sp-price .sp-per {
    color: var(--g700);
    font-size: 21px;
    font-weight: 400;
    letter-spacing: 0;
}

.sp-plan small {
    color: var(--g700);
    font-size: 14px;
    line-height: 1.55;
}

/* the chosen one: outlined in Spider red, with a tick */
.sp-plan[aria-pressed="true"] {
    border-color: var(--red);
    box-shadow: inset 0 0 0 1px var(--red);
}

.sp-plan::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--g400);
    border-radius: 50%;
    transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.sp-plan[aria-pressed="true"]::after {
    border-color: var(--red);
    background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3.2L17 8.8'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* fields */
.flow label {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    color: var(--g900);
    font-size: 14px;
    font-weight: 600;
}

.flow input:not([type="checkbox"]):not([type="hidden"]),
.flow select {
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--g400);
    border-radius: 12px;
    background: #fff;
    color: var(--g900);
    font: 400 17px/1.2 Montserrat, Arial, sans-serif;
    letter-spacing: .005em;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.flow select {
    padding-right: 44px;
    -webkit-appearance: none;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23495057' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") right 16px center / 16px no-repeat;
    cursor: pointer;
}

.flow input:hover,
.flow select:hover {
    border-color: var(--g600);
}

.flow input:focus,
.flow select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgb(237 28 41 / .16);
    outline: none;
}

.flow small {
    color: var(--g700);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.flow form > small {
    display: block;
    margin-top: 8px;
}

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

.st-password {
    position: relative;
    display: block;
}

.inner .st-password button {
    position: absolute;
    top: 50%;
    right: 8px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--red-ink);
    font-size: 14px;
    font-weight: 600;
    transform: translateY(-50%);
}

.st-password button:hover {
    background: var(--g100);
}

.flow label.st-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--g700);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.st-check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--red);
}

.st-check a {
    color: var(--red-ink) !important;
}

.st-check a:hover {
    text-decoration: underline;
}

/* buttons */
/* (prefixed with .inner: inner.css resets every button to font: inherit) */
.inner .st-primary,
.inner .st-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 28px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .005em;
    transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.st-primary {
    border: 0;
    background: var(--red);
    color: #fff !important;
}

.st-primary:hover {
    background: var(--red-h);
}

.st-primary:active {
    background: var(--red-a);
    transform: scale(.98);
}

.st-secondary {
    border: 1px solid var(--g400);
    background: #fff;
    color: var(--g900);
}

.st-secondary:hover {
    border-color: var(--g700);
}

.st-secondary:active {
    background: var(--g100);
    transform: scale(.98);
}

.st-primary:disabled,
.st-secondary:disabled {
    opacity: .5;
    cursor: default;
    transform: none;
}

.inner .st-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--red-ink) !important;
    font-size: inherit;
    font-weight: 600;
}

.st-link:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}

/* a link the script adds under a form's button («Already have a code?»): the standard gap, centred
   like the other links under a button */
.flow form > .st-link {
    display: block;
    margin: var(--after-button) auto 0;
    font-size: 15px;
}

.st-after {
    margin: var(--after-button) 0 0;
    color: var(--g700);
    font-size: 15px;
    text-align: center;
}

.st-after .st-secondary {
    margin-top: 4px;
}

.st-after a {
    color: var(--red-ink) !important;
    font-weight: 600;
}

.st-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 20px;
    font-size: 15px;
}

.st-actions a {
    color: var(--red-ink) !important;
    font-weight: 600;
}

.st-actions .st-secondary {
    width: auto;
    min-height: 44px;
    margin: 0;
}

/* account summary */
.st-summary {
    padding: 18px 20px;
    border-radius: 14px;
    background: #fff;   /* on the light-grey card */
    color: var(--g900);
    font-size: 15px;
}

.st-summary p {
    margin: 0;
}

.st-summary p + p {
    margin-top: 4px;
}

.st-verified,
.sp-verified-row {
    color: #007B6D;             /* EliteZone success ink */
    font-weight: 600;
}

.sp-verified-row {
    margin: 16px 0 0;
    font-size: 15px;
}

.sp-plan-grid + .st-muted {
    margin-top: var(--after-button);
}

.sp-hint {
    margin: var(--after-button) 0 0;
    color: var(--g700);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

/* messages: a tinted line under the step (EliteZone notice), red when it is an error */
#st-notice:empty {
    display: none;
}

#st-notice {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid var(--g300);
    border-radius: 12px;
    background: #fff;   /* on the light-grey card */
    color: var(--g900);
    font-size: 15px;
}

#st-notice.st-error {
    border-color: #F8C6CA;
    background: var(--red-t);
    color: var(--red-ink);
}

#st-notice:focus {
    outline: none;
}

/* the sign-in forms post to the server; this copy answers with a note (js/static-forms.js) */
.static-note {
    margin: 20px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--g300);
    border-radius: 12px;
    background: #fff;   /* on the light-grey card */
    color: var(--g900);
    font-size: 15px;
}

@media (max-width: 734px) {
    .flow > h2 {
        font-size: 24px;
    }

    .sp-plan-grid,
    .st-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sp-plan {
        min-height: 0;
    }
}


/* =====================================================================================
   Flow pages (Pricing, Free Trial, Verify): Apple buy-page layout. The title on the left,
   then the current step in a white card with a summary card pinned beside it.
   ===================================================================================== */
.spid-trial {
    padding-bottom: var(--section-space);
}

/* ---------- title ---------- */
.p-hero {
    padding-top: 72px;
}

.p-hero .h1 {
    margin-top: 14px;
}

.p-hero .lead {
    margin-top: 20px;
    max-width: 36em;
    text-wrap: balance;
}

/* ---------- step + summary ---------- */
.p-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: 24px;
    margin-top: var(--section-space);
}

.p-card,
.p-order {
    border-radius: var(--radius-big);
    background: var(--card);
}

.p-card {
    padding: 48px;
}

.p-order {
    position: sticky;
    top: calc(var(--lnav-h) + 24px);
    padding: 40px;
}

.p-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--g300);
}

.p-order-head h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
}

.p-order-head img {
    width: 44px;
    height: 44px;
}

.sp-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--g200);
    font-size: 15px;
}

.sp-row span {
    color: var(--g700);
}

.sp-row strong {
    color: var(--g900);
    font-weight: 600;
    text-align: right;
}

.sp-price {
    margin-top: 28px;
    color: var(--g900);
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}

#sp-order-content .st-muted {
    margin-top: 12px;
    font-size: 15px;
}

#sp-order-content > small {
    display: block;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--g200);
    color: var(--g700);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 1068px) {
    .p-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .p-order {
        position: static;
    }
}

@media (max-width: 734px) {
    .p-hero {
        padding-top: 48px;
    }

    .p-layout {
        gap: 16px;
        margin-top: var(--section-space);
    }

    .p-card {
        padding: 32px 24px;
    }

    .p-order {
        padding: 28px 24px;
    }

    .sp-price {
        font-size: 40px;
    }
}

/* The account's country at sign-up (2026-10-25): where the visitor connects from, shown, not chosen
   (js/trial.js, js/pricing.js countryLine). The name in ink, the reason under it in grey. */
.flow .st-country {
    margin: 20px 0 0;                /* as each field of the form */
    color: var(--g900);
    font-size: 17px;
    line-height: 1.5;
}

.flow .st-country small {
    display: block;
    margin-top: 4px;
    color: var(--g600);
    font-size: 14px;
    line-height: 1.45;
}

.flow .st-country.is-unknown small {
    color: var(--red-ink);
}

/* «Popular countries» under every Country list (js/country-order.js): round flags in white
   pills; the chosen country black with white text (as every selected option on the site). */
.cc-pop {
    margin-top: 14px;
}

.flow .cc-pop-title {
    margin: 0 0 10px;
    color: var(--g700);
    font-size: 13px;
    font-weight: 400;
}

.cc-pop-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inner .cc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px 0 9px;
    border: 1px solid var(--g300);
    border-radius: 999px;
    background: #fff;
    color: var(--g900);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.cc-chip img {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgb(0 0 0 / .08);
    object-fit: cover;
}

.inner .cc-chip:hover {
    border-color: var(--g600);
}

.inner .cc-chip:active {
    transform: scale(.97);
}

.inner .cc-chip[aria-pressed="true"] {
    border-color: var(--g900);
    background: var(--g900);
    color: #fff;
}

.cc-chip[aria-pressed="true"] img {
    box-shadow: 0 0 0 2px #fff;
}

@media (prefers-reduced-motion: reduce) {
    .inner .cc-chip {
        transition: none;
    }
}

/* the server's answer on Sign In / Reset (Laravel session status or the first validation error) */
.static-note.is-error {
    border-color: rgb(237 28 41 / .35);
    background: var(--red-t);
    color: var(--red-ink);
}

.flow > .static-note:first-child {
    margin: 0 0 20px;
}

/* =====================================================================================
   Pricing look (2026-10-25): the country bar with its round flag above the licenses, a
   «Best value» Lifetime, and the VPN guess (js/pricing.js vpnNote, FlowController vpn_suspect).
   ===================================================================================== */
.sp-flag {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgb(33 37 41 / .08);
}

.sp-flag-lg {
    width: 44px;
    height: 44px;
}

.sp-row-flag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sp-row:has(.sp-row-flag) {
    align-items: center;
}

.sp-where {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 16px 20px;
    border-radius: 18px;
    background: #fff;
}

.sp-where p {
    margin: 0;
    color: var(--g900);
    font-size: 17px;
    line-height: 1.4;
}

.sp-where small {
    display: block;
    margin-top: 2px;
    color: var(--g600);
    font-size: 14px;
    line-height: 1.45;
}

.sp-where + .sp-vpn,
.sp-where + form,
.sp-vpn + form {
    margin-top: 16px;
}

.sp-where ~ form .sp-plan-grid {
    margin-top: 0;
}

/* a partner also sells Spider in this country (2026-11-24) */
.sp-partner {
    margin: 14px 4px 0;
    color: var(--g700);
    font-size: 15px;
    line-height: 1.6;
}

.sp-partner + form {
    margin-top: 16px;
}

/* a country with no online sale (Canada): the note and one way forward, in place of Buy now */
.sp-contact {
    margin-top: 24px;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
}

.sp-contact p {
    margin: 0 0 16px;
    color: var(--g900);
    font-size: 17px;
    line-height: 1.5;
}

.sp-contact .st-primary {
    margin: 0;
}

/* the VPN guess: white, a red shield, the reason and two plain actions */
.sp-where.is-vpn {
    box-shadow: inset 0 0 0 1px var(--red-t);
}

.sp-vpn {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 18px;
    background: var(--red-t);
}

.sp-vpn-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--red);
}

.sp-vpn-icon svg {
    width: 24px;
    height: 24px;
}

.sp-vpn strong {
    display: block;
    color: var(--g900);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.sp-vpn p {
    margin: 4px 0 0;
    color: var(--g700);
    font-size: 15px;
    line-height: 1.6;
}

.sp-vpn-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 12px;
}

.flow .sp-vpn-actions .st-link {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--red-ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.flow .sp-vpn-actions .st-link:hover {
    text-decoration: underline;
}

/* the licenses: taller tiles, a big price, Lifetime's «Best value» and its years of Annual */
.spid-pricing .sp-plan {
    gap: 8px;
    min-height: 196px;
    padding: 28px;
    border-radius: 22px;
    transition: border-color .2s var(--ease), box-shadow .3s cubic-bezier(0, 0, .5, 1), transform .3s cubic-bezier(0, 0, .5, 1);
}

.spid-pricing .sp-plan:hover {
    box-shadow: 2px 4px 16px rgb(0 0 0 / .08);
}

.spid-pricing .sp-plan[aria-pressed="true"] {
    box-shadow: inset 0 0 0 1px var(--red), 2px 4px 16px rgb(0 0 0 / .06);
}

.spid-pricing .sp-plan::after {
    top: 28px;
    right: 28px;
}

.spid-pricing .sp-plan strong {
    padding-right: 120px;            /* the tick, and Lifetime's badge beside it */
}

.spid-pricing .sp-plan-price {
    margin-top: 10px;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -.01em;
}

.spid-pricing .sp-plan-price span {
    font-size: 17px;
    letter-spacing: 0;
}

.sp-plan-badge {
    position: absolute;
    top: 29px;
    right: 64px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--red-t);
    color: var(--red-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.sp-plan-value {
    display: block;
    color: var(--red-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.spid-pricing .sp-plan small {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--g200);
}

@media (max-width: 734px) {
    .sp-where {
        padding: 14px 16px;
    }

    .sp-flag-lg {
        width: 36px;
        height: 36px;
    }

    .spid-pricing .sp-plan {
        min-height: 0;
    }

    .spid-pricing .sp-plan-price {
        font-size: 32px;
    }
}

/* UI review (2026-10-25): both license tiles end with their description on the same line, so
   Annual (no «years of Annual» line) has no empty band at its foot. */
.spid-pricing .sp-plan {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.spid-pricing .sp-plan small {
    margin-top: auto;
}

.spid-pricing .sp-plan .sp-plan-value {
    margin-bottom: 14px;
}

/* Button levels (user, 2026-10-25): the flow's secondary button is level 3 (white, an Apple shadow,
   no outline); its links are level 4 (information blue). */
.inner .st-secondary {
    border: 0;
    background: #fff;
    color: var(--b2, #1D1D1F);
    box-shadow: var(--b3-shadow);
    transition: box-shadow .3s cubic-bezier(0, 0, .5, 1), transform .25s ease;
}

.inner .st-secondary:hover {
    box-shadow: var(--b3-shadow-h);
}

.inner .st-secondary:active {
    background: #f5f5f7;
}

.inner .st-link,
.st-after a,
.st-actions a,
.flow .sp-vpn-actions a.st-link {
    color: var(--info, #0066CC) !important;
}

/* the VPN guess: «Reload page» is a level-3 button, «Message our team» a level-4 link */
.flow .sp-vpn-actions [data-reload] {
    min-height: 36px;
    padding: 0 16px !important;
    border-radius: 999px;
    background: #fff !important;
    color: var(--b2, #1D1D1F) !important;
    box-shadow: var(--b3-shadow);
}

.flow .sp-vpn-actions [data-reload]:hover {
    box-shadow: var(--b3-shadow-h);
    text-decoration: none !important;
}

.flow .sp-vpn-actions {
    align-items: center;
}

.inner .st-primary.btn-2 {
    background: var(--b2, #1D1D1F);
}

.inner .st-primary.btn-2:hover {
    background: var(--b2-h, #333336);
}

.inner .st-primary.btn-2:active {
    background: var(--b2-a, #000);
}

/* level 4 (information blue): the terms link in the sign-up check box */
.st-check a {
    color: var(--info, #0066CC) !important;
}

/* ===== phones and tablets (2026-11-07), everything here sits inside a width query, the desktop stays as it was ===== */
/* a tablet held sideways has the room for the two columns (Pricing, Trial, Verify) */
@media (min-width: 901px) and (max-width: 1068px) {
    .p-layout {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }

    .p-order {
        position: sticky;
        padding: 32px;
    }

    .p-card {
        padding: 40px;
    }
}

/* Pricing keeps one column up to here: beside the summary, «Best value» sat on the word «Lifetime» */
@media (max-width: 1199px) {
    .spid-pricing .p-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .spid-pricing .p-order {
        position: static;
    }
}

@media (max-width: 734px) {
    /* the fields stacked on phones: the same gap between all of them */
    .st-grid {
        row-gap: 20px;
    }
}
/* ===== end of phones and tablets ===== */
