

/* Remove container bottom margin; keep footer a small breathing gap */
body > .container { margin-bottom: 0 !important; }
footer { margin-top: 1.5rem !important; }

/* ── SHARED INNER ── */
.ap-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── HERO ── */
.ap-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
    margin-top: -2rem;
    padding: 7rem 0 5.5rem;
    background: var(--color-text);
}
.ap-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 8% 60%, rgba(0,91,172,.45) 0%, transparent 65%),
        radial-gradient(ellipse 40% 50% at 88% 30%, rgba(0,91,172,.2) 0%, transparent 60%);
}
.ap-hero-grid {
    position: absolute; inset: 0;
}
.ap-hero-inner {
    position: relative; z-index: 1;
    max-width: 1100px; margin: 0 auto; padding: 0 2rem;
}
.ap-hero-eyebrow {
    display: inline-flex; align-items: center; gap: .7rem;
    font-size: .7rem; font-weight: 500; letter-spacing: .22em;
    color: rgba(255,255,255,.45); text-transform: uppercase; margin-bottom: 1.6rem;
}
.ap-hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: rgba(255,255,255,.35); }
.ap-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700;
    color: #fff; line-height: 1.3; margin-bottom: 1.2rem; max-width: 680px;
}
.ap-hero-sub {
    font-size: .97rem; line-height: 1.95;
    color: rgba(255,255,255,.62); font-weight: 300; max-width: 560px;
}

/* ── SHARED SECTION CHROME ── */
.ap-sec { padding: 4.5rem 0; }
.ap-sec + .ap-sec { border-top: 1px solid #ebebeb; }
.ap-sec {
    position: relative;
    z-index: 0;
}

.ap-eyebrow {
    display: inline-flex; align-items: center; gap: .65rem;
    font-size: .67rem; font-weight: 500; letter-spacing: .22em;
    color: var(--color-accent); text-transform: uppercase; margin-bottom: .7rem;
}
.ap-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--color-accent); }
.ap-h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 700;
    color: var(--color-text); line-height: 1.3; margin-bottom: 1.2rem;
}
.ap-lead {
    color: #3a3a5c; line-height: 1.95; margin-bottom: 2rem;
    font-size: .95rem; font-weight: 300; max-width: 700px;
}

/* ════════════════════════════════════
   01  INTRO — stat strip
   ════════════════════════════════════ */
