/* STRCTR /access — route decision surface (black env · white structure · blue = activation only) */

:root {
    --bg: #050506;
    --slab-strong-bg: #030304;
    --surface: #060607;
    --text: #e5e7eb;
    --muted: #8a9099;
    --dim: rgba(180, 188, 198, 0.92);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.125);
    --accent: #2563eb;
    --accent-border: rgba(59, 130, 246, 0.88);
    --max: min(1180px, calc(100vw - 40px));
    --ac-pad: clamp(20px, 4vw, 40px);
    --block-gap: clamp(40px, 6vw, 72px);
    --section-gap: clamp(28px, 4vw, 48px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    overflow-y: auto;
}

body.access-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background-color: var(--bg);
    overflow: visible;
}

a {
    color: inherit;
    text-decoration: none;
}

/* —— Header —— */
.ac-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ac-header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--ac-pad);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ac-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text);
}

.ac-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 2px;
    display: grid;
    place-items: center;
    background: #000;
    overflow: hidden;
}

.ac-brand-mark img {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

.ac-header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ac-header-nav a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.14s ease;
}

.ac-header-nav a:hover {
    color: var(--text);
}

.ac-nav-current {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(200, 208, 218, 0.55);
    cursor: default;
}

.ac-main {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 36px) var(--ac-pad) clamp(48px, 8vw, 80px);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* —— 1. Access header — same slab frame grammar as /pricing (.pr-pricing-header) —— */
.ac-access-header {
    margin-bottom: var(--block-gap);
    padding: clamp(4px, 0.8vw, 8px) 0 clamp(22px, 3.2vw, 30px)
        clamp(14px, 2.2vw, 22px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.105);
    border-left: 1px solid rgba(255, 255, 255, 0.11);
    max-width: min(38rem, 100%);
}

.ac-access-header__title {
    margin: 0 0 12px;
    font-size: clamp(1.08rem, 2.35vw, 1.32rem);
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    line-height: 1.22;
    color: rgba(232, 236, 242, 0.97);
}

.ac-access-header__lead {
    margin: 0 0 11px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.038em;
    line-height: 1.45;
    color: rgba(172, 180, 190, 0.96);
}

.ac-access-header__truth {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.032em;
    line-height: 1.48;
    color: rgba(128, 136, 146, 0.94);
}

/* —— Block rhythm —— */
.ac-block {
    margin-top: var(--block-gap);
}

.ac-block:first-of-type {
    margin-top: 0;
}

/* —— 2. Route model — entry architecture — second tier strength —— */
.ac-block--route-model {
    margin-top: 0;
}

.ac-route-model-slab {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    display: flex;
    flex-direction: column;
}

.ac-route-model-lane {
    padding: clamp(18px, 2.8vw, 26px) clamp(18px, 3vw, 28px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: baseline;
}

.ac-route-model-lane:last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.ac-route-model-lane__tier {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(200, 208, 218, 0.92);
}

.ac-route-model-lane__kind {
    margin: 0;
    justify-self: end;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(156, 164, 176, 0.96);
}

.ac-route-model-foot {
    margin: 0;
    padding: clamp(14px, 2vw, 18px) clamp(18px, 3vw, 28px);
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.09em;
    line-height: 1.45;
    color: rgba(118, 126, 136, 0.94);
}

@media (min-width: 780px) {
    .ac-route-model-slab {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto auto;
    }

    .ac-route-model-lane {
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.065);
        min-height: clamp(120px, 16vw, 150px);
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        justify-items: start;
        text-align: left;
        padding-top: clamp(22px, 3vw, 32px);
    }

    .ac-route-model-lane:last-of-type {
        border-right: none;
        border-bottom: none;
    }

    .ac-route-model-lane__kind {
        justify-self: start;
        text-align: left;
    }

    .ac-route-model-foot {
        grid-column: 1 / -1;
    }
}

/* —— 3. Access paths — strongest surface —— */
.ac-block--paths {
    margin-top: calc(var(--block-gap) * 1.02);
}

.ac-paths-slab {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: var(--slab-strong-bg);
    overflow: visible;
}

