/* ─── Agentic Transformation Planner ─── */
.atp {
    --atp-bg:         #f5ebe8;
    --atp-bg-2:       #faf2ee;
    --atp-panel:      #ffffff;
    --atp-navy:       #121225;
    --atp-navy-2:     #2a2a40;
    --atp-dim:        #5a5a70;
    --atp-mute:       #8a8a9b;
    --atp-border:     rgba(18, 18, 37, 0.08);
    --atp-border-2:   rgba(18, 18, 37, 0.14);
    --atp-red:        #ff4848;
    --atp-red-soft:   #fff0ee;
    --atp-cream:      #f1dfdb;
    --atp-ease:       cubic-bezier(.22,1,.36,1);
    --atp-font-display: 'Prata', Georgia, serif;
    --atp-font-mono:    'Roboto Mono', 'SFMono-Regular', Menlo, monospace;
    position: relative;
    background: var(--atp-bg);
    color: var(--atp-navy);
    padding: 160px 24px 120px;
    overflow: hidden;
    font-family: inherit;
}
.atp * { box-sizing: border-box; }
.atp__aura {
    position: absolute; inset: 0;
    background:
        radial-gradient(720px 480px at 12% 6%, rgba(255,72,72,0.08), transparent 62%),
        radial-gradient(720px 480px at 92% 40%, rgba(241,223,219,0.6), transparent 65%);
    pointer-events: none;
}
.atp__inner { position: relative; max-width: 1280px; margin: 0 auto; }

/* ── Heading ── */
.atp__head { margin-bottom: 44px; max-width: 880px; }
.atp__title {
    font-family: var(--atp-font-display);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    font-weight: 400;
    color: var(--atp-navy);
}
.atp__title-accent {
    font-style: italic;
    color: var(--atp-red);
    font-weight: 400;
}
.atp__sub {
    font-size: 17px; line-height: 1.55;
    color: var(--atp-dim);
    max-width: 720px;
    margin: 0;
}

/* ── Step wrap & transitions ── */
.atp__wrap { position: relative; min-height: 540px; }
.atp__step {
    position: absolute; inset: 0;
    opacity: 0; transform: translateY(12px);
    pointer-events: none;
    transition: opacity .45s var(--atp-ease), transform .45s var(--atp-ease);
}
.atp__step--active { opacity: 1; transform: none; pointer-events: auto; position: relative; }

/* ── Question blocks ── */
.atp__qblock {
    padding: 20px 0;
    border-top: 1px solid var(--atp-border);
}
.atp__qblock:first-child { border-top: none; padding-top: 8px; }

.atp__qlabel {
    display: flex; align-items: baseline; gap: 14px;
    margin-bottom: 14px;
}
.atp__qnum {
    font-family: var(--atp-font-mono);
    font-size: 11px; letter-spacing: 0.16em; color: var(--atp-red);
    font-weight: 600;
}
.atp__qtext {
    font-family: var(--atp-font-display);
    font-size: 22px; font-weight: 400; letter-spacing: -0.01em;
    color: var(--atp-navy);
}

.atp__options { display: grid; gap: 10px; }
.atp__options--4 { grid-template-columns: repeat(4, 1fr); }
.atp__options--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 780px) {
    .atp__options--4, .atp__options--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
    .atp__options--4, .atp__options--3 { grid-template-columns: 1fr; }
}

.atp__opt {
    position: relative;
    background: var(--atp-panel);
    border: 1px solid var(--atp-border);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
    transition: transform .2s var(--atp-ease), border-color .2s var(--atp-ease), box-shadow .2s var(--atp-ease), background .2s var(--atp-ease);
    display: flex; flex-direction: column; gap: 2px;
    min-height: 62px; justify-content: center;
}
.atp__opt:hover {
    border-color: rgba(18,18,37,0.25);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(18,18,37,0.06);
}
.atp__opt--selected {
    border-color: var(--atp-red);
    background: var(--atp-panel);
    box-shadow: 0 0 0 1px var(--atp-red), 0 10px 24px rgba(255,72,72,0.12);
}
.atp__opt-title { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; color: var(--atp-navy); }
.atp__opt-hint {
    font-family: var(--atp-font-mono);
    font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--atp-mute); font-weight: 500;
}
.atp__opt--selected .atp__opt-hint { color: var(--atp-red); }

