/* home.css — extracted from index.html during the Webflow → Eleventy migration.
   Tokens live in tokens.css, reset in base.css, header/footer in components.css.
   Dead nav/footer rules removed (verified unused: no page referenced them). */

body {
        background: var(--bg);
        color: var(--text);
        font-family: var(--font);
        font-size: 15px;
        line-height: 1.6;
        min-height: 100vh;
        overflow-x: hidden;
      }

button {
        cursor: pointer;
        border: none;
        font-family: inherit;
      }

input {
        font-family: inherit;
      }

.hidden {
        display: none !important;
      }

::-webkit-scrollbar {
        width: 5px;
      }

::-webkit-scrollbar-track {
        background: var(--bg);
      }

::-webkit-scrollbar-thumb {
        background: var(--border2);
        border-radius: 99px;
      }

.orb {
        position: fixed;
        pointer-events: none;
        border-radius: 50%;
        filter: blur(120px);
        opacity: 0.06;
        z-index: 0;
      }

.orb-1 {
        width: 700px;
        height: 700px;
        background: #6366f1;
        top: -250px;
        right: -150px;
      }

.orb-2 {
        width: 500px;
        height: 500px;
        background: #8b5cf6;
        bottom: 5%;
        left: -150px;
      }

.page {
        position: relative;
        z-index: 1;
      }

.nav-pill {
        font-family: var(--mono);
        font-size: 11px;
        color: var(--text3);
        border: 1px solid var(--border);
        padding: 4px 12px;
        border-radius: 99px;
        background: var(--bg2);
      }

#home-view {
        min-height: calc(100vh - 60px);
        display: flex;
        flex-direction: column;
      }

.hero {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 80px 24px 56px;
      }

.hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        background: rgba(99, 102, 241, 0.08);
        border: 1px solid rgba(99, 102, 241, 0.2);
        color: var(--accent2);
        font-size: 12px;
        font-weight: 600;
        padding: 6px 14px;
        border-radius: 99px;
        margin-bottom: 28px;
        animation: fadeUp 0.4s ease both;
      }

.hero-dot {
        width: 6px;
        height: 6px;
        background: var(--accent);
        border-radius: 50%;
        animation: pulse 2s ease-in-out infinite;
      }

.hero h1 {
        font-size: clamp(36px, 5.5vw, 68px);
        font-weight: 800;
        line-height: 1.08;
        letter-spacing: -1.5px;
        color: var(--text);
        max-width: 780px;
        margin-bottom: 20px;
        animation: fadeUp 0.4s 0.07s ease both;
      }

.grad {
        background: linear-gradient(
          135deg,
          var(--accent2) 0%,
          #a78bfa 50%,
          var(--teal) 100%
        );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }

.hero-sub {
        font-size: 17px;
        color: var(--text2);
        max-width: 500px;
        margin-bottom: 44px;
        line-height: 1.65;
        animation: fadeUp 0.4s 0.14s ease both;
      }

.input-box {
        width: 100%;
        max-width: 580px;
        margin-bottom: 36px;
        animation: fadeUp 0.4s 0.2s ease both;
      }

.input-inner {
        display: flex;
        gap: 8px;
        align-items: center;
        background: var(--bg3);
        border: 1px solid var(--border2);
        border-radius: var(--r3);
        padding: 6px 6px 6px 18px;
        transition:
          border-color 0.2s,
          box-shadow 0.2s;
      }

.input-inner:focus-within {
        border-color: var(--accent);
        box-shadow:
          0 0 0 3px rgba(99, 102, 241, 0.15),
          0 8px 32px rgba(0, 0, 0, 0.4);
      }

.https-label {
        font-family: var(--mono);
        font-size: 12px;
        color: var(--text3);
        flex-shrink: 0;
      }

.domain-input {
        flex: 1;
        background: transparent;
        border: none;
        outline: none;
        font-size: 15px;
        color: var(--text);
        font-family: var(--mono);
        padding: 9px 0;
      }

.domain-input::placeholder {
        color: var(--text3);
      }

.run-btn {
        background: var(--accent-g);
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        padding: 11px 24px;
        border-radius: 14px;
        transition:
          opacity 0.15s,
          transform 0.1s;
        white-space: nowrap;
        flex-shrink: 0;
      }

.run-btn:hover {
        opacity: 0.88;
      }

.run-btn:active {
        transform: scale(0.97);
      }

.agents {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        animation: fadeUp 0.4s 0.26s ease both;
      }

.agents-label {
        font-size: 12px;
        color: var(--text3);
        margin-right: 4px;
      }

.agent-chip {
        display: flex;
        align-items: center;
        gap: 6px;
        background: var(--bg3);
        border: 1px solid var(--border);
        padding: 5px 12px;
        border-radius: 99px;
        font-size: 12px;
        color: var(--text2);
        font-weight: 500;
      }

.agent-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
      }

.cat-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
        background: var(--border);
        border-top: 1px solid var(--border);
      }

.cat-card {
        background: var(--bg);
        padding: 28px 24px;
        transition: background 0.2s;
        position: relative;
        overflow: hidden;
      }

