/* GuardianOne Website Audit Tool — v1.5 */

:root {
    --gst-green:       #16a34a;
    --gst-green-dark:  #15803d;
    --gst-green-light: #f0fdf4;
    --gst-good:        #16a34a;
    --gst-avg:         #d97706;
    --gst-poor:        #dc2626;
    --gst-border:      #e5e7eb;
    --gst-bg:          #f9fafb;
    --gst-radius:      8px;
    --gst-split-h:     600px;
}

/* ── RESET ── */
#gst-tool-wrap * { box-sizing: border-box; }
#gst-tool-wrap {
    font-family: inherit;
    color: inherit;
    max-width: 100%;
    margin: 0;
    padding: 0 0 48px;
}

.gst-hidden { display: none !important; }

/* ══════════════════════════════════
   SPLIT LAYOUT
══════════════════════════════════ */
.gst-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: var(--gst-split-h);
    position: relative;
    transition: grid-template-columns 0.4s ease;
}
.gst-split.gst-has-results {
    min-height: 0;
}

/* ── LEFT ── */
.gst-split-left {
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* ── RIGHT ── */
.gst-split-right {
    position: relative;
    overflow: hidden;
}

/* 70/30 split when results showing */
.gst-split.gst-has-results {
    grid-template-columns: 70fr 30fr;
}

/* DEFAULT RIGHT IMAGE — full cover */
.gst-right-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.gst-bg-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 24px;
    box-sizing: border-box;
    background: #f9fafb;
}

/* STICKY FORM WRAPPER */
.gst-right-form {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    background: var(--gst-bg);
    border-left: 1px solid var(--gst-border);
}
.gst-sticky-form-wrap {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    padding: 24px 20px;
    max-height: 100vh;
    overflow-y: auto;
}
.gst-sticky-form {
    background: #fff;
    border: 1px solid var(--gst-border);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.gst-sticky-form .gst-form-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}
.gst-sticky-form .gst-form-sub {
    font-size: 13px;
    opacity: .65;
    margin: 0 0 18px;
    line-height: 1.5;
}
.gst-lead-form { display: flex; flex-direction: column; gap: 10px; }
.gst-lead-form input[type="text"],
.gst-lead-form input[type="email"],
.gst-lead-form input[type="tel"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--gst-border);
    border-radius: var(--gst-radius);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: inherit;
    transition: border-color .2s;
}
.gst-lead-form input:focus { border-color: var(--gst-green); }
.gst-lead-form input::placeholder { color: #9ca3af; }
.gst-submit-btn {
    width: 100%;
    padding: 13px;
    background: var(--gst-green);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: var(--gst-radius);
    cursor: pointer;
    transition: background .2s;
    line-height: 1.4;
}
.gst-submit-btn:hover { background: var(--gst-green-dark); }
.gst-submit-btn:disabled { opacity: .65; cursor: not-allowed; }

/* THANK YOU */
.gst-lead-success {
    text-align: center;
    padding: 12px 0;
}
.gst-lead-success svg { display: block; margin: 0 auto 12px; }
.gst-lead-success h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.gst-lead-success p { font-size: 13px; opacity: .7; margin: 0; line-height: 1.6; }

.gst-remaining-note {
    font-size: 11px;
    opacity: .45;
    text-align: center;
    margin-top: 12px;
}

/* ══════════════════════════════════
   HERO LEFT STATES
══════════════════════════════════ */
.gst-hero-badge {
    display: inline-block;
    background: var(--gst-green-light);
    color: var(--gst-green);
    border: 1px solid #bbf7d0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 4px 12px;
    border-radius: 100px;
    width: fit-content;
    margin-bottom: 16px;
}
.gst-hero-title {
    font-size: clamp(20px, 2.8vw, 32px);
    font-weight: 800;
    line-height: 1.22;
    margin: 0 0 12px;
}
.gst-hero-sub {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px;
    opacity: .65;
}

/* CHECKS REMAINING */
.gst-checks-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gst-green-light);
    border: 1px solid #bbf7d0;
    border-radius: var(--gst-radius);
    padding: 7px 14px;
    margin-bottom: 18px;
}
.gst-checks-num { font-size: 20px; font-weight: 800; color: var(--gst-green); line-height: 1; }
.gst-checks-label { font-size: 13px; color: var(--gst-green-dark); }

