/* Predictive & Preventive Analytics — dual-report layout */

:root {
    --ppd-ink: #0f1b33;
    --ppd-muted: #5b6b78;
    --ppd-line: rgba(15, 27, 51, 0.1);
    --ppd-orange: #ff6500;
    --ppd-pred: #0e7a92;
    --ppd-pred-soft: #e6f6fa;
    --ppd-prev: #1d6b4f;
    --ppd-prev-soft: #e7f5ef;
    --ppd-warn: #c2410c;
    --ppd-paper: #f4f7fa;
    --ppd-snow: #ffffff;
    --ppd-font: "Plus Jakarta Sans", Inter, sans-serif;
}

.ppd-body {
    overflow-x: clip;
    background: #ffffff;
    color: var(--ppd-ink);
}

.ppd-body,
.ppd-body h1,
.ppd-body h2,
.ppd-body h3,
.ppd-body h4,
.ppd-body p,
.ppd-body li,
.ppd-body span,
.ppd-body a,
.ppd-body strong,
.ppd-body em,
.ppd-body b {
    font-family: var(--ppd-font);
}

.ppd-badge {
    display: inline-flex;
    align-items: center;
    margin: 0 0 18px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    background-image:
        linear-gradient(90deg, #ffe8d6 0%, #ffffff 48%, #dceeff 100%),
        linear-gradient(90deg, #ffb07a 0%, #9ec9f5 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: var(--ppd-orange);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ppd-eyebrow {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ppd-orange);
}

.ppd-lead {
    margin: 12px 0 0;
    max-width: 40rem;
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 600;
    color: #475569;
}

.ppd-chip {
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ppd-chip.is-pred {
    background: var(--ppd-pred-soft);
    color: var(--ppd-pred);
}

.ppd-chip.is-prev {
    background: var(--ppd-prev-soft);
    color: var(--ppd-prev);
}

/* ——— Hero ——— */
.ppd-hero {
    position: relative;
    overflow: hidden;
    padding: 148px 0 72px;
    background: #ffffff;
}

.ppd-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 48% 52% at 78% 42%, rgba(147, 197, 253, 0.28), transparent 70%),
        radial-gradient(ellipse 36% 40% at 92% 70%, rgba(255, 178, 120, 0.22), transparent 72%),
        radial-gradient(ellipse 30% 34% at 62% 18%, rgba(125, 211, 252, 0.16), transparent 70%);
}

.ppd-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 36px 48px;
    align-items: center;
    max-width: 1200px;
}

.ppd-hero-copy h1 {
    margin: 0 0 28px;
    font-size: clamp(2.4rem, 4.6vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.08;
    color: var(--ppd-ink);
}

.ppd-hero-copy h1 span {
    color: var(--ppd-orange);
}

.ppd-hero-lead {
    margin: -12px 0 28px;
    max-width: 36rem;
    font-size: 1.08rem;
    line-height: 1.55;
    font-weight: 600;
    color: #475569;
}

.ppd-hero-benefits {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 12px;
    max-width: 36rem;
}

.ppd-hero-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 600;
    color: #334155;
}

.ppd-hero-benefits i {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 101, 0, 0.12);
    color: var(--ppd-orange);
    font-size: 0.95rem;
}

.ppd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ppd-hero-actions .btn-outline-dark {
    border: 1.5px solid rgba(15, 27, 51, 0.18);
    background: #fff;
    color: var(--ppd-ink);
}

.ppd-hero-actions .btn-outline-dark:hover {
    border-color: var(--ppd-ink);
}

.ppd-hero-visual {
    position: relative;
    min-height: 380px;
    display: grid;
    place-items: center;
}

.ppd-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}

.ppd-hero-glow-a {
    width: 260px;
    height: 260px;
    right: 6%;
    top: 4%;
    background: rgba(125, 211, 252, 0.35);
}

.ppd-hero-glow-b {
    width: 200px;
    height: 200px;
    right: 18%;
    bottom: 2%;
    background: rgba(253, 186, 116, 0.28);
}

.ppd-hero-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(100%, 540px);
    padding: 18px 12px 28px;
}

.ppd-hero-photo {
    position: relative;
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #f3f7fb;
    aspect-ratio: 16 / 9;
    box-shadow:
        0 28px 60px rgba(15, 27, 51, 0.2),
        0 0 0 1px rgba(15, 27, 51, 0.08);
}

.ppd-hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.ppd-hero-photo-caption {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(7, 16, 24, 0.16);
}

.ppd-hero-photo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}

