/* Homepage Redesign — Tailored to Gemini Frontend Design
 * Scoped under body.home-redesign so inner pages stay untouched until rollout.
 */

body.home-redesign {
    --home-bg: #f6f8fb;
    --home-surface: #ffffff;
    --home-ink: #0b192c;
    --home-ink-soft: #26364d;
    --home-muted: #52627a;
    --home-line: #dce5f0;
    --home-line-strong: #c4d2e3;
    --home-navy: #0c1d34;
    --home-navy-soft: #142a47;
    --home-accent: #e86b0b;
    --home-accent-hover: #cf5b04;
    --home-accent-soft: #fff2e6;
    --home-green: #0a8464;
    --home-green-soft: #e8f6f1;
    --home-blue: #2563eb;
    --home-blue-soft: #edf4ff;

    /* Strict 3-size body scale (Hero H1 and brand wordmark exempt) */
    --text-heading: clamp(28px, 2.8vw, 38px);
    --text-body: 16px;
    --text-sm: 14px;

    background: var(--home-surface);
    color: var(--home-ink);
    font-size: var(--text-body);
    line-height: 1.65;
    font-variant-numeric: tabular-nums;
}

body.home-redesign h1,
body.home-redesign h2,
body.home-redesign h3 {
    text-wrap: balance;
}

body.home-redesign p,
body.home-redesign li {
    text-wrap: pretty;
}

body.home-redesign .container {
    width: min(1160px, calc(100% - 48px));
}

/* 1. Borderless Header Bleeding into Hero, Clean Separation on Scroll */
body.home-redesign .header {
    height: 74px;
    border-bottom: 1px solid transparent;
    background: transparent;
    backdrop-filter: none;
    transition: background-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
                border-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.home-redesign .header.is-scrolled {
    border-bottom-color: rgba(208, 220, 234, 0.92);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(11, 25, 44, 0.05);
}

body.home-redesign .brand-lockup strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--home-ink);
}

body.home-redesign .footer .brand-lockup strong {
    color: #ffffff;
}

body.home-redesign .brand-lockup small {
    font-size: 13px;
    font-weight: 500;
    color: var(--home-muted);
    margin-top: 2px;
}

body.home-redesign .nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--home-ink-soft);
}

body.home-redesign .nav-link:hover,
body.home-redesign .nav-link.active {
    color: var(--home-accent);
}

body.home-redesign .nav-link.active::after {
    bottom: -24px;
    width: 18px;
    height: 2px;
}

body.home-redesign .btn {
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: 7px;
    transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
                border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
                color 180ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.home-redesign .btn-primary {
    background: var(--home-accent);
    border-color: var(--home-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(232, 107, 11, 0.22);
}

body.home-redesign .btn-primary:hover {
    background: var(--home-accent-hover);
    border-color: var(--home-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(232, 107, 11, 0.28);
}

body.home-redesign .btn-large {
    min-height: 50px;
    padding: 0 28px;
    font-size: var(--text-body);
}

/* 2. Monumental Centered Hero + Wide Interactive Workbench Stage */
body.home-redesign .hero {
    padding: 124px 0 88px;
    background:
        radial-gradient(ellipse 80% 55% at 50% -10%, rgba(232, 107, 11, 0.085), transparent 68%),
        radial-gradient(ellipse 65% 45% at 88% 12%, rgba(37, 99, 235, 0.065), transparent 62%),
        linear-gradient(180deg, #f9fbfe 0%, #f1f6fc 62%, #ffffff 100%);
    overflow: hidden;
}

body.home-redesign .hero::after {
    display: none;
}

.home-hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-hero-copy {
    max-width: 820px;
    margin: 0 auto 44px;
}

body.home-redesign .hero h1 {
    max-width: none;
    margin: 0 auto 20px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--home-ink);
}

body.home-redesign .hero-description {
    max-width: 680px;
    margin: 0 auto 30px;
    color: var(--home-muted);
    font-size: var(--text-body);
    line-height: 1.75;
    text-wrap: balance;
}

body.home-redesign .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px 24px;
    margin-bottom: 0;
}

.hero-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 4px;
    color: var(--home-ink-soft);
    font-size: var(--text-body);
    font-weight: 600;
    border-bottom: 1px solid var(--home-line-strong);
    transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1),
                border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-secondary-link:hover {
    color: var(--home-accent);
    border-bottom-color: var(--home-accent);
}

.hero-secondary-link i {
    font-size: 15px;
    color: var(--home-muted);
    transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-secondary-link:hover i {
    color: var(--home-accent);
}

/* Interactive Workbench Stage (100% legible >= 13px above the fold) */
.workbench-stage {
    width: 100%;
    text-align: left;
    border: 1px solid var(--home-line-strong);
    border-radius: 12px;
    background: var(--home-surface);
    box-shadow: 0 32px 72px rgba(11, 25, 44, 0.11), 0 4px 16px rgba(11, 25, 44, 0.04);
    overflow: hidden;
}

.workbench-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--home-line);
    background: #f9fbfd;
    flex-wrap: wrap;
}

