/* ==========================================================
   ALPHA PULSE AI ANGLE LANDINGS, V2 (template-ap-angle.php)
   Scoped to .ap-angle. Look: the approved AP set on MQL5 (black
   stage, warm gold light, Geist 800 headlines, gold gradient line,
   thin gold glass cards). Headings Geist, body system stack, data
   and code JetBrains Mono (handle alpha-pulse-ai-product-fonts).
   Painter pattern for full-width sections (no 100vw breakout).
   Every <button> has its own class + scoped reset (components.css
   forces button backgrounds with !important). Astra page reset at
   the end. Version = filemtime (template).
   ========================================================== */

.ap-angle {
    --apa-bg: #070605;
    --apa-bg-2: #0c0a07;
    --apa-line: rgba(255, 255, 255, 0.08);
    --apa-line-2: rgba(255, 255, 255, 0.14);
    --apa-text: #f7f4ec;
    --apa-text-2: #cfc9bb;
    --apa-text-3: #938c7d;
    --apa-gold: #f5b73d;
    --apa-gold-hi: #ffe08a;
    --apa-gold-lo: #e08a1a;
    --apa-gold-line: rgba(245, 183, 61, 0.34);
    --apa-gold-soft: rgba(245, 183, 61, 0.1);
    --apa-grad: linear-gradient(90deg, #ffe08a 0%, #f5b73d 48%, #e08a1a 100%);
    --apa-grad-v: linear-gradient(180deg, #ffe08a 0%, #f5b73d 55%, #e08a1a 100%);
    --apa-red: #ff4d5e;
    --apa-red-soft: rgba(255, 77, 94, 0.12);
    --apa-green: #4ade80;
    --apa-green-soft: rgba(74, 222, 128, 0.12);
    --apa-amber: #fbbf24;
    --apa-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --apa-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --apa-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

    background: var(--apa-bg);
    color: var(--apa-text-2);
    font-family: var(--apa-body);
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.ap-angle h1,
.ap-angle h2,
.ap-angle h3 {
    font-family: var(--apa-display);
    color: var(--apa-text);
    text-transform: none;
    letter-spacing: -0.02em;
}

.ap-angle p { margin: 0; color: var(--apa-text-2); }
.ap-angle ul,
.ap-angle ol { margin: 0; padding: 0; list-style: none; }
.ap-angle li { margin: 0; }
.ap-angle img { max-width: 100%; height: auto; display: block; }

.ap-angle .apa-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ap-angle .apa-ico { flex: 0 0 auto; display: inline-block; vertical-align: middle; }

.ap-angle .apa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.ap-angle .apa-center { text-align: center; }

/* ----- Painter sections ----- */
.ap-angle .apa-section {
    position: relative;
    isolation: isolate;
    background: transparent;
    padding: 72px 0;
    overflow: visible;
}

.ap-angle .apa-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: var(--apa-bg);
}

.ap-angle .apa-h2 {
    font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 32px;
    text-wrap: balance;
}

.ap-angle .apa-h2-sm { font-size: clamp(1.35rem, 1rem + 1.2vw, 1.8rem); margin-bottom: 22px; }

.ap-angle .apa-caption {
    margin: 22px auto 0;
    max-width: 680px;
    text-align: center;
    color: var(--apa-text-3);
    font-size: 0.92rem;
}

/* Glass card (gold hairline, warm glow) */
.ap-angle .apa-glass {
    position: relative;
    background: linear-gradient(180deg, rgba(30, 24, 14, 0.92) 0%, rgba(11, 9, 7, 0.95) 100%);
    border: 1px solid var(--apa-gold-line);
    border-radius: 18px;
    box-shadow:
        inset 0 1px 0 rgba(255, 224, 138, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 28px 70px -28px rgba(245, 183, 61, 0.38),
        0 0 46px -14px rgba(245, 183, 61, 0.22);
}

/* =========================== HERO =========================== */
.ap-angle .apa-hero { padding: 56px 0 64px; }

.ap-angle .apa-hero::before {
    background:
        radial-gradient(48% 62% at 76% 42%, rgba(245, 183, 61, 0.2) 0%, rgba(245, 183, 61, 0.05) 45%, transparent 72%),
        radial-gradient(38% 46% at 6% 0%, rgba(255, 170, 60, 0.12) 0%, transparent 70%),
        radial-gradient(60% 26% at 50% 100%, rgba(245, 160, 40, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, #0e0b07 0%, #070605 100%);
}

/* Floor line: a thin gold horizon under the hero, like the MQL5 set. */
.ap-angle .apa-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, rgba(245, 183, 61, 0.45) 50%, transparent 100%);
}

.ap-angle .apa-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.ap-angle .apa-hero-copy { min-width: 0; }

.ap-angle .apa-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
}

/* The icon is neon on its own black square: shown as an opaque app tile so
   it sits on top of the gold light instead of letting the light through. */
.ap-angle .apa-brand-icon,
.ap-angle .apa-final-icon {
    position: relative;
    z-index: 2;
    display: block;
    background: #000;
    border: 1px solid rgba(245, 183, 61, 0.45);
    border-radius: 22%;
    box-shadow:
        0 0 0 4px rgba(0, 0, 0, 0.55),
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 28px rgba(245, 183, 61, 0.18);
}

.ap-angle .apa-brand-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.ap-angle .apa-eyebrow {
    display: inline-block;
    max-width: 100%;
    padding: 7px 14px;
    background: var(--apa-gold-soft);
    border: 1px solid var(--apa-gold-line);
    border-radius: 999px;
    color: var(--apa-gold);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.ap-angle .apa-h1 {
    font-size: clamp(2.15rem, 1.1rem + 3.4vw, 3.9rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 0 0 22px;
}

.ap-angle .apa-h1 > span {
    display: block;
    width: fit-content;
    max-width: 100%;
    text-wrap: balance;
}

.ap-angle .apa-h1-a { color: var(--apa-text); }

.ap-angle .apa-h1-b,
.ap-angle .apa-final-h {
    background: var(--apa-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--apa-gold);
    padding-bottom: 0.06em; /* keep descenders inside the clip */
}

.ap-angle .apa-sub {
    font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.25rem);
    line-height: 1.5;
    color: var(--apa-text-2);
    max-width: 560px;
}

/* ----- CTAs (anchors, never raw buttons) ----- */
.ap-angle .apa-ctas {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 30px;
}

.ap-angle a.apa-btn {
    display: inline-block;
    padding: 18px 34px;
    background: var(--apa-grad-v);
    border: 1px solid #ffd77a;
    border-radius: 12px;
    color: #120c02;
    font-family: var(--apa-display);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 14px 36px -12px rgba(245, 183, 61, 0.65),
        0 0 28px -6px rgba(245, 183, 61, 0.45);
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ap-angle a.apa-btn:hover,
.ap-angle a.apa-btn:focus-visible {
    color: #120c02;
    opacity: 1;
    filter: brightness(1.07);
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 18px 42px -12px rgba(245, 183, 61, 0.8),
        0 0 36px -4px rgba(245, 183, 61, 0.55);
}

.ap-angle a.apa-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.ap-angle .apa-micro {
    font-family: var(--apa-mono);
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--apa-text-3);
}

.ap-angle a.apa-secondary {
    color: var(--apa-gold);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--apa-gold-line);
    padding-bottom: 1px;
}

.ap-angle a.apa-secondary:hover,
.ap-angle a.apa-secondary:focus-visible {
    color: var(--apa-gold-hi);
    opacity: 1;
    border-bottom-color: var(--apa-gold-hi);
    text-decoration: none;
}

/* ----- Hero visual: shared bits ----- */
.ap-angle .apa-hero-visual { min-width: 0; position: relative; }

/* Stage light under every hero visual */
.ap-angle .apa-hero-visual::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -26px;
    height: 60px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(50% 50% at 50% 50%, rgba(245, 183, 61, 0.35) 0%, transparent 70%);
    filter: blur(8px);
}

.ap-angle .apa-vis { position: relative; z-index: 1; }

.ap-angle .apa-vis-cap {
    font-family: var(--apa-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--apa-gold);
    margin: 0 0 12px;
}

.ap-angle .apa-card-title {
    font-family: var(--apa-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--apa-text);
    letter-spacing: -0.01em;
    margin: 0 0 18px;
}

.ap-angle .apa-vis-foot {
    margin: 16px 2px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--apa-text-3);
}

