/* ============================================================
   MEMBERPORT — AJAR / The Corridor System
   The logo is a door standing open with light behind it.
   The site is built from that one shape.
   Walls: Shopify = teal, Discord = blurple. The door = lime.
   Flat, print-like, hairline-precise. No 3D doors, no glass.
   ============================================================ */

:root {
    --mp-void: #060d0b;        /* the corridor wall */
    --mp-room: #0c1613;        /* raised surfaces */
    --mp-jamb: #1c2a24;        /* hairlines, frames, lintels */
    --mp-jamb-soft: rgba(28, 42, 36, 0.6);
    --mp-lime: #d9ff3f;        /* MemberPort — the door */
    --mp-teal: #00e5c3;        /* Shopify wall only */
    --mp-blurple: #5865f2;     /* Discord wall only */
    --mp-bone: #f4f8f2;        /* primary text */
    --mp-mist: #9db1a6;        /* secondary text */
    --mp-ink-on-lime: #0a1410;
    --mp-spill: linear-gradient(105deg, rgba(217, 255, 63, 0.16), rgba(0, 229, 195, 0.06) 55%, transparent 80%);
    --font-display: "Bricolage Grotesque", sans-serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
    --door-poly: polygon(0 0, 100% 6%, 100% 94%, 0 100%);
    --door-poly-left: polygon(0 6%, 100% 0, 100% 100%, 0 94%);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--mp-bone);
    background: var(--mp-void);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* faint grain so the void isn't dead flat */
html::after {
    content: "";
    position: fixed;
    inset: -60px;
    z-index: 90;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.035;
    mix-blend-mode: overlay;
}

::selection {
    background: var(--mp-lime);
    color: var(--mp-ink-on-lime);
}

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

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1, h2, h3, p, figure {
    margin: 0;
}

h1, h2 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.75rem, 5.5vw, 4.5rem); line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.05; }

h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.19rem;
    line-height: 1.3;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--mp-jamb) transparent;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--mp-jamb); border: 2px solid var(--mp-void); }
::-webkit-scrollbar-thumb:hover { background: var(--mp-lime); }

:focus-visible {
    outline: 2px solid var(--mp-teal);
    outline-offset: 2px;
}

/* ------------------------------------------------------------
   THE MONO VOICE — the access-control system speaking
   ------------------------------------------------------------ */

.eyebrow,
.strip-label,
.mp-doorplate,
.mp-stamp,
.mp-assurance,
.mp-spine-label,
.memberport-tour-chrome,
.memberport-rule-option > span,
.route-card > span,
.site-footer {
    font-family: var(--font-mono);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.eyebrow {
    font-size: 0.72rem;
    color: var(--mp-teal);
    margin: 0 0 14px;
}

/* ------------------------------------------------------------
   NAV — the entrance
   ------------------------------------------------------------ */

.site-nav,
.memberport-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    padding: 10px max(24px, calc((100vw - 1200px) / 2));
    background: rgba(6, 13, 11, 0.9);
    border-bottom: 1px solid var(--mp-jamb);
    backdrop-filter: blur(12px);
}

.brand-mark,
.memberport-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.brand-glyph,
.memberport-product-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--mp-room);
    clip-path: var(--door-poly);
    border: 0;
}

.brand-glyph img,
.memberport-product-mark img {
    width: auto;
    height: 26px;
}

.brand-copy,
.memberport-brand-copy {
    display: grid;
    gap: 1px;
    line-height: 1.25;
}

.brand-copy strong,
.memberport-brand-copy strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand-copy small,
.memberport-brand-copy small {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--mp-mist);
}

.nav-links,
.memberport-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a,
.memberport-nav-links a {
    padding: 9px 13px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mp-mist);
    border: 1px solid transparent;
    transition: color 140ms ease, border-color 140ms ease;
}

.nav-links a:hover,
.memberport-nav-links a:hover {
    color: var(--mp-bone);
    border-color: var(--mp-jamb);
}

.nav-links a:last-child,
.memberport-nav-links a:last-child {
    color: var(--mp-ink-on-lime);
    background: var(--mp-lime);
    border-color: var(--mp-lime);
    font-weight: 600;
    box-shadow: 0 0 20px rgba(217, 255, 63, 0.25);
}

.nav-links a:last-child:hover {
    background: transparent;
    color: var(--mp-lime);
}

/* mobile toggle (injected by memberport.js) */
.nav-toggle {
    display: none;
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--mp-jamb);
    background: transparent;
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    height: 2px;
    background: var(--mp-bone);
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle::before { top: 14px; }
.nav-toggle span { top: 20px; }
.nav-toggle::after { top: 26px; }

.nav-toggle[aria-expanded="true"]::before { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { top: 20px; transform: rotate(-45deg); }

/* ------------------------------------------------------------
   CORRIDOR SPINE — wayfinding (built by memberport.js, ≥1200px)
   ------------------------------------------------------------ */

.mp-spine {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 44px;
    width: 2px;
    background: var(--mp-jamb-soft);
    z-index: 25;
}

.mp-spine-dot {
    position: absolute;
    left: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mp-jamb);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background 200ms ease, box-shadow 200ms ease;
}

.mp-spine-dot.is-open {
    background: var(--mp-lime);
    box-shadow: 0 0 10px rgba(217, 255, 63, 0.6);
}

.mp-spine-label {
    position: absolute;
    left: 14px;
    top: -4px;
    font-size: 0.58rem;
    color: var(--mp-lime);
    white-space: nowrap;
    writing-mode: vertical-rl;
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
}

.mp-spine-dot.is-open .mp-spine-label {
    opacity: 0.9;
}

@media (max-width: 1199px) {
    .mp-spine { display: none; }
}

/* ------------------------------------------------------------
   PAGE STRUCTURE + LINTEL HEADERS
   ------------------------------------------------------------ */

main {
    display: block;
}

main > section,
.section-shell,
.status-strip,
.memberport-faq,
.memberport-pricing,
.memberport-cta,
.hero {
    width: min(1200px, 100% - 48px);
    margin-inline: auto;
}

main > section {
    padding: 96px 0 32px;
}

/* the lintel: a full-width hairline the eyebrow sits on */
.section-heading {
    position: relative;
    max-width: 68ch;
    margin-bottom: 48px;
    padding-top: 26px;
}

.section-heading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    background: var(--mp-jamb);
    width: calc(min(1200px, 100vw - 48px));
    max-width: calc(100vw - 48px);
}

.section-heading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 14px;
    background: var(--mp-lime);
}

.section-heading .eyebrow {
    position: relative;
    display: inline-block;
    margin-top: -36px;
    margin-bottom: 22px;
    padding: 0 14px 0 10px;
    background: var(--mp-void);
    transform: translateY(-0.5em);
}

.section-heading h2 {
    margin-bottom: 18px;
}

.section-heading p {
    color: var(--mp-mist);
    max-width: 62ch;
}

/* ------------------------------------------------------------
   HERO — the entrance
   ------------------------------------------------------------ */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    gap: 56px;
    padding-top: 88px;
    padding-bottom: 48px;
}