.cat-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--accent-g);
        opacity: 0;
        transition: opacity 0.2s;
      }

.cat-card:hover {
        background: var(--bg2);
      }

.cat-card:hover::before {
        opacity: 1;
      }

.cat-pts {
        font-family: var(--mono);
        font-size: 11px;
        font-weight: 500;
        color: var(--accent2);
        letter-spacing: 0.06em;
        background: rgba(99, 102, 241, 0.1);
        border: 1px solid rgba(99, 102, 241, 0.2);
        display: inline-block;
        padding: 2px 9px;
        border-radius: 99px;
        margin-bottom: 12px;
      }

.cat-name {
        font-size: 15px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 8px;
      }

.cat-desc {
        font-size: 13px;
        color: var(--text2);
        line-height: 1.55;
      }

#loading-view {
        min-height: calc(100vh - 60px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 48px 24px;
      }

.loading-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: var(--r3);
        padding: 48px 40px;
        max-width: 440px;
        width: 100%;
        text-align: center;
        box-shadow: 0 8px 40px rgba(99, 102, 241, 0.08), 0 1px 3px rgba(0,0,0,0.06);
      }

.spinner-wrap {
        position: relative;
        width: 72px;
        height: 72px;
        margin: 0 auto 32px;
      }

.spinner {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 2px solid transparent;
      }

.sp-1 {
        border-top-color: var(--accent);
        border-right-color: rgba(99, 102, 241, 0.2);
        animation: spin 1.2s linear infinite;
      }

.sp-2 {
        inset: 10px;
        border-top-color: #8b5cf6;
        border-left-color: rgba(139, 92, 246, 0.2);
        animation: spin 1.8s linear infinite reverse;
      }

.sp-3 {
        inset: 22px;
        border-top-color: var(--teal);
        animation: spin 2.4s linear infinite;
      }

.sp-dot {
        position: absolute;
        inset: 34px;
        border-radius: 50%;
        background: var(--accent);
        opacity: 0.3;
        animation: pulse 2s ease-in-out infinite;
      }

@keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }

@keyframes pulse {
        0%,
        100% {
          opacity: 0.15;
          transform: scale(0.85);
        }
        50% {
          opacity: 0.4;
          transform: scale(1.1);
        }
      }

.loading-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 6px;
      }

.loading-url {
        font-family: var(--mono);
        font-size: 13px;
        color: var(--accent2);
        margin-bottom: 32px;
      }

.steps {
        list-style: none;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

.step {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 9px 14px;
        border-radius: var(--r);
        font-size: 13.5px;
        color: var(--text3);
        transition: all 0.25s ease;
      }

.step.active {
        color: var(--text);
        background: var(--surface);
      }

.step.done {
        color: var(--green);
      }

.step-icon {
        font-family: var(--mono);
        font-size: 13px;
        width: 16px;
        flex-shrink: 0;
        text-align: center;
      }

#error-view {
        min-height: calc(100vh - 60px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 48px;
      }

.error-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: var(--r3);
        padding: 48px 40px;
        max-width: 400px;
        width: 100%;
        text-align: center;
      }

.error-icon {
        font-size: 40px;
        margin-bottom: 16px;
      }

.error-title {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 10px;
      }

.error-msg {
        font-size: 14px;
        color: var(--text2);
        margin-bottom: 28px;
        line-height: 1.65;
      }

.error-back {
        background: var(--surface2);
        color: var(--text);
        padding: 10px 24px;
        border-radius: var(--r2);
        font-size: 14px;
        font-weight: 600;
        border: 1px solid var(--border2);
        transition: background 0.15s;
      }

.error-back:hover {
        background: var(--border2);
      }

#results-view {
        min-height: calc(100vh - 60px);
      }

.results-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 40px;
        height: 52px;
        border-bottom: 1px solid var(--border);
        background: var(--bg);
        flex-wrap: wrap;
        gap: 10px;
      }

.topbar-left {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
      }

.topbar-domain {
        font-family: var(--mono);
        font-size: 13px;
        font-weight: 500;
        color: var(--text);
      }

.topbar-mode {
        font-family: var(--mono);
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 3px 10px;
        border-radius: 99px;
        background: rgba(99, 102, 241, 0.15);
        color: var(--accent2);
        border: 1px solid rgba(99, 102, 241, 0.25);
      }

.topbar-meta {
        font-family: var(--mono);
        font-size: 11px;
        color: var(--text3);
      }

.back-btn {
        font-size: 13px;
        font-weight: 600;
        color: var(--text2);
        background: var(--surface);
        border: 1px solid var(--border);
        padding: 6px 14px;
        border-radius: var(--r2);
        transition: all 0.15s;
      }

.back-btn:hover {
        background: var(--surface2);
        color: var(--text);
      }

.score-hero {
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 40px;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 48px;
        align-items: start;
      }

.score-hero > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
      }

.score-ring-wrap {
        position: relative;
        width: 160px;
        height: 160px;
        margin-bottom: 20px;
      }

.score-ring-svg {
        width: 160px;
        height: 160px;
        transform: rotate(-90deg);
      }