.ap-angle .apa-sample {
    margin: 10px 2px 0;
    font-family: var(--apa-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(245, 183, 61, 0.8);
}

/* ===================== FORMAT: transform ===================== */
.ap-angle .apa-tf-before {
    position: relative;
    padding: 16px 18px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--apa-line-2);
    border-radius: 14px;
}

.ap-angle .apa-tf-label {
    font-family: var(--apa-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--apa-text-3);
    margin: 0 0 10px;
}

.ap-angle .apa-tf-label.is-gold { color: var(--apa-gold); }

.ap-angle .apa-tf-foot {
    margin: 10px 0 0;
    font-size: 0.84rem;
    color: var(--apa-text-3);
}

/* chat */
.ap-angle .apa-chat { display: flex; flex-direction: column; gap: 8px; }

.ap-angle .apa-bubble {
    max-width: 86%;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.4;
}

.ap-angle .apa-bubble.is-you {
    align-self: flex-end;
    background: rgba(245, 183, 61, 0.16);
    border: 1px solid rgba(245, 183, 61, 0.28);
    border-bottom-right-radius: 4px;
    color: var(--apa-text);
}

.ap-angle .apa-bubble.is-ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--apa-line);
    border-bottom-left-radius: 4px;
    color: var(--apa-text-2);
}

/* prompt: a text document with line numbers */
.ap-angle .apa-doc {
    counter-reset: apadoc;
    font-size: 0.92rem;
    line-height: 1.45;
}

.ap-angle .apa-doc li {
    counter-increment: apadoc;
    position: relative;
    padding: 3px 0 3px 30px;
    color: var(--apa-text);
}

.ap-angle .apa-doc li::before {
    content: counter(apadoc);
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    text-align: right;
    font-family: var(--apa-mono);
    font-size: 0.72rem;
    color: var(--apa-text-3);
}