.hero .eyebrow {
    color: var(--mp-teal);
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-copy {
    color: var(--mp-mist);
    max-width: 56ch;
    font-size: 1.09rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.mp-assurance {
    margin-top: 22px;
    font-size: 0.66rem;
    color: var(--mp-mist);
}

.mp-assurance strong {
    color: var(--mp-lime);
    font-weight: 500;
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--mp-jamb);
    color: var(--mp-bone);
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 150ms ease, border-color 150ms ease, color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-130%) skewX(-18deg);
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.2) 50%, transparent 62%);
    transition: transform 480ms ease;
    pointer-events: none;
}

.btn:hover::after {
    transform: translateX(130%) skewX(-18deg);
}

.btn:hover {
    transform: translateY(-1px);
    border-color: var(--mp-mist);
}

.btn-primary {
    background: var(--mp-lime);
    border-color: var(--mp-lime);
    color: var(--mp-ink-on-lime);
    box-shadow: 0 0 24px rgba(217, 255, 63, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 0 36px rgba(217, 255, 63, 0.38);
    border-color: var(--mp-lime);
}

.btn-secondary {
    border-color: var(--mp-jamb);
}

/* ------------------------------------------------------------
   MP-APERTURE — the door-shaped media frame
   ------------------------------------------------------------ */

.mp-aperture {
    position: relative;
}

/* the lime door slab behind the face */
.mp-aperture::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--mp-lime);
    clip-path: var(--door-poly);
    filter: drop-shadow(0 0 24px rgba(217, 255, 63, 0.18));
}

.mp-aperture--left::before {
    clip-path: var(--door-poly-left);
}

.mp-aperture-face {
    position: relative;
    margin: 4px 5px;
    background: var(--mp-room);
    clip-path: var(--door-poly);
    overflow: hidden;
}

.mp-aperture--left .mp-aperture-face {
    clip-path: var(--door-poly-left);
}

.mp-aperture-face img {
    width: 100%;
    padding: 4% 3.5%;
}

/* the doorknob */
.mp-aperture::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mp-lime);
    box-shadow: 0 0 12px rgba(217, 255, 63, 0.55);
}

.mp-aperture--left::after {
    right: auto;
    left: -4px;
}

/* scan beam — sweeps once when .is-open lands */
.mp-aperture-face::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--mp-teal);
    box-shadow: 0 0 24px rgba(0, 229, 195, 0.6);
    opacity: 0;
}

.js .mp-aperture.is-open .mp-aperture-face::after {
    animation: mp-scan 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms both;
}

@keyframes mp-scan {
    0% { opacity: 1; transform: translateY(0); }
    92% { opacity: 1; }
    100% { opacity: 0; transform: translateY(420px); }
}

/* light spill — max one per section */
.mp-spill {
    position: absolute;
    left: -18%;
    bottom: -22%;
    width: 130%;
    height: 60%;
    background: var(--mp-spill);
    transform: skewY(-6deg);
    filter: blur(28px);
    opacity: 0;
    transition: opacity 900ms ease 250ms;
    pointer-events: none;
    z-index: -1;
}

.js .mp-aperture.is-open .mp-spill,
html:not(.js) .mp-spill {
    opacity: 1;
}

.mp-hero-door {
    position: relative;
}

.mp-hero-door .mp-stamp {
    position: absolute;
    left: -14px;
    bottom: 12%;
    z-index: 2;
}

/* ------------------------------------------------------------
   MP-STAMP — access verdicts
   ------------------------------------------------------------ */

.mp-stamp {
    display: inline-block;
    padding: 7px 13px;
    font-size: 0.66rem;
    border: 1px solid currentColor;
    color: var(--mp-lime);
    background: rgba(6, 13, 11, 0.85);
    position: relative;
    transform: rotate(-2deg);
}

.mp-stamp::before,
.mp-stamp::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border: 1px solid currentColor;
}

.mp-stamp::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.mp-stamp::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }

.mp-stamp--granted { color: var(--mp-lime); box-shadow: 0 0 18px rgba(217, 255, 63, 0.18); }
.mp-stamp--signal { color: var(--mp-teal); }
.mp-stamp--role { color: var(--mp-blurple); }
.mp-stamp--pending { color: var(--mp-mist); }

.js .mp-stamp {
    opacity: 0;
    transform: rotate(-2deg) scale(1.4);
}

.js .mp-stamp.is-open {
    opacity: 1;
    transform: rotate(-2deg) scale(1);
    transition: transform 220ms cubic-bezier(0.2, 1.5, 0.35, 1), opacity 130ms ease-out;
}

/* ------------------------------------------------------------
   MP-DOORPLATE — step numbers as room plates
   ------------------------------------------------------------ */

.mp-doorplate {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 27px;
    padding: 0 8px;
    font-size: 0.7rem;
    color: var(--mp-lime);
    border: 1px solid var(--mp-jamb);
    border-radius: 3px;
    position: relative;
}

.mp-doorplate::before,
.mp-doorplate::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 2px;
    height: 2px;
    margin-top: -1px;
    background: var(--mp-jamb);
    border-radius: 50%;
}

.mp-doorplate::before { left: 3px; }
.mp-doorplate::after { right: 3px; }

/* ------------------------------------------------------------
   MP-KEYCARD — access-pass cards
   ------------------------------------------------------------ */

.mp-keycard {
    position: relative;
    padding: 30px 24px 34px;
    background: var(--mp-room);
    border: 1px solid var(--mp-jamb);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

/* punched slot */
.mp-keycard::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 24px;
    width: 32px;
    height: 9px;
    border-radius: 99px;
    background: var(--mp-void);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7);
}

/* foil sliver + magstripe */
.mp-keycard::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 68%, rgba(217, 255, 63, 0.13) 72%, rgba(0, 229, 195, 0.12) 78%, rgba(88, 101, 242, 0.13) 84%, transparent 88%),
        linear-gradient(transparent calc(100% - 12px), rgba(4, 9, 7, 0.9) calc(100% - 12px));
    background-size: 300% 100%, 100% 100%;
    pointer-events: none;
    transition: background-position 600ms ease;
}

.mp-keycard:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 255, 63, 0.35);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 30px rgba(217, 255, 63, 0.07);
}

.mp-keycard:hover::after {
    background-position: 100% 0, 0 0;
}

.mp-keycard > * {
    position: relative;
    z-index: 1;
}

.mp-keycard h3 {
    margin: 14px 0 10px;
}

.mp-keycard p {
    color: var(--mp-mist);
    font-size: 0.95rem;
}

/* ------------------------------------------------------------
   STATUS STRIP — three threshold checks
   ------------------------------------------------------------ */

.status-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--mp-jamb);
    border-bottom: 1px solid var(--mp-jamb);
    counter-reset: threshold;
}

.status-strip > div {
    counter-increment: threshold;
    padding: 24px 26px 26px;
    border-left: 1px solid var(--mp-jamb);
    position: relative;
}

.status-strip > div:first-child {
    border-left: 0;
}

.status-strip > div::before {
    content: counter(threshold, upper-alpha);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--mp-mist);
    position: absolute;
    top: 10px;
    right: 14px;
    opacity: 0.7;
}

.strip-label {
    display: block;
    font-size: 0.62rem;
    color: var(--mp-teal);
    margin-bottom: 8px;
}

