:root {
      --ap-bg: #0b0b0f;
      --ap-panel: #17171c;
      --ap-panel-strong: #1c1c22;
      --ap-line-soft: rgba(255, 255, 255, 0.07);
      --ap-line: rgba(255, 255, 255, 0.12);
      --ap-copy: #ffffff;
      --ap-copy-muted: #a1a1aa;
      --ap-copy-faint: #6b6b75;
      --ap-accent: #6c4dff;
      --ap-accent-hover: #5a3dff;
      --ap-accent-soft: #8b75ff;
      --ap-success: #34d399;
      --ap-danger: #ff5a5f;
      --ap-radius: 14px;
      --ap-radius-lg: 20px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body {
      background: var(--ap-bg); color: var(--ap-copy);
      font-family: 'Geist', system-ui, -apple-system, sans-serif;
      -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
      line-height: 1.5; overflow-x: hidden; min-height: 100vh;
    }
    a { color: inherit; text-decoration: none; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

    
    .ap-scene-grid {
      position: fixed; inset: 0; z-index: 0; pointer-events: none;
      background-image:
        linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
      background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
      background-position: center center;
      -webkit-mask-image: radial-gradient(ellipse 92% 82% at 50% 38%, #000 25%, transparent 90%);
              mask-image: radial-gradient(ellipse 92% 82% at 50% 38%, #000 25%, transparent 90%);
    }
    .ap-scene-grid::after {
      content: ""; position: absolute; inset: 0;
      background-image: radial-gradient(circle at 1px 1px, rgba(139,117,255,0.35) 1px, transparent 1.5px);
      background-size: 64px 64px; background-position: center center;
      -webkit-mask-image: radial-gradient(ellipse 55% 42% at 50% 26%, #000 0%, transparent 80%);
              mask-image: radial-gradient(ellipse 55% 42% at 50% 26%, #000 0%, transparent 80%);
      opacity: .6;
    }
    .ap-atmosphere {
      position: fixed; pointer-events: none; z-index: 0; filter: blur(60px); border-radius: 50%;
      top: -220px; left: 50%; transform: translateX(-50%); width: 900px; height: 520px;
      background: radial-gradient(ellipse, rgba(108,77,255,0.22) 0%, rgba(108,77,255,0) 70%);
    }
    .ap-pointer-glow {
      position: fixed; width: 460px; height: 460px; border-radius: 50%;
      background: radial-gradient(circle, rgba(108,77,255,0.2) 0%, rgba(108,77,255,0) 60%);
      pointer-events: none; transform: translate(-50%, -50%);
      z-index: 1; transition: opacity .4s ease; mix-blend-mode: screen; opacity: 0;
    }

    
    .ap-access-topbar {
      position: relative; z-index: 3;
      padding: 22px 24px 0;
      display: flex; flex-direction: column; align-items: center; gap: 16px;
    }
    .ap-wordmark { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; }
    .ap-wordmark__mark {
      width: 24px; height: 24px; border-radius: 6px;
      background: linear-gradient(135deg, var(--ap-accent) 0%, #4f37cf 100%);
      display: grid; place-items: center; box-shadow: 0 4px 12px -4px rgba(108,77,255,0.5);
    }
    .ap-wordmark__mark svg { width: 13px; height: 13px; }
    .ap-progress-track {
      width: 100%; max-width: 760px; height: 5px;
      background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden;
      opacity: 0; transition: opacity .4s ease;
    }
    .ap-progress-track.is-visible { opacity: 1; }
    .ap-progress-fill {
      height: 100%; width: 0%;
      background: linear-gradient(90deg, var(--ap-accent), var(--ap-accent-soft));
      box-shadow: 0 0 12px var(--ap-accent-soft);
      border-radius: 999px;
      transition: width .5s cubic-bezier(.16,1,.3,1);
    }

    
    .ap-access-stage {
      position: relative; z-index: 2;
      min-height: calc(100vh - 70px);
      display: flex; align-items: center; justify-content: center;
      padding: 40px 24px 64px;
    }
    .ap-step-card { display: none; width: 100%; max-width: 640px; }
    .ap-step-card.is-active { display: block; animation: stepIn .5s cubic-bezier(.16,1,.3,1); }
    @keyframes stepIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
    .ap-step-card.ap-step-card--wide { max-width: 720px; }

    
    .ap-back-button {
      display: inline-flex; align-items: center; gap: 7px;
      color: var(--ap-copy-faint); font-size: 13px; font-weight: 500; margin-bottom: 22px;
      transition: color .2s ease;
    }
    .ap-back-button:hover { color: var(--ap-copy-muted); }
    .ap-back-button svg { width: 15px; height: 15px; }

    .ap-step-label { font-size: 13px; color: var(--ap-accent-soft); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 12px; }
    .ap-question-title { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.18; letter-spacing: -0.025em; font-weight: 700; margin-bottom: 8px; }
    .ap-question-copy { color: var(--ap-copy-muted); font-size: 15px; margin-bottom: 28px; }

    
    .ap-option-list { display: grid; gap: 12px; }
    .ap-option-list.ap-option-list--two { grid-template-columns: 1fr 1fr; }
    @media (max-width: 520px) { .ap-option-list.ap-option-list--two { grid-template-columns: 1fr; } }
    .ap-option-card {
      display: flex; align-items: center; gap: 15px; text-align: left;
      background: var(--ap-panel); border: 1.5px solid var(--ap-line-soft);
      border-radius: var(--ap-radius); padding: 17px 18px; width: 100%;
      transition: border-color .2s ease, background .2s ease, transform .12s ease;
      position: relative;
    }
    .ap-option-card:hover { border-color: rgba(108,77,255,0.4); background: var(--ap-panel-strong); transform: translateY(-1px); }
    .ap-option-card.is-selected { border-color: var(--ap-accent); background: linear-gradient(180deg, rgba(108,77,255,0.1), var(--ap-panel-strong)); }
    .ap-option-icon {
      width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
      background: rgba(108,77,255,0.13); border: 1px solid rgba(108,77,255,0.25);
      display: grid; place-items: center; transition: background .2s ease;
    }
    .ap-option-icon svg { width: 18px; height: 18px; color: var(--ap-accent-soft); }
    .ap-option-card.is-selected .ap-option-icon { background: rgba(108,77,255,0.28); }
    .ap-option-label { font-size: 15px; font-weight: 500; flex: 1; }
    .ap-option-check {
      width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
      border: 1.5px solid var(--ap-line); display: grid; place-items: center;
      transition: background .2s ease, border-color .2s ease;
    }
    .ap-option-check svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity .2s ease; }
    .ap-option-card.is-selected .ap-option-check { background: var(--ap-accent); border-color: var(--ap-accent); }
    .ap-option-card.is-selected .ap-option-check svg { opacity: 1; }

    
    .ap-button {
      display: inline-flex; align-items: center; justify-content: center; gap: 9px;
      padding: 15px 32px; border-radius: 12px; font-size: 15px; font-weight: 600;
      transition: transform .25s cubic-bezier(.16,1,.3,1), background .2s ease, box-shadow .25s ease, opacity .2s ease;
      position: relative; overflow: hidden; isolation: isolate;
    }
    .ap-button--primary {
      background: var(--ap-accent); color: #fff;
      box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 10px 28px -8px rgba(108,77,255,0.6);
    }
    .ap-button--primary::before {
      content: ""; position: absolute; inset: 0;
      background: radial-gradient(140px circle at var(--ap-cursor-x,50%) var(--ap-cursor-y,50%), rgba(255,255,255,0.32), transparent 70%);
      opacity: 0; transition: opacity .25s ease; z-index: -1;
    }
    .ap-button--primary:hover::before { opacity: 1; }
    .ap-button--primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 16px 38px -10px rgba(108,77,255,0.8); }
    .ap-button--primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }
    .ap-button--primary:disabled::before { opacity: 0; }
    .ap-button svg { width: 17px; height: 17px; }
    .ap-button--block { width: 100%; }
    .ap-continue-row { margin-top: 28px; }

    
    .ap-intro-badge {
      display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px;
      background: rgba(108,77,255,0.12); border: 1px solid rgba(108,77,255,0.3);
      border-radius: 999px; font-size: 13px; color: #cfc6ff; font-weight: 500; margin-bottom: 22px;
    }
    .ap-intro-badge svg { width: 14px; height: 14px; }
    .ap-intro-step h1 {
      font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 16px;
      background: linear-gradient(180deg, #fff 35%, #c9c2ff 100%);
      -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    }
    .ap-intro-step p.ap-lede { color: var(--ap-copy-muted); font-size: 16px; max-width: 520px; margin: 0 auto 28px; }
    .ap-intro-step { text-align: center; }
    .ap-social-proof {
      display: inline-flex; align-items: center; gap: 11px; margin-bottom: 12px;
      color: var(--ap-copy-muted); font-size: 14px;
    }
    .ap-avatars { display: inline-flex; }
    .ap-avatars span {
      width: 28px; height: 28px; border-radius: 50%; margin-left: -9px;
      border: 2px solid var(--ap-bg); background-size: cover; background-position: center;
    }
    .ap-avatars span:first-child { margin-left: 0; }
    .ap-scarcity {
      display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 30px;
      padding: 8px 16px; border-radius: 999px;
      background: rgba(255, 90, 95, 0.08); border: 1px solid rgba(255, 90, 95, 0.25);
      color: #ff9a9d; font-size: 13.5px; font-weight: 500;
    }
    .ap-scarcity .ap-ping { width: 7px; height: 7px; border-radius: 50%; background: var(--ap-danger); box-shadow: 0 0 10px var(--ap-danger); animation: ping 1.4s ease-in-out infinite; }
    @keyframes ping { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
    .ap-fineprint { color: var(--ap-copy-faint); font-size: 13px; margin-top: 16px; }

    
    .ap-analyzing-step { text-align: center; }
    .ap-spinner {
      width: 58px; height: 58px; margin: 0 auto 28px; border-radius: 50%;
      border: 3px solid rgba(108,77,255,0.2); border-top-color: var(--ap-accent);
      animation: spin .8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .ap-analyzing-step h2 { font-size: clamp(24px, 3.4vw, 30px); letter-spacing: -0.02em; font-weight: 700; margin-bottom: 30px; }
    .ap-analysis-list { display: grid; gap: 14px; max-width: 340px; margin: 0 auto; text-align: left; }
    .ap-analysis-item {
      display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ap-copy-faint);
      opacity: .4; transition: opacity .4s ease, color .4s ease;
    }
    .ap-analysis-item.is-done { opacity: 1; color: var(--ap-copy); }
    .ap-analysis-item .ap-tick {
      width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
      border: 1.5px solid var(--ap-line); display: grid; place-items: center;
      transition: background .3s ease, border-color .3s ease;
    }
    .ap-analysis-item .ap-tick svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity .3s ease; }
    .ap-analysis-item.is-done .ap-tick { background: var(--ap-success); border-color: var(--ap-success); }
    .ap-analysis-item.is-done .ap-tick svg { opacity: 1; }

    
    .ap-qualified-step { text-align: center; }
    .ap-qualified-badge {
      width: 78px; height: 78px; margin: 0 auto 24px; position: relative;
    }
    .ap-qualified-badge .ap-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(52,211,153,0.4); animation: ringp 2.2s ease-out infinite; }
    @keyframes ringp { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
    .ap-qualified-seal {
      position: absolute; inset: 0; border-radius: 50%;
      background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
      display: grid; place-items: center; box-shadow: 0 16px 40px -10px rgba(52,211,153,0.6);
    }
    .ap-qualified-seal svg { width: 38px; height: 38px; color: #062b20; }
    .ap-qualified-step h1 {
      font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 14px;
    }
    .ap-qualified-step .ap-match-copy { color: var(--ap-copy-muted); font-size: 16px; max-width: 500px; margin: 0 auto 22px; }
    .ap-qualified-step .ap-match-copy b { color: var(--ap-copy); font-weight: 600; }
    .ap-reserve-note {
      display: inline-flex; align-items: center; gap: 9px; margin: 0 auto 26px;
      padding: 10px 18px; border-radius: 12px;
      background: rgba(108,77,255,0.1); border: 1px solid rgba(108,77,255,0.3);
      font-size: 14px; color: #cfc6ff; font-weight: 500;
    }
    .ap-reserve-note svg { width: 16px; height: 16px; color: var(--ap-accent-soft); }
    .ap-reserve-note .ap-reserve-time { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; }
    .ap-sunk-copy {
      color: var(--ap-copy-faint); font-size: 14px; max-width: 440px; margin: 18px auto 0;
    }

    
    .ap-billing-step { max-width: 720px; text-align: center; }
    .ap-billing-step h2 {
      font-size: clamp(24px, 3.6vw, 34px); line-height: 1.22; letter-spacing: -0.02em; font-weight: 700;
      max-width: 640px; margin: 0 auto 40px;
    }
    .ap-billing-step .ap-agreement-copy {
      font-size: clamp(16px, 2.2vw, 19px); color: var(--ap-copy-muted); max-width: 600px; margin: 0 auto 32px; line-height: 1.5;
    }
    .ap-billing-step .ap-agreement-copy b { color: var(--ap-copy); font-weight: 700; }
    .ap-consent-card {
      display: flex; align-items: flex-start; gap: 16px; text-align: left;
      background: var(--ap-panel); border: 1.5px solid var(--ap-line-soft);
      border-radius: var(--ap-radius); padding: 22px 24px; max-width: 520px; margin: 0 auto 32px;
      cursor: pointer; transition: border-color .2s ease, background .2s ease;
    }
    .ap-consent-card:hover { border-color: var(--ap-line); }
    .ap-consent-card.is-checked { border-color: rgba(108,77,255,0.5); background: var(--ap-panel-strong); }
    .ap-consent-card .ap-consent-box {
      width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; margin-top: 1px;
      border: 1.5px solid var(--ap-line); background: rgba(255,255,255,0.02);
      display: grid; place-items: center; transition: background .2s ease, border-color .2s ease;
    }
    .ap-consent-card .ap-consent-box svg { width: 15px; height: 15px; color: #fff; opacity: 0; transition: opacity .15s ease; }
    .ap-consent-card.is-checked .ap-consent-box { background: var(--ap-accent); border-color: var(--ap-accent); }
    .ap-consent-card.is-checked .ap-consent-box svg { opacity: 1; }
    .ap-consent-card p { font-size: 15px; line-height: 1.55; color: var(--ap-copy-muted); }
    .ap-consent-card a { color: var(--ap-accent-soft); text-decoration: underline; }
    .ap-billing-step .ap-accept-button {
      padding: 17px 0; width: 100%; max-width: 520px; font-size: 16px;
      background: #0e0e13; border: 1px solid var(--ap-line); color: #fff;
      border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
      transition: background .2s ease, transform .2s ease, opacity .2s ease, box-shadow .2s ease;
    }
    .ap-billing-step .ap-accept-button:enabled:hover { background: #16161d; transform: translateY(-1px); }
    .ap-billing-step .ap-accept-button:disabled { opacity: .45; cursor: not-allowed; }
    .ap-billing-step .ap-accept-button.is-armed {
      background: var(--ap-accent); border-color: var(--ap-accent);
      box-shadow: 0 14px 36px -10px rgba(108,77,255,0.7);
    }
    .ap-billing-step .ap-accept-button.is-armed:hover { background: var(--ap-accent-hover); }
    .ap-billing-step .ap-accept-button svg { width: 18px; height: 18px; }