/* code */
.ap-angle .apa-code {
    margin: 0;
    padding: 12px 14px;
    background: #050505;
    border: 1px solid var(--apa-line);
    border-radius: 10px;
    font-family: var(--apa-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    color: #e8e3d6;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: hidden;
}

.ap-angle .apa-code code {
    font: inherit;
    color: inherit;
    background: none;
    padding: 0;
}

.ap-angle .apa-code .c { color: #7c7668; }

/* arrow between the two cards */
.ap-angle .apa-tf-arrow {
    display: flex;
    justify-content: center;
    margin: -2px 0;
    height: 40px;
    align-items: center;
    color: var(--apa-gold);
    position: relative;
    z-index: 2;
}

.ap-angle .apa-tf-arrow .apa-ico {
    width: 30px;
    height: 30px;
    padding: 4px;
    border-radius: 50%;
    background: #120d05;
    border: 1px solid var(--apa-gold-line);
    filter: drop-shadow(0 0 8px rgba(245, 183, 61, 0.7));
    animation: apa-nudge 2.4s ease-in-out infinite;
}

/* decision card (AP panel) */
.ap-angle .apa-tf-after {
    animation: apa-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s both;
}

.ap-angle .apa-decision {
    padding: 0 0 16px;
    background: linear-gradient(180deg, #151a22 0%, #0d1016 100%);
    border: 1px solid var(--apa-gold-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 4px rgba(245, 183, 61, 0.06),
        0 24px 60px -24px rgba(245, 183, 61, 0.5),
        0 0 40px -12px rgba(245, 183, 61, 0.35);
}

.ap-angle .apa-decision-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ap-angle .apa-decision-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--apa-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--apa-gold);
}

.ap-angle .apa-decision-tag .apa-ico { width: 16px; height: 16px; }

.ap-angle .apa-decision-sym {
    padding: 3px 9px;
    border: 1px solid var(--apa-line-2);
    border-radius: 6px;
    font-family: var(--apa-mono);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--apa-text);
}

.ap-angle .apa-decision-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 6px;
    font-family: var(--apa-display);
    font-size: clamp(2.2rem, 1.6rem + 1.6vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--apa-text);
}

.ap-angle .apa-decision-action .apa-ico { width: 0.62em; height: 0.62em; }

.ap-angle .apa-decision.is-buy .apa-decision-action { color: var(--apa-green); text-shadow: 0 0 22px rgba(74, 222, 128, 0.45); }
.ap-angle .apa-decision.is-sell .apa-decision-action { color: var(--apa-red); text-shadow: 0 0 22px rgba(255, 77, 94, 0.45); }
.ap-angle .apa-decision.is-wait .apa-decision-action { color: var(--apa-amber); text-shadow: 0 0 22px rgba(251, 191, 36, 0.45); }

.ap-angle .apa-decision-rows {
    margin: 8px 16px 0;
    padding: 0;
}

.ap-angle .apa-decision-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 6px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.ap-angle .apa-decision-row dt {
    font-family: var(--apa-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--apa-text-3);
}

.ap-angle .apa-decision-row dd {
    margin: 0;
    font-family: var(--apa-mono);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--apa-text);
    text-align: right;
}

.ap-angle .apa-decision-reason {
    margin: 10px 16px 0;
    padding: 10px 12px;
    border-left: 2px solid var(--apa-gold);
    background: rgba(245, 183, 61, 0.06);
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.45;
    font-style: italic;
    color: var(--apa-text);
}

/* ===================== FORMAT: versus ===================== */
.ap-angle .apa-vs { padding: 20px 18px 10px; }

.ap-angle .apa-vs-title {
    font-family: var(--apa-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--apa-text);
    margin: 0 4px 12px;
}

.ap-angle .apa-vs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border: 0;
    table-layout: fixed;
    background: transparent;
}

.ap-angle .apa-vs-table th,
.ap-angle .apa-vs-table td {
    padding: 13px 8px;
    border: 0;
    border-top: 1px solid var(--apa-line);
    background: transparent;
    vertical-align: middle;
    text-align: center;
}

.ap-angle .apa-vs-table thead th,
.ap-angle .apa-vs-table thead td {
    border-top: 0;
    padding-top: 6px;
    padding-bottom: 10px;
    font-family: var(--apa-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.3;
    color: var(--apa-text-3);
    text-transform: none;
}

.ap-angle .apa-vs-table thead th.is-ours {
    color: var(--apa-gold);
    background: rgba(245, 183, 61, 0.1);
    border-radius: 10px 10px 0 0;
}

.ap-angle .apa-vs-cols-2 .apa-vs-corner { width: 44%; }
.ap-angle .apa-vs-cols-3 .apa-vs-corner { width: 37%; }

.ap-angle .apa-vs-table tbody th {
    text-align: left;
    padding-left: 4px;
    font-family: var(--apa-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--apa-text);
}

/* base.css forces th { color: green !important; font-weight: bold !important } */
.ap-angle .apa-vs-table tbody th { color: var(--apa-text) !important; font-weight: 600 !important; }
.ap-angle .apa-vs-table thead th { color: var(--apa-text-3) !important; font-weight: 600 !important; }
.ap-angle .apa-vs-table thead th.is-ours { color: var(--apa-gold) !important; }

.ap-angle .apa-vs-table td.is-ours { background: rgba(245, 183, 61, 0.07); }
.ap-angle .apa-vs-table tbody tr:last-child td.is-ours { border-radius: 0 0 10px 10px; }

.ap-angle .apa-vs-table td .apa-ico {
    width: 26px;
    height: 26px;
    padding: 4px;
    border-radius: 50%;
    stroke-width: 2.6;
}

.ap-angle .apa-vs-table td.is-good { color: var(--apa-green); }
.ap-angle .apa-vs-table td.is-bad { color: var(--apa-red); }
.ap-angle .apa-vs-table td.is-neutral { color: var(--apa-text-2); }
.ap-angle .apa-vs-table td.is-good .apa-ico { background: var(--apa-green-soft); }
.ap-angle .apa-vs-table td.is-bad .apa-ico { background: var(--apa-red-soft); }

.ap-angle .apa-vs-table td.is-text span {
    display: block;
    font-family: var(--apa-mono);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

.ap-angle .apa-vs-table td.is-neutral.is-ours span { color: var(--apa-text); }

/* ===================== FORMAT: autonomy ===================== */
.ap-angle .apa-auto { padding: 22px 20px 22px; }

.ap-angle .apa-seg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    margin: 0 0 18px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--apa-line);
    border-radius: 12px;
}