.ppd-float-card {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 27, 51, 0.08);
    box-shadow: 0 14px 30px rgba(15, 27, 51, 0.14);
    font-size: 0.82rem;
    font-weight: 700;
    animation: ppdFloat 4.8s ease-in-out infinite;
}

.ppd-float-top {
    top: 0;
    right: 0;
}

.ppd-float-bot {
    left: 0;
    bottom: 0;
    animation-delay: -2.2s;
}

.ppd-float-ico {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1rem;
}

.ppd-float-ico.is-pred { background: var(--ppd-orange); }
.ppd-float-ico.is-prev { background: var(--ppd-pred); }

@keyframes ppdFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.ppd-anim {
    animation: ppdIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ppd-hero-visual.ppd-anim {
    animation-delay: 0.12s;
}

@keyframes ppdIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

/* ——— Dual mode ——— */
.ppd-dual {
    padding: 28px 0 20px;
    background:
        radial-gradient(ellipse 50% 40% at 0% 0%, rgba(14, 122, 146, 0.07), transparent 60%),
        radial-gradient(ellipse 45% 35% at 100% 10%, rgba(29, 107, 79, 0.07), transparent 55%),
        var(--ppd-paper);
}

.ppd-dual-head {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 28px;
}

.ppd-dual-head h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3.2vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ppd-ink);
}

.ppd-dual-head h2 span {
    color: var(--ppd-prev);
}

.ppd-dual-head .ppd-lead {
    margin-left: auto;
    margin-right: auto;
}

.ppd-modebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto 28px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--ppd-line);
    box-shadow: 0 10px 30px rgba(15, 27, 51, 0.06);
    position: sticky;
    top: 72px;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.ppd-mode {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: #64748b;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.ppd-mode i {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    background: #eef2f6;
    color: #64748b;
}

.ppd-mode strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    color: inherit;
}

.ppd-mode em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.85;
}