.ac-paths-slab-head {
    padding: clamp(16px, 2vw, 22px) clamp(18px, 2.5vw, 28px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    background: transparent;
}

.ac-paths-slab-kicker {
    margin: 0;
    font-size: clamp(14px, 1.35vw, 17px);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(196, 202, 212, 0.9);
}

.ac-paths-routes {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
}

.ac-paths-routes a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    min-height: 124px;
    padding: clamp(22px, 3vw, 30px) 18px;
    font-weight: 600;
    color: rgba(200, 206, 216, 0.96);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    transition: color 0.15s ease, background 0.15s ease;
}

.ac-paths-routes a:last-child {
    border-bottom: 0;
}

.ac-paths-routes a:hover {
    color: rgba(236, 240, 246, 0.98);
    background: rgba(255, 255, 255, 0.04);
}

.ac-paths-tier {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(138, 146, 158, 0.96);
}

.ac-paths-action {
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(228, 232, 240, 0.98);
}

.ac-paths-line {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.45;
    max-width: 22rem;
    color: rgba(148, 156, 168, 0.96);
    text-transform: none;
}

@media (min-width: 700px) {
    .ac-paths-routes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: 132px;
    }

    .ac-paths-routes a {
        min-height: 140px;
        border-bottom: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.075);
        padding: 28px 16px;
    }

    .ac-paths-routes a:last-child {
        border-right: 0;
    }
}

/* —— 4. CORE clarification — structural plate —— */
.ac-core-slab {
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: var(--surface);
    padding: clamp(20px, 3vw, 28px) clamp(18px, 3vw, 28px);
}

.ac-core-head {
    padding-bottom: clamp(14px, 2vw, 18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    margin-bottom: clamp(14px, 2vw, 18px);
}

.ac-core-head h2 {
    margin: 0 0 10px;
    font-size: clamp(11px, 1.05vw, 12px);
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    line-height: 1.26;
    color: rgba(190, 198, 208, 0.88);
}

.ac-core-lead {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.48;
    color: rgba(148, 154, 166, 0.98);
    max-width: 38rem;
}

.ac-core-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ac-core-row {
    display: grid;
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    gap: 8px 20px;
    align-items: baseline;
    padding: 12px 0 0;
}

.ac-core-row:first-of-type {
    padding-top: 0;
}

.ac-core-row:not(:first-of-type) {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.ac-core-row__label {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(176, 184, 194, 0.9);
}

.ac-core-row__body {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.48;
    letter-spacing: 0.025em;
    color: rgba(132, 140, 152, 0.98);
}

@media (max-width: 560px) {
    .ac-core-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* —— 5. Final route gate — quietest —— */
.ac-block--gate {
    margin-top: calc(var(--block-gap) * 0.78);
}

.ac-final-gate {
    padding: clamp(18px, 2.8vw, 24px) 0 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    text-align: center;
    max-width: min(26rem, 100%);
    margin-inline: auto;
}

.ac-final-line {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.45;
    color: rgba(118, 126, 136, 0.96);
}

.ac-final-cta {
    display: flex;
    justify-content: center;
}

.ac-final-cta .btn {
    min-height: 44px;
    padding-left: 22px;
    padding-right: 22px;
}

/* —— Footer —— */
.ac-footer {
    margin-top: var(--section-gap);
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(138, 144, 153, 0.9);
}

.ac-footer a {
    color: rgba(200, 208, 218, 0.88);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.14s ease;
}

.ac-footer a:hover {
    color: var(--text);
}

.ac-footer a[aria-current='page'] {
    color: var(--text);
    text-decoration: none;
    pointer-events: none;
    cursor: default;
}

.ac-footer-sep {
    opacity: 0.45;
    user-select: none;
}

/* Buttons — blue = activation only */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    min-height: 48px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.btn:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.03);
}

.btn-primary {
    background: var(--accent);
    color: #f8fafc;
    border-color: var(--accent-border);
    font-weight: 500;
    letter-spacing: 0.07em;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.ac-header-nav a:focus-visible,
.ac-brand:focus-visible,
.ac-footer a:focus-visible,
.btn:focus-visible,
.ac-paths-routes a:focus-visible {
    outline: 1px solid rgba(59, 130, 246, 0.72);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .ac-header-nav a,
    .ac-footer a,
    .ac-paths-routes a {
        transition: none;
    }
}