.status-strip > div:nth-child(2) .strip-label { color: var(--mp-mist); }
.status-strip > div:nth-child(3) .strip-label { color: var(--mp-blurple); }

.status-strip strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   HANDOFF — three doors along the corridor floor
   ------------------------------------------------------------ */

.memberport-access-event {
    max-width: 880px;
}

.access-event-rail {
    position: relative;
    display: grid;
    gap: 0;
    padding-left: 34px;
}

.access-event-rail::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--mp-teal), var(--mp-lime) 50%, var(--mp-blurple));
    box-shadow: 0 0 14px rgba(0, 229, 195, 0.25);
}

.access-event-row {
    display: grid;
    grid-template-columns: auto minmax(0, 220px) minmax(0, 1fr);
    align-items: baseline;
    gap: 10px 22px;
    padding: 20px 16px;
    border-bottom: 1px solid var(--mp-jamb-soft);
    transition: background 160ms ease;
}

.access-event-row:last-child {
    border-bottom: 0;
}

.access-event-row:hover {
    background: rgba(0, 229, 195, 0.04);
}

.access-event-row:last-child:hover {
    background: rgba(88, 101, 242, 0.05);
}

.access-event-row strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
}

.access-event-row p {
    color: var(--mp-mist);
    font-size: 0.95rem;
}

.access-event-row .mp-stamp {
    grid-column: 3;
    justify-self: start;
}

/* ------------------------------------------------------------
   USE CASES — keycards on the wall
   ------------------------------------------------------------ */

.memberport-usecase-callouts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.memberport-usecase-callouts article .mp-doorplate {
    margin-bottom: 4px;
}

.memberport-usecase-callouts article:nth-child(1) .mp-doorplate { color: var(--mp-lime); }
.memberport-usecase-callouts article:nth-child(2) .mp-doorplate { color: var(--mp-teal); }
.memberport-usecase-callouts article:nth-child(3) .mp-doorplate { color: var(--mp-blurple); }
.memberport-usecase-callouts article:nth-child(4) .mp-doorplate { color: var(--mp-mist); }

/* ------------------------------------------------------------
   HOW IT WORKS
   ------------------------------------------------------------ */

.memberport-workflow-visual {
    max-width: 980px;
}

/* ------------------------------------------------------------
   PRODUCT TOUR — the scanner station
   ------------------------------------------------------------ */

.memberport-tour {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    align-items: start;
}

.memberport-tour-steps {
    display: grid;
    gap: 10px;
}

.memberport-tour-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    width: 100%;
    padding: 18px;
    text-align: left;
    background: transparent;
    border: 1px solid var(--mp-jamb);
    color: var(--mp-bone);
    cursor: pointer;
    font-family: var(--font-body);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.memberport-tour-step span {
    grid-row: 1 / span 2;
    align-self: start;
}

.memberport-tour-step h3 {
    font-size: 1.02rem;
    margin: 0;
}

.memberport-tour-step p {
    grid-column: 2;
    margin: 0;
    color: var(--mp-mist);
    font-size: 0.88rem;
    line-height: 1.5;
}

.memberport-tour-step:hover {
    border-color: var(--mp-mist);
}

[data-tour-step].is-active .memberport-tour-step {
    border-color: rgba(217, 255, 63, 0.55);
    background: var(--mp-room);
    transform: translateX(6px);
    box-shadow: -6px 0 0 -4px var(--mp-lime), 0 0 24px rgba(217, 255, 63, 0.08);
}

.memberport-tour-preview {
    position: relative;
    display: grid;
    gap: 0;
}

.memberport-tour-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    font-size: 0.62rem;
    color: var(--mp-mist);
}

.memberport-tour-chrome span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1px solid var(--mp-jamb);
    background: transparent;
}

.memberport-tour-chrome strong {
    margin-left: 10px;
    font-weight: 500;
    color: var(--mp-teal);
    letter-spacing: 0.16em;
}

.memberport-tour-screen img {
    transition: opacity 180ms ease;
}

.memberport-tour-result {
    position: absolute;
    right: -12px;
    bottom: 64px;
    width: min(300px, 46%);
    padding: 6px;
    background: var(--mp-room);
    border: 1px solid var(--mp-blurple);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 24px rgba(88, 101, 242, 0.18);
    transition: opacity 180ms ease;
    z-index: 2;
}

.memberport-tour-result.is-hidden {
    display: none;
}

.memberport-tour.is-switching .memberport-tour-screen img,
.memberport-tour.is-switching .memberport-tour-result {
    opacity: 0.35;
}

.memberport-tour-preview figcaption {
    display: grid;
    gap: 4px;
    padding: 16px 4px 0;
}

.memberport-tour-preview figcaption span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--mp-teal);
}

.memberport-tour-preview figcaption strong {
    font-weight: 500;
    color: var(--mp-mist);
    font-size: 0.92rem;
}

/* ------------------------------------------------------------
   SHOPIFY-FIRST — the two walls and the door between
   ------------------------------------------------------------ */

.feature-band {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: start;
}

.feature-copy h2 {
    margin: 0 0 18px;
}

.feature-copy p {
    color: var(--mp-mist);
}

.feature-copy .eyebrow {
    color: var(--mp-teal);
}

.feature-list {
    display: grid;
    gap: 14px;
}

.feature-list article {
    padding: 22px 24px;
    background: var(--mp-room);
    border: 1px solid var(--mp-jamb);
    border-left-width: 2px;
}

.feature-list article:nth-child(1) { border-left-color: var(--mp-teal); }
.feature-list article:nth-child(2) { border-left-color: var(--mp-blurple); }
.feature-list article:nth-child(3) { border-left-color: var(--mp-lime); }

.feature-list article span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--mp-mist);
}

.feature-list article:nth-child(1) span { color: var(--mp-teal); }
.feature-list article:nth-child(2) span { color: var(--mp-blurple); }
.feature-list article:nth-child(3) span { color: var(--mp-lime); }

.feature-list article h3 {
    margin: 8px 0 8px;
}

.feature-list article p {
    color: var(--mp-mist);
    font-size: 0.95rem;
}

/* ------------------------------------------------------------
   RULES STUDIO
   ------------------------------------------------------------ */

.memberport-rules-studio {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
    align-items: center;
}

.memberport-rule-menu {
    display: grid;
    gap: 12px;
}

.memberport-rule-option {
    padding: 20px 22px;
    border: 1px solid var(--mp-jamb);
    background: var(--mp-room);
    transition: border-color 180ms ease, transform 180ms ease;
}

.memberport-rule-option:hover {
    border-color: rgba(0, 229, 195, 0.4);
    transform: translateX(4px);
}

.memberport-rule-option > span {
    font-size: 0.62rem;
    color: var(--mp-teal);
}

.memberport-rule-option h3 {
    margin: 8px 0 8px;
}

.memberport-rule-option p {
    color: var(--mp-mist);
    font-size: 0.95rem;
}

/* ------------------------------------------------------------
   COMPARE — doors down the hall
   ------------------------------------------------------------ */

.route-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.route-card {
    position: relative;
    display: block;
    padding: 26px 24px 30px;
    background: var(--mp-room);
    border: 1px solid var(--mp-jamb);
    border-top-width: 2px;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
    transform-origin: left center;
}