.ap-angle .apa-seg .apa-seg-btn {
    appearance: none;
    margin: 0 !important;
    padding: 11px 6px !important;
    min-width: 0;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    color: var(--apa-text-2) !important;
    font-family: var(--apa-display) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer;
    transform: none !important;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ap-angle .apa-seg .apa-seg-btn:hover {
    color: var(--apa-text) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.ap-angle .apa-seg .apa-seg-btn[aria-pressed="true"] {
    background: var(--apa-grad-v) !important;
    background-color: var(--apa-gold) !important;
    border-color: #ffd77a !important;
    color: #120c02 !important;
    box-shadow: 0 6px 18px -8px rgba(245, 183, 61, 0.8) !important;
}

.ap-angle .apa-seg .apa-seg-btn:focus-visible {
    outline: 2px solid var(--apa-gold-hi) !important;
    outline-offset: 2px;
}

.ap-angle .apa-auto-list { display: grid; gap: 8px; }

.ap-angle .apa-auto-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--apa-line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ap-angle .apa-auto-mark { display: none; line-height: 0; }
.ap-angle .apa-auto-item.is-yes .is-yes-mark,
.ap-angle .apa-auto-item.is-no .is-no-mark { display: inline-flex; }

.ap-angle .apa-auto-mark .apa-ico {
    width: 26px;
    height: 26px;
    padding: 4px;
    border-radius: 50%;
    stroke-width: 2.6;
}

.ap-angle .apa-auto-item.is-yes { border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.06); }
.ap-angle .apa-auto-item.is-yes .apa-ico { color: var(--apa-green); background: var(--apa-green-soft); }
.ap-angle .apa-auto-item.is-no .apa-ico { color: var(--apa-red); background: var(--apa-red-soft); }
.ap-angle .apa-auto-item.is-no .apa-auto-text { color: var(--apa-text-3); }

.ap-angle .apa-auto-text {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--apa-text);
}

.ap-angle .apa-auto-note {
    margin: 18px 2px 0;
    font-family: var(--apa-display);
    font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.65rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--apa-gold-hi);
}

/* ===================== FORMAT: budget ===================== */
.ap-angle .apa-bud { padding: 22px 22px 20px; }

.ap-angle .apa-bud-lost {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
}

.ap-angle .apa-bud-lost label {
    font-family: var(--apa-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--apa-text-3);
    margin: 0;
}

.ap-angle .apa-bud-lost-v {
    font-family: var(--apa-mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--apa-red);
}

.ap-angle .apa-range {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    --apa-fill: 0%;
}

.ap-angle .apa-range:focus { outline: none; }

/* Astra styles the track (with a #ccc shadow) and repaints it on :focus. */
.ap-angle .apa-range::-webkit-slider-runnable-track,
.ap-angle .apa-range:focus::-webkit-slider-runnable-track {
    height: 8px;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    background: linear-gradient(90deg, var(--apa-red) 0%, var(--apa-red) var(--apa-fill), rgba(255, 255, 255, 0.12) var(--apa-fill), rgba(255, 255, 255, 0.12) 100%);
}

.ap-angle .apa-range::-moz-range-track,
.ap-angle .apa-range:focus::-moz-range-track {
    height: 8px;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.12);
}

.ap-angle .apa-range::-moz-range-progress {
    height: 8px;
    border-radius: 999px;
    background: var(--apa-red);
}

.ap-angle .apa-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    margin-top: -9px;
    border-radius: 50%;
    background: var(--apa-grad-v);
    border: 2px solid #fff3cf;
    box-shadow: 0 0 0 5px rgba(245, 183, 61, 0.18), 0 0 18px rgba(245, 183, 61, 0.7);
}

.ap-angle .apa-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--apa-gold);
    border: 2px solid #fff3cf;
    box-shadow: 0 0 0 5px rgba(245, 183, 61, 0.18), 0 0 18px rgba(245, 183, 61, 0.7);
}

.ap-angle .apa-range:focus-visible::-webkit-slider-thumb { outline: 2px solid #fff; outline-offset: 2px; }

.ap-angle .apa-bud-out {
    margin: 18px 0 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--apa-line);
    min-height: 118px;
}

.ap-angle .apa-bud-next-l {
    font-family: var(--apa-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--apa-text-3);
}

.ap-angle .apa-bud-next-v {
    margin-top: 4px;
    font-family: var(--apa-display);
    font-size: clamp(3rem, 2.2rem + 2.6vw, 4.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: var(--apa-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--apa-gold);
    width: fit-content;
    padding-bottom: 0.04em;
}

.ap-angle .apa-bud-limit {
    margin-top: 8px;
    font-family: var(--apa-display);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--apa-red);
}