.ring-bg {
        fill: none;
        stroke: var(--surface2);
        stroke-width: 10;
      }

.ring-fill {
        fill: none;
        stroke-width: 10;
        stroke-linecap: round;
        stroke-dasharray: 440;
        stroke-dashoffset: 440;
        transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
      }

.ring-text {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }

.score-big {
        font-size: 52px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -2px;
        color: var(--text);
      }

.score-denom {
        font-family: var(--mono);
        font-size: 13px;
        color: var(--text3);
      }

.score-badge {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 6px 14px;
        border-radius: 99px;
        font-size: 13px;
        font-weight: 700;
        border: 1.5px solid;
        margin-bottom: 16px;
      }

.b-green {
        background: #d1fae5;
        color: #065f46;
        border-color: #6ee7b7;
      }

.b-teal {
        background: #cffafe;
        color: #164e63;
        border-color: #67e8f9;
      }

.b-amber {
        background: #fef3c7;
        color: #92400e;
        border-color: #fcd34d;
      }

.b-red {
        background: #fee2e2;
        color: #991b1b;
        border-color: #fca5a5;
      }

.score-desc {
        font-size: 13px;
        color: var(--text2);
        line-height: 1.6;
        max-width: 240px;
      }

.stat-row {
        display: flex;
        gap: 10px;
        margin-top: 20px;
      }

.stat-pill {
        flex: 1;
        text-align: center;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--r2);
        padding: 12px 10px;
      }

.stat-val {
        font-size: 24px;
        font-weight: 800;
        line-height: 1;
      }

.stat-lab {
        font-family: var(--mono);
        font-size: 10px;
        color: var(--text3);
        margin-top: 3px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
      }

.sv-g {
        color: var(--green);
      }

.sv-r {
        color: var(--red);
      }

.sv-t {
        color: var(--text);
      }

.sc-label {
        font-family: var(--mono);
        font-size: 10px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--text3);
        margin-bottom: 14px;
      }

.sc-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
      }

.sc-cell {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--r2);
        padding: 16px;
        position: relative;
        overflow: hidden;
        transition: border-color 0.2s;
      }

.sc-cell:hover {
        border-color: var(--border2);
      }

.sc-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--border);
      }

.sc-fill {
        height: 100%;
        transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
      }

.sc-pts {
        font-size: 26px;
        font-weight: 800;
        line-height: 1;
        color: var(--text);
        margin-bottom: 2px;
      }

.sc-max {
        font-family: var(--mono);
        font-size: 11px;
        color: var(--text3);
      }

.sc-name {
        font-size: 12px;
        color: var(--text2);
        margin-top: 8px;
        line-height: 1.4;
        font-weight: 500;
      }

.results-body {
        max-width: 1120px;
        margin: 0 auto;
        padding: 36px 40px 80px;
      }

.r-sec {
        margin-bottom: 48px;
      }

.r-sec-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--border);
      }

.r-sec-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--text);
      }

.r-sec-badge {
        font-family: var(--mono);
        font-size: 12px;
        color: var(--text2);
        background: var(--surface);
        border: 1px solid var(--border);
        padding: 4px 12px;
        border-radius: 99px;
      }

.sig-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 8px;
      }

.sig-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: var(--r2);
        padding: 14px 16px;
        cursor: pointer;
        transition:
          border-color 0.15s,
          background 0.15s;
      }

.sig-card:hover {
        border-color: var(--border2);
        background: var(--bg3);
      }

.sig-top {
        display: flex;
        align-items: center;
        gap: 10px;
      }

.sig-icon {
        width: 28px;
        height: 28px;
        border-radius: var(--r);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        flex-shrink: 0;
        font-weight: 700;
      }

.si-pass {
        background: #d1fae5;
        color: #065f46;
      }

.si-fail {
        background: #fee2e2;
        color: #dc2626;
      }

.si-partial {
        background: #fef3c7;
        color: #92400e;
      }

.sig-lbl {
        font-size: 13.5px;
        font-weight: 600;
        color: var(--text);
        flex: 1;
        line-height: 1.3;
      }

.sig-pill {
        font-family: var(--mono);
        font-size: 10px;
        font-weight: 500;
        padding: 3px 8px;
        border-radius: 99px;
        flex-shrink: 0;
      }

.pill-p {
        background: #d1fae5;
        color: #065f46;
      }

.pill-f {
        background: #fee2e2;
        color: #dc2626;
      }

.pill-w {
        background: #fef3c7;
        color: #92400e;
      }

.sig-detail {
        font-size: 12.5px;
        color: var(--text2);
        line-height: 1.55;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
        display: none;
      }

.sig-card.open .sig-detail {
        display: block;
      }

.table-wrap {
        overflow-x: auto;
        border-radius: var(--r2);
        border: 1px solid var(--border);
      }

.data-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
      }

.data-table th {
        font-family: var(--mono);
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text3);
        background: var(--bg3);
        padding: 11px 16px;
        text-align: left;
        border-bottom: 1px solid var(--border);
        white-space: nowrap;
      }