.route-card::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mp-jamb);
    transition: background 220ms ease, box-shadow 220ms ease;
}

.route-card:hover {
    transform: perspective(900px) rotateY(-3deg) translateY(-3px);
    border-color: rgba(217, 255, 63, 0.4);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.route-card:hover::after {
    background: var(--mp-lime);
    box-shadow: 0 0 12px rgba(217, 255, 63, 0.6);
}

.route-card > span {
    font-size: 0.62rem;
    color: var(--mp-teal);
}

.route-card h3 {
    margin: 12px 0 10px;
}

.route-card p {
    color: var(--mp-mist);
    font-size: 0.95rem;
}

/* ------------------------------------------------------------
   FAQ — the door list
   ------------------------------------------------------------ */

.memberport-faq-list {
    max-width: 880px;
    border-top: 1px solid var(--mp-jamb);
    counter-reset: faq;
}

.memberport-faq-list details {
    counter-increment: faq;
    border-bottom: 1px solid var(--mp-jamb);
}

.memberport-faq-list summary {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px 8px;
    cursor: pointer;
    list-style: none;
    font-weight: 500;
    transition: background 150ms ease;
}

.memberport-faq-list summary::-webkit-details-marker {
    display: none;
}

.memberport-faq-list summary:hover {
    background: rgba(0, 229, 195, 0.04);
}

.memberport-faq-list summary::before {
    content: counter(faq, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--mp-mist);
    order: 1;
}

/* doorknob LED — lights lime when the door is open */
.memberport-faq-list summary::after {
    content: "";
    order: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mp-jamb);
    transition: background 200ms ease, box-shadow 200ms ease;
}

.memberport-faq-list details[open] summary::after {
    background: var(--mp-lime);
    box-shadow: 0 0 10px rgba(217, 255, 63, 0.6);
}

.memberport-faq-list details p {
    padding: 4px 8px 22px 56px;
    color: var(--mp-mist);
    max-width: 68ch;
}

/* ------------------------------------------------------------
   PRICING — keycards at the rope
   ------------------------------------------------------------ */

.memberport-pricing {
    padding: 96px 0 32px;
}

.memberport-pricing-heading {
    position: relative;
    max-width: 68ch;
    margin-bottom: 48px;
    padding-top: 26px;
}

.memberport-pricing-heading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: calc(min(1200px, 100vw - 48px));
    max-width: calc(100vw - 48px);
    height: 1px;
    background: var(--mp-jamb);
}

.memberport-pricing-heading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 14px;
    background: var(--mp-lime);
}

.memberport-pricing-heading .eyebrow {
    position: relative;
    display: inline-block;
    margin-top: -36px;
    margin-bottom: 22px;
    padding: 0 14px 0 10px;
    background: var(--mp-void);
    transform: translateY(-0.5em);
}

.memberport-pricing-heading h2 {
    margin-bottom: 18px;
}

.memberport-pricing-heading p {
    color: var(--mp-mist);
}

.memberport-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.mp-keycard--primary {
    border-color: rgba(217, 255, 63, 0.5);
    box-shadow: 0 0 44px rgba(217, 255, 63, 0.1), 0 24px 56px rgba(0, 0, 0, 0.45);
}

.mp-keycard--primary:hover {
    border-color: var(--mp-lime);
}

.memberport-pricing-card-top {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
}

.memberport-pricing-card-top span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--mp-teal);
}

.mp-keycard--primary .memberport-pricing-card-top span {
    color: var(--mp-lime);
}

.memberport-pricing-card-top strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
}

.memberport-price {
    display: grid;
    gap: 6px;
    margin-bottom: 24px;
}

.memberport-price span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--mp-mist);
}

.memberport-price strong {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1;
    color: var(--mp-lime);
    text-shadow: 0 0 30px rgba(217, 255, 63, 0.25);
}

.memberport-price small {
    color: var(--mp-mist);
    font-size: 0.85rem;
}

.memberport-pricing-includes {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
}

.memberport-pricing-includes li {
    padding: 11px 0 11px 26px;
    border-bottom: 1px dashed var(--mp-jamb);
    color: var(--mp-mist);
    font-size: 0.92rem;
    position: relative;
}

.memberport-pricing-includes li:last-child {
    border-bottom: 0;
}

.memberport-pricing-includes li::before {
    content: "✓";
    position: absolute;
    left: 2px;
    color: var(--mp-teal);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* ------------------------------------------------------------
   SIGN UP — the claim window
   ------------------------------------------------------------ */

.memberport-cta {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px;
    align-items: start;
    padding: 96px 0 96px;
}

.memberport-cta-copy h2 {
    margin: 14px 0 18px;
}

.memberport-cta-copy p {
    color: var(--mp-mist);
}

.memberport-cta-copy .mp-stamp {
    margin-top: 24px;
}

.memberport-contact-form {
    display: grid;
    gap: 18px;
    padding: 34px 30px 36px;
    background: var(--mp-room);
    border: 1px solid var(--mp-jamb);
    border-radius: 14px;
    position: relative;
}

.memberport-contact-form::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 28px;
    width: 32px;
    height: 9px;
    border-radius: 99px;
    background: var(--mp-void);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7);
}

.memberport-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.memberport-contact-form label {
    display: grid;
    gap: 8px;
}

.memberport-contact-form label > span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--mp-mist);
}

.memberport-contact-form input,
.memberport-contact-form select,
.memberport-contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    background: var(--mp-void);
    border: 1px solid var(--mp-jamb);
    color: var(--mp-bone);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    appearance: none;
}

.memberport-contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239db1a6' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.memberport-contact-form input:focus,
.memberport-contact-form select:focus,
.memberport-contact-form textarea:focus {
    outline: none;
    border-color: var(--mp-teal);
    box-shadow: 0 0 0 2px rgba(0, 229, 195, 0.25), 0 0 18px rgba(0, 229, 195, 0.12);
}

.memberport-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.memberport-contact-form .btn {
    justify-content: center;
}

.memberport-consent {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px !important;
    color: var(--mp-mist);
    font-size: 0.78rem;
    line-height: 1.5;
}

.memberport-consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--mp-lime);
}

.memberport-consent a {
    color: var(--mp-bone);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.memberport-hidden-field {
    display: none;
}

/* ------------------------------------------------------------
   FOOTER — the stub end
   ------------------------------------------------------------ */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1200px, 100% - 48px);
    margin: 32px auto 0;
    padding: 28px 0 40px;
    border-top: 1px solid var(--mp-jamb);
    font-size: 0.62rem;
    color: var(--mp-mist);
}

.site-footer a {
    color: var(--mp-bone);
    border-bottom: 1px solid transparent;
    transition: color 140ms ease, border-color 140ms ease;
}

.site-footer a:hover {
    color: var(--mp-lime);
    border-color: var(--mp-lime);
}

/* ------------------------------------------------------------
   THANKS + PRIVACY (shared shell pages)
   ------------------------------------------------------------ */

.memberport-thanks-panel,
.mp-granted-panel {
    max-width: 620px;
    margin: 96px auto 64px;
    padding: 0 24px;
}

.memberport-thanks-panel h1,
.mp-granted-panel h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 18px 0 16px;
}