.ap-angle .apa-bud-out [hidden] { display: none !important; }
.ap-angle .apa-bud.is-limit .apa-bud-out { border-color: rgba(255, 77, 94, 0.5); background: var(--apa-red-soft); }

.ap-angle .apa-bud-left {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 8px;
}

.ap-angle .apa-bud-left-l {
    font-size: 0.88rem;
    color: var(--apa-text-2);
}

.ap-angle .apa-bud-left-v {
    font-family: var(--apa-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--apa-gold);
}

.ap-angle .apa-bud.is-limit .apa-bud-left-v { color: var(--apa-red); }

.ap-angle .apa-bud-bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.ap-angle .apa-bud-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--apa-grad);
    box-shadow: 0 0 14px rgba(245, 183, 61, 0.6);
    transition: width 0.25s ease;
}

.ap-angle .apa-bud-rule {
    margin: 16px 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--apa-text);
}

.ap-angle .apa-bud-ex {
    margin: 6px 0 0;
    font-family: var(--apa-mono);
    font-size: 0.74rem;
    color: var(--apa-text-3);
}

/* ===================== FORMAT: arena ===================== */
.ap-angle .apa-arena { padding: 0 0 20px; overflow: hidden; }

.ap-angle .apa-arena-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--apa-gold-line);
    font-family: var(--apa-display);
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--apa-text);
}

.ap-angle .apa-arena-k { color: var(--apa-text-3); font-weight: 700; }

.ap-angle .apa-arena-name {
    display: inline-block;
    background: var(--apa-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--apa-gold);
    padding-bottom: 0.06em;
}

.ap-angle .apa-arena-name.is-swap { animation: apa-swap 0.38s cubic-bezier(0.2, 0.7, 0.2, 1); }

.ap-angle .apa-arena-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: var(--apa-green);
    box-shadow: 0 0 0 4px var(--apa-green-soft), 0 0 12px rgba(74, 222, 128, 0.8);
    animation: apa-pulse 2s ease-in-out infinite;
}

.ap-angle .apa-arena-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 20px 6px;
}

.ap-angle .apa-arena-chips .apa-chip {
    appearance: none;
    margin: 0 !important;
    padding: 9px 16px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    background-image: none !important;
    border: 1px solid var(--apa-line-2) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: var(--apa-text-2) !important;
    font-family: var(--apa-mono) !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer;
    transform: none !important;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ap-angle .apa-arena-chips .apa-chip:hover {
    color: var(--apa-text) !important;
    border-color: var(--apa-gold-line) !important;
}

.ap-angle .apa-arena-chips .apa-chip[aria-pressed="true"] {
    background: var(--apa-grad-v) !important;
    background-color: var(--apa-gold) !important;
    border-color: #ffd77a !important;
    color: #120c02 !important;
    box-shadow: 0 0 18px -4px rgba(245, 183, 61, 0.75) !important;
}

.ap-angle .apa-arena-chips .apa-chip:focus-visible {
    outline: 2px solid var(--apa-gold-hi) !important;
    outline-offset: 2px;
}

.ap-angle .apa-same {
    display: grid;
    gap: 8px;
    margin: 12px 20px 0;
    padding: 14px 0 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.ap-angle .apa-same li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--apa-text);
}

.ap-angle .apa-same .apa-ico,
.ap-angle .apa-checks .apa-ico,
.ap-angle .apa-xchips .apa-ico {
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 50%;
    color: var(--apa-green);
    background: var(--apa-green-soft);
    stroke-width: 2.8;
}

/* arena: video section */
.ap-angle .apa-videosec::before {
    background: linear-gradient(180deg, var(--apa-bg) 0%, var(--apa-bg-2) 50%, var(--apa-bg) 100%);
}

.ap-angle .apa-video {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
}

.ap-angle a.apa-video-thumb {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--apa-gold-line);
    box-shadow: 0 26px 60px -26px rgba(245, 183, 61, 0.45);
    text-decoration: none;
    aspect-ratio: 16 / 9;
    background: #000;
}

.ap-angle a.apa-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.ap-angle .apa-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(10, 8, 5, 0.72);
    border: 2px solid var(--apa-gold);
    color: var(--apa-gold-hi);
    box-shadow: 0 0 30px rgba(245, 183, 61, 0.55);
    transition: transform 0.25s ease;
}

.ap-angle .apa-play .apa-ico { width: 30px; height: 30px; margin-left: 4px; }

.ap-angle a.apa-video-thumb:hover img,
.ap-angle a.apa-video-thumb:focus-visible img { transform: scale(1.03); filter: brightness(1.08); }
.ap-angle a.apa-video-thumb:hover .apa-play,
.ap-angle a.apa-video-thumb:focus-visible .apa-play { transform: scale(1.08); }

.ap-angle .apa-video-text {
    font-family: var(--apa-display);
    font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--apa-text);
}

.ap-angle a.apa-video-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--apa-gold);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--apa-gold-line);
}

.ap-angle a.apa-video-cta .apa-ico { width: 16px; height: 16px; }

.ap-angle a.apa-video-cta:hover,
.ap-angle a.apa-video-cta:focus-visible {
    color: var(--apa-gold-hi);
    opacity: 1;
    text-decoration: none;
    border-bottom-color: var(--apa-gold-hi);
}

