/* ================================================================
   SECURITY PAGE — Jones Web Designs
   Extends the Stellar system in css/style.css.
   Adds: scanner console, pricing, monitoring, method, FAQ, intake.
   ================================================================ */

/* ---------------------------------------------------------------- shared */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.badge--dark {
    background: rgba(244, 242, 239, 0.08);
    border-color: rgba(244, 242, 239, 0.16);
    color: var(--on-dark);
    box-shadow: none;
}
.badge--dark .badge-mark { background: var(--on-dark); color: var(--dark); }

/* ================================================================
   HERO + SCANNER
   ================================================================ */
.sec-hero {
    position: relative;
    padding: 148px 0 var(--section-pad-sm);
    overflow: hidden;
}

.sec-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
    gap: 56px;
    /* Top-aligned, not centered: the scanner grows tall once results render,
       and centring would push the hero copy halfway down the page. */
    align-items: start;
}

.sec-hero-title {
    font-size: clamp(2.25rem, 4.6vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin: 22px 0 0;
}

.sec-hero-desc {
    font-size: 1.0625rem;
    line-height: 1.68;
    color: var(--text);
    margin-top: 20px;
    max-width: 30em;
}

.sec-hero-points { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.sec-point { display: flex; align-items: flex-start; gap: 11px; font-size: 0.95rem; color: var(--ink-2); }
.sec-point svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 3px; color: var(--terra); }

/* ---------------------------------------------------------- the console */
.scanner {
    background: var(--dark);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    overflow: hidden;
    border: 1px solid rgba(244, 242, 239, 0.08);
}

.scanner-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--dark-2);
    border-bottom: 1px solid rgba(244, 242, 239, 0.08);
}
.scanner-dots { display: flex; gap: 6px; }
.scanner-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(244, 242, 239, 0.18); }
.scanner-dots span:first-child { background: rgba(189, 92, 73, 0.75); }
.scanner-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--on-dark-dim);
}

.scanner-body { padding: 26px 24px 24px; }

.scanner-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--on-dark);
    margin-bottom: 9px;
    letter-spacing: -0.01em;
}

.scanner-input-row { display: flex; gap: 10px; }

.scanner-input-row input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 16px; /* never below 16px — iOS zooms otherwise */
    background: rgba(244, 242, 239, 0.06);
    border: 1px solid rgba(244, 242, 239, 0.16);
    border-radius: var(--r-sm);
    color: var(--on-dark);
    transition: border-color var(--t-fast), background var(--t-fast);
}
.scanner-input-row input[type="text"]::placeholder { color: rgba(244, 242, 239, 0.35); }
.scanner-input-row input[type="text"]:focus {
    outline: none;
    border-color: var(--blush);
    background: rgba(244, 242, 239, 0.1);
}

.scanner-go {
    background: var(--on-dark);
    color: var(--dark);
    flex: 0 0 auto;
    padding: 14px 26px;
    position: relative;
}
.scanner-go:hover { background: #fff; transform: translateY(-1px); box-shadow: none; }
.scanner-go:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.scanner-go .btn-loader {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid rgba(12, 12, 14, 0.25);
    border-top-color: var(--dark);
    border-radius: 50%;
    animation: sec-spin 0.7s linear infinite;
}
.scanner-go.loading .btn-text { display: none; }
.scanner-go.loading .btn-loader { display: inline-block; }
@keyframes sec-spin { to { transform: rotate(360deg); } }

.scanner-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(244, 242, 239, 0.72);
    cursor: pointer;
}
.scanner-check input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px; height: 16px;
    margin-top: 2px;
    accent-color: var(--terra);
    cursor: pointer;
}

.scanner-turnstile { margin-top: 16px; min-height: 0; }

.scanner-fineprint {
    margin-top: 14px;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(244, 242, 239, 0.42);
}

.scanner-error {
    display: none;
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: var(--r-sm);
    background: rgba(189, 92, 73, 0.16);
    border: 1px solid rgba(224, 161, 162, 0.35);
    color: #F0C9C4;
    font-size: 0.875rem;
    line-height: 1.5;
}
.scanner-error.show { display: block; }