.data-table td {
        padding: 10px 16px;
        border-bottom: 1px solid var(--border);
        vertical-align: middle;
      }

.data-table tr:last-child td {
        border-bottom: none;
      }

.data-table tr:hover td {
        background: var(--bg3);
      }

.page-url {
        font-family: var(--mono);
        font-size: 12px;
        color: var(--text);
      }

.type-tag {
        font-family: var(--mono);
        font-size: 10px;
        font-weight: 500;
        padding: 3px 9px;
        border-radius: 99px;
        display: inline-block;
        letter-spacing: 0.03em;
      }

.t-home {
        background: rgba(99, 102, 241, 0.15);
        color: var(--accent2);
      }

.t-product {
        background: rgba(16, 185, 129, 0.15);
        color: var(--green);
      }

.t-collection {
        background: rgba(16, 185, 129, 0.1);
        color: #6ee7b7;
      }

.t-blog {
        background: rgba(139, 92, 246, 0.15);
        color: #c4b5fd;
      }

.t-service {
        background: rgba(6, 182, 212, 0.15);
        color: var(--teal);
      }

.t-faq {
        background: rgba(245, 158, 11, 0.15);
        color: var(--amber);
      }

.t-about {
        background: rgba(148, 163, 184, 0.15);
        color: #94a3b8;
      }

.t-contact {
        background: rgba(244, 114, 182, 0.15);
        color: #f472b6;
      }

.t-other {
        background: var(--surface);
        color: var(--text3);
      }

.sig-chips {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
      }

.sig-chip {
        font-family: var(--mono);
        font-size: 10px;
        padding: 2px 8px;
        border-radius: 99px;
        border: 1px solid var(--border);
        color: var(--text3);
      }

.sig-chip.on {
        background: rgba(245, 158, 11, 0.15);
        color: var(--amber);
        border-color: rgba(245, 158, 11, 0.25);
      }

.rec-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
      }

.rec-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: var(--r2);
        overflow: hidden;
      }

.rec-head {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 18px;
        cursor: pointer;
        transition: background 0.12s;
      }

.rec-head:hover {
        background: var(--bg3);
      }

.rec-num {
        font-family: var(--mono);
        font-size: 12px;
        color: var(--text3);
        width: 24px;
        text-align: center;
        flex-shrink: 0;
      }

.rec-imp {
        font-family: var(--mono);
        font-size: 10px;
        font-weight: 600;
        padding: 3px 9px;
        border-radius: 99px;
        flex-shrink: 0;
        letter-spacing: 0.03em;
      }

.imp-High {
        background: #fee2e2;
        color: #dc2626;
      }

.imp-Medium {
        background: #fef3c7;
        color: #d97706;
      }

.imp-Low {
        background: var(--surface);
        color: var(--text3);
        border: 1px solid var(--border);
      }

.rec-ttl {
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
        flex: 1;
      }

.rec-cat {
        font-family: var(--mono);
        font-size: 11px;
        color: var(--text3);
      }

.rec-chev {
        color: var(--text3);
        font-size: 11px;
        transition: transform 0.2s;
        flex-shrink: 0;
      }

.rec-card.open .rec-chev {
        transform: rotate(180deg);
      }

.rec-body {
        display: none;
        padding: 0 18px 18px;
      }

.rec-card.open .rec-body {
        display: block;
      }

.rec-why {
        font-size: 13.5px;
        color: var(--text2);
        line-height: 1.65;
        margin-bottom: 14px;
      }

.rec-code {
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: var(--r2);
        padding: 14px 16px;
        font-family: var(--mono);
        font-size: 12px;
        color: var(--text2);
        line-height: 1.7;
        white-space: pre-wrap;
        word-break: break-word;
      }

.footer-meta {
        font-family: var(--mono);
        font-size: 11px;
        color: var(--text3);
      }