/* ===================== FORMAT: proof ===================== */
.ap-angle .apa-proofhero { padding: 26px 26px 28px; }

.ap-angle .apa-proofhero-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    font-family: var(--apa-mono);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--apa-text-2);
}

.ap-angle .apa-proofhero-label .apa-ico { width: 16px; height: 16px; color: var(--apa-green); }

/* Big numbers (hero of `proof` and the proof band) */
.ap-angle .apa-bignums {
    display: grid;
    gap: 18px;
}

.ap-angle .apa-bignums-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; }

.ap-angle .apa-bignums-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 920px;
    margin: 0 auto 36px;
    text-align: center;
}

.ap-angle .apa-bignum { display: flex; flex-direction: column; min-width: 0; }
.ap-angle .apa-bignums-band .apa-bignum { align-items: center; }

.ap-angle .apa-bignum-v {
    font-family: var(--apa-display);
    font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    width: fit-content;
    max-width: 100%;
    padding-bottom: 0.05em;
}

.ap-angle .apa-bignums-hero .apa-bignum-v { font-size: clamp(3.2rem, 2rem + 4.2vw, 5.6rem); }

.ap-angle .apa-bignum.is-gold .apa-bignum-v {
    background: var(--apa-grad-v);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--apa-gold);
    filter: drop-shadow(0 0 22px rgba(245, 183, 61, 0.35));
}

.ap-angle .apa-bignum.is-red .apa-bignum-v {
    background: linear-gradient(180deg, #ff8a95 0%, #ff4d5e 55%, #d9203a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--apa-red);
    filter: drop-shadow(0 0 22px rgba(255, 77, 94, 0.35));
}

.ap-angle .apa-bignum.is-white .apa-bignum-v { color: var(--apa-text); }

.ap-angle .apa-bignum-l {
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--apa-text);
}

.ap-angle .apa-bignum-s {
    margin-top: 2px;
    font-family: var(--apa-mono);
    font-size: 0.78rem;
    color: var(--apa-text-3);
}

/* proof: tiles section */
.ap-angle .apa-tilesec::before {
    background: linear-gradient(180deg, var(--apa-bg) 0%, var(--apa-bg-2) 50%, var(--apa-bg) 100%);
}

.ap-angle .apa-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 920px;
    margin: 0 auto;
}

.ap-angle .apa-tile {
    padding: 24px 24px 22px;
    border-radius: 18px;
    border: 1px solid var(--apa-line-2);
    background: rgba(255, 255, 255, 0.03);
}

.ap-angle .apa-tile.is-ours {
    border-color: var(--apa-gold-line);
    background: linear-gradient(180deg, rgba(245, 183, 61, 0.12) 0%, rgba(245, 183, 61, 0.02) 100%);
    box-shadow: 0 26px 60px -30px rgba(245, 183, 61, 0.5), 0 0 40px -16px rgba(245, 183, 61, 0.3);
}

.ap-angle .apa-tile-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 18px;
}

.ap-angle .apa-tile-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.ap-angle .apa-tile.is-ours .apa-tile-name { color: var(--apa-gold-hi); }

.ap-angle .apa-tag {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--apa-line-2);
    font-family: var(--apa-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--apa-text-2);
}

.ap-angle .apa-tile.is-ours .apa-tag {
    border-color: var(--apa-gold-line);
    background: var(--apa-gold-soft);
    color: var(--apa-gold);
}

.ap-angle .apa-checks { display: grid; gap: 12px; }

.ap-angle .apa-checks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.98rem;
    line-height: 1.4;
    color: var(--apa-text);
}

.ap-angle .apa-tile:not(.is-ours) .apa-checks .apa-ico { color: var(--apa-text-2); background: rgba(255, 255, 255, 0.07); }

/* budget: extra chips */
.ap-angle .apa-extrasec { padding: 56px 0; }

.ap-angle .apa-xchips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 980px;
    margin: 0 auto;
}

.ap-angle .apa-xchips li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    border-radius: 999px;
    border: 1px solid var(--apa-gold-line);
    background: rgba(245, 183, 61, 0.06);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--apa-text);
}

/* ======================== TRUST STRIP ======================== */
.ap-angle .apa-trust { padding: 22px 0; }

.ap-angle .apa-trust::before {
    background: #0b0906;
    box-shadow: inset 0 -1px 0 var(--apa-line);
}

.ap-angle .apa-trust-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 28px;
}

.ap-angle .apa-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--apa-text);
}

.ap-angle .apa-trust-item .apa-ico {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 10px;
    color: var(--apa-gold);
    background: var(--apa-gold-soft);
    border: 1px solid var(--apa-gold-line);
}

.ap-angle .apa-trust-item.is-live .apa-ico { color: var(--apa-green); background: var(--apa-green-soft); border-color: rgba(74, 222, 128, 0.3); }
.ap-angle .apa-trust-item.is-live .apa-ico circle:first-child { animation: apa-pulse 2s ease-in-out infinite; transform-origin: 12px 12px; }

/* ======================== PROOF BAND ======================== */
.ap-angle .apa-proofband { padding: 80px 0; }

.ap-angle .apa-proofband::before {
    background:
        radial-gradient(50% 40% at 50% 0%, rgba(245, 183, 61, 0.1) 0%, transparent 70%),
        var(--apa-bg);
}