/* ------------------------------------------------------------- results */
.scan-results { margin-top: 24px; }

.scan-progress {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(244, 242, 239, 0.55);
    line-height: 1.9;
}
.scan-progress span { display: block; opacity: 0; animation: sec-fade 0.35s var(--ease-out) forwards; }
@keyframes sec-fade { to { opacity: 1; } }

.scan-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0 22px;
    border-top: 1px solid rgba(244, 242, 239, 0.1);
    border-bottom: 1px solid rgba(244, 242, 239, 0.1);
}

.scan-grade {
    flex: 0 0 auto;
    width: 74px; height: 74px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--dark);
}
.scan-grade[data-grade="A"] { background: #A9C9B4; }
.scan-grade[data-grade="B"] { background: #C7D3B0; }
.scan-grade[data-grade="C"] { background: var(--peach); }
.scan-grade[data-grade="D"] { background: #E9B9A4; }
.scan-grade[data-grade="F"] { background: var(--blush); }

.scan-summary-text h3 {
    color: var(--on-dark);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 5px;
}
.scan-summary-text p { font-size: 0.85rem; color: rgba(244, 242, 239, 0.55); line-height: 1.5; }
.scan-summary-text code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--peach);
}

.scan-counts { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 6px; }
.scan-count {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(244, 242, 239, 0.14);
    color: rgba(244, 242, 239, 0.6);
}
.scan-count[data-sev="critical"] { background: rgba(181, 72, 92, 0.22); border-color: rgba(224, 161, 162, 0.4); color: #F0C9C4; }
.scan-count[data-sev="high"]     { background: rgba(189, 92, 73, 0.2);  border-color: rgba(189, 92, 73, 0.42);  color: #EFC0B2; }
.scan-count[data-sev="medium"]   { background: rgba(244, 214, 194, 0.14); border-color: rgba(244, 214, 194, 0.3); color: var(--peach); }

.scan-finding {
    border-bottom: 1px solid rgba(244, 242, 239, 0.08);
    padding: 15px 0;
}
.scan-finding:last-child { border-bottom: none; }

.scan-finding-head {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}
.scan-sev {
    flex: 0 0 auto;
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 7px;
    border-radius: 5px;
    background: rgba(244, 242, 239, 0.1);
    color: rgba(244, 242, 239, 0.55);
    min-width: 62px;
    text-align: center;
}
.scan-sev[data-sev="critical"] { background: #B5485C; color: #fff; }
.scan-sev[data-sev="high"]     { background: var(--terra); color: #fff; }
.scan-sev[data-sev="medium"]   { background: var(--peach); color: #6B3A2C; }
.scan-sev[data-sev="low"]      { background: rgba(244, 242, 239, 0.16); color: rgba(244, 242, 239, 0.75); }
.scan-sev[data-sev="info"]     { background: rgba(169, 201, 180, 0.24); color: #B6D6C2; }

.scan-finding h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--on-dark);
    letter-spacing: -0.015em;
    line-height: 1.4;
}
.scan-finding-body { padding-left: 73px; }
.scan-finding-body p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(244, 242, 239, 0.62);
    margin-top: 7px;
}
.scan-fix {
    margin-top: 9px;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(244, 242, 239, 0.05);
    border-left: 2px solid var(--terra);
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(244, 242, 239, 0.75);
}
.scan-fix strong { color: var(--peach); font-weight: 600; }

.scan-cta {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: var(--r-md);
    background: rgba(244, 242, 239, 0.06);
    border: 1px solid rgba(244, 242, 239, 0.1);
}
.scan-cta p { font-size: 0.875rem; line-height: 1.6; color: rgba(244, 242, 239, 0.72); }
.scan-cta .btn { margin-top: 14px; }
.scan-again {
    display: inline-block;
    margin-top: 12px;
    margin-left: 14px;
    font-size: 0.85rem;
    color: rgba(244, 242, 239, 0.55);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}
.scan-again:hover { color: var(--on-dark); }

/* ================================================================
   POSITIONING
   ================================================================ */
.sec-position { padding: var(--section-pad-sm) 0; background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.sec-position-inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.sec-position-lead .section-title { text-align: left; margin-top: 14px; font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.sec-position-body p { font-size: 1.0125rem; line-height: 1.75; color: var(--text); }
.sec-position-body p + p { margin-top: 18px; }
.sec-position-honest {
    margin-top: 24px !important;
    padding: 18px 20px;
    background: var(--cream);
    border: 1px solid rgba(166, 76, 58, 0.28);
    border-radius: var(--r-sm);
    font-size: 0.95rem !important;
}
.sec-position-honest strong { color: var(--ink); }

/* ================================================================
   COMPLIANCE
   ================================================================ */
.sec-compliance { padding: var(--section-pad-sm) 0; }
.sec-comp-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.sec-comp-copy { position: sticky; top: 110px; }
.sec-comp-copy .section-title { text-align: left; margin-top: 14px; font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.sec-comp-copy p { margin-top: 18px; line-height: 1.7; }
.sec-comp-note { font-size: 0.925rem; color: var(--text-2); }

.sec-comp-list { display: flex; flex-direction: column; gap: 14px; }
.sec-comp-item {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 20px 22px;
    box-shadow: var(--sh-xs);
}
.sec-comp-item h3 { font-size: 1.0125rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 7px; }
.sec-comp-item p { font-size: 0.9rem; line-height: 1.62; color: var(--text); }
.sec-comp-item--flag { border-color: rgba(189, 92, 73, 0.35); background: linear-gradient(180deg, var(--cream), var(--bg-2) 70%); }
.sec-comp-item--flag strong { color: var(--terra); }

/* ================================================================
   PRICING
   ================================================================ */
.sec-pricing { padding: var(--section-pad-sm) 0; background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }

.price-card {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 26px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--sh-xs);
    transition: transform var(--t-base), box-shadow var(--t-base);
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }

.price-card--featured {
    background: var(--dark);
    border-color: var(--dark);
    box-shadow: var(--sh-lg);
}

.price-flag {
    position: absolute;
    top: -11px;
    left: 26px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    background: var(--terra);
    color: #fff;
}

.price-card-head { padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.price-card h3 { font-size: 1.25rem; font-weight: 600; color: var(--ink); letter-spacing: -0.025em; }
.price-sub { font-size: 0.875rem; color: var(--text-2); margin-top: 4px; }
.price-amount { margin-top: 16px; }
.price-num { font-size: 2.5rem; font-weight: 700; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.price-turn { font-size: 0.8125rem; color: var(--text-2); margin-top: 10px; }

.price-list { list-style: none; margin: 20px 0 24px; flex: 1; }
.price-list li {
    position: relative;
    padding: 9px 0 9px 24px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text);
    border-bottom: 1px solid var(--line-soft);
}
.price-list li:last-child { border-bottom: none; }
.price-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 15px;
    width: 9px; height: 5px;
    border-left: 1.8px solid var(--terra);
    border-bottom: 1.8px solid var(--terra);
    transform: rotate(-45deg);
}
.price-list strong { color: var(--ink); font-weight: 600; }
.price-cta { width: 100%; }

/* Featured card color overrides — these must come AFTER the base .price-card
   rules above, since they share the same specificity and the later rule wins. */
.price-card--featured h3,
.price-card--featured .price-num { color: var(--on-dark); }
.price-card--featured .price-sub,
.price-card--featured .price-turn { color: var(--on-dark-dim); }
.price-card--featured .price-card-head { border-color: rgba(244, 242, 239, 0.1); }
.price-card--featured .price-list li { color: rgba(244, 242, 239, 0.78); border-color: rgba(244, 242, 239, 0.08); }
.price-card--featured .price-list li::before { border-left-color: var(--peach); border-bottom-color: var(--peach); }
.price-card--featured .price-list strong { color: var(--peach); }
.price-card--featured .btn-primary { background: var(--on-dark); color: var(--dark); }
.price-card--featured .btn-primary:hover { background: #fff; }

.price-footnote { text-align: center; margin-top: 34px; font-size: 0.9375rem; color: var(--text-2); }
.price-footnote a { color: var(--terra); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================
   MONITORING
   ================================================================ */
.sec-monitor { padding: var(--section-pad-sm) 0; background: var(--dark); }
.sec-monitor-header .section-title { color: var(--on-dark); }
.sec-monitor-header .section-description { color: rgba(244, 242, 239, 0.6); max-width: 620px; }

.monitor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }

.monitor-card {
    position: relative;
    background: rgba(244, 242, 239, 0.05);
    border: 1px solid rgba(244, 242, 239, 0.12);
    border-radius: var(--r-lg);
    padding: 28px 24px 26px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--t-base), border-color var(--t-base);
}
.monitor-card:hover { transform: translateY(-3px); border-color: rgba(244, 242, 239, 0.26); }
.monitor-card--featured { background: var(--bg); border-color: var(--bg); }

.monitor-card h3 { font-size: 1.1875rem; font-weight: 600; color: var(--on-dark); letter-spacing: -0.025em; }
.monitor-card--featured h3 { color: var(--ink); }

.monitor-price { margin-top: 14px; display: flex; align-items: baseline; gap: 5px; }
.monitor-num { font-size: 2.25rem; font-weight: 700; color: var(--on-dark); letter-spacing: -0.04em; line-height: 1; }
.monitor-per { font-size: 0.9rem; color: var(--on-dark-dim); }
.monitor-card--featured .monitor-num { color: var(--ink); }
.monitor-card--featured .monitor-per { color: var(--text-2); }

.monitor-desc { margin-top: 12px; font-size: 0.875rem; line-height: 1.55; color: rgba(244, 242, 239, 0.58); }
.monitor-card--featured .monitor-desc { color: var(--text); }

.monitor-list { list-style: none; margin: 20px 0 24px; flex: 1; }
.monitor-list li {
    position: relative;
    padding: 8px 0 8px 22px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(244, 242, 239, 0.72);
}
.monitor-list li::before {
    content: "";
    position: absolute;
    left: 2px; top: 14px;
    width: 8px; height: 4.5px;
    border-left: 1.8px solid var(--peach);
    border-bottom: 1.8px solid var(--peach);
    transform: rotate(-45deg);
}
.monitor-list strong { color: var(--on-dark); font-weight: 600; }
.monitor-card--featured .monitor-list li { color: var(--text); }
.monitor-card--featured .monitor-list li::before { border-color: var(--terra); }
.monitor-card--featured .monitor-list strong { color: var(--ink); }

.monitor-card .btn-secondary {
    background: transparent;
    color: var(--on-dark);
    border-color: rgba(244, 242, 239, 0.28);
    box-shadow: none;
    width: 100%;
}
.monitor-card .btn-secondary:hover { background: rgba(244, 242, 239, 0.1); border-color: var(--on-dark); }
.monitor-card--featured .btn-primary { width: 100%; }
.monitor-footnote { text-align: center; margin-top: 30px; font-size: 0.9rem; color: rgba(244, 242, 239, 0.45); }

/* ================================================================
   METHOD
   ================================================================ */
.sec-method { padding: var(--section-pad-sm) 0; }
.method-list { list-style: none; max-width: 800px; margin: 0 auto; counter-reset: none; }
.method-step {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line-soft);
}
.method-step:last-child { border-bottom: none; }
.method-num {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--terra);
    padding-top: 3px;
    min-width: 32px;
}
.method-step h3 { font-size: 1.125rem; font-weight: 600; color: var(--ink); letter-spacing: -0.025em; margin-bottom: 7px; }
.method-step p { font-size: 0.95rem; line-height: 1.68; color: var(--text); }

/* ================================================================
   FAQ
   ================================================================ */
.sec-faq { padding: var(--section-pad-sm) 0; background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--t-fast);
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 52px 18px 22px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 9px; height: 9px;
    border-right: 2px solid var(--text-2);
    border-bottom: 2px solid var(--text-2);
    transform: translateY(-70%) rotate(45deg);
    transition: transform var(--t-fast);
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-item summary:hover { color: var(--terra); }
.faq-item p { padding: 0 22px 20px; font-size: 0.9375rem; line-height: 1.7; color: var(--text); }

/* ================================================================
   SCOPING FORM
   ================================================================ */
.sec-scoping { padding: var(--section-pad-sm) 0 var(--section-pad); }
.scoping-shell { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 32px; align-items: start; }

.scoping-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 14px; }
.scoping-note {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px 20px;
}
.scoping-note h3 { font-size: 0.9375rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 7px; }
.scoping-note p { font-size: 0.875rem; line-height: 1.62; color: var(--text); }
.scoping-note--warn { background: var(--cream); border-color: rgba(189, 92, 73, 0.32); }
.scoping-note--warn h3 { color: var(--terra); }

.scoping-contact { padding: 4px 4px 0; font-size: 0.875rem; color: var(--text-2); }
.scoping-contact a { display: block; margin-top: 4px; color: var(--terra); font-weight: 500; word-break: break-all; }

.scoping-form-wrapper { padding: 30px 30px 28px; }

.form-fieldset { border: none; margin-bottom: 30px; }
.form-fieldset legend {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--terra);
    padding-bottom: 14px;
    margin-bottom: 4px;
    width: 100%;
    border-bottom: 1px solid var(--line);
}
.form-fieldset--auth {
    background: var(--bg);
    border: 1px solid rgba(189, 92, 73, 0.28);
    border-radius: var(--r-md);
    padding: 22px 22px 8px;
    margin-bottom: 24px;
}
.auth-intro { font-size: 0.875rem; line-height: 1.6; color: var(--text); margin: 14px 0 20px; }

.field-hint { font-size: 0.8rem; line-height: 1.5; color: var(--text-2); margin-top: 6px; }

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    line-height: 1.58;
    color: var(--text);
    cursor: pointer;
}
.consent-check input[type="checkbox"] {
    flex: 0 0 17px;
    width: 17px; height: 17px;
    margin-top: 2px;
    accent-color: var(--terra);
    cursor: pointer;
}
.consent-check.invalid { color: #9C3447; }
.consent-check.invalid input[type="checkbox"] { outline: 2px solid #B5485C; outline-offset: 2px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .sec-hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .sec-position-inner,
    .sec-comp-grid { grid-template-columns: 1fr; gap: 34px; }
    .sec-comp-copy { position: static; }
    .price-grid, .monitor-grid { grid-template-columns: 1fr; }
    .scoping-shell { grid-template-columns: 1fr; }
    .scoping-aside { position: static; }
}

@media (max-width: 620px) {
    .sec-hero { padding-top: 124px; }
    .scanner-body { padding: 20px 16px 18px; }
    .scanner-input-row { flex-direction: column; }
    .scanner-go { width: 100%; }
    .scan-summary { flex-direction: column; align-items: flex-start; gap: 14px; }
    .scan-finding-body { padding-left: 0; }
    .scoping-form-wrapper { padding: 22px 18px 20px; }
    .form-fieldset--auth { padding: 18px 16px 6px; }
    .method-step { gap: 14px; }
    .price-card, .monitor-card { padding: 26px 20px 24px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .scan-progress span { animation: none; opacity: 1; }
    .price-card:hover, .monitor-card:hover { transform: none; }
}

/* ================================================================
   SERVICE-MODE STATES
   A monitoring subscription needs far less than a full engagement,
   so the heavier fields step back rather than disappear entirely.
   ================================================================ */
.monitoring-hint {
    margin: 14px 0 18px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    background: var(--cream);
    border: 1px solid rgba(166, 76, 58, 0.28);
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ink-2);
}

.form-group.field-optional label .required { display: none; }
.form-group.field-optional label::after {
    content: " (optional)";
    font-weight: 400;
    color: var(--text-2);
}

/* Swap the authorization preamble to match the mode. */
.auth-intro--monitoring { display: none; }
.form-fieldset--auth.is-monitoring .auth-intro { display: none; }
.form-fieldset--auth.is-monitoring .auth-intro--monitoring { display: block; }
.form-fieldset--auth.is-monitoring .auth-officials { display: none; }

/* ---- Post-submission checkout handoff ---- */
.form-followup {
    display: block;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(94, 138, 107, 0.28);
}
.form-followup .btn { width: 100%; }
.form-followup-note {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-2);
}

/* ================================================================
   SCAN RESULTS MODAL
   The verdict is the moment of interest, so it opens over the page
   instead of pushing it down and leaving the reader mid-scroll.
   ================================================================ */
.modal {
    position: fixed;
    inset: 0;
    /* Above the navbar (1000) and the cookie banner (9998) in style.css —
       a dialog the visitor opened should not sit behind either. */
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 7, 8, 0.62);
    backdrop-filter: blur(3px);
    animation: modal-fade 0.22s var(--ease-out);
}