.ppd-mode.is-active[data-mode="predictive"] {
    background: linear-gradient(135deg, #0e7a92, #0891b2);
    color: #fff;
    box-shadow: 0 10px 24px rgba(14, 122, 146, 0.28);
}

.ppd-mode.is-active[data-mode="predictive"] i {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.ppd-mode.is-active[data-mode="preventive"] {
    background: linear-gradient(135deg, #1d6b4f, #15803d);
    color: #fff;
    box-shadow: 0 10px 24px rgba(29, 107, 79, 0.28);
}

.ppd-mode.is-active[data-mode="preventive"] i {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.ppd-panel {
    display: none;
    animation: ppdPanelIn 0.45s ease both;
}

.ppd-panel.is-active {
    display: block;
}

@keyframes ppdPanelIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.ppd-panel-story {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: stretch;
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--ppd-line);
    box-shadow: 0 18px 50px rgba(15, 27, 51, 0.07);
}

.ppd-panel-story.is-flip {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.ppd-panel-story.is-flip .ppd-story-copy {
    order: 2;
}

.ppd-panel-story.is-flip .ppd-story-board {
    order: 1;
}

.ppd-story-copy h3 {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.ppd-story-copy > p {
    margin: 0 0 22px;
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 550;
    color: #475569;
}

.ppd-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.ppd-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--ppd-pred-soft);
    font-size: 0.92rem;
    font-weight: 700;
    color: #134e5a;
}

.ppd-steps li b {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--ppd-pred);
    color: #fff;
    font-size: 0.72rem;
}

.ppd-steps.is-prev li {
    background: var(--ppd-prev-soft);
    color: #14532d;
}

.ppd-steps.is-prev li b {
    background: var(--ppd-prev);
}

/* Live board mock */
.ppd-story-board {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background:
        linear-gradient(160deg, #f0f9fb 0%, #ffffff 45%, #fff7ed 100%);
    border: 1px solid rgba(14, 122, 146, 0.15);
}

.ppd-story-board.is-prev {
    background:
        linear-gradient(160deg, #eef8f3 0%, #ffffff 48%, #f7faf8 100%);
    border-color: rgba(29, 107, 79, 0.15);
}

.ppd-board-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.ppd-board-top span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.ppd-board-top strong {
    display: block;
    margin-top: 4px;
    font-size: 1.1rem;
    color: var(--ppd-ink);
}

.ppd-pill {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.ppd-pill.is-warn {
    background: rgba(194, 65, 12, 0.12);
    color: var(--ppd-warn);
}

.ppd-pill.is-ok {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.ppd-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ppd-kpi-row div {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--ppd-line);
}

.ppd-kpi-row em {
    display: block;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
}

.ppd-kpi-row b {
    display: block;
    margin-top: 4px;
    font-size: 1.05rem;
    color: var(--ppd-ink);
}

.ppd-kpi-row b.is-high { color: #dc2626; }
.ppd-kpi-row b.is-orange { color: var(--ppd-orange); }

.ppd-spark {
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--ppd-line);
}

.ppd-spark-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.ppd-zoom {
    display: inline-flex;
    gap: 4px;
}

.ppd-zoom i {
    font-style: normal;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #64748b;
}

.ppd-zoom i.is-on {
    background: var(--ppd-pred);
    color: #fff;
}

.ppd-spark svg {
    display: block;
    width: 100%;
    height: 110px;
    border-radius: 10px;
    background: #f8fafc;
}

.ppd-spark .lim {
    fill: none;
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
}

.ppd-spark .lim.max { stroke: #f97316; }
.ppd-spark .lim.min { stroke: #38bdf8; }

.ppd-spark .act {
    fill: none;
    stroke: var(--ppd-pred);
    stroke-width: 2.6;
    stroke-linecap: round;
}

.ppd-spark .fc {
    fill: none;
    stroke: var(--ppd-orange);
    stroke-width: 2.6;
    stroke-dasharray: 5 4;
    stroke-linecap: round;
}

.ppd-spark circle {
    fill: var(--ppd-orange);
}

.ppd-spark-note {
    margin: 8px 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ppd-warn);
}

.ppd-action-strip {
    padding: 14px;
    border-radius: 16px;
    background: #0f1b33;
    color: #fff;
}

.ppd-action-strip strong {
    display: block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ppd-action-strip ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.ppd-action-strip li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 700;
}

.ppd-action-strip em {
    font-style: normal;
    color: #fdba74;
    font-size: 0.75rem;
}

/* Preventive schedule mock */
.ppd-sched {
    display: grid;
    gap: 8px;
}

.ppd-sched-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--ppd-line);
}

.ppd-sched-day {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
}

.ppd-sched-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--ppd-ink);
}

.ppd-sched-item em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.ppd-sched-item > b {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
}

.ppd-sched-item.is-over .ppd-sched-day {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.ppd-sched-item.is-over > b {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.ppd-sched-item.is-soon .ppd-sched-day {
    background: rgba(217, 119, 6, 0.14);
    color: #d97706;
}

.ppd-sched-item.is-soon > b {
    background: rgba(217, 119, 6, 0.14);
    color: #d97706;
}

.ppd-mail-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(29, 107, 79, 0.1);
    color: var(--ppd-prev);
}

.ppd-mail-card i {
    font-size: 1.4rem;
}

.ppd-mail-card strong {
    display: block;
    font-size: 0.88rem;
}

.ppd-mail-card span {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.85;
}

/* Feature rail — horizontal scroll on mobile */
.ppd-feat-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.ppd-feat-rail article {
    padding: 20px 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--ppd-line);
    border-top: 3px solid var(--ppd-pred);
    box-shadow: 0 8px 24px rgba(15, 27, 51, 0.04);
}

.ppd-feat-rail.is-prev article {
    border-top-color: var(--ppd-prev);
}

.ppd-feat-rail i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--ppd-pred-soft);
    color: var(--ppd-pred);
    font-size: 1.25rem;
}

.ppd-feat-rail.is-prev i {
    background: var(--ppd-prev-soft);
    color: var(--ppd-prev);
}

.ppd-feat-rail h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 800;
}

.ppd-feat-rail p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    font-weight: 550;
    color: #475569;
}

/* Benefit band */
.ppd-benefit-band {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 24px;
    padding: 28px;
    border-radius: 28px;
    align-items: center;
}