.ap-angle .apa-live {
    max-width: 780px;
    margin: 0 auto;
}

.ap-angle .apa-live .ap-live-card {
    border-color: var(--apa-gold-line);
    box-shadow: 0 30px 80px -30px rgba(245, 183, 61, 0.35);
}

.ap-angle .apa-live-note {
    margin: 18px auto 0;
    max-width: 680px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--apa-text-3);
}

.ap-angle .apa-live-note a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    color: var(--apa-gold);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--apa-gold-line);
}

.ap-angle .apa-live-note a .apa-ico { width: 14px; height: 14px; }

.ap-angle .apa-live-note a:hover,
.ap-angle .apa-live-note a:focus-visible { color: var(--apa-gold-hi); opacity: 1; text-decoration: none; }

/* ========================= STEPS ========================= */
.ap-angle .apa-steps::before {
    background: linear-gradient(180deg, var(--apa-bg) 0%, var(--apa-bg-2) 55%, var(--apa-bg) 100%);
}

.ap-angle .apa-step-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ap-angle .apa-step {
    position: relative;
    padding: 24px 22px 22px;
    border-radius: 18px;
    border: 1px solid var(--apa-line-2);
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.ap-angle .apa-step-n {
    display: block;
    margin: 0 0 12px;
    font-family: var(--apa-display);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    background: var(--apa-grad-v);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--apa-gold);
    width: fit-content;
}

.ap-angle .apa-step-t {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
}

.ap-angle .apa-step-p {
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--apa-text-2);
}

/* ========================== FAQ ========================== */
.ap-angle .apa-faq::before { background: var(--apa-bg); }