@keyframes fadeUp {
        from {
          opacity: 0;
          transform: translateY(16px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

/* TIER LOCK SYSTEM */
      .section-content {
        transition: filter 0.3s;
      }

.section-content.locked {
        filter: blur(4px);
        pointer-events: none;
        user-select: none;
        max-height: 180px;
        overflow: hidden;
      }

.lock-gate {
        background: linear-gradient(
          135deg,
          rgba(248, 249, 252, 1),
          rgba(238, 240, 246, 1)
        );
        border: 1px solid var(--border2);
        border-radius: var(--r3);
        padding: 32px 28px;
        margin-top: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
      }

.lock-gate-left {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        flex: 1;
      }

.lock-gate-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: linear-gradient(
          135deg,
          rgba(99, 102, 241, 0.12),
          rgba(139, 92, 246, 0.12)
        );
        border: 1px solid rgba(99, 102, 241, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        flex-shrink: 0;
      }

.lock-gate-title {
        font-size: 15px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 4px;
      }

.lock-gate-sub {
        font-size: 13px;
        color: var(--text2);
        line-height: 1.5;
        max-width: 380px;
      }

.lock-gate-price {
        font-family: var(--mono);
        font-size: 11px;
        color: var(--accent2);
        background: rgba(99, 102, 241, 0.1);
        border: 1px solid rgba(99, 102, 241, 0.2);
        padding: 2px 9px;
        border-radius: 99px;
        display: inline-block;
        margin-top: 6px;
      }

.lock-gate-btn {
        background: var(--accent-g);
        color: #fff;
        font-family: var(--font);
        font-size: 13px;
        font-weight: 700;
        padding: 12px 24px;
        border-radius: var(--r2);
        border: none;
        cursor: pointer;
        transition:
          opacity 0.15s,
          transform 0.1s;
        white-space: nowrap;
        flex-shrink: 0;
      }

.lock-gate-btn:hover {
        opacity: 0.88;
      }

.lock-gate-btn:active {
        transform: scale(0.97);
      }

.tier-badge {
        font-family: var(--mono);
        font-size: 10px;
        padding: 3px 9px;
        border-radius: 99px;
        background: rgba(99, 102, 241, 0.08);
        color: var(--accent2);
        border: 1px solid rgba(99, 102, 241, 0.15);
      }

/* UPGRADE MODAL */
      .modal-bg {
        position: fixed;
        inset: 0;
        background: rgba(99, 102, 241, 0.15);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        backdrop-filter: blur(8px);
        overflow-y: auto;
      }

.modal-bg.hidden {
        display: none !important;
      }

.modal-card {
        background: var(--bg2);
        border: 1px solid var(--border2);
        border-radius: var(--r3);
        padding: 40px;
        max-width: 890px;
        width: 100%;
        box-shadow: 0 20px 60px rgba(99, 102, 241, 0.12), 0 4px 16px rgba(0,0,0,0.08);
        position: relative;
        margin: auto;
      }

.modal-close {
        position: absolute;
        top: 16px;
        right: 20px;
        background: none;
        border: none;
        color: var(--text3);
        font-size: 20px;
        cursor: pointer;
        line-height: 1;
        padding: 4px;
      }

.modal-close:hover {
        color: var(--text);
      }

.modal-title {
        font-size: 22px;
        font-weight: 800;
        color: var(--text);
        margin-bottom: 6px;
        letter-spacing: -0.3px;
      }

.modal-sub {
        font-size: 14px;
        color: var(--text2);
        margin-bottom: 32px;
        line-height: 1.5;
      }

.plan-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
      }

.plan-card {
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: var(--r2);
        padding: 20px;
        position: relative;
        transition: border-color 0.2s;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }

.plan-card.popular {
        border-color: var(--accent);
        background: rgba(99, 102, 241, 0.06);
      }

.popular-tag {
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--accent-g);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        padding: 3px 12px;
        border-radius: 99px;
        white-space: nowrap;
        font-family: var(--mono);
      }

.plan-price {
        font-size: 28px;
        font-weight: 800;
        color: var(--text);
        letter-spacing: -1px;
        margin-bottom: 2px;
      }

.plan-price span {
        font-size: 13px;
        font-weight: 400;
        color: var(--text3);
        font-family: var(--mono);
      }

.plan-name {
        font-size: 13px;
        font-weight: 700;
        color: var(--text2);
        margin-bottom: 14px;
        font-family: var(--mono);
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }

.plan-features {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 18px;
      }

.plan-features li {
        font-size: 12.5px;
        color: var(--text2);
        display: flex;
        align-items: center;
        gap: 7px;
      }

.plan-features li.locked-feat {
        color: var(--text3);
      }

.plan-features li::before {
        content: "✓";
        color: var(--green);
        font-family: var(--mono);
        font-size: 11px;
        flex-shrink: 0;
      }

.plan-features li.locked-feat::before {
        content: "—";
        color: var(--text3);
      }

.plan-btn {
        width: 100%;
        padding: 11px;
        border-radius: var(--r2);
        font-size: 13px;
        font-weight: 700;
        font-family: var(--font);
        cursor: pointer;
        border: none;
        transition: opacity 0.15s;
      }

.plan-btn-primary {
        background: var(--accent-g);
        color: #fff;
      }

.plan-btn-secondary {
        background: var(--surface);
        color: var(--text2);
        border: 1px solid var(--border2);
      }

.plan-btn:hover {
        opacity: 0.85;
      }

.plan-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }

.impact-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 12px;
      }

.impact-cell {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: var(--r2);
        padding: 12px;
        position: relative;
      }

.impact-cell.quick-win {
        border-color: var(--green);
        background: rgba(16, 185, 129, 0.05);
      }

.qw-tag {
        font-family: var(--mono);
        font-size: 10px;
        color: var(--green);
        position: absolute;
        top: 8px;
        right: 8px;
      }

.impact-cell-title {
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 6px;
      }

.impact-tags {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
      }

.template-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: var(--r2);
        overflow: hidden;
        margin-bottom: 10px;
      }

.template-head {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
        cursor: pointer;
      }

.template-head:hover {
        background: var(--bg3);
      }

.template-body {
        display: none;
        padding: 0 16px 16px;
      }

.template-card.open .template-body {
        display: block;
      }

.template-instr {
        font-size: 13px;
        color: var(--text2);
        line-height: 1.6;
        margin-bottom: 12px;
        padding: 10px 14px;
        background: var(--bg3);
        border-radius: var(--r);
        border-left: 3px solid var(--accent);
      }