.modal-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(680px, 100%);
    max-height: min(82vh, 860px);
    background: var(--dark);
    border: 1px solid rgba(244, 242, 239, 0.12);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    overflow: hidden;
    animation: modal-rise 0.28s var(--ease-out);
}

@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-rise {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
}

.modal-head {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid rgba(244, 242, 239, 0.1);
}
.modal-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(244, 242, 239, 0.45);
}
.modal-title {
    margin-top: 4px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--on-dark);
}

.modal-close {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(244, 242, 239, 0.16);
    background: transparent;
    color: rgba(244, 242, 239, 0.7);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.modal-close svg { width: 15px; height: 15px; }
.modal-close:hover { background: rgba(244, 242, 239, 0.12); color: var(--on-dark); }

.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 22px 20px;
    -webkit-overflow-scrolling: touch;
}
.modal-body[hidden] { display: none; }

/* Inside the modal the findings own the full width. */
.modal-body .scan-summary { border-top: none; padding-top: 4px; }
.modal-body .scan-finding-body { padding-left: 0; }
.modal-body .scan-cta { display: none; }

.modal-foot {
    flex: 0 0 auto;
    padding: 16px 22px 18px;
    border-top: 1px solid rgba(244, 242, 239, 0.1);
    background: var(--dark-2);
}
.modal-foot[hidden] { display: none; }
.modal-foot-note {
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(244, 242, 239, 0.55);
}
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 13px;
}
.modal-actions .btn-primary { background: var(--on-dark); color: var(--dark); flex: 1; }
.modal-actions .btn-primary:hover { background: #fff; }
.modal-actions .btn-ghost { color: rgba(244, 242, 239, 0.65); }
.modal-actions .btn-ghost:hover { color: var(--on-dark); }

/* ---- Form view: the real scoping form is designed for the light
        surface it normally sits on, so the panel switches rather than
        every field being restyled for the dark one. ---- */
.modal-panel.is-form {
    background: var(--bg);
    border-color: var(--line-strong);
    width: min(760px, 100%);
}
.modal-panel.is-form .modal-head {
    background: var(--bg-2);
    border-bottom-color: var(--line);
}
.modal-panel.is-form .modal-eyebrow { color: var(--text-2); }
.modal-panel.is-form .modal-title { color: var(--ink); }
.modal-panel.is-form .modal-close {
    border-color: var(--line-strong);
    color: var(--text);
}
.modal-panel.is-form .modal-close:hover { background: var(--bg-3); color: var(--ink); }

.modal-form-intro {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 16px;
    padding-left: 2px;
}

/* The wrapper already has its own card treatment on the page; inside the
   modal the panel is the card, so flatten it. */
.modal-form .scoping-form-wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Stop the page scrolling behind an open modal. */
body.modal-open { overflow: hidden; }

@media (max-width: 620px) {
    .modal { padding: 0; }
    .modal-panel,
    .modal-panel.is-form {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
        border: none;
    }
    .modal-actions { flex-direction: column; }
    .modal-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .modal-backdrop, .modal-panel { animation: none; }
}