/* ── Actions ── */
.atp__actions {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; margin-top: 28px; padding-top: 24px;
    border-top: 1px solid var(--atp-border);
    flex-wrap: wrap;
}
.atp__helper {
    font-family: var(--atp-font-mono);
    font-size: 12px; color: var(--atp-mute); letter-spacing: 0.02em;
}
.atp__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 14px; font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    color: var(--atp-navy);
    transition: all .25s var(--atp-ease);
    text-decoration: none;
    font-family: inherit;
    letter-spacing: 0.01em;
}
.atp__btn--ghost { color: var(--atp-navy); border-color: var(--atp-border-2); background: var(--atp-panel); }
.atp__btn--ghost:hover { border-color: var(--atp-navy); }
.atp__btn--primary { background: var(--atp-red); color: #fff; box-shadow: 0 10px 28px rgba(255,72,72,0.28); }
.atp__btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(255,72,72,0.38); background: #ff5a5a; }
.atp__arrow { font-size: 16px; line-height: 1; }

/* ── Plan view ── */
.atp__plan-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 28px; margin-bottom: 28px; flex-wrap: wrap;
}
.atp__plan-intro { max-width: 720px; }
.atp__plan-title {
    font-family: var(--atp-font-display);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 400;
    letter-spacing: -0.015em;
    margin: 0 0 10px;
    line-height: 1.1;
    color: var(--atp-navy);
}
.atp__plan-sub { font-size: 16px; color: var(--atp-dim); margin: 0; line-height: 1.55; }
.atp__plan-sub strong { color: var(--atp-navy); font-weight: 600; }

.atp__profile {
    background: var(--atp-panel);
    border: 1px solid var(--atp-border-2);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex; flex-direction: column; gap: 10px;
    min-width: 220px;
}
.atp__profile-row { display: flex; justify-content: space-between; gap: 18px; font-size: 13px; align-items: baseline; }
.atp__profile-k {
    font-family: var(--atp-font-mono);
    color: var(--atp-mute); letter-spacing: 0.12em; text-transform: uppercase;
    font-size: 10.5px;
}
.atp__profile-v { font-weight: 600; color: var(--atp-navy); }

/* ── Stats ── */
.atp__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px; margin-bottom: 40px;
}
@media (max-width: 720px) { .atp__stats { grid-template-columns: 1fr 1fr; } }
.atp__stat {
    background: var(--atp-panel);
    border: 1px solid var(--atp-border);
    border-radius: 14px;
    padding: 16px 20px;
}
.atp__stat-k {
    font-family: var(--atp-font-mono);
    font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--atp-mute); margin-bottom: 8px;
}
.atp__stat-v {
    font-family: var(--atp-font-display);
    font-size: 28px; font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--atp-navy);
}

/* ── Timeline / Phases ── */
.atp__timeline {
    position: relative;
    display: flex; flex-direction: column; gap: 16px;
    margin-bottom: 32px;
}
.atp__phase {
    position: relative;
    background: var(--atp-panel);
    border: 1px solid var(--atp-border);
    border-radius: 20px;
    padding: 28px 30px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(14px);
    animation: atpPhaseIn .55s var(--atp-ease) forwards;
}
.atp__phase::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--atp-red);
    opacity: 0.9;
}
@keyframes atpPhaseIn { to { opacity: 1; transform: none; } }

.atp__phase-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 6px; flex-wrap: wrap;
}
.atp__phase-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--atp-red-soft);
    border: 1px solid rgba(255,72,72,0.3);
    color: var(--atp-red);
    font-family: var(--atp-font-mono);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
}
.atp__phase-badge-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.atp__phase-title {
    font-family: var(--atp-font-display);
    font-size: 26px; font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--atp-navy);
}
.atp__phase-meta {
    margin-left: auto;
    font-family: var(--atp-font-mono);
    font-size: 11px; color: var(--atp-mute);
    letter-spacing: 0.08em; text-transform: uppercase;
}
.atp__phase-goal {
    font-size: 15px; color: var(--atp-dim); line-height: 1.6;
    margin: 10px 0 18px;
    max-width: 860px;
}