/* INPUT */
.gst-input-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.gst-input-inner {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid var(--gst-border);
    border-radius: var(--gst-radius);
    background: #fff;
    transition: border-color .2s;
}
.gst-input-inner:focus-within { border-color: var(--gst-green); }
.gst-input-icon { position: absolute; left: 14px; opacity: .4; pointer-events: none; }
.gst-url-input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    font-size: 15px;
    font-family: inherit;
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
}
.gst-url-input::placeholder { color: #9ca3af; }
.gst-run-btn {
    width: 100%;
    padding: 14px;
    background: var(--gst-green);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--gst-radius);
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.gst-run-btn:hover { background: var(--gst-green-dark); transform: translateY(-1px); }
.gst-run-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.gst-disclaimer { font-size: 12px; opacity: .4; margin: 0; }

/* ERROR */
.gst-error {
    border: 1px solid var(--gst-poor);
    border-radius: var(--gst-radius);
    color: var(--gst-poor);
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 12px;
    background: #fef2f2;
}

/* LIMIT BOX */
.gst-limit-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--gst-radius);
    padding: 16px 18px;
    margin-top: 16px;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.6;
}
.gst-limit-box p { margin: 0 0 4px; }
.gst-chat-hint { font-size: 13px; opacity: .8; }

/* ══════════════════════════════════
   SCANNING / PROGRESS
══════════════════════════════════ */
.gst-scanning-wrap { padding: 8px 0; }
.gst-scanning-url {
    font-size: 13px;
    opacity: .5;
    margin-bottom: 8px;
    word-break: break-all;
}
.gst-scanning-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
}
.gst-scanning-sub {
    font-size: 14px;
    opacity: .6;
    margin: 0 0 28px;
}
.gst-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.gst-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--gst-border);
    border-radius: 100px;
    overflow: hidden;
}
.gst-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gst-green);
    border-radius: 100px;
    transition: width .3s ease;
}
.gst-progress-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--gst-green);
    min-width: 40px;
    text-align: right;
}
.gst-scanning-steps { display: flex; flex-direction: column; gap: 8px; }
.gst-step {
    font-size: 13px;
    opacity: .4;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity .3s;
}
.gst-step::before {
    content: '○';
    font-size: 11px;
    flex-shrink: 0;
}
.gst-step.gst-step-active { opacity: 1; color: var(--gst-green); }
.gst-step.gst-step-active::before { content: '●'; }
.gst-step.gst-step-done { opacity: .7; }
.gst-step.gst-step-done::before { content: '✓'; color: var(--gst-green); }

/* ══════════════════════════════════
   RESULTS (left side)
══════════════════════════════════ */
#gst-results-content { padding: 4px 0; }

/* Remaining bar */
.gst-remaining-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gst-green-light);
    border: 1px solid #bbf7d0;
    border-radius: var(--gst-radius);
    padding: 9px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--gst-green-dark);
}
.gst-remaining-bar strong { color: var(--gst-green); }

/* Overall header */
.gst-results-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--gst-bg);
    border: 1px solid var(--gst-border);
    border-radius: var(--gst-radius);
    padding: 18px 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.gst-overall-score { display: flex; align-items: center; gap: 14px; flex: 1; }