.workbench-store {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--home-ink);
}

.workbench-store strong {
    white-space: nowrap;
}

.workbench-store img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.workbench-store span {
    color: var(--home-muted);
    font-weight: 500;
}

/* Connected Segmented Control (non-button cluster) */
.workbench-tabs {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: #eef3f9;
}

.workbench-tab {
    position: relative;
    min-height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--home-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
                color 180ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.workbench-tab:hover {
    color: var(--home-ink);
}

.workbench-tab[aria-selected="true"] {
    background: var(--home-surface);
    color: var(--home-ink);
    box-shadow: 0 2px 6px rgba(11, 25, 44, 0.08);
}

.workbench-body {
    background: var(--home-surface);
}

.workbench-panel {
    display: none;
    padding: 28px 32px;
    animation: workbenchFade 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.workbench-panel.is-active {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 32px;
    align-items: stretch;
}

@keyframes workbenchFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wb-main-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wb-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--home-line);
}

.wb-panel-head h3 {
    font-size: var(--text-body);
    font-weight: 700;
    color: var(--home-ink);
}

.wb-panel-head span {
    font-size: var(--text-sm);
    color: var(--home-muted);
}

.wb-kv-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

.wb-kv-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wb-kv-item dt {
    font-size: var(--text-sm);
    color: var(--home-muted);
}

.wb-kv-item dd {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--home-ink);
}

.wb-record-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.wb-record-table th {
    padding: 10px 14px 10px 0;
    border-bottom: 1px solid var(--home-line);
    color: var(--home-muted);
    font-weight: 600;
    text-align: left;
}

.wb-record-table td {
    padding: 13px 14px 13px 0;
    border-bottom: 1px solid #edf2f7;
    color: var(--home-ink);
    vertical-align: middle;
}

.wb-record-table th:last-child,
.wb-record-table td:last-child {
    padding-right: 0;
}

.wb-record-table tr:last-child td {
    border-bottom: 0;
}

.wb-record-table .num {
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

.wb-status-text {
    font-weight: 600;
    color: var(--home-green);
}

.wb-status-text.is-warn {
    color: var(--home-accent);
}

.wb-status-text.is-blue {
    color: var(--home-blue);
}

.wb-side-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border-radius: 8px;
    background: var(--home-bg);
    border: 1px solid var(--home-line);
}

.wb-side-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--home-ink);
    margin-bottom: 12px;
}

.wb-checklist {
    list-style: none;
    display: grid;
    gap: 12px;
    font-size: var(--text-sm);
    color: var(--home-ink-soft);
}

.wb-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wb-checklist i {
    margin-top: 4px;
    color: var(--home-accent);
    font-size: 14px;
    flex: 0 0 auto;
}

.wb-summary-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--home-line);
    font-size: var(--text-sm);
    color: var(--home-muted);
}

.wb-summary-footer strong {
    font-size: var(--text-heading);
    font-weight: 800;
    color: var(--home-ink);
    letter-spacing: -0.02em;
}

/* 3. Section Rhythm & Editorial Typography */
body.home-redesign .section {
    padding: 104px 0;
}

.home-section-head {
    max-width: 920px;
    margin: 0 auto 52px;
    text-align: center;
}

.home-section-head::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin: 20px auto 0;
    border-radius: 999px;
    background: var(--home-accent);
}

.workflow-section .home-section-head::after {
    background: #ff9f54;
}

.home-section-head h2 {
    margin: 0 0 14px;
    font-size: var(--text-heading);
    line-height: 1.22;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--home-ink);
}