.ap-angle .apa-faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.ap-angle .apa-faq-item {
    margin: 0;
    padding: 0;
    border: 1px solid var(--apa-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ap-angle .apa-faq-item[open] {
    border-color: var(--apa-gold-line);
    background: rgba(245, 183, 61, 0.04);
}

.ap-angle .apa-faq-item summary {
    position: relative;
    display: block;
    list-style: none;
    cursor: pointer;
    padding: 18px 54px 18px 20px;
    color: var(--apa-text);
    font-family: var(--apa-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.ap-angle .apa-faq-item summary::-webkit-details-marker { display: none; }
.ap-angle .apa-faq-item summary::marker { content: ''; }

.ap-angle .apa-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    border-radius: 50%;
    border: 1px solid var(--apa-gold-line);
    font-family: var(--apa-mono);
    font-size: 1.05rem;
    line-height: 24px;
    text-align: center;
    color: var(--apa-gold);
}

.ap-angle .apa-faq-item[open] summary::after { content: '\2212'; }
.ap-angle .apa-faq-item summary:hover { color: var(--apa-gold-hi); }
.ap-angle .apa-faq-item summary:focus-visible { outline: 2px solid var(--apa-gold); outline-offset: 2px; border-radius: 14px; }

.ap-angle .apa-faq-item p {
    padding: 0 20px 18px;
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--apa-text-2);
}

/* ======================= FINAL CTA ======================= */
.ap-angle .apa-final { padding: 84px 0 96px; text-align: center; }

.ap-angle .apa-final::before {
    background:
        radial-gradient(46% 60% at 50% 40%, rgba(245, 183, 61, 0.18) 0%, rgba(245, 183, 61, 0.04) 50%, transparent 75%),
        linear-gradient(180deg, var(--apa-bg) 0%, #0e0a05 60%, #0a0a0a 100%);
}

.ap-angle .apa-final-icon {
    width: 104px;
    height: 104px;
    margin: 0 auto 24px;
}

.ap-angle .apa-final-h {
    display: block;
    width: fit-content;
    max-width: 860px;
    margin: 0 auto 14px;
    font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.ap-angle .apa-final-sub {
    margin: 0 auto;
    max-width: 620px;
    font-size: 1.1rem;
    color: var(--apa-text-2);
}

.ap-angle .apa-final .apa-ctas { align-items: center; margin-top: 30px; }

/* ===================== STICKY CTA (phones) ===================== */
.ap-angle .apa-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 7, 5, 0.94);
    border-top: 1px solid var(--apa-gold-line);
    box-shadow: 0 -12px 30px -10px rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
}

.ap-angle .apa-sticky.is-on {
    transform: none;
    visibility: visible;
    transition: transform 0.28s ease;
}

.ap-angle .apa-sticky a.apa-sticky-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 1.02rem;
    white-space: normal;
}

/* ===================== Reveal on scroll ===================== */
.apa-js .ap-angle .apa-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.apa-js .ap-angle .apa-reveal.is-in { opacity: 1; transform: none; }

/* ======================== Keyframes ======================== */
@keyframes apa-rise {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@keyframes apa-nudge {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(3px); }
}

@keyframes apa-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

@keyframes apa-swap {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* ======================== Responsive ======================== */
@media (min-width: 960px) {
    .ap-angle .apa-hero { padding: 64px 0 76px; }
    .ap-angle .apa-hero-grid {
        grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
        gap: 56px;
    }
    .ap-angle .apa-video { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 959px) {
    .ap-angle .apa-hero-visual { max-width: 560px; }
}

@media (max-width: 860px) {
    .ap-angle .apa-step-list,
    .ap-angle .apa-tiles { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 759px) {
    .ap-angle .apa-trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
    .ap-angle .apa-trust-item { font-size: 0.84rem; }
    .ap-angle .apa-trust-item .apa-ico { width: 30px; height: 30px; padding: 6px; }
    .ap-angle .apa-bignums-band { gap: 10px; }
    .ap-angle .apa-bignums-band .apa-bignum-v { font-size: clamp(1.3rem, 6.4vw, 2.6rem); }
    .ap-angle .apa-bignums-band .apa-bignum-l { font-size: 0.82rem; }
}

@media (min-width: 760px) {
    .ap-angle .apa-sticky { display: none; }
}

@media (max-width: 600px) {
    .ap-angle .apa-section { padding: 52px 0; }
    .ap-angle .apa-hero { padding: 34px 0 48px; }
    .ap-angle .apa-trust { padding: 18px 0; }
    .ap-angle .apa-proofband { padding: 56px 0; }
    .ap-angle .apa-final { padding: 60px 0 72px; }
    .ap-angle .apa-container { padding: 0 18px; }
    .ap-angle .apa-brand { margin-bottom: 18px; }
    .ap-angle .apa-brand-icon { width: 38px; height: 38px; flex-basis: 38px; }
    .ap-angle .apa-h2 { margin-bottom: 24px; }

    /* versus: each row = label on top, one cell per column below */
    .ap-angle .apa-vs { padding: 16px 12px 8px; }
    .ap-angle .apa-vs-table,
    .ap-angle .apa-vs-table thead,
    .ap-angle .apa-vs-table tbody { display: block; width: 100%; }
    .ap-angle .apa-vs-table tr {
        display: grid;
        grid-template-columns: repeat(var(--apa-cols, 2), minmax(0, 1fr));
    }
    .ap-angle .apa-vs-table .apa-vs-corner { display: none; }
    .ap-angle .apa-vs-table thead th { display: block; padding: 4px 4px 8px; }
    .ap-angle .apa-vs-table tbody th {
        grid-column: 1 / -1;
        display: block;
        padding: 12px 2px 6px;
        font-size: 0.92rem;
    }
    .ap-angle .apa-vs-table tbody td {
        display: flex;
        align-items: center;
        justify-content: center;
        border-top: 0;
        padding: 4px 4px 10px;
    }
    .ap-angle .apa-vs-table tbody td.is-text { padding-top: 6px; }
    .ap-angle .apa-vs-table tbody tr:last-child td.is-ours { border-radius: 0 0 10px 10px; }

    .ap-angle .apa-auto,
    .ap-angle .apa-bud { padding: 18px 16px; }
    .ap-angle .apa-seg .apa-seg-btn { font-size: 0.84rem !important; padding: 10px 4px !important; }
    .ap-angle .apa-arena-head { padding: 14px 16px; }
    .ap-angle .apa-arena-chips { padding: 16px 16px 4px; }
    .ap-angle .apa-same { margin: 12px 16px 0; }
    .ap-angle .apa-proofhero { padding: 22px 20px 24px; }
    .ap-angle .apa-faq-item summary { padding: 16px 50px 16px 16px; font-size: 1rem; }
    .ap-angle .apa-faq-item p { padding: 0 16px 16px; }
    .ap-angle .apa-step-n { font-size: 2.8rem; }
}

/* CTAs wrap on phones. */
@media (max-width: 560px) {
    .ap-angle .apa-ctas { align-items: stretch; text-align: center; }
    .ap-angle a.apa-btn {
        display: block;
        width: 100%;
        white-space: normal;
        padding: 16px 18px;
    }
    .ap-angle a.apa-secondary { align-self: center; }
    .ap-angle .apa-xchips li { width: 100%; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .ap-angle .apa-tf-after,
    .ap-angle .apa-tf-arrow .apa-ico,
    .ap-angle .apa-arena-dot,
    .ap-angle .apa-arena-name.is-swap,
    .ap-angle .apa-trust-item.is-live .apa-ico circle:first-child { animation: none !important; }
    .apa-js .ap-angle .apa-reveal { opacity: 1; transform: none; transition: none; }
    .ap-angle a.apa-btn,
    .ap-angle .apa-bud-fill,
    .ap-angle .apa-sticky,
    .ap-angle a.apa-video-thumb img,
    .ap-angle .apa-play { transition: none !important; }
    .ap-angle a.apa-btn:hover,
    .ap-angle a.apa-btn:focus-visible { transform: none; }
}

/* ==========================================================
   Astra page reset, scoped to this template (trial page pattern).
   ========================================================== */
.page-template-template-ap-angle .entry-header,
.page-template-template-ap-angle .entry-title,
.page-template-template-ap-angle .entry-meta,
.page-template-template-ap-angle .ast-archive-description,
.page-template-template-ap-angle .ast-article-single > header,
.page-template-template-ap-angle .site-content #secondary,
.page-template-template-ap-angle .site-content .secondary,
.page-template-template-ap-angle .site-content .widget-area {
    display: none !important;
}

.page-template-template-ap-angle .site-content > .ast-container {
    display: block !important;
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

.page-template-template-ap-angle .site-content #primary,
.page-template-template-ap-angle .site-content .content-area {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-template-template-ap-angle .site-content,
.page-template-template-ap-angle .ast-article-single,
.page-template-template-ap-angle article.page,
.page-template-template-ap-angle .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    max-width: none !important;
    width: 100% !important;
}