.fix-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: var(--r2);
        padding: 16px;
        margin-bottom: 8px;
        display: grid;
        grid-template-columns: 36px 1fr auto;
        gap: 12px;
        align-items: start;
      }

.fix-step {
        width: 32px;
        height: 32px;
        border-radius: var(--r);
        background: var(--accent-g);
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: var(--mono);
        font-size: 12px;
        font-weight: 700;
        color: #fff;
        flex-shrink: 0;
      }

.fix-lift {
        font-family: var(--mono);
        font-size: 11px;
        color: var(--green);
        background: var(--green-dim);
        padding: 3px 9px;
        border-radius: 99px;
        white-space: nowrap;
      }

.issues-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

.issue-row {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: var(--r2);
        padding: 12px 16px;
      }

.issue-num {
        font-family: var(--mono);
        font-size: 11px;
        color: var(--text3);
        flex-shrink: 0;
        width: 20px;
      }

.issue-content {
        flex: 1;
      }

.issue-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 3px;
      }

.issue-why {
        font-size: 12.5px;
        color: var(--text2);
        line-height: 1.55;
      }

.issue-tags {
        display: flex;
        gap: 6px;
        margin-top: 6px;
        flex-wrap: wrap;
      }

.impact-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 20px;
      }

.impact-stat {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: var(--r2);
        padding: 16px;
        text-align: center;
      }

.impact-stat-num {
        font-size: 32px;
        font-weight: 800;
        color: var(--red);
      }

.impact-stat-lab {
        font-family: var(--mono);
        font-size: 10px;
        color: var(--text3);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-top: 4px;
      }

@media (max-width: 768px) {
.nav-pill {
          display: none;
        }
.hero {
          padding: 40px 16px 32px;
        }
.hero h1 {
          font-size: 30px;
          letter-spacing: -0.8px;
        }
.hero-sub {
          font-size: 15px;
          margin-bottom: 32px;
        }
.input-inner {
          padding: 5px 5px 5px 14px;
          border-radius: 16px;
        }
.https-label {
          display: none;
        }
.domain-input {
          font-size: 14px;
        }
.run-btn {
          font-size: 13px;
          padding: 10px 16px;
        }
.agents {
          gap: 6px;
        }
.agent-chip {
          font-size: 11px;
          padding: 4px 10px;
        }
.cat-grid {
          grid-template-columns: 1fr;
        }
.cat-card {
          padding: 20px 16px;
        }
.results-topbar {
          padding: 10px 16px;
          height: auto;
          min-height: 48px;
          gap: 8px;
        }
.topbar-left {
          gap: 8px;
        }
.topbar-domain {
          font-size: 12px;
        }
.topbar-meta {
          display: none;
        }
.back-btn {
          font-size: 12px;
          padding: 5px 12px;
        }
.score-hero {
          grid-template-columns: 1fr;
          gap: 24px;
          padding: 24px 16px;
        }
.score-hero > div:first-child {
          align-items: center;
          text-align: center;
        }
.score-desc {
          text-align: left;
        }
#score-positioning {
          text-align: left;
          max-width: 100%;
        }
.stat-row {
          width: 100%;
          gap: 8px;
        }
.stat-pill {
          padding: 10px 8px;
        }
.stat-val {
          font-size: 20px;
        }
.sc-label {
          text-align: center;
        }
.sc-grid {
          grid-template-columns: 1fr 1fr;
          gap: 8px;
        }
.sc-cell {
          padding: 12px;
        }
.sc-pts {
          font-size: 22px;
        }
.sc-name {
          font-size: 11px;
        }
.results-body {
          padding: 20px 16px 60px;
        }
.r-sec {
          margin-bottom: 32px;
        }
.r-sec-head {
          flex-wrap: wrap;
          gap: 8px;
        }
.r-sec-title {
          font-size: 15px;
        }
.sig-grid {
          grid-template-columns: 1fr;
        }
.rec-head {
          padding: 12px 14px;
          gap: 8px;
          flex-wrap: wrap;
        }
.rec-num {
          display: none;
        }
.rec-cat {
          display: none;
        }
.rec-body {
          padding: 0 14px 14px;
        }
.fix-card {
          grid-template-columns: 32px 1fr;
          gap: 10px;
        }
.fix-lift {
          display: none;
        }
.impact-stats {
          grid-template-columns: 1fr;
          gap: 8px;
        }
.impact-stat-num {
          font-size: 26px;
        }
.impact-grid {
          grid-template-columns: 1fr;
        }
.lock-gate {
          flex-direction: column;
          padding: 20px 16px;
          gap: 16px;
          align-items: flex-start;
        }
.lock-gate-btn {
          width: 100%;
          text-align: center;
          padding: 13px;
        }
.modal-bg {
          padding: 12px;
          align-items: flex-start;
        }
.modal-card {
          padding: 20px 16px;
          border-radius: var(--r2);
        }
.modal-title {
          font-size: 17px;
        }
.modal-sub {
          font-size: 13px;
          margin-bottom: 20px;
        }
