.tw-pscheck-hero {
    --pscheck-ink: #171717;
    --pscheck-muted: #686868;
    --pscheck-line: #deded9;
    --pscheck-paper: #f5f5f2;
    --pscheck-white: #ffffff;

    position: relative;
    width: 100%;
    margin: 0;
    padding: 76px 40px 30px;
    overflow: hidden;

    background: var(--pscheck-paper);
    color: var(--pscheck-ink);

    box-sizing: border-box;
}

.tw-pscheck-hero *,
.tw-pscheck-hero *::before,
.tw-pscheck-hero *::after {
    box-sizing: border-box;
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.tw-pscheck-hero__container {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    align-items: center;
    gap: clamp(40px, 6vw, 80px);

    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-bottom: 70px;
}

/* =========================================================
   LEFT CONTENT
   ========================================================= */

.tw-pscheck-hero__content {
    width: 100%;
    max-width: 700px;
    min-width: 0;
}

/* EYEBROW */

.tw-pscheck-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 0 0 26px;

    color: var(--pscheck-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.tw-pscheck-hero__eyebrow::before {
    content: "";
    display: inline-block;

    flex: 0 0 24px;
    width: 24px;
    height: 1px;

    background: #777;
}

/* HEADING */

.tw-pscheck-hero__title {
    max-width: 720px;
    margin: 0 0 24px;
    padding: 0;

    color: var(--pscheck-ink);
    font-size: clamp(52px, 6.5vw, 86px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.055em;

    overflow-wrap: break-word;
}

.tw-pscheck-hero__title span {
    display: block;
    color: #737373;
}

/* DESCRIPTION */

.tw-pscheck-hero__description {
    max-width: 570px;
    margin: 0;

    color: var(--pscheck-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;
}

/* BENEFITS */

.tw-pscheck-hero__benefits {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;

    margin-top: 25px;
}

.tw-pscheck-hero__benefits span {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #666;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0.3px;
}

.tw-pscheck-hero__benefits span::before {
    content: "✓";
    color: var(--pscheck-ink);
    font-size: 12px;
}

/* =========================================================
   URL FORM
   ========================================================= */

.tw-pscheck-hero__form {
    width: 100%;
    max-width: 610px;
    margin: 32px 0 0;
    padding: 0;
}

.tw-pscheck-hero__label {
    display: block;
    margin: 0 0 10px;

    color: var(--pscheck-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}

/* =========================================================
   DEVICE SELECTOR — MOBILE / DESKTOP
   ========================================================= */

.tw-pscheck-hero__strategy {
    width: 100%;
    margin: 0 0 22px;
}

.tw-pscheck-hero__strategy-label {
    display: block;
    margin: 0 0 10px;

    color: var(--pscheck-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}

.tw-pscheck-hero__strategy-options {
    display: inline-flex;
    align-items: stretch;

    width: auto;
    max-width: 100%;

    border: 1px solid #cfcfc9;
    background: var(--pscheck-white);
}

.tw-pscheck-hero__strategy-options label {
    position: relative;

    display: flex;
    flex: 0 0 auto;
    align-items: stretch;

    margin: 0;
    padding: 0;

    cursor: pointer;
}

.tw-pscheck-hero__strategy-options label + label {
    border-left: 1px solid #cfcfc9;
}

/* Hide native radio but keep it accessible */

.tw-pscheck-hero__strategy-options input[type="radio"] {
    position: absolute;

    width: 1px;
    height: 1px;
    margin: 0;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);

    white-space: nowrap;
}

/* Device option */

.tw-pscheck-hero__strategy-options label span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 44px;
    padding: 11px 22px;

    background: var(--pscheck-white);
    color: #555;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

/* Small indicator */

.tw-pscheck-hero__strategy-options label span::before {
    content: "";

    display: inline-block;
    flex: 0 0 7px;

    width: 7px;
    height: 7px;

    border: 1px solid #999;
    border-radius: 50%;

    background: transparent;
}

/* Selected device */

.tw-pscheck-hero__strategy-options input[type="radio"]:checked + span {
    background: var(--pscheck-ink);
    color: var(--pscheck-white);
}

.tw-pscheck-hero__strategy-options input[type="radio"]:checked + span::before {
    border-color: #ffffff;
    background: #ffffff;
}

/* Keyboard accessibility */

.tw-pscheck-hero__strategy-options input[type="radio"]:focus-visible + span {
    outline: 2px solid #2563eb;
    outline-offset: -4px;
}

/* Hover */

.tw-pscheck-hero__strategy-options label:hover span {
    background: #eeeeea;
    color: var(--pscheck-ink);
}

.tw-pscheck-hero__strategy-options input[type="radio"]:checked + span:hover {
    background: #303030;
    color: #ffffff;
}

/* =========================================================
   INPUT WRAPPER
   ========================================================= */

.tw-pscheck-hero__input-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;

    width: 100%;
    min-width: 0;

    border: 1px solid #cfcfc9;
    background: var(--pscheck-white);
}

/* URL INPUT */

.tw-pscheck-hero__input-wrap input[type="url"] {
    display: block;
    flex: 1 1 auto;

    width: 100%;
    min-width: 0;
    min-height: 54px;
    margin: 0;
    padding: 0 16px;

    border: 0;
    border-radius: 0;
    outline: none;
    box-shadow: none;

    background: var(--pscheck-white);
    color: var(--pscheck-ink);

    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
}

.tw-pscheck-hero__input-wrap input[type="url"]::placeholder {
    color: #999;
    opacity: 1;
}

.tw-pscheck-hero__input-wrap input[type="url"]:focus {
    outline: 2px solid var(--pscheck-ink);
    outline-offset: -3px;
    box-shadow: none;
}

/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.tw-pscheck-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    flex: 0 0 auto;
    min-height: 54px;
    margin: 0;
    padding: 0 19px;

    border: 1px solid var(--pscheck-ink);
    border-radius: 0;

    background: var(--pscheck-ink);
    color: var(--pscheck-white);

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.tw-pscheck-hero__button span {
    font-size: 18px;
    line-height: 1;
}

.tw-pscheck-hero__button:hover:not(:disabled) {
    background: transparent;
    color: var(--pscheck-ink);
    border-color: var(--pscheck-ink);
}

.tw-pscheck-hero__button:focus-visible {
    outline: 2px solid var(--pscheck-ink);
    outline-offset: 4px;
}

.tw-pscheck-hero__button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* FORM NOTE */

.tw-pscheck-hero__note {
    margin: 10px 0 0;

    color: #777;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.7;
}

.tw-pscheck-hero__note[data-status="error"] {
    color: #dc2626;
}

/* =========================================================
   RIGHT VISUAL
   ========================================================= */

.tw-pscheck-hero__visual {
    width: 100%;
    max-width: 470px;
    min-width: 0;
    justify-self: end;
}

/* VISUAL HEADER */

.tw-pscheck-hero__visual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 0 0 20px;
    border-bottom: 1px solid var(--pscheck-line);

    color: #555;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.tw-pscheck-hero__visual-index {
    color: #888;
    white-space: nowrap;
}

/* PREVIEW PANEL */

.tw-pscheck-hero__preview {
    margin-top: 20px;
    padding: 25px;

    border: 1px solid #e2e2dd;
    background: var(--pscheck-white);
}

/* PREVIEW TOP */

.tw-pscheck-hero__preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 25px;
}

.tw-pscheck-hero__preview-label {
    display: block;

    color: #777;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tw-pscheck-hero__preview-symbol {
    color: #888;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 1px;
}

/* =========================================================
   PERFORMANCE SCORE
   ========================================================= */

.tw-pscheck-hero__score {
    display: flex;
    align-items: center;
    gap: 22px;

    padding: 23px;
    border: 1px solid #ebebe7;

    background: var(--pscheck-paper);
}

/* SCORE RING — DEFAULT */

.tw-pscheck-hero__score-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 92px;

    width: 92px;
    height: 92px;

    border: 6px solid #deded9;
    border-radius: 50%;

    color: var(--pscheck-ink);

    transition:
        border-color 0.25s ease,
        color 0.25s ease,
        background-color 0.25s ease;
}

/* SCORE NUMBER */

.tw-pscheck-hero__score-ring span {
    color: inherit !important;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;

    transition: color 0.25s ease;
}

/* GOOD SCORE: 90–100 */

.tw-pscheck-hero__score-ring[data-score-status="good"] {
    border-color: #16a34a !important;
    color: #16a34a !important;
}

/* AVERAGE SCORE: 50–89 */

.tw-pscheck-hero__score-ring[data-score-status="average"] {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

/* POOR SCORE: 0–49 */

.tw-pscheck-hero__score-ring[data-score-status="poor"] {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
}

/* SCORE DETAILS */

.tw-pscheck-hero__score-details {
    flex: 1;
    min-width: 0;
}

.tw-pscheck-hero__score-details strong {
    display: block;
    margin-bottom: 8px;

    color: var(--pscheck-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.tw-pscheck-hero__score-details > span {
    display: block;

    color: #777;
    font-size: 11px;
    line-height: 1.8;
}

/* =========================================================
   DIVIDER
   ========================================================= */

.tw-pscheck-hero__divider {
    width: 100%;
    height: 1px;
    margin: 25px 0;

    background: var(--pscheck-line);
}

/* =========================================================
   METRICS
   ========================================================= */

.tw-pscheck-hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.tw-pscheck-hero__metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    padding: 0 13px;

    border-right: 1px solid var(--pscheck-line);
}

.tw-pscheck-hero__metric:first-child {
    padding-left: 0;
}

.tw-pscheck-hero__metric:last-child {
    padding-right: 0;
    border-right: 0;
}

.tw-pscheck-hero__metric-label {
    display: block;
    margin-bottom: 10px;

    color: #777;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1px;
}

.tw-pscheck-hero__metric strong {
    display: block;
    margin-bottom: 8px;

    color: var(--pscheck-ink);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
}

.tw-pscheck-hero__metric-description {
    display: block;

    color: #777;
    font-size: 9px;
    line-height: 1.7;
    overflow-wrap: break-word;
}

/* =========================================================
   VISUAL FOOTER
   ========================================================= */

.tw-pscheck-hero__visual-footer {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 18px;

    color: #666;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.7;
}

.tw-pscheck-hero__visual-marker {
    display: inline-block;
    flex: 0 0 7px;

    width: 7px;
    height: 7px;

    background: #777;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .tw-pscheck-hero {
        padding-top: 62px;
    }

    .tw-pscheck-hero__container {
        grid-template-columns: minmax(0, 1fr) minmax(290px, 0.85fr);
        gap: 35px;
        padding-bottom: 55px;
    }

    .tw-pscheck-hero__title {
        font-size: clamp(40px, 5vw, 58px);
        letter-spacing: -2px;
    }

    .tw-pscheck-hero__preview {
        padding: 20px;
    }

    .tw-pscheck-hero__score {
        gap: 15px;
        padding: 17px;
    }

    .tw-pscheck-hero__score-ring {
        flex-basis: 78px;
        width: 78px;
        height: 78px;
    }

    .tw-pscheck-hero__metric {
        padding-right: 9px;
        padding-left: 9px;
    }

    .tw-pscheck-hero__metric strong {
        font-size: 22px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .tw-pscheck-hero {
        padding: 48px 20px 0;
    }

    .tw-pscheck-hero__container {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
        padding-bottom: 42px;
    }

    .tw-pscheck-hero__content {
        max-width: none;
    }

    .tw-pscheck-hero__eyebrow {
        margin-bottom: 20px;
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .tw-pscheck-hero__title {
        margin-bottom: 19px;
        font-size: clamp(38px, 9.5vw, 52px);
        line-height: 1.1;
        letter-spacing: -1.8px;
    }

    .tw-pscheck-hero__description {
        font-size: 15px;
        line-height: 1.8;
    }

    .tw-pscheck-hero__benefits {
        gap: 9px 16px;
        margin-top: 20px;
    }

    .tw-pscheck-hero__benefits span {
        font-size: 9px;
    }

    .tw-pscheck-hero__form {
        margin-top: 25px;
    }

    /* Device selector */

    .tw-pscheck-hero__strategy {
        margin-bottom: 18px;
    }

    .tw-pscheck-hero__strategy-options {
        display: flex;
        width: 100%;
    }

    .tw-pscheck-hero__strategy-options label {
        flex: 1 1 50%;
        min-width: 0;
    }

    .tw-pscheck-hero__strategy-options label span {
        width: 100%;
        min-height: 46px;
        padding: 11px 12px;
    }

    /* URL form */

    .tw-pscheck-hero__input-wrap {
        flex-direction: column;
        gap: 0;

        border: 0;
        background: transparent;
    }

    .tw-pscheck-hero__input-wrap input[type="url"] {
        min-height: 50px;
        border: 1px solid #cfcfc9;
        background: var(--pscheck-white);
    }

    .tw-pscheck-hero__button {
        width: 100%;
        min-height: 49px;
        margin-top: 10px;
    }

    /* Preview */

    .tw-pscheck-hero__visual {
        max-width: none;
        justify-self: stretch;
    }

    .tw-pscheck-hero__preview {
        padding: 20px;
    }

    .tw-pscheck-hero__score {
        gap: 15px;
        padding: 17px;
    }

    .tw-pscheck-hero__score-ring {
        flex-basis: 76px;
        width: 76px;
        height: 76px;
        border-width: 5px;
    }

    .tw-pscheck-hero__score-ring span {
        font-size: 26px;
    }

    .tw-pscheck-hero__metric {
        padding-right: 10px;
        padding-left: 10px;
    }

    .tw-pscheck-hero__metric strong {
        font-size: 23px;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .tw-pscheck-hero {
        padding-right: 20px;
        padding-left: 20px;
    }

    .tw-pscheck-hero__title {
        font-size: 36px;
        letter-spacing: -1.3px;
    }

    .tw-pscheck-hero__preview {
        padding: 16px;
    }

    .tw-pscheck-hero__score {
        align-items: flex-start;
        flex-direction: column;
    }

    .tw-pscheck-hero__visual-header {
        font-size: 9px;
        letter-spacing: 0.7px;
    }

    .tw-pscheck-hero__metric {
        padding-right: 7px;
        padding-left: 7px;
    }

    .tw-pscheck-hero__metric-label {
        font-size: 9px;
    }

    .tw-pscheck-hero__metric strong {
        font-size: 21px;
    }

    .tw-pscheck-hero__metric-description {
        font-size: 8px;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .tw-pscheck-hero__button,
    .tw-pscheck-hero__score-ring,
    .tw-pscheck-hero__score-ring span,
    .tw-pscheck-hero__strategy-options label span {
        transition: none;
    }
}