.home-section-head p {
    margin: 0 auto;
    font-size: var(--text-body);
    color: var(--home-muted);
    line-height: 1.75;
}

/* 4. Pain Points — Centered Heading + Two Visual Comparison Showcases */
.home-pain-section {
    background: var(--home-surface);
    border-top: 1px solid var(--home-line);
}

.home-pain-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.pain-visual-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 32px;
    border: 1px solid var(--home-line);
    border-radius: 14px;
    background: var(--home-bg);
}

.pain-visual-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
    color: var(--home-ink);
}

.pain-visual-card ul {
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--home-muted);
    font-size: var(--text-body);
}

.pain-visual-card li {
    position: relative;
    padding-left: 16px;
}

.pain-visual-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--home-accent);
}

.pain-mini-stage {
    padding: 18px 20px;
    border-radius: 10px;
    background: var(--home-surface);
    border: 1px solid var(--home-line);
    display: grid;
    gap: 12px;
}

.pain-evidence-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--home-bg);
    font-size: var(--text-sm);
}

.pain-evidence-row strong {
    color: var(--home-ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.pain-evidence-row strong i {
    color: var(--home-accent);
}

.pain-evidence-row span {
    color: var(--home-green);
    font-weight: 600;
    white-space: nowrap;
}

.pain-rack-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.pain-rack-cell {
    padding: 12px;
    border-radius: 8px;
    background: var(--home-bg);
    border: 1px solid var(--home-line);
    text-align: center;
    font-size: var(--text-sm);
}

.pain-rack-cell.is-hit {
    background: var(--home-accent-soft);
    border-color: rgba(232, 107, 11, 0.45);
}

.pain-rack-cell strong {
    display: block;
    color: var(--home-ink);
    font-weight: 800;
}

.pain-rack-cell.is-hit strong {
    color: var(--home-accent-hover);
}

.pain-rack-cell span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--home-muted);
}

/* 5. Capabilities — Spotlight Row + Crisp 2x2 Divided Grid */
.home-capabilities-section {
    background: var(--home-bg);
}

.cap-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.cap-spotlight {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 36px;
    border: 1px solid var(--home-line);
    border-radius: 10px;
    background: var(--home-surface);
}

.cap-spotlight-icon {
    color: var(--home-accent);
    font-size: 22px;
    margin-bottom: 16px;
}

.cap-spotlight h3 {
    margin: 0 0 10px;
    font-size: var(--text-body);
    font-weight: 700;
    color: var(--home-ink);
}

.cap-spotlight p {
    margin: 0;
    color: var(--home-muted);
    font-size: var(--text-body);
    max-width: 48ch;
}

.cap-spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding-top: 18px;
    border-top: 1px solid var(--home-line);
    font-size: var(--text-sm);
    color: var(--home-ink-soft);
    font-weight: 600;
}

.cap-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--home-line);
    border-radius: 10px;
    background: var(--home-surface);
    overflow: hidden;
}

.cap-secondary-item {
    padding: 32px 36px;
    border-right: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
}

.cap-secondary-item:nth-child(2n) {
    border-right: 0;
}

.cap-secondary-item:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.cap-secondary-item h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: var(--text-body);
    font-weight: 700;
    color: var(--home-ink);
}

.cap-secondary-item h3 i {
    color: var(--home-accent);
    font-size: 16px;
}

.cap-secondary-item p {
    margin: 0;
    color: var(--home-muted);
    font-size: var(--text-body);
}

body.home-redesign .section-action {
    margin-top: 36px;
    justify-content: center;
}

body.home-redesign .text-link {
    font-size: var(--text-body);
    color: var(--home-accent);
}

/* 6. Workflow — Full-Bleed Deep Marine Track */
body.home-redesign .workflow-section {
    background: var(--home-navy);
    color: #fff;
}

body.home-redesign .workflow-section .home-section-head h2 {
    color: #fff;
}

body.home-redesign .workflow-section .home-section-head p {
    color: #a9bad0;
}

.workflow-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.workflow-track li {
    position: relative;
    padding: 32px 28px 12px 0;
}

.workflow-track li::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--home-accent);
    box-shadow: 0 0 0 4px rgba(232, 107, 11, 0.22);
}

.workflow-step-num {
    display: block;
    margin-bottom: 14px;
    color: #ff9f54;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.workflow-track strong {
    display: block;
    margin-bottom: 8px;
    font-size: var(--text-body);
    font-weight: 700;
    color: #fff;
}