.plan-grid {
          grid-template-columns: 1fr;
          gap: 10px;
        }
.plan-card {
          padding: 16px;
        }
.popular-tag {
          font-size: 9px;
        }
.table-wrap {
          overflow-x: auto;
          -webkit-overflow-scrolling: touch;
        }
.data-table {
          min-width: 480px;
        }
.issue-row {
          padding: 10px 12px;
        }
.issue-tags {
          gap: 4px;
        }
.template-head {
          flex-wrap: wrap;
          gap: 8px;
        }
.orb-1 {
          width: 300px;
          height: 300px;
          top: -100px;
          right: -80px;
        }
.orb-2 {
          width: 250px;
          height: 250px;
        }
}

@media (max-width: 400px) {
.hero h1 {
          font-size: 26px;
        }
.sc-grid {
          grid-template-columns: 1fr;
        }
.run-btn {
          padding: 9px 12px;
          font-size: 12px;
        }
.score-big {
          font-size: 36px;
        }
}

@media print {
nav,
        #upgrade-modal,
        .lock-gate,
        #download-report-btn,
        #access-expiry-msg,
        .back-btn,
        .error-back,
        footer,
        #restore-panel,
        .orb,
        .results-topbar,
        #section-advisory,
        #section-newsletter {
          display: none !important;
        }
body,
        html {
          background: #fff !important;
          color: #000 !important;
        }
.page,
        #results-view,
        .results-body,
        .score-hero {
          background: #fff !important;
          color: #000 !important;
        }
.section-content.locked {
          filter: none !important;
          max-height: none !important;
          overflow: visible !important;
        }
.r-sec,
        .sig-card,
        .rec-card,
        .fix-card,
        .issue-row,
        .impact-stat,
        .impact-cell,
        .sc-cell,
        .template-card {
          background: #f9f9f9 !important;
          border-color: #ccc !important;
          color: #000 !important;
          box-shadow: none !important;
        }
.score-hero {
          border: 1px solid #ccc;
          padding: 24px;
        }
a {
          color: #000;
        }
@page {
          margin: 20mm;
        }
}

/* ── HOMEPAGE SECTIONS ── */
    .stat-bar{display:flex;justify-content:center;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--bg2);}

.stat-bar-item{flex:1;max-width:300px;text-align:center;padding:24px 16px;border-right:1px solid var(--border);}

.stat-bar-item:last-child{border-right:none;}

.stat-bar-num{font-size:32px;font-weight:800;color:var(--text);letter-spacing:-1px;}

.stat-bar-label{font-size:12px;color:var(--text3);margin-top:4px;font-family:var(--mono);line-height:1.4;}

.home-section{padding:72px 24px;max-width:1100px;margin:0 auto;}

.section-label{font-family:var(--mono);font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.1em;color:var(--accent2);margin-bottom:12px;}

.section-h2{font-size:clamp(26px,3.5vw,38px);font-weight:800;letter-spacing:-.8px;color:var(--text);margin-bottom:16px;line-height:1.15;}

.section-sub{font-size:16px;color:var(--text2);line-height:1.7;max-width:600px;margin-bottom:44px;}

.problem-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}

.problem-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r2);padding:24px 20px;}

.problem-num{font-size:32px;font-weight:800;color:var(--red);letter-spacing:-1px;margin-bottom:8px;}

.problem-desc{font-size:13px;color:var(--text2);line-height:1.6;}

.how-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}

.how-step{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r2);padding:28px 24px;}

.how-step-num{font-family:var(--mono);font-size:11px;font-weight:700;color:var(--accent2);background:rgba(99,102,241,.08);border:1px solid rgba(99,102,241,.2);padding:3px 10px;border-radius:99px;display:inline-block;margin-bottom:14px;}

.how-step h3{font-size:16px;font-weight:700;color:var(--text);margin-bottom:8px;}

.how-step p{font-size:13px;color:var(--text2);line-height:1.6;}

.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}

.pricing-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r2);padding:28px 24px;display:flex;flex-direction:column;position:relative;}

.pricing-card.popular{border-color:var(--accent);background:rgba(99,102,241,.04);}