.ap-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #e0e5f0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 2.5rem;
}
.ap-stat-cell {
    padding: 2.2rem 2rem;
    border-right: 1px solid #e0e5f0;
    background: #fff;
}
.ap-stat-cell:last-child { border-right: none; }
.ap-stat-num {
    font-family: var(--font-serif);
    font-size: 3rem; font-weight: 700; line-height: 1;
    color: var(--color-accent); margin-bottom: .6rem;
}
.ap-stat-cell h4 { font-size: .88rem; font-weight: 600; color: var(--color-text); margin-bottom: .35rem; }
.ap-stat-cell p { font-size: .8rem; color: #666; line-height: 1.7; margin: 0; font-weight: 300; }

/* ════════════════════════════════════
   02  STRUCTURE — gray bg, white cards
   ════════════════════════════════════ */
.ap-gray {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    background: #f4f6fa;
    padding: 5rem 0;
}
.ap-structure-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
}
.ap-structure-card {
    background: #fff;
    border: 1px solid #e0e5f0;
    border-radius: var(--radius-sm);
    padding: 1.8rem;
    transition: border-color .25s;
}
.ap-structure-card:hover { border-color: var(--color-accent); }
.ap-structure-badge {
    display: inline-block;
    font-size: .64rem; font-weight: 700; letter-spacing: .14em;
    color: var(--color-accent); text-transform: uppercase;
    background: rgba(0,91,172,.08);
    padding: .22rem .65rem; border-radius: 2px;
    margin-bottom: .75rem;
}
.ap-structure-card h4 { font-size: .92rem; font-weight: 600; color: var(--color-text); margin-bottom: .4rem; }
.ap-structure-card p { font-size: .85rem; line-height: 1.85; color: #5a6070; margin: 0; font-weight: 300; }

/* ════════════════════════════════════
   03  FLOW — white, vertical timeline
   ════════════════════════════════════ */
.ap-flow {
    position: relative;
    margin-top: 2.5rem;
    max-width: 760px;
}
.ap-flow::before {
    content: '';
    position: absolute; left: 22px; top: 6px; bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-accent) 0%, #3a7fd4 100%);
}
.ap-flow-step {
    display: flex; gap: 2rem; align-items: flex-start;
    padding: 1.4rem 0; position: relative;
}
.ap-flow-num {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--color-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700; letter-spacing: .06em;
    flex-shrink: 0; position: relative; z-index: 1;
    /* visible ring: white gap then light-blue outer ring */
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #c8d9f0;
}
.ap-flow-step:last-child .ap-flow-num {
    background: var(--color-text);
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #c4c8d8;
    font-size: 1rem;
}
.ap-flow-body { padding-top: .6rem; }
.ap-flow-body h4 {
    font-family: var(--font-serif);
    font-size: .95rem; font-weight: 600; color: var(--color-text); margin-bottom: .35rem;
}
.ap-flow-body p { font-size: .85rem; line-height: 1.85; color: #5a6070; margin: 0; font-weight: 300; }

/* ════════════════════════════════════
   04  PHASES — white, table
   ════════════════════════════════════ */
.ap-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.ap-table th {
    background: var(--color-text); color: #fff;
    font-size: .78rem; font-weight: 500; letter-spacing: .08em;
    padding: .9rem 1.3rem; text-align: left;
}
.ap-table td {
    padding: 1.5rem 1.3rem; border-bottom: 1px solid #ebebeb;
    font-size: .85rem; line-height: 1.8; color: #5a6070;
    vertical-align: top; background: #fff;
}
.ap-table tr:last-child td { border-bottom: none; }
.ap-table tr:hover td { background: rgba(0,91,172,.025); }
.ap-phase-badge {
    display: inline-block; background: var(--color-accent); color: #fff;
    font-size: .65rem; font-weight: 700; letter-spacing: .1em;
    padding: .28rem .75rem; border-radius: 2px; margin-bottom: .4rem;
}
.ap-table td:first-child {
    color: var(--color-text); font-weight: 600;
    font-family: var(--font-serif);
}

/* ════════════════════════════════════
   05  FEATURES — dark bg, numbered items
   ════════════════════════════════════ */
.ap-dark {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    background: var(--color-text);
    padding: 5rem 0;
    position: relative;
}
.ap-dark-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 20% 50%, rgba(0,91,172,.3) 0%, transparent 65%),
        radial-gradient(ellipse 40% 60% at 80% 40%, rgba(0,91,172,.15) 0%, transparent 60%);
}
.ap-dark .ap-eyebrow { color: rgba(255,255,255,.45); }
.ap-dark .ap-eyebrow::before { background: rgba(255,255,255,.35); }
.ap-dark .ap-h2 { color: #fff; }
.ap-dark .ap-lead { color: rgba(255,255,255,.55); }
.ap-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
    margin-top: 2rem;
    position: relative; z-index: 1;
}
.ap-feat-n {
    display: inline-block;
    font-size: .65rem; font-weight: 700; letter-spacing: .12em;
    color: rgba(255,255,255,.35);
    margin-bottom: .5rem;
}
.ap-feat h4 { font-size: .92rem; font-weight: 600; color: #fff; margin-bottom: .4rem; }
.ap-feat p { font-size: .85rem; line-height: 1.85; color: rgba(255,255,255,.52); margin: 0; font-weight: 300; }

/* ════════════════════════════════════
   06  DEPTS — white, dept blocks
   ════════════════════════════════════ */
.ap-dept-blocks { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.ap-dept-block { background: #fff; border: 1px solid #e0e5f0; border-radius: var(--radius-sm); overflow: hidden; }
.ap-dept-header {
    background: var(--color-text);
    color: #fff; padding: 1rem 1.8rem;
    font-family: var(--font-serif);
    font-size: .95rem; font-weight: 600;
}
.ap-dept-topics {
    padding: 1.3rem 1.8rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem;
}
.ap-dept-topic {
    display: flex; align-items: flex-start; gap: .55rem;
    font-size: .82rem; color: #5a6070; line-height: 1.6; font-weight: 300;
}
.ap-dept-topic::before {
    content: '›'; color: var(--color-accent); font-weight: 600;
    flex-shrink: 0; margin-top: .05rem;
}

/* ════════════════════════════════════
   07  OUTCOMES — gray bg, icon list
   ════════════════════════════════════ */
.ap-outcomes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
    margin-top: 2rem;
}
.ap-outcome-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.ap-outcome-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: #fff; border: 1px solid #d0d8e8; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-accent);
}
.ap-outcome-item h4 { font-size: .9rem; font-weight: 600; color: var(--color-text); margin-bottom: .3rem; }
.ap-outcome-item p { font-size: .83rem; line-height: 1.8; color: #5a6070; margin: 0; font-weight: 300; }

/* ════════════════════════════════════
   08  IP — light bg, big numbers
   ════════════════════════════════════ */
.ap-ip-sec {
    background: #f4f6fa;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 5rem 0;
}
.ap-rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 4rem;
    margin-top: 2rem;
}
.ap-rule-block { position: relative; }
.ap-rule-num {
    font-family: var(--font-serif);
    font-size: 4.5rem; font-weight: 700;
    color: #c5d4e8;  /* visible but still decorative */
    line-height: 1; margin-bottom: -.6rem;
    user-select: none;
}
.ap-rule-block h4 { font-size: .92rem; font-weight: 600; color: var(--color-text); margin-bottom: .5rem; position: relative; z-index: 1; }
.ap-rule-block p { font-size: .85rem; line-height: 1.85; color: #5a6070; margin: 0; font-weight: 300; position: relative; z-index: 1; }

/* ════════════════════════════════════
   09  TERMS — white, labeled cards
   ════════════════════════════════════ */
.ap-terms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
}
.ap-term {
    background: #fff; border: 1px solid #e0e5f0; border-radius: var(--radius-sm);
    padding: 1.8rem; transition: border-color .25s;
}
.ap-term:hover { border-color: var(--color-accent); }
.ap-term-label {
    font-size: .64rem; font-weight: 700; letter-spacing: .16em;
    color: var(--color-accent); text-transform: uppercase; margin-bottom: .6rem;
}
.ap-term h4 {
    font-family: var(--font-serif);
    font-size: .95rem; font-weight: 600; color: var(--color-text); margin-bottom: .45rem;
}
.ap-term p { font-size: .85rem; line-height: 1.8; color: #5a6070; margin: 0; font-weight: 300; }
.ap-term strong { color: var(--color-accent); }

/* ── BOTTOM CTA SECTION (breakout + gap-kill) ── */
.ap-cta-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    background: var(--color-text);
    padding: 6rem 0;
    position: relative;
    margin-bottom: -2rem;  /* cancel container's bottom margin */
}
.ap-cta-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 55% 65% at 15% 50%, rgba(0,91,172,.4) 0%, transparent 65%),
        radial-gradient(ellipse 40% 50% at 85% 50%, rgba(0,91,172,.2) 0%, transparent 60%);
}
.ap-cta-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 2rem;
    text-align: center; position: relative; z-index: 1;
}
.ap-cta-eyebrow {
    display: inline-flex; align-items: center; gap: .7rem; justify-content: center;
    font-size: .7rem; font-weight: 500; letter-spacing: .2em;
    color: rgba(255,255,255,.4); text-transform: uppercase; margin-bottom: 1.4rem;
}
.ap-cta-eyebrow::before { content: ''; width: 22px; height: 1px; background: rgba(255,255,255,.3); }
.ap-cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700;
    color: #fff; line-height: 1.4; margin-bottom: 1rem;
}
.ap-cta-sub { font-size: .94rem; color: rgba(255,255,255,.55); font-weight: 300; margin-bottom: 2.5rem; }
.ap-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.ap-btn-solid {
    display: inline-block; padding: .88rem 2.3rem;
    background: var(--color-accent); color: #fff; font-size: .88rem; font-weight: 600;
    letter-spacing: .1em; text-decoration: none; border-radius: 2px;
    transition: background .25s, transform .25s;
}
.ap-btn-solid:hover { background: #3a7fd4; transform: translateY(-2px); color: #fff; text-decoration: none; }
.ap-btn-line {
    display: inline-block; padding: .86rem 2.3rem;
    border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.78);
    font-size: .88rem; font-weight: 500; letter-spacing: .1em;
    text-decoration: none; border-radius: 2px;
    transition: border-color .25s, background .25s, color .25s;
}
.ap-btn-line:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .ap-structure-grid { grid-template-columns: 1fr; }
    .ap-features-list { grid-template-columns: 1fr; gap: 1.8rem; }
    .ap-outcomes-grid { grid-template-columns: 1fr; }
    .ap-rules-grid { grid-template-columns: 1fr; gap: 2rem; }
    .ap-terms-grid { grid-template-columns: 1fr; }
    .ap-dept-topics { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .ap-stats-strip { grid-template-columns: 1fr; }
    .ap-stat-cell { border-right: none; border-bottom: 1px solid #e0e5f0; }
    .ap-stat-cell:last-child { border-bottom: none; }
    .ap-hero { padding: 5rem 0 4rem; }
    .ap-table thead { display: none; }
    .ap-table tr { display: block; border-bottom: 1px solid #ebebeb; }
    .ap-table td { display: block; border-bottom: none; }
}