.memberport-thanks-panel p,
.mp-granted-panel p {
    color: var(--mp-mist);
}

.memberport-policy,
.mp-policy {
    max-width: 68ch;
    margin: 72px auto 64px;
    padding: 0 24px;
}

.memberport-policy h1,
.mp-policy h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 24px;
}

.memberport-policy h2,
.mp-policy h2 {
    font-size: 1.3rem;
    margin: 40px 0 12px;
    padding-top: 18px;
    border-top: 1px solid var(--mp-jamb);
}

.memberport-policy p,
.memberport-policy li,
.mp-policy p,
.mp-policy li {
    color: var(--mp-mist);
    font-size: 0.98rem;
}

/* ------------------------------------------------------------
   REVEAL — soft rise (memberport.js adds .visible)
   ------------------------------------------------------------ */

.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 980px) {
    .hero,
    .memberport-tour,
    .feature-band,
    .memberport-rules-studio,
    .memberport-cta {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .memberport-usecase-callouts {
        grid-template-columns: 1fr 1fr;
    }

    .memberport-pricing-grid {
        grid-template-columns: 1fr;
    }

    .status-strip {
        grid-template-columns: 1fr;
    }

    .status-strip > div {
        border-left: 0;
        border-top: 1px solid var(--mp-jamb);
    }

    .status-strip > div:first-child {
        border-top: 0;
    }

    .access-event-row {
        grid-template-columns: auto 1fr;
    }

    .access-event-row p {
        grid-column: 2;
    }

    .access-event-row .mp-stamp {
        grid-column: 2;
    }

    .memberport-tour-result {
        position: static;
        width: 100%;
        margin-top: 12px;
    }

    /* mobile nav */
    .nav-toggle {
        display: block;
    }

    .js .nav-links,
    .js .memberport-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 16px;
        background: var(--mp-void);
        border-bottom: 1px solid var(--mp-jamb);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }

    .js .site-nav.is-open .nav-links,
    .js .memberport-nav.is-open .memberport-nav-links {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links a,
    .memberport-nav-links a {
        padding: 14px 8px;
        border: 0;
        border-bottom: 1px solid var(--mp-jamb);
    }

    .nav-links a:last-child,
    .memberport-nav-links a:last-child {
        margin-top: 12px;
        text-align: center;
        justify-content: center;
        border: 1px solid var(--mp-lime);
    }
}

@media (max-width: 980px) {
    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    main > section,
    .memberport-pricing,
    .memberport-cta {
        padding-top: 64px;
    }

    .hero {
        padding-top: 48px;
    }

    .memberport-usecase-callouts,
    .route-grid,
    .memberport-form-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .memberport-faq-list details p {
        padding-left: 8px;
    }

    .memberport-contact-form {
        padding: 26px 20px 30px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ------------------------------------------------------------
   REDUCED MOTION — the corridor holds still
   ------------------------------------------------------------ */

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

    .js .mp-aperture .mp-aperture-face::after {
        animation: none !important;
    }

    .js .mp-aperture .mp-spill {
        opacity: 1;
        transition: none;
    }

    .js .mp-stamp {
        opacity: 1;
        transform: rotate(-2deg);
        transition: none;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn::after {
        display: none;
    }

    .mp-keycard:hover,
    .route-card:hover,
    .btn:hover {
        transform: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

/* ------------------------------------------------------------
   FLAGGED ADDITIONS — hero columns, thanks card, policy hero
   ------------------------------------------------------------ */

.hero-content {
    position: relative;
    max-width: 60ch;
}

.memberport-thanks {
    min-height: calc(100vh - 200px);
    display: grid;
    place-items: center;
}

.memberport-thanks-panel {
    width: min(680px, 100% - 48px);
    margin: 64px auto;
    padding: 0;
}

.memberport-thanks-card {
    padding: 44px 40px 48px;
}

.memberport-thanks-card .mp-stamp {
    font-size: 0.8rem;
    padding: 10px 18px;
    margin-bottom: 26px;
}

.memberport-thanks-card .eyebrow {
    display: block;
    margin-top: 8px;
}

.memberport-thanks-card .hero-actions {
    margin-top: 28px;
}

.memberport-policy-hero {
    max-width: 68ch;
    margin: 72px auto 0;
    padding: 0 24px;
}

.memberport-policy-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 14px 0 10px;
}

.memberport-policy-hero p {
    color: var(--mp-mist);
}

/* ------------------------------------------------------------
   MP-FLOW — the product truth diagram, built from real UI parts.
   A Shopify order → the MemberPort door check → a Discord role.
   No AI art. Ever.
   ------------------------------------------------------------ */

.mp-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px auto 64px minmax(0, 1fr);
    align-items: center;
    max-width: 1080px;
    padding: 24px 0 8px;
}

.mp-flow-station {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.mp-flow-station:nth-child(3) {
    justify-items: center;
}

.mp-flow-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.mp-tag-teal { color: var(--mp-teal); }
.mp-tag-lime { color: var(--mp-lime); }
.mp-tag-blurple { color: var(--mp-blurple); }

.mp-flow-panel {
    width: 100%;
    padding: 18px 18px 16px;
    background: var(--mp-room);
    border: 1px solid var(--mp-jamb);
    border-radius: 10px;
    display: grid;
    gap: 10px;
}

.mp-panel-teal { border-left: 2px solid var(--mp-teal); box-shadow: 0 0 28px rgba(0, 229, 195, 0.06); }
.mp-panel-blurple { border-left: 2px solid var(--mp-blurple); box-shadow: 0 0 28px rgba(88, 101, 242, 0.08); }

.mp-flow-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.mp-flow-line strong {
    font-weight: 600;
}

.mp-flow-dim {
    color: var(--mp-mist);
}

.mp-flow-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mp-flow-meta span {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mp-mist);
    padding: 3px 8px;
    border: 1px solid var(--mp-jamb);
    border-radius: 99px;
}

.mp-flow-pill {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 99px;
    border: 1px solid var(--mp-jamb);
    color: var(--mp-mist);
    white-space: nowrap;
}

.mp-pill-teal { color: var(--mp-teal); border-color: rgba(0, 229, 195, 0.4); background: rgba(0, 229, 195, 0.07); }
.mp-pill-lime { color: var(--mp-lime); border-color: rgba(217, 255, 63, 0.45); background: rgba(217, 255, 63, 0.07); }
.mp-pill-blurple { color: #9ba6ff; border-color: rgba(88, 101, 242, 0.55); background: rgba(88, 101, 242, 0.14); }

/* the door check — MemberPort as the doorway in the middle */
.mp-flow-doorcheck {
    position: relative;
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 26px 24px 22px;
    min-width: 210px;
}

.mp-flow-doorcheck::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--mp-lime);
    clip-path: var(--door-poly);
    filter: drop-shadow(0 0 22px rgba(217, 255, 63, 0.2));
}

.mp-flow-doorcheck::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: 4px 5px;
    z-index: -1;
    background: var(--mp-room);
    clip-path: var(--door-poly);
}

.mp-flow-doorcheck img {
    height: 34px;
    width: auto;
}

.mp-flow-doorcheck code {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    color: var(--mp-mist);
    white-space: nowrap;
}

/* the wires — signal marching through the door */
.mp-flow-wire {
    height: 2px;
    background: repeating-linear-gradient(90deg, currentColor 0 7px, transparent 7px 14px);
    position: relative;
    animation: mp-march 0.9s linear infinite;
}

.mp-wire-in { color: var(--mp-teal); }
.mp-wire-out { color: var(--mp-blurple); }

.mp-flow-wire::after {
    content: "";
    position: absolute;
    right: -1px;
    top: -3px;
    border-left: 7px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

@keyframes mp-march {
    to { background-position: 14px 0; }
}

/* Discord member list rows */
.mp-flow-member {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
}

.mp-flow-member strong {
    font-weight: 600;
}

.mp-flow-member-dim {
    opacity: 0.45;
}

.mp-flow-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3d478f, #232a54);
    border: 1px solid rgba(88, 101, 242, 0.5);
}

/* compact vertical variant (subpage heroes) + mobile stack */
.mp-flow--stack,
.mp-flow--stack .mp-flow-station {
    justify-items: stretch;
}

.mp-flow--stack {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
}

.mp-flow--stack .mp-flow-station:nth-child(3) {
    justify-items: center;
}

.mp-flow--stack .mp-flow-wire {
    width: 2px;
    height: 36px;
    justify-self: center;
    background: repeating-linear-gradient(180deg, currentColor 0 7px, transparent 7px 14px);
    animation-name: mp-march-v;
}

.mp-flow--stack .mp-flow-wire::after {
    right: auto;
    top: auto;
    bottom: -1px;
    left: -3px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 7px solid currentColor;
    border-bottom: 0;
}

@keyframes mp-march-v {
    to { background-position: 0 14px; }
}

@media (max-width: 980px) {
    .mp-flow {
        grid-template-columns: 1fr;
    }

    .mp-flow .mp-flow-wire {
        width: 2px;
        height: 36px;
        justify-self: center;
        background: repeating-linear-gradient(180deg, currentColor 0 7px, transparent 7px 14px);
        animation-name: mp-march-v;
    }

    .mp-flow .mp-flow-wire::after {
        right: auto;
        top: auto;
        bottom: -1px;
        left: -3px;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 7px solid currentColor;
        border-bottom: 0;
    }

    .mp-flow .mp-flow-station {
        justify-items: stretch;
    }
}

/* ------------------------------------------------------------
   MP-RULECARD — the rule builder, as the product would draw it
   ------------------------------------------------------------ */

.mp-rulecard {
    padding: 24px 24px 20px;
    background: var(--mp-room);
    border: 1px solid var(--mp-jamb);
    border-radius: 14px;
    display: grid;
    gap: 0;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

.mp-rulecard-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--mp-mist);
    border-bottom: 1px solid var(--mp-jamb);
}

