/*
Theme Name: STT Verify
Author: STT
Description: STT Verify carrier intelligence landing with configurable account setup and CRM sign-in destinations.
Version: 0.2.3
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: stt-verify
*/

/* WordPress-specific behavior, separate from the preserved landing design. */
.nav a.sttv-language-link { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 13px; }
@media (max-width: 900px) { .nav a.sttv-language-link { display: inline-flex !important; } }
@media (max-width: 640px) { .nav a.sttv-language-link { margin-right: 12px; } }
@media (max-width: 420px) { .site-header .brand img { width: 112px; height: auto; } .nav a.sttv-language-link { font-size: 12px; margin-right: 9px; } .nav .nav__signin { font-size: 13px; } }
.btn:disabled { cursor: not-allowed; opacity: .58; }
[aria-disabled="true"] { cursor: default; opacity: .6; }
.nav .nav__signin[aria-disabled="true"] { color: #fff; font-size: 15px; font-weight: 600; }
body.admin-bar .site-header { top: 32px; }
.sttv-content { padding-top: 64px; padding-bottom: 64px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }

/* The checkout connector owns routes, validation, payment and account state. */
body:has(.sttv-checkout-page) { --mbar-h: 0px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.sttv-checkout-page ~ .mbar { display: none; }
.sttv-checkout-page { min-height: 70vh; padding: clamp(32px, 5vw, 72px) 0 72px; background: #f6f5f3; }
.sttv-checkout-container { width: min(1080px, calc(100% - var(--gutter))); margin-inline: auto; }
.sttv-checkout-intro { max-width: 720px; margin-bottom: 30px; }
.sttv-checkout-intro h1 { margin: 0 0 18px; font-family: var(--display); font-weight: 400; font-size: clamp(42px, 5vw, 66px); line-height: 1; }
.sttv-checkout-intro h1 span { color: var(--red); }
.sttv-checkout-intro p { max-width: 60ch; margin: 0; color: var(--muted); font-size: 16px; }
.sttv-checkout-page .eyebrow { margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.sttv-checkout-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.sttv-checkout-grid > * { min-width: 0; }
.sttv-checkout-form { padding: clamp(22px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.sttv-checkout-form h2, .sttv-checkout-summary h2, .sttv-return-status h2 { margin: 0 0 14px; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.05; }
.sttv-checkout-form > p { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.sttv-public-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.sttv-checkout-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sttv-checkout-field--wide, .sttv-public-form > p, .sttv-public-form > button, .sttv-public-form > .sttv-checkout-notice, .sttv-public-form > .sttv-checkout-actions { grid-column: 1 / -1; }
.sttv-checkout-field label { font-size: 14px; line-height: 1.4; font-weight: 600; }
.sttv-checkout-field input { width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid #aaa8a4; border-radius: 6px; color: var(--text); background: #fff; font: inherit; font-size: 16px; line-height: 1.4; }
.sttv-checkout-field input:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }
.sttv-checkout-field input[aria-invalid="true"], .sttv-checkout-field input:user-invalid { border-color: var(--red); }
.sttv-checkout-field small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.sttv-public-form > p { margin: 0; font-size: 13px; color: var(--muted); }
.sttv-checkout-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; border: 2px solid transparent; border-radius: 8px; background: var(--red); color: #fff; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.5; text-align: center; text-decoration: none; cursor: pointer; }
.sttv-checkout-button:hover { background: var(--red-dk); }
.sttv-checkout-button:disabled { opacity: .65; cursor: wait; }
.sttv-checkout-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.sttv-checkout-actions a:not(.sttv-checkout-button) { font-size: 14px; text-underline-offset: 3px; }
.sttv-checkout-summary { padding: clamp(22px, 3vw, 34px); border-radius: 14px; background: var(--ink); color: #fff; }
.sttv-checkout-summary h2 { font-size: 30px; }
.sttv-checkout-summary p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; }
.sttv-checkout-summary p:last-child { margin-bottom: 0; }
.sttv-checkout-summary strong { color: #fff; }
.sttv-checkout-summary ul, .sttv-checkout-summary ol { padding-left: 20px; margin: 24px 0; font-size: 14px; }
.sttv-checkout-summary li + li { margin-top: 10px; }
.sttv-checkout-summary .sttv-checkout-price { font-size: 36px; font-weight: 700; line-height: 1.3; }
.sttv-checkout-summary .sttv-checkout-price small { font-size: 14px; font-weight: 400; }
.sttv-checkout-summary .sttv-checkout-test-note { padding-top: 18px; border-top: 1px solid #444; color: #d2d2d2; font-size: 12px; }
.sttv-checkout-steps { display: flex; list-style: none; counter-reset: checkout-step; padding: 17px 0; margin: 0 0 30px; border-block: 1px solid var(--line); gap: 16px; }
.sttv-checkout-steps li { display: flex; align-items: center; gap: 9px; flex: 1; font-size: 13px; line-height: 1.3; color: var(--muted); }
.sttv-checkout-steps li::before { counter-increment: checkout-step; content: counter(checkout-step); display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border: 1px solid #bcbab6; border-radius: 50%; font-size: 12px; }
.sttv-checkout-steps [aria-current="step"] { color: var(--red); font-weight: 700; }
.sttv-checkout-steps [aria-current="step"]::before { color: #fff; border-color: var(--red); background: var(--red); }
.sttv-checkout-notice { padding: 14px 17px; margin: 0 0 24px; border: 1px solid var(--red); border-radius: 8px; background: #fff5f5; color: #85151f; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.sttv-checkout-notice[hidden], .sttv-checkout-page [hidden] { display: none !important; }
.sttv-checkout-status { margin: 0 0 20px; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.sttv-return-status { max-width: 64ch; }
.sttv-return-status p { max-width: 64ch; }
.sttv-return-status [role="status"] { margin-bottom: 24px; }
.sttv-return-status .sttv-checkout-button { margin: 4px 0 12px; }
.sttv-checkout-page a:focus-visible { outline-offset: 4px; }
@media (max-width: 780px) {
    .sttv-checkout-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .sttv-checkout-container { width: min(620px, calc(100% - 40px)); }
    .sttv-checkout-summary { order: -1; }
    .sttv-checkout-grid:has(.sttv-return-status) .sttv-checkout-summary { order: 0; }
    .sttv-checkout-summary ul, .sttv-checkout-summary ol { margin: 16px 0; }
    .sttv-checkout-steps { gap: 8px; }
    .sttv-checkout-steps li { gap: 6px; font-size: 12px; }
    .sttv-checkout-page { padding-bottom: 40px; }
}
@media (max-width: 420px) {
    .sttv-public-form { grid-template-columns: minmax(0, 1fr); }
    .sttv-checkout-form, .sttv-checkout-summary { padding: 22px 18px; }
    .sttv-checkout-container { width: calc(100% - 32px); }
    .sttv-checkout-steps li { flex-direction: column; align-items: flex-start; }
    .sttv-checkout-button { width: 100%; font-size: 15px; }
}

/* Four offers, with the recommended plan emphasized without hiding alternatives. */
.plan-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-top: 16px; }
.plan-grid--four .plan { min-width: 0; padding: 34px 22px 26px; border-radius: 16px; }
.plan--starter, .plan--enterprise { background: var(--paper); outline: 1px solid var(--line); }
.plan-grid--four .plan__for { min-height: 42px; font-size: 13px; line-height: 1.5; }
.plan-grid--four .plan__name { min-height: 70px; font-size: 25px; line-height: 1.25; }
.plan-grid--four .plan__price { margin: 16px 0 14px; gap: 8px; }
.plan-grid--four .plan__amount { font-size: 66px; line-height: 1; white-space: nowrap; }
.plan-grid--four .plan__per { width: 100%; min-height: 42px; font-size: 13px; line-height: 1.5; }
.plan-grid--four .plan__sum { min-height: 128px; margin: 0 0 18px; font-size: 14px; line-height: 1.6; }
.plan-grid--four .allow { display: block; margin-bottom: 24px; }
.plan-grid--four .allow > div, .plan-grid--four .allow > div + div { display: block; border-left: 0; padding: 16px 0; }
.plan-grid--four .allow > div + div { border-top: 1px solid var(--line); }
.plan-grid--four .plan--oi .allow > div + div { border-top-color: var(--line-dk); }
.plan-grid--four .allow dt { min-height: 0; margin-bottom: 8px; font-size: 13px; }
.plan-grid--four .allow dd { min-height: 68px; text-align: left; font-size: 12px; line-height: 1.5; white-space: normal; }
.plan-grid--four .allow dd b { display: block; margin: 0 0 4px; font-size: 38px; line-height: 1.1; }
.plan-grid--four .allow dd span { display: block; }
.plan-grid--four .allow dd .allow__unlimited { font-family: var(--sans); font-size: 25px; line-height: 1.65; letter-spacing: -.04em; }
.plan-grid--four .inc { font-size: 14px; }
.plan-grid--four .plan .btn { min-height: 58px; padding: 10px 9px; font-size: 14px; line-height: 1.4; }
.plan-grid--four .plan__note { font-size: 12px; }
.plan--suggested { outline: 2px solid var(--red); }
.plan__badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 22px; border-radius: 999px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
@media (max-width: 1170px) {
    .plan-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
    .plan-grid--four .plan { padding: 36px 28px 28px; }
    .plan-grid--four .plan__for { min-height: 0; }
    .plan-grid--four .plan__name { min-height: 64px; }
    .plan-grid--four .plan__sum { min-height: 90px; }
    .plan-grid--four .plan__amount { font-size: 76px; }
}
@media (max-width: 680px) {
    .plan-grid--four { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .plan-grid--four .plan { padding: 32px 24px 26px; }
    .plan-grid--four .plan__name, .plan-grid--four .plan__per, .plan-grid--four .plan__sum { min-height: 0; }
    .plan-grid--four .plan__name { font-size: 27px; }
    .plan-grid--four .plan__amount { font-size: 78px; }
    .plan-grid--four .plan__sum { font-size: 15px; }
    .plan-grid--four .allow > div, .plan-grid--four .allow > div + div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; }
    .plan-grid--four .allow dt { margin: 0; }
    .plan-grid--four .allow dd { min-height: 0; text-align: right; }
    .plan-grid--four .allow dd .allow__unlimited { font-size: clamp(20px, 5.5vw, 25px); }
}

/* Five-plan catalog (0.2.3): plan finder, Custom offer, pay per use and the path to a first search. */
.plan-fit { margin: 0 0 44px; }
.plan-fit__h { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.plan-fit__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.plan-fit__list li + li { border-left: 1px solid var(--line); }
.plan-fit__list a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px 16px; text-decoration: none; }
.plan-fit__list li:first-child a { padding-left: 0; }
.plan-fit__list strong { font-size: 15px; line-height: 1.35; }
.plan-fit__list span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.plan-fit__list a:hover strong { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.plan__extra { margin: -14px 0 24px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.plan--custom { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px 48px; padding: 34px 40px; border-radius: 16px; background: var(--paper); outline: 1px solid var(--line); }
.plan--custom .plan__name { font-size: 27px; }
.plan--custom .plan__price { margin: 14px 0 10px; }
.plan--custom .plan__amount--text { font-size: 56px; line-height: 1; }
.plan--custom .plan__per { width: 100%; max-width: none; font-size: 14px; }
.plan--custom .plan__sum { margin: 0 0 22px; font-size: 15px; }
.plan--custom .plan__cta { margin-top: 0; }
.plan--custom .plan__cta .btn { min-width: 220px; }
.plan--custom .plan__note { text-align: left; }
.plan-custom__body { align-self: center; }
.plan-custom__k { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.inc--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin-bottom: 18px; }
.plan-custom__note { margin: 0; font-size: 13px; color: var(--muted); }
.payg { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: 20px 32px; padding: 26px 30px; border-radius: 14px; background: #fff; outline: 1px solid var(--line); }
.payg__h { margin: 0 0 8px; font-size: 22px; }
.payg__intro p { margin: 0 0 12px; font-size: 14.5px; color: var(--muted); }
.payg__intro .text-link { font-size: 14.5px; }
.payg__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.payg__list li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 4px 0; }
.payg__list li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.payg__list strong { font-size: 15px; line-height: 1.35; }
.payg__list span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.payg__list .payg__price { margin-top: 6px; font-family: var(--display); font-size: 44px; line-height: 1; color: var(--text); }
.payg__list .is-soon strong { color: var(--muted); }
.payg__list .payg__soon { width: max-content; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--paper); font-size: 12px; font-weight: 700; }
.flow { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 0 0; }
.flow li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.flow__n { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 6px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.flow strong { font-size: 15px; }
.flow li > span:last-child { font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1170px) {
    .plan-fit__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plan-fit__list li, .plan-fit__list li + li { border-left: 0; border-bottom: 1px solid var(--line); }
    .plan-fit__list li:last-child { grid-column: 1 / -1; border-bottom: 0; }
    .plan-fit__list li a, .plan-fit__list li:first-child a { padding: 12px 12px 12px 0; }
    .payg { grid-template-columns: minmax(0, 1fr); }
    .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
    .flow li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
    .plan--custom { grid-template-columns: minmax(0, 1fr); padding: 32px 28px; }
    .payg__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .payg__list li:nth-child(3) { padding-left: 0; border-left: 0; }
    .payg__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
    .plan-fit__list { grid-template-columns: minmax(0, 1fr); }
    .plan-fit__list li:last-child { border-bottom: 0; }
    .plan--custom { padding: 30px 24px 26px; }
    .plan--custom .plan__amount--text { font-size: 48px; }
    .plan--custom .plan__cta .btn { width: 100%; }
    .inc--two { grid-template-columns: minmax(0, 1fr); }
    .payg { padding: 22px 20px; }
    .flow { grid-template-columns: minmax(0, 1fr); }
    .flow li, .flow li + li { padding: 14px 0 0; border-left: 0; }
    .flow li + li { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
    .payg__list { grid-template-columns: minmax(0, 1fr); }
    .payg__list li, .payg__list li + li { padding: 12px 0 8px; border-left: 0; }
    .payg__list li + li { border-top: 1px solid var(--line); }
}

/* Fixed shortcuts step aside while the plan comparator is on screen (class set by app.js): every plan card
   carries its own action, so nothing covers plan text. Both come back once the plans scroll away. */
.mbar, .sttv-inquiry-launcher { transition: transform .24s cubic-bezier(.16, 1, .3, 1), opacity .2s ease-out, visibility 0s; }
.sttv-plans-in-view .mbar:not(:focus-within),
.sttv-plans-in-view .sttv-inquiry-launcher[aria-expanded="false"]:not(:focus) { opacity: 0; visibility: hidden; pointer-events: none; transition: transform .24s cubic-bezier(.16, 1, .3, 1), opacity .2s ease-out, visibility 0s linear .24s; }
.sttv-plans-in-view .mbar:not(:focus-within) { transform: translateY(100%); }
.sttv-plans-in-view .sttv-inquiry-launcher[aria-expanded="false"]:not(:focus) { transform: translateY(14px); }

/* A plan picked from "Find your plan" is marked: on wide screens four cards share one row and one scroll
   position. The ring is ink, apart from the red "Suggested" edge; the heading takes focus (tabindex -1). */
.plan__name { scroll-margin-top: 100px; }
.plan__name[tabindex="-1"]:focus { outline: none; }
.plan:has(.plan__name:target) { box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--ink); animation: sttv-plan-picked .5s cubic-bezier(.16, 1, .3, 1); }
.plan--oi:has(.plan__name:target) { box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--ink), 0 40px 70px -40px rgba(0, 0, 0, .6); }
@keyframes sttv-plan-picked { from { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0), 0 0 0 21px rgba(11, 11, 11, 0); } }

/* Context beside the film when the plans it names start differently today (sttv_film_plan_note). */
.film__note { max-width: 76ch; margin: 12px 0 0; padding: 0 4px; color: #c5c5c5; font-size: 14px; line-height: 1.6; }
.film__note a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.film__note a:hover { text-decoration-thickness: 2px; }
@media (max-width: 640px) {
    .plan__name { scroll-margin-top: 76px; }
    .film__note { padding: 0 8px; font-size: 13px; }
    /* The three driver-step screenshots load lazily (0.2.2) and, on phones, their figures size to the image.
       Reserving the boxes keeps them from arriving mid-scroll and pushing #plans about 500 px down, which made
       "See plans" and the plan links land short of their target. The drawn image size is unchanged. */
    .steps figure img { width: 100%; height: auto; object-fit: contain; }
}