.ppd-benefit-band.is-pred {
    background: linear-gradient(120deg, #0b4f5c 0%, #0e7a92 55%, #155e75 100%);
    color: #fff;
}

.ppd-benefit-band.is-prev {
    background: linear-gradient(120deg, #14532d 0%, #1d6b4f 55%, #166534 100%);
    color: #fff;
}

.ppd-benefit-band .ppd-chip.is-pred,
.ppd-benefit-band .ppd-chip.is-prev {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.ppd-benefit-intro h3 {
    margin: 0;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.ppd-benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ppd-benefit-list li {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.ppd-benefit-list strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.ppd-benefit-list span {
    display: block;
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 550;
    opacity: 0.9;
}

/* ——— Together / fork ——— */
.ppd-together {
    padding: 64px 0;
    background: #ffffff;
}

.ppd-together-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 32px;
}

.ppd-together-head h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ppd-together-head .ppd-lead {
    margin-left: auto;
    margin-right: auto;
}

.ppd-fork {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: stretch;
}

.ppd-fork-card {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--ppd-line);
    background: #fff;
    box-shadow: 0 12px 36px rgba(15, 27, 51, 0.05);
}

.ppd-fork-card.is-pred {
    border-top: 4px solid var(--ppd-pred);
}

.ppd-fork-card.is-prev {
    border-top: 4px solid var(--ppd-prev);
}

.ppd-fork-card header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.ppd-fork-card header i {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
}

.ppd-fork-card.is-pred header i {
    background: var(--ppd-pred-soft);
    color: var(--ppd-pred);
}

.ppd-fork-card.is-prev header i {
    background: var(--ppd-prev-soft);
    color: var(--ppd-prev);
}

.ppd-fork-card header strong {
    display: block;
    font-size: 1.05rem;
}

.ppd-fork-card header span {
    display: block;
    margin-top: 2px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}

.ppd-fork-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.ppd-fork-card li {
    position: relative;
    padding-left: 18px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    color: #334155;
}

.ppd-fork-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ppd-pred);
}

.ppd-fork-card.is-prev li::before {
    background: var(--ppd-prev);
}

.ppd-fork-mid {
    align-self: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--ppd-orange), #fb923c);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.25;
    box-shadow: 0 12px 28px rgba(255, 101, 0, 0.3);
}

/* ——— Problem / solution ——— */
.ppd-fixes {
    padding: 20px 0 72px;
    background: var(--ppd-paper);
}

.ppd-fixes-head {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 28px;
}

.ppd-fixes-head h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.ppd-fixes-head h2 span {
    color: var(--ppd-pred);
}

.ppd-fixes-head p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
}

.ppd-fixes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ppd-fix {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: stretch;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--ppd-line);
    box-shadow: 0 10px 28px rgba(15, 27, 51, 0.05);
}

.ppd-problem,
.ppd-solution {
    padding: 16px;
    border-radius: 16px;
}

.ppd-problem {
    background: #fff5f5;
}

.ppd-solution {
    background: #f0fdf9;
}

.ppd-fix-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ppd-fix-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #64748b;
    font-size: 1.1rem;
    border: 1px solid var(--ppd-line);
}

.ppd-fix-head span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.ppd-fix-rows {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    gap: 6px;
}

.ppd-fix-rows li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
}

.ppd-fix-rows em {
    font-style: normal;
    font-size: 0.72rem;
    opacity: 0.8;
}

.ppd-fix-rows .is-miss em { color: #dc2626; }
.ppd-fix-rows .is-ok em { color: #15803d; }
.ppd-fix-rows .is-now em { color: var(--ppd-orange); }

.ppd-fix h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
}

.ppd-fix p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    font-weight: 550;
    color: #475569;
}

.ppd-fix-join {
    align-self: center;
    font-size: 1.4rem;
    color: #94a3b8;
}

/* ——— Close ——— */
.ppd-close {
    padding: 0 0 72px;
    background: var(--ppd-paper);
}

.ppd-close-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px 40px;
    margin-top: 8px;
    padding: 40px 44px;
    border-radius: 28px;
    background:
        radial-gradient(ellipse 70% 120% at 100% 0%, rgba(14, 124, 107, 0.28), transparent 55%),
        linear-gradient(135deg, #0a1628 0%, #122a4a 55%, #0e7c6b 120%);
    color: #fff;
    box-shadow: 0 22px 48px rgba(12, 18, 40, 0.28);
}

.ppd-close-copy {
    max-width: 36rem;
    text-align: left;
}

.ppd-close-inner h2 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #fff;
}

.ppd-close-copy > p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    font-weight: 550;
    color: rgba(255, 255, 255, 0.72);
}

.ppd-close-inner .btn-primary {
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(255, 101, 0, 0.35);
}

/* Reveals */
.ppd-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.ppd-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .ppd-anim,
    .ppd-panel,
    .ppd-float-card,
    .ppd-reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ——— Tablet ——— */