.workflow-track p {
    margin: 0;
    color: #a9bad0;
    font-size: var(--text-body);
    line-height: 1.7;
}

/* 7. Start Options — Clean 3-Column Divided Strip (keeps .start-grid for analytics) */
body.home-redesign .start-section {
    background: var(--home-surface);
}

body.home-redesign .start-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
}

body.home-redesign .start-grid article {
    min-height: 0;
    padding: 36px 32px;
    border: 0;
    border-right: 1px solid var(--home-line);
    border-radius: 0;
    background: transparent;
}

body.home-redesign .start-grid article:first-child {
    padding-left: 0;
}

body.home-redesign .start-grid article:last-child {
    border-right: 0;
    padding-right: 0;
}

body.home-redesign .start-grid article > i {
    width: auto;
    height: auto;
    display: inline-block;
    margin-bottom: 18px;
    background: transparent;
    color: var(--home-accent);
    font-size: 20px;
}

body.home-redesign .start-grid h3 {
    margin-bottom: 8px;
    font-size: var(--text-body);
    font-weight: 700;
}

body.home-redesign .start-grid p {
    margin-bottom: 24px;
    color: var(--home-muted);
    font-size: var(--text-body);
}

.start-text-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--home-ink);
    font-size: var(--text-sm);
    font-weight: 700;
    border-bottom: 1px solid var(--home-line-strong);
    padding-bottom: 4px;
    transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1),
                border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.start-text-link:hover {
    color: var(--home-accent);
    border-bottom-color: var(--home-accent);
}

/* 8. Knowledge Articles — Editorial Clean Grid (preserves HOME_ARTICLES markers) */
body.home-redesign .home-articles {
    background: var(--home-bg);
}

body.home-redesign .home-articles-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 14px;
}