.pricing-popular-tag{position:absolute;top:-11px;left:50%;transform:translateX(-50%);background:var(--accent-g);color:#fff;font-size:10px;font-weight:700;padding:3px 14px;border-radius:99px;white-space:nowrap;font-family:var(--mono);}

.pricing-price{font-size:38px;font-weight:800;color:var(--text);letter-spacing:-2px;margin-bottom:2px;}

.pricing-price span{font-size:13px;font-weight:400;color:var(--text3);font-family:var(--mono);}

.pricing-name{font-size:11px;font-weight:700;color:var(--text2);font-family:var(--mono);text-transform:uppercase;letter-spacing:.08em;margin-bottom:20px;}

.pricing-features{list-style:none;display:flex;flex-direction:column;gap:8px;margin-bottom:24px;flex:1;}

.pricing-features li{font-size:13px;color:var(--text2);display:flex;align-items:flex-start;gap:8px;line-height:1.45;}

.pricing-features li::before{content:"✓";color:var(--green);font-family:var(--mono);font-size:11px;flex-shrink:0;margin-top:2px;}

.pricing-features li.dim::before{content:"—";color:var(--text3);}

.pricing-features li.dim{color:var(--text3);}

.pricing-btn{width:100%;padding:12px;border-radius:var(--r2);font-size:14px;font-weight:700;font-family:var(--font);cursor:pointer;border:none;transition:opacity .15s;}

.pricing-btn-primary{background:var(--accent-g);color:#fff;}

.pricing-btn-secondary{background:var(--surface);color:var(--text2);border:1px solid var(--border2);}

.pricing-btn:hover{opacity:.85;}

.faq-list{display:flex;flex-direction:column;gap:4px;}

.faq-item{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r2);overflow:hidden;}

.faq-q{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;cursor:pointer;font-size:15px;font-weight:600;color:var(--text);gap:12px;transition:background .15s;}

.faq-q:hover{background:var(--bg3);}

.faq-chev{color:var(--text3);font-size:12px;transition:transform .2s;flex-shrink:0;}

.faq-item.open .faq-chev{transform:rotate(180deg);}

.faq-a{display:none;padding:0 20px 18px;font-size:14px;color:var(--text2);line-height:1.75;}

.faq-item.open .faq-a{display:block;}

.insights-strip{background:var(--bg2);border-top:1px solid var(--border);padding:64px 24px;}

.insights-inner{max-width:1100px;margin:0 auto;}

.insights-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:32px;}

.insight-card{background:var(--bg);border:1px solid var(--border);border-radius:var(--r2);padding:24px 20px;text-decoration:none;transition:border-color .15s,box-shadow .15s;display:block;}

.insight-card:hover{border-color:var(--border2);box-shadow:0 4px 16px rgba(99,102,241,.08);}

.insight-cat{font-family:var(--mono);font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--accent2);margin-bottom:10px;}

.insight-title{font-size:15px;font-weight:700;color:var(--text);margin-bottom:8px;line-height:1.4;}

.insight-desc{font-size:13px;color:var(--text2);line-height:1.55;}

.insight-more{display:inline-flex;align-items:center;gap:6px;margin-top:28px;font-size:13px;font-weight:600;color:var(--accent2);text-decoration:none;transition:gap .15s;}

.insight-more:hover{gap:10px;}

.bottom-cta-strip{text-align:center;padding:80px 24px;border-top:1px solid var(--border);}

.bottom-cta-strip h2{font-size:clamp(26px,4vw,42px);font-weight:800;letter-spacing:-1px;color:var(--text);margin-bottom:12px;}

.bottom-cta-strip p{font-size:16px;color:var(--text2);margin-bottom:32px;}

.trust-line{font-size:12px;color:var(--text3);margin-bottom:20px;}

@media(max-width:768px){
.stat-bar{flex-direction:column;}
.stat-bar-item{border-right:none;border-bottom:1px solid var(--border);max-width:none;}
.stat-bar-item:last-child{border-bottom:none;}
.problem-grid,.how-steps,.pricing-grid,.insights-grid{grid-template-columns:1fr;}
.home-section{padding:48px 16px;}
.insights-strip{padding:40px 16px;}
.bottom-cta-strip{padding:48px 16px;}
}

@keyframes slideUp {
      from { opacity:0; transform:translateY(20px); }
      to   { opacity:1; transform:translateY(0); }
    }

#upsell-popup input:focus, #upsell-popup select:focus, #upsell-popup textarea:focus {
      border-color: var(--accent) !important;
    }

@media(max-width:768px) {
#upsell-popup { width:calc(100vw - 32px); right:16px; bottom:16px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Homepage copy update — Aug 2026
   ("AgentReady Homepage — Current vs Replacement Copy")

   Copy change only. These rules exist solely to let the approved wording sit
   cleanly in the EXISTING layout — no redesign, no new sections.
   ══════════════════════════════════════════════════════════════════════════ */

/* Research attribution beneath the proof statistics. Deliberately secondary. */
.stat-source {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text3);
  padding: 0 24px 8px;
  margin: -8px auto 0;
  max-width: 720px;
}
.stat-source em {
  font-style: italic;
}

/* Closing CTA: the approved copy is a longer sentence than the old one, so it
   needs a measure and a separate meta line for "Free · No signup · …". */
.cta-lead {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 10px;
}
.cta-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 28px;
}

/* The approved hero CTA — "Run Your Free AI Readiness Audit →" — is roughly
   three times the width of the old "Run Audit →". In the 580px input row it
   would squeeze the domain field to nothing, and below ~560px it would
   overflow the viewport entirely.

   Rather than shorten the approved wording, the input row stacks on narrow
   screens: field on top, full-width button beneath. Desktop is unchanged
   apart from slightly tighter button padding. */
@media (max-width: 560px) {
  .input-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
  }
  .input-inner .https-label {
    display: none;
  }
  .domain-input {
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
  }
  .run-btn {
    width: 100%;
    white-space: normal;
    padding: 12px 14px;
    font-size: 13px;
  }
}