.mp-rulecard-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mp-lime);
    box-shadow: 0 0 10px rgba(217, 255, 63, 0.6);
}

.mp-rulecard-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--mp-jamb);
}

.mp-rulecard-key {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--mp-mist);
}

.mp-rulecard-chip {
    justify-self: start;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    padding: 9px 13px;
    border: 1px solid var(--mp-jamb);
    border-radius: 8px;
    color: var(--mp-bone);
    background: var(--mp-void);
}

.mp-chip-teal { border-color: rgba(0, 229, 195, 0.4); color: var(--mp-teal); background: rgba(0, 229, 195, 0.05); }
.mp-chip-blurple { border-color: rgba(88, 101, 242, 0.55); color: #9ba6ff; background: rgba(88, 101, 242, 0.1); }

.mp-rulecard-foot {
    padding-top: 14px;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mp-mist);
}

/* platform chips under the hero assurance line */
.mp-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.mp-platforms span {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 99px;
    border: 1px solid var(--mp-jamb);
    color: var(--mp-mist);
}

.mp-platforms span:nth-child(1) { color: var(--mp-teal); border-color: rgba(0, 229, 195, 0.35); }
.mp-platforms span:nth-child(2) { color: #9ba6ff; border-color: rgba(88, 101, 242, 0.45); }

@media (prefers-reduced-motion: reduce) {
    .mp-flow-wire {
        animation: none !important;
    }
}

/* ------------------------------------------------------------
   MP-APPWINDOW — "Live Grants": one flat, crafted product window.
   One grid. Two line colors. One glow: the light under the door,
   living in the active feed row. No buttons. No rotation.
   ------------------------------------------------------------ */

.mp-appwindow {
    width: 100%;
    max-width: 560px;
    justify-self: end;
    background: var(--mp-room);
    border: 1px solid var(--mp-jamb);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(244, 248, 242, 0.06),
        0 24px 60px -24px rgba(0, 0, 0, 0.7),
        0 2px 6px rgba(0, 0, 0, 0.4);
    font-family: var(--font-body);
}

/* ---- title bar ---- */

.mp-aw-titlebar {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 40px;
    padding: 0 14px 0 16px;
    border-bottom: 1px solid var(--mp-jamb);
    background: linear-gradient(180deg, rgba(244, 248, 242, 0.05), transparent);
}

.mp-aw-dots {
    display: inline-flex;
    gap: 8px;
    flex: none;
}

.mp-aw-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mp-jamb);
    box-shadow: inset 0 0 0 1px rgba(244, 248, 242, 0.08);
}

.mp-aw-crumb {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--mp-mist);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-aw-crumb strong {
    font-weight: 500;
    color: var(--mp-bone);
}

.mp-aw-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 4px 10px 4px 8px;
    border: 1px solid var(--mp-jamb);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mp-mist);
}

.mp-aw-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mp-teal);
}

/* ---- body: rail + pane ---- */

.mp-aw-body {
    display: grid;
    grid-template-columns: 48px 1fr;
}

.mp-aw-rail {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 16px;
    padding: 16px 0;
    border-right: 1px solid var(--mp-jamb);
    background: rgba(6, 13, 11, 0.5);
}

.mp-aw-rail svg {
    width: 20px;
    height: 20px;
    stroke: var(--mp-mist);
    stroke-width: 1.5;
    fill: none;
    opacity: 0.45;
}

.mp-aw-rail .is-active {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
}

.mp-aw-rail .is-active svg {
    opacity: 1;
    stroke: var(--mp-bone);
}

.mp-aw-rail .is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 20px;
    background: var(--mp-lime);
    border-radius: 0 2px 2px 0;
}

/* ---- pinned rule row ---- */

.mp-aw-rule {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 48px;
    padding: 8px 20px;
    border-bottom: 1px solid var(--mp-jamb);
}

.mp-aw-chip {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mp-mist);
    padding: 3px 7px;
    border: 1px solid var(--mp-jamb);
    border-radius: 4px;
}

.mp-aw-token {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(244, 248, 242, 0.04);
    color: var(--mp-bone);
    white-space: nowrap;
}

.mp-aw-token--teal { color: var(--mp-teal); }
.mp-aw-token--blurple { color: #9ba6ff; }

.mp-aw-rule svg {
    width: 16px;
    height: 16px;
    stroke: var(--mp-mist);
    stroke-width: 1.5;
    fill: none;
    flex: none;
}

/* ---- activity feed ---- */

.mp-aw-feed {
    display: grid;
}

.mp-aw-row {
    display: grid;
    grid-template-columns: 64px 8px 1fr;
    column-gap: 12px;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    border-bottom: 1px solid var(--mp-jamb-soft);
}

.mp-aw-time {
    font-family: var(--font-mono);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: var(--mp-mist);
    opacity: 0.7;
}

.mp-aw-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mp-jamb);
}