@media (max-width: 980px) {
    .ppd-hero {
        padding: 120px 0 56px;
        text-align: center;
    }

    .ppd-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ppd-hero-copy {
        max-width: 40rem;
        margin: 0 auto;
        padding: 0 4px;
    }

    .ppd-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .ppd-hero-copy h1 {
        text-align: center;
        font-size: clamp(2rem, 7vw, 2.75rem);
        margin-bottom: 22px;
    }

    .ppd-hero-lead {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .ppd-hero-benefits {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .ppd-hero-actions {
        justify-content: center;
    }

    .ppd-hero-visual {
        min-height: 0;
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
    }

    .ppd-hero-glow {
        display: none;
    }

    .ppd-hero-stage {
        max-width: 100%;
        padding: 12px 4px 18px;
    }

    .ppd-panel-story,
    .ppd-panel-story.is-flip,
    .ppd-benefit-band,
    .ppd-fork,
    .ppd-fixes-grid {
        grid-template-columns: 1fr;
    }

    .ppd-panel-story.is-flip .ppd-story-copy,
    .ppd-panel-story.is-flip .ppd-story-board {
        order: initial;
    }

    .ppd-fork-mid {
        width: 92px;
        height: 92px;
        min-width: 92px;
        min-height: 92px;
        border-radius: 50%;
        padding: 10px;
        margin: 4px auto;
        justify-self: center;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .ppd-fix {
        grid-template-columns: 1fr;
    }

    .ppd-fix-join {
        transform: rotate(90deg);
        justify-self: center;
    }

    .ppd-feat-rail {
        grid-template-columns: 1fr 1fr;
    }

    .ppd-benefit-list {
        grid-template-columns: 1fr;
    }

    .ppd-close-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 32px 28px;
        margin-top: 28px;
    }

    .ppd-close-copy {
        max-width: none;
        text-align: center;
    }

    .ppd-close-inner .btn-primary {
        width: auto;
        align-self: center;
        justify-content: center;
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* ——— Mobile ——— */
@media (max-width: 720px) {
    .ppd-hero {
        padding: 120px 0 48px;
        text-align: center;
    }

    .ppd-hero-copy h1 {
        text-align: center;
    }

    .ppd-hero-actions {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ppd-hero-actions .btn {
        width: auto;
        justify-content: center;
        white-space: nowrap;
        min-height: 0;
        padding: 11px 20px;
        font-size: 0.95rem;
        gap: 6px;
    }

    .ppd-float-card {
        max-width: min(180px, 52%);
        padding: 8px 10px;
        font-size: 0.74rem;
        white-space: normal;
        line-height: 1.25;
    }

    .ppd-modebar {
        top: 64px;
        max-width: none;
        gap: 6px;
        padding: 5px;
    }

    .ppd-mode {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }

    .ppd-mode i {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    .ppd-mode strong {
        font-size: 0.88rem;
    }

    .ppd-mode em {
        font-size: 0.68rem;
        line-height: 1.3;
    }

    .ppd-panel-story {
        padding: 16px;
        border-radius: 22px;
        gap: 18px;
    }

    .ppd-kpi-row {
        grid-template-columns: 1fr;
    }

    .ppd-sched-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .ppd-sched-item > b {
        grid-column: 2;
        justify-self: start;
    }

    .ppd-feat-rail {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        margin-inline: -4px;
        padding-inline: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .ppd-feat-rail article {
        flex: 0 0 min(78vw, 280px);
        scroll-snap-align: start;
    }

    .ppd-benefit-band {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .ppd-fork-card {
        padding: 18px;
    }

    .ppd-fork-mid {
        width: 88px;
        height: 88px;
        min-width: 88px;
        min-height: 88px;
        border-radius: 50%;
        font-size: 0.68rem;
        line-height: 1.2;
        padding: 8px;
    }

    .ppd-fixes {
        padding-bottom: 48px;
    }

    .ppd-fix {
        padding: 12px;
    }
}

@media (max-width: 560px) {
    .ppd-hero {
        padding: 112px 0 32px;
        overflow-x: clip;
    }

    .ppd-hero-grid {
        gap: 28px;
    }

    .ppd-hero-copy h1 {
        text-align: center;
        font-size: 1.9rem;
        line-height: 1.15;
        margin-bottom: 22px;
    }

    .ppd-badge {
        margin-left: auto;
        margin-right: auto;
        padding: 8px 16px;
    }

    .ppd-hero-benefits {
        gap: 10px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 24px;
        text-align: left;
        max-width: 28rem;
    }

    .ppd-hero-benefits li {
        font-size: 0.95rem;
    }

    .ppd-hero-actions {
        justify-content: center;
        margin-bottom: 8px;
    }

    .ppd-hero-actions .btn {
        width: auto;
        justify-content: center;
        white-space: nowrap;
        padding: 11px 20px;
        font-size: 0.95rem;
        gap: 6px;
    }

    .ppd-close-inner {
        padding: 28px 20px;
        gap: 18px;
    }

    .ppd-close-inner .btn-primary {
        width: auto;
        align-self: center;
        justify-content: center;
        padding: 12px 22px;
        font-size: 0.95rem;
        gap: 6px;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    .ppd-mode em {
        display: none;
    }

    .ppd-action-strip li {
        flex-direction: column;
        gap: 2px;
    }
}