body.home-redesign .home-articles-heading h2 {
    margin: 0;
    font-size: var(--text-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.home-redesign .home-articles-heading > a {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--home-accent);
}

body.home-redesign .home-articles-categories {
    justify-content: center;
    margin-bottom: 32px;
    font-size: var(--text-sm);
}

body.home-redesign .home-articles-grid {
    gap: 20px;
}

body.home-redesign .home-articles-grid .knowledge-list-item {
    border: 1px solid var(--home-line);
    border-radius: 10px;
    background: var(--home-surface);
    transition: border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.home-redesign .home-articles-grid .knowledge-list-item:hover {
    border-color: var(--home-line-strong);
    transform: translateY(-2px);
}

body.home-redesign .home-articles-grid .knowledge-list-link {
    padding: 28px 30px;
}

body.home-redesign .home-articles-grid .knowledge-list-meta {
    font-size: var(--text-sm);
    color: var(--home-muted);
    margin-bottom: 10px;
}

body.home-redesign .home-articles-grid h3 {
    font-size: var(--text-body);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
}

body.home-redesign .home-articles-grid p {
    font-size: var(--text-body);
    color: var(--home-muted);
    margin-bottom: 16px;
}

body.home-redesign .home-articles-grid .knowledge-list-link > span {
    font-size: var(--text-sm);
    color: var(--home-accent);
}

/* 9. FAQ — Clean Reading Column */
body.home-redesign .faq-section {
    padding: 96px 0;
    background: var(--home-surface);
}

body.home-redesign .faq-section .section-heading {
    margin-bottom: 36px;
    padding-bottom: 18px;
    text-align: center;
}

body.home-redesign .faq-section .section-heading::after {
    display: block;
}

body.home-redesign .faq-section .section-heading h2 {
    font-size: var(--text-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.home-redesign .faq-question {
    padding: 22px 4px;
    color: var(--home-ink);
}

body.home-redesign .faq-question:hover {
    background: transparent;
    color: var(--home-accent);
}

body.home-redesign .faq-question span {
    font-size: var(--text-body);
    font-weight: 700;
}

body.home-redesign .faq-answer {
    padding: 0 4px;
}

body.home-redesign .faq-item.active .faq-answer {
    padding: 0 4px 24px;
}

body.home-redesign .faq-answer p {
    padding-top: 8px;
    border-top: 0;
    font-size: var(--text-body);
    color: var(--home-muted);
    max-width: 65ch;
}

/* 10. Closing CTA — Bold Deep Marine Surface */
body.home-redesign .cta-section {
    padding: 24px 0 96px;
    background: var(--home-surface);
}

body.home-redesign .cta-card {
    padding: 56px 60px;
    border: 0;
    border-radius: 12px;
    background: var(--home-navy);
    color: #fff;
}

body.home-redesign .cta-card h2 {
    margin: 0 0 10px;
    font-size: var(--text-heading);
    font-weight: 800;
    color: #fff;
}

body.home-redesign .cta-card p {
    margin: 0;
    color: #a9bad0;
    font-size: var(--text-body);
}

body.home-redesign .cta-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-secondary-link {
    color: #dce7f5;
    font-size: var(--text-body);
    font-weight: 600;
    border-bottom: 1px solid rgba(220, 231, 245, 0.45);
    padding-bottom: 3px;
    transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1),
                border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-secondary-link:hover {
    color: #ff9f54;
    border-bottom-color: #ff9f54;
}

/* Subtle Scroll Reveal (Never blocks above-the-fold or reduced motion) */
.js-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
    .home-pain-cards {
        grid-template-columns: 1fr;
    }

    .workbench-panel.is-active {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .workflow-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 24px;
        border-top: 0;
    }

    .workflow-track li {
        padding: 24px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }
}

@media (max-width: 960px) {
    body.home-redesign .header {
        background: rgba(255, 255, 255, 0.96);
        border-bottom-color: rgba(208, 220, 234, 0.9);
    }

    body.home-redesign .hero {
        padding: 104px 0 64px;
    }

    .cap-spotlight-grid,
    .cap-secondary-grid {
        grid-template-columns: 1fr;
    }

    .cap-secondary-item {
        border-right: 0;
        border-bottom: 1px solid var(--home-line);
    }

    .cap-secondary-item:last-child {
        border-bottom: 0;
    }

    body.home-redesign .start-grid {
        grid-template-columns: 1fr;
    }

    body.home-redesign .start-grid article,
    body.home-redesign .start-grid article:first-child,
    body.home-redesign .start-grid article:last-child {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 0;
        border-right: 0;
        border-bottom: 1px solid var(--home-line);
    }

    body.home-redesign .start-grid article > i {
        margin-bottom: 14px;
    }

    body.home-redesign .start-grid article p {
        margin-bottom: 18px;
    }

    body.home-redesign .start-text-link {
        white-space: nowrap;
    }

    body.home-redesign .start-grid article:last-child {
        border-bottom: 0;
    }

    body.home-redesign .cta-card {
        padding: 40px 32px;
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }
}

@media (max-width: 680px) {
    body.home-redesign .container {
        width: min(100% - 32px, 1160px);
    }

    body.home-redesign .section {
        padding: 72px 0;
    }

    .home-hero-copy {
        text-align: left;
        margin-bottom: 32px;
    }

    body.home-redesign .hero h1 {
        font-size: clamp(32px, 8.6vw, 40px);
        line-height: 1.16;
    }

    body.home-redesign .hero-description {
        margin-left: 0;
        margin-bottom: 24px;
    }

    body.home-redesign .hero-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 14px 20px;
    }

    body.home-redesign .hero-actions .btn {
        flex: 0 0 auto;
    }

    .workbench-topbar {
        padding: 12px 14px;
    }

    .workbench-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .workbench-tab {
        padding: 0 6px;
        font-size: 13px;
    }

    .workbench-panel {
        padding: 20px 16px;
    }

    .wb-kv-list {
        grid-template-columns: 1fr;
    }

    .wb-side-col {
        padding: 18px;
    }

    .cap-spotlight,
    .cap-secondary-item {
        padding: 24px 20px;
    }

    .workflow-track {
        grid-template-columns: 1fr;
    }

    body.home-redesign .home-articles-heading {
        flex-direction: column;
        gap: 8px;
    }

    body.home-redesign .home-articles-heading > a {
        position: static;
        transform: none;
    }

    .pain-visual-card {
        padding: 24px 20px;
    }

    .pain-rack-strip {
        grid-template-columns: 1fr;
    }

    body.home-redesign .home-articles-grid {
        grid-template-columns: 1fr;
    }

    body.home-redesign .cta-card {
        padding: 32px 24px;
    }

    body.home-redesign .cta-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .workbench-panel {
        animation: none;
    }
}