.mp-aw-dot--teal { background: var(--mp-teal); }
.mp-aw-dot--lime { background: var(--mp-lime); }
.mp-aw-dot--blurple { background: var(--mp-blurple); }

.mp-aw-row p {
    margin: 0;
    font-size: 13px;
    color: var(--mp-mist);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-aw-row .tk-teal { color: var(--mp-teal); }
.mp-aw-row .tk-lime { color: var(--mp-lime); }

.mp-aw-mention {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(88, 101, 242, 0.14);
    color: #9ba6ff;
}

.mp-aw-welcome {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mp-aw-bot {
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    background: rgba(88, 101, 242, 0.2);
}

.mp-aw-bot img {
    width: 9px;
    height: auto;
}

.mp-aw-welcome em {
    font-style: italic;
    color: rgba(244, 248, 242, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* THE one glow — light under the door, scanning the ledger */
@keyframes mp-aw-live {
    0%, 12% {
        box-shadow: inset 2px 0 0 var(--mp-lime);
        background: linear-gradient(90deg, rgba(217, 255, 63, 0.1), rgba(217, 255, 63, 0.03) 40%, transparent 75%);
    }
    16%, 100% {
        box-shadow: none;
        background: transparent;
    }
}

@keyframes mp-aw-live-hold {
    0%, 40% {
        box-shadow: inset 2px 0 0 var(--mp-lime);
        background: linear-gradient(90deg, rgba(217, 255, 63, 0.1), rgba(217, 255, 63, 0.03) 40%, transparent 75%);
    }
    46%, 100% {
        box-shadow: none;
        background: transparent;
    }
}

.js .mp-aw-r1 { animation: mp-aw-live 12s infinite; }
.js .mp-aw-r2 { animation: mp-aw-live 12s 1.6s infinite; }
.js .mp-aw-r3 { animation: mp-aw-live 12s 3.2s infinite; }
.js .mp-aw-r4 { animation: mp-aw-live 12s 4.8s infinite; }
.js .mp-aw-r5 { animation: mp-aw-live-hold 12s 6.4s infinite; }

/* ---- footer strip ---- */

.mp-aw-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    padding: 0 20px;
    border-top: 1px solid var(--mp-jamb);
    background: rgba(6, 13, 11, 0.4);
}

.mp-aw-footer span:first-child {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--mp-mist);
}

.mp-aw-viewall {
    font-size: 12px;
    color: var(--mp-mist);
}

@media (max-width: 980px) {
    .mp-appwindow {
        justify-self: stretch;
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .mp-aw-body {
        grid-template-columns: 1fr;
    }

    .mp-aw-rail {
        display: none;
    }

    .mp-aw-row {
        grid-template-columns: 56px 8px 1fr;
        padding: 0 14px;
    }

    .mp-aw-rule {
        padding: 8px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .mp-aw-r1, .js .mp-aw-r2, .js .mp-aw-r3, .js .mp-aw-r5 {
        animation: none;
    }

    .js .mp-aw-r4 {
        animation: none;
        box-shadow: inset 2px 0 0 var(--mp-lime);
        background: linear-gradient(90deg, rgba(217, 255, 63, 0.1), rgba(217, 255, 63, 0.03) 40%, transparent 75%);
    }
}

/* ------------------------------------------------------------
   HERO BALANCE — the headline stops towering over the window
   ------------------------------------------------------------ */

.hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 64px;
    padding-top: 72px;
}

.hero h1 {
    font-size: clamp(2.1rem, 3.6vw, 3.3rem);
    line-height: 1.06;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
}

.hero-copy {
    font-size: 1.03rem;
    max-width: 52ch;
}

.hero-actions {
    margin-top: 28px;
}

.mp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 24px;
}

.mp-hero-meta .mp-assurance {
    margin: 0;
}

.mp-hero-meta .mp-platforms {
    margin: 0;
}

.mp-appwindow {
    align-self: center;
    max-width: 580px;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ------------------------------------------------------------
   THANKS RECEIPT — close the loop after a pilot signup
   ------------------------------------------------------------ */

.memberport-thanks {
    min-height: calc(100vh - 180px);
    display: block;
    padding: 72px 24px 0;
}

.memberport-thanks-hero {
    width: min(1160px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: clamp(36px, 7vw, 96px);
    align-items: center;
}

.memberport-thanks-copy {
    max-width: 660px;
}

.memberport-thanks-copy h1 {
    max-width: 9ch;
    margin: 18px 0 22px;
    font-size: clamp(3.2rem, 7vw, 6.4rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.memberport-thanks-lede {
    max-width: 56ch;
    color: var(--mp-mist);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    line-height: 1.65;
}

.memberport-thanks-receipt {
    display: grid;
    gap: 0;
    margin-top: 32px;
    border: 1px solid var(--mp-jamb);
    border-left: 2px solid var(--mp-lime);
    background: linear-gradient(135deg, rgba(16, 30, 26, 0.92), rgba(10, 17, 15, 0.72));
}

.memberport-thanks-receipt > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--mp-jamb);
}

.memberport-thanks-receipt > div:last-child {
    border-bottom: 0;
}

.memberport-thanks-receipt span,
.memberport-thanks-receipt strong,
.memberport-thanks-note,
.memberport-next-card-head .eyebrow,
.memberport-next-callout,
.memberport-thanks-proof span {
    font-family: var(--mp-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.memberport-thanks-receipt span {
    color: var(--mp-mist);
    font-size: 0.68rem;
}

.memberport-thanks-receipt strong {
    color: var(--mp-bone);
    font-size: 0.68rem;
    text-align: right;
}

.memberport-thanks-receipt i {
    color: var(--mp-lime);
    font-style: normal;
}

.memberport-receipt-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mp-lime) !important;
}

.memberport-receipt-status i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mp-lime);
    box-shadow: 0 0 0 4px rgba(217, 255, 63, 0.1), 0 0 16px rgba(217, 255, 63, 0.45);
}

.memberport-thanks-note {
    margin: 16px 0 0;
    color: var(--mp-mist);
    font-size: 0.64rem;
    line-height: 1.7;
}

.memberport-next-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--mp-jamb);
    border-top: 2px solid var(--mp-lime);
    background: var(--mp-panel);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.memberport-next-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -64px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(217, 255, 63, 0.11);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(217, 255, 63, 0.025), 0 0 0 56px rgba(217, 255, 63, 0.02);
    pointer-events: none;
}

.memberport-next-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--mp-jamb);
}

.mp-doorplate {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--mp-lime);
    color: var(--mp-lime);
    font-family: var(--mp-mono);
    font-size: 0.62rem;
    letter-spacing: 0.05em;
}

.memberport-next-card-head .eyebrow {
    margin: 0;
    color: var(--mp-bone);
    font-size: 0.72rem;
}

.memberport-next-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.memberport-next-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--mp-jamb);
}