/* Phase rationale chip (why this phase matters for their profile) */
.atp__phase-rationale {
    display: inline-flex;
    gap: 8px; align-items: center;
    margin-bottom: 22px;
    padding: 8px 14px;
    background: var(--atp-cream);
    border-radius: 999px;
    font-family: var(--atp-font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--atp-navy);
}
.atp__phase-rationale-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--atp-red);
}

.atp__agents {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
@media (max-width: 960px) { .atp__agents { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .atp__agents { grid-template-columns: 1fr; } }

.atp__agent {
    background: var(--atp-bg-2);
    border: 1px solid var(--atp-border);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex; gap: 12px; align-items: flex-start;
    transition: border-color .25s var(--atp-ease), transform .25s var(--atp-ease), background .25s var(--atp-ease);
    position: relative;
}
.atp__agent:hover {
    border-color: var(--atp-red);
    transform: translateY(-1px);
    background: var(--atp-panel);
}
.atp__agent-icon {
    flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--atp-cream);
    border: 1px solid rgba(255,72,72,0.2);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--atp-red);
}
.atp__agent-icon svg { width: 18px; height: 18px; }
.atp__agent-body { min-width: 0; flex: 1; }
.atp__agent-header {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 8px; margin-bottom: 2px;
}
.atp__agent-name {
    font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
    color: var(--atp-navy);
}
.atp__agent-score {
    font-family: var(--atp-font-mono);
    font-size: 10px; letter-spacing: 0.08em;
    color: var(--atp-red);
    font-weight: 600;
}
.atp__agent-tagline {
    font-size: 12.5px; color: var(--atp-dim); line-height: 1.45;
    margin-bottom: 8px;
}
.atp__agent-metric {
    font-family: var(--atp-font-mono);
    font-size: 10.5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--atp-panel);
    border: 1px solid var(--atp-border-2);
    color: var(--atp-navy);
    display: inline-block;
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* ── Integration insight ── */
.atp__integration {
    background: var(--atp-navy);
    border-radius: 14px;
    padding: 18px 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    color: #f4f4fa;
}
@media (max-width: 720px) { .atp__integration { grid-template-columns: 1fr; } }

.atp__integration-col { display: flex; gap: 14px; align-items: flex-start; }
.atp__integration-icon {
    flex-shrink: 0;
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.08);
    display: inline-flex; align-items: center; justify-content: center;
    color: #ff9b88;
}
.atp__integration-icon svg { width: 16px; height: 16px; }
.atp__integration-body { min-width: 0; flex: 1; }
.atp__integration-label {
    font-family: var(--atp-font-mono);
    font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    color: #9b9bb5; font-weight: 500;
    margin-bottom: 4px;
}
.atp__integration-text { font-size: 13.5px; line-height: 1.5; color: #e8e8f2; }
.atp__integration-text strong { color: #fff; font-weight: 600; }

/* ── Deploy bar ── */
.atp__deploy {
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px; padding: 24px 28px;
    background: var(--atp-navy);
    color: #fff;
    border-radius: 18px;
    flex-wrap: wrap;
}
.atp__deploy-title {
    font-family: var(--atp-font-display);
    font-size: 22px; font-weight: 400; letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.atp__deploy-sub { font-size: 14px; color: #c4c4d4; line-height: 1.5; max-width: 620px; }
.atp__deploy-cta { display: flex; gap: 10px; flex-shrink: 0; }
.atp__deploy .atp__btn--ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,0.25); }
.atp__deploy .atp__btn--ghost:hover { border-color: #fff; }

@media (max-width: 720px) {
    .atp { padding: 120px 18px 80px; }
    .atp__plan-head { flex-direction: column; }
    .atp__profile { width: 100%; }
    .atp__deploy { flex-direction: column; align-items: stretch; }
    .atp__deploy-cta { justify-content: space-between; }
    .atp__phase { padding: 24px 22px; }
}