.gst-score-ring { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
.gst-ring-svg { width: 80px; height: 80px; }
.gst-ring-track { stroke: #e5e7eb; }
.gst-ring-fill { transition: stroke-dashoffset 1s ease; }
.gst-ring-score {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    text-align: center; line-height: 1;
}
.gst-ring-score span { font-size: 20px; font-weight: 800; display: block; }
.gst-ring-score small { font-size: 10px; opacity: .5; }
.gst-overall-label h3 { font-size: 15px; font-weight: 700; margin: 0 0 3px; }
.gst-overall-label p  { font-size: 12px; margin: 0; opacity: .6; }
.gst-audited-url { font-size: 11px; opacity: .5; }
.gst-audited-url strong { display: block; font-size: 12px; opacity: 1; word-break: break-all; margin-top: 2px; }

/* Score cards */
.gst-scores-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.gst-score-card {
    background: #fff;
    border: 1px solid var(--gst-border);
    border-radius: var(--gst-radius);
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, transform .15s, box-shadow .2s;
}
.gst-score-card:hover {
    border-color: var(--gst-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22,163,74,.1);
}
.gst-card-icon { width: 24px; height: 24px; margin: 0 auto 6px; opacity: .4; }
.gst-card-icon svg { width: 24px; height: 24px; }
.gst-card-label { font-size: 10px; opacity: .55; margin-bottom: 6px; line-height: 1.3; }
.gst-card-score { font-size: 20px; font-weight: 800; }
.score-good { color: var(--gst-good); }
.score-avg  { color: var(--gst-avg); }
.score-poor { color: var(--gst-poor); }

/* Sections */
.gst-section {
    background: #fff;
    border: 1px solid var(--gst-border);
    border-radius: var(--gst-radius);
    padding: 16px 18px;
    margin-bottom: 12px;
}
.gst-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .45;
    margin: 0 0 12px;
}
.gst-vitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
    gap: 8px;
}
.gst-vital {
    background: var(--gst-bg);
    border: 1px solid var(--gst-border);
    border-radius: var(--gst-radius);
    padding: 10px 12px;
    display: flex; flex-direction: column; gap: 3px;
}
.vital-label { font-size: 10px; opacity: .5; }
.vital-value { font-size: 14px; font-weight: 700; }

.gst-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 6px;
}
.gst-check-item {
    display: flex; align-items: center; gap: 7px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid transparent;
}
.gst-check-item.pass { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.gst-check-item.fail { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.gst-check-icon { flex-shrink: 0; width: 14px; height: 14px; }
.gst-check-icon svg { width: 14px; height: 14px; }

/* Download */
.gst-download-wrap { margin-bottom: 12px; }
.gst-download-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px;
    border: 1px solid var(--gst-border);
    border-radius: var(--gst-radius);
    font-family: inherit; font-size: 13px; font-weight: 600;
    cursor: pointer; background: #fff; color: inherit;
    transition: border-color .2s;
}
.gst-download-btn:hover { border-color: var(--gst-green); }
.gst-download-btn svg { width: 14px; height: 14px; opacity: .5; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.gst-footer-brand {
    text-align: center;
    font-size: 12px;
    opacity: .35;
    padding: 16px;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 768px) {
    .gst-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .gst-split-left { padding: 36px 24px; }
    .gst-split-right {
        height: 280px;
        position: relative;
    }
    .gst-right-form {
        position: relative;
        height: auto;
    }
    .gst-sticky-form-wrap { position: relative; top: auto; }
    .gst-scores-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 420px) {
    .gst-scores-grid { grid-template-columns: repeat(2,1fr); }
    .gst-split-left { padding: 28px 16px; }
}

/* ── LINKEDIN ── */
.gst-linkedin-wrap {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gst-border);
    text-align: center;
}
.gst-linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #0077b5;
    color: #fff;
    border-radius: var(--gst-radius);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.gst-linkedin-btn:hover {
    background: #005f8e;
    transform: translateY(-1px);
    color: #fff;
}
.gst-linkedin-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.gst-linkedin-label {
    font-size: 11px;
    opacity: .5;
    margin-bottom: 8px;
}

/* ── STICKY FIX: JS-driven sticky ── */
.gst-split.gst-has-results .gst-split-right {
    position: relative;
}
.gst-split.gst-has-results .gst-right-form {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
}
/* Make left side set the height */
.gst-split.gst-has-results .gst-split-left {
    padding: 28px 36px;
    justify-content: flex-start;
}