.memberport-next-list li > span {
    color: var(--mp-lime);
    font-family: var(--mp-mono);
    font-size: 0.72rem;
}

.memberport-next-list strong {
    display: block;
    margin-bottom: 7px;
    color: var(--mp-bone);
    font-size: 1rem;
}

.memberport-next-list p {
    margin: 0;
    color: var(--mp-mist);
    font-size: 0.9rem;
    line-height: 1.55;
}

.memberport-next-callout {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    color: var(--mp-mist);
    font-size: 0.62rem;
    line-height: 1.5;
}

.memberport-next-callout strong {
    color: var(--mp-lime);
    font-family: var(--mp-display);
    font-size: 1.05rem;
    letter-spacing: 0;
    text-transform: none;
}

.memberport-thanks-proof {
    width: min(1160px, 100%);
    margin: 88px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--mp-jamb);
    border-bottom: 1px solid var(--mp-jamb);
}

.memberport-thanks-proof > div {
    display: grid;
    gap: 10px;
    padding: 20px 22px;
    border-right: 1px solid var(--mp-jamb);
}

.memberport-thanks-proof > div:last-child {
    border-right: 0;
}

.memberport-thanks-proof span {
    color: var(--mp-mist);
    font-size: 0.62rem;
}

.memberport-thanks-proof strong {
    color: var(--mp-bone);
    font-size: 0.95rem;
}

@media (max-width: 820px) {
    .memberport-thanks {
        padding-top: 48px;
    }

    .memberport-thanks-hero {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .memberport-thanks-copy h1 {
        max-width: 12ch;
    }

    .memberport-thanks-proof {
        margin-top: 56px;
    }
}

@media (max-width: 560px) {
    .memberport-thanks {
        padding-right: 16px;
        padding-left: 16px;
    }

    .memberport-thanks-receipt > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .memberport-thanks-receipt strong {
        text-align: left;
    }

    .memberport-next-card {
        padding: 22px;
    }

    .memberport-thanks-proof {
        grid-template-columns: 1fr;
    }

    .memberport-thanks-proof > div {
        border-right: 0;
        border-bottom: 1px solid var(--mp-jamb);
    }

    .memberport-thanks-proof > div:last-child {
        border-bottom: 0;
    }
}

/* ------------------------------------------------------------
   CAPABILITY BOUNDARY — make pilot scope legible
   ------------------------------------------------------------ */

.memberport-capability {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 112px 0 24px;
}

.memberport-capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 38px;
}

.memberport-capability-card {
    min-height: 100%;
    padding: 30px;
    border: 1px solid var(--mp-jamb);
    background: rgba(13, 16, 13, 0.78);
}

.memberport-capability-card--supported {
    border-top: 2px solid var(--mp-lime);
}

.memberport-capability-card--boundary {
    border-top: 2px solid var(--mp-rust);
}

.memberport-capability-label {
    margin: 0 0 22px;
    color: var(--mp-lime);
    font-family: var(--mp-mono);
    font-size: 0.68rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.memberport-capability-card--boundary .memberport-capability-label {
    color: var(--mp-rust);
}

.memberport-capability-card h3 {
    margin: 0 0 24px;
    color: var(--mp-bone);
    font-family: var(--mp-display);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.memberport-capability-card ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.memberport-capability-card li {
    position: relative;
    padding-left: 22px;
    color: var(--mp-mist);
    line-height: 1.5;
}

.memberport-capability-card li::before {
    position: absolute;
    top: 0.42em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mp-lime);
    content: "";
}

.memberport-capability-card--boundary li::before {
    border-radius: 0;
    background: var(--mp-rust);
}

.memberport-capability-note {
    max-width: 68ch;
    margin: 22px 0 0;
    color: var(--mp-mist);
    font-family: var(--mp-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.memberport-apply {
    min-height: calc(100vh - 180px);
    padding: 76px 24px 0;
}

.memberport-apply-hero {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.8fr);
    gap: clamp(44px, 8vw, 110px);
    align-items: start;
}

.memberport-apply-intro {
    padding-top: 28px;
}

.memberport-apply-intro h1 {
    max-width: 10ch;
    margin: 18px 0 22px;
    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.memberport-apply-intro > p:not(.eyebrow) {
    max-width: 52ch;
    color: var(--mp-mist);
    font-size: 1.08rem;
    line-height: 1.7;
}

.memberport-apply-assurance {
    display: grid;
    gap: 0;
    margin-top: 34px;
    border-top: 1px solid var(--mp-jamb);
}

.memberport-apply-assurance span {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--mp-jamb);
    color: var(--mp-mist);
    font-family: var(--mp-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.memberport-apply-assurance strong {
    color: var(--mp-lime);
}

.memberport-apply-form {
    padding: 30px;
    border-top: 2px solid var(--mp-lime);
}

.memberport-form-kicker {
    margin: 0 0 24px;
    color: var(--mp-bone);
    font-family: var(--mp-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.memberport-apply-form label {
    margin-bottom: 18px;
}

.memberport-apply-form label small {
    color: var(--mp-mist);
    font-size: 0.7em;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.memberport-apply-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.memberport-apply-footnote {
    margin: 14px 0 0;
    color: var(--mp-mist);
    font-family: var(--mp-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 820px) {
    .memberport-apply {
        padding-top: 48px;
    }

    .memberport-apply-hero {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .memberport-apply-intro {
        padding-top: 0;
    }
}

@media (max-width: 560px) {
    .memberport-apply {
        padding-right: 16px;
        padding-left: 16px;
    }

    .memberport-apply-form {
        padding: 24px 20px 26px;
    }
}

@media (max-width: 820px) {
    .memberport-capability {
        width: calc(100% - 32px);
        padding-top: 72px;
    }

    .memberport-capability-grid {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }
}

/* ------------------------------------------------------------
   SCOPE STRIP — honest product boundary near the top of the funnel
   ------------------------------------------------------------ */

.memberport-scope-strip {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 36px;
    align-items: end;
    border-top: 1px solid var(--mp-jamb);
    border-bottom: 1px solid var(--mp-jamb);
}

.memberport-scope-strip h2 {
    max-width: 18ch;
    margin-top: 10px;
    color: var(--mp-bone);
    font-family: var(--mp-display);
    font-size: clamp(1.6rem, 3vw, 2.7rem);
    letter-spacing: -0.045em;
    line-height: 1;
}

.memberport-scope-rail {
    display: grid;
    border-left: 1px solid var(--mp-jamb);
}

.memberport-scope-rail span {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 13px 0 13px 20px;
    color: var(--mp-mist);
    font-family: var(--mp-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.memberport-scope-rail span + span {
    border-top: 1px solid var(--mp-jamb);
}

.memberport-scope-rail strong {
    color: var(--mp-bone);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.memberport-scope-good::before,
.memberport-scope-next::before {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--mp-lime);
    content: "";
}

.memberport-scope-next::before {
    border-radius: 0;
    background: var(--mp-rust);
}

@media (max-width: 820px) {
    .memberport-scope-strip {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .memberport-scope-rail {
        border-top: 1px solid var(--mp-jamb);
        border-left: 0;
    }

    .memberport-scope-rail span {
        padding-left: 0;
    }
}
