/* FinLegal "Variation D" design system — global classes shared across pages.
 * Translated from variation-d.jsx in the Claude Design handoff bundle. */

/* Suppress the focus outline on h1s that Blazor's FocusOnNavigate has
 * programmatically focused via tabindex="-1". The h1 remains focusable
 * for screen readers, just without the default browser outline. */
h1[tabindex="-1"]:focus {
    outline: none;
}

/* Long-form legal pages (Privacy / Terms / Cookies). Constrains line
 * length and sets a comfortable reading rhythm. */
.fl-legal-body {
    max-width: 760px;
    margin: 0 auto;
    color: #283339;
    font-size: 1rem;
    line-height: 1.7;
}

.fl-legal-body h2 {
    color: #13181B;
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.fl-legal-body h3 {
    color: #13181B;
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
    line-height: 1.3;
}

.fl-legal-body p {
    margin: 0 0 1rem;
}

.fl-legal-body ul {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.fl-legal-body li {
    margin-bottom: 0.5rem;
}

.fl-legal-body a {
    color: var(--fl-primary);
}

/* Cap content at 1280px on wide screens. Each section keeps a 80px minimum
 * gutter, then scales the side padding so content doesn't sprawl. */
.d-hero,
.d-page-hero,
.d-trusted,
.d-stat-strip,
.d-walkthrough,
.d-cta-dark,
.d-compliance {
    padding-left: max(80px, calc((100% - 1280px) / 2));
    padding-right: max(80px, calc((100% - 1280px) / 2));
}

.d-hero-slide {
    inset: 64px max(80px, calc((100% - 1280px) / 2)) 72px;
}

/* Suppress non-interactive focus rings (Blazor enhanced nav focuses h1 for a11y). */
h1:focus:not(:focus-visible),
h2:focus:not(:focus-visible),
[tabindex="-1"]:focus:not(:focus-visible) {
    outline: none;
}

/* ===== Shared button ===== */
.fl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    font-size: 11px;
    padding: 10px 16px;
}

.fl-btn-lg {
    font-size: 12px;
    padding: 14px 22px;
}

.fl-btn-primary {
    background: #12A0C1;
    color: #fff;
    border-color: #12A0C1;
}

.fl-btn:hover,
.fl-btn:focus {
    text-decoration: none;
}

.fl-btn-primary:hover,
.fl-btn-primary:focus {
    background: #007792;
    border-color: #007792;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 119, 146, 0.25);
}

.fl-btn-on-dark {
    background: #fff;
    color: #12A0C1;
    border-color: #fff;
}

.fl-btn-on-dark:hover,
.fl-btn-on-dark:focus {
    background: #E6F6FA;
    border-color: #E6F6FA;
    color: #12A0C1;
}

.fl-btn-outline-on-dark {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.fl-btn-outline-on-dark:hover,
.fl-btn-outline-on-dark:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

/* ===== Eyebrow ===== */
.d-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* ===== HERO CAROUSEL ===== */
.d-hero,
.d-page-hero {
    background-image: url('/assets/hero-pattern.svg');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: cover;
}

.d-hero.is-mass,
.d-page-hero.is-mass {
    background-image: url('/assets/hero-pattern-mass.svg');
    background-position: right bottom;
}

.d-hero {
    position: relative;
    padding: 100px 80px 72px;
    background-color: #fff;
    overflow: hidden;
    min-height: 560px;
}

.d-hero-slide {
    position: absolute;
    inset: 100px 80px 72px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    opacity: 0;
    transform: translateX(var(--slide-offset, 40px));
    transition: opacity 1.4s ease, transform 1.4s ease;
    pointer-events: none;
}

.d-hero-slide.is-active {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.d-hero-h1 {
    font-size: 54px;
    line-height: 1.1;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    color: #13181B;
}

.d-hero-body {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5560;
    margin-top: 24px;
    max-width: 520px;
}

.d-hero-cta-row {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    align-items: center;
}

.d-hero-secondary {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.d-hero-secondary:hover {
    text-decoration: underline;
}

.d-hero-fineprint {
    font-size: 12px;
    color: #878D90;
    margin-top: 14px;
}

.d-hero-quote {
    margin: 22px 0 0;
    padding: 12px 0 0 16px;
    border-left: 3px solid currentColor;
    font-style: italic;
    font-size: 15px;
    line-height: 1.45;
    color: #13181B;
    max-width: 520px;
}

.d-hero-visual {
    display: flex;
    justify-content: center;
}

.d-hero-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 24px 48px rgba(15, 30, 45, 0.08);
    padding: 24px 28px;
    width: 525px;
}

.d-hero-card-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease var(--row-delay, 0.15s), transform 0.5s ease var(--row-delay, 0.15s);
}

.d-hero-slide.is-active .d-hero-card-row,
.d-page-hero .d-hero-card-row {
    opacity: 1;
    transform: translateY(0);
}

.d-hero-card-row.has-divider {
    border-bottom: 1px solid #f0f1f3;
}

.d-hero-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.d-hero-card-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #13181B;
}

.d-hero-card-text span {
    display: block;
    font-size: 12px;
    color: #878D90;
    margin-top: 2px;
}

/* Pager */
.d-pager {
    position: absolute;
    top: 48px;
    left: 80px;
    display: flex;
    gap: 24px;
    align-items: center;
    z-index: 5;
}

.d-pager-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-family: "Open Sans", sans-serif;
}

.d-pager-bar {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 3px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
}

.d-pager-bar-fill {
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--bar-duration, 0.4s) linear;
}

.d-pager-bar-fill.is-active,
.d-pager-bar-fill.is-past {
    transform: scaleX(1);
}

.d-pager-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #878D90;
    transition: color 0.3s ease;
}

.d-pager-label.is-active {
    color: #13181B;
}

/* Chevrons */
.d-chev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E5E7EB;
    color: #283339;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 30, 45, 0.08);
    z-index: 6;
    font-size: 12px;
}

.d-chev-left {
    left: 24px;
}

.d-chev-right {
    right: 24px;
}

.d-chev:hover {
    background: #f7f8f9;
}

/* ===== TRUSTED BY ===== */
.d-trusted {
    padding: 32px 80px 40px;
    background: #fff;
}

.d-trusted-label {
    text-align: center;
    margin-bottom: 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #878D90;
}

.d-trusted-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}

.d-trusted-row img {
    height: 78px;
    max-width: 200px;
    object-fit: contain;
    opacity: 0.92;
}

/* ===== STAT STRIP ===== */
.d-stat-strip {
    padding: 0 80px 56px;
}

.d-stat-section-head {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding-top: 32px;
    margin-bottom: 24px;
}

.d-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.d-stat {
    border-left: 2px solid #12A0C1;
    padding-left: 20px;
}

.d-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #13181B;
    letter-spacing: -0.01em;
}

.d-stat-text {
    font-size: 13px;
    color: #4a5560;
    margin: 8px 0 0;
    line-height: 1.55;
}

/* ===== WALKTHROUGH ===== */
.d-walkthrough {
    padding: 100px 80px 40px;
}

.d-walkthrough-light {
    background: #fff;
}

.d-walkthrough-dark {
    background: #0f1418;
    color: #fff;
}

.d-walkthrough-head {
    max-width: 720px;
    margin-bottom: 40px;
}

.d-walkthrough-head h2 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.d-walkthrough-light .d-walkthrough-head h2 {
    color: #0a0e10;
}

.d-walkthrough-dark .d-walkthrough-head h2 {
    color: #fff;
}

.d-walkthrough-head p {
    font-size: 17px;
    margin-top: 20px;
    line-height: 1.6;
}

.d-walkthrough-light .d-walkthrough-head p {
    color: #3a4651;
}

.d-walkthrough-dark .d-walkthrough-head p {
    color: rgba(255, 255, 255, 0.72);
}

/* Editorial row */
.d-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 60px 0;
}

.d-walkthrough-light .d-row {
    border-top: 1px solid #e8e6df;
}

.d-walkthrough-dark .d-row {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.d-row[data-flip="true"] .d-row-text {
    order: 2;
}

.d-row[data-flip="true"] .d-row-illustration {
    order: 1;
}

.d-row-num {
    font-size: 14px;
    font-family: Georgia, serif;
    font-style: italic;
    margin-bottom: 20px;
}

.d-walkthrough-light .d-row-num {
    color: #878D90;
}

.d-walkthrough-dark .d-row-num {
    color: rgba(255, 255, 255, 0.6);
}

.d-row-text h3 {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.d-walkthrough-light .d-row-text h3 {
    color: #0a0e10;
}

.d-walkthrough-dark .d-row-text h3 {
    color: #fff;
}

.d-row-text p {
    font-size: 17px;
    margin-top: 20px;
    line-height: 1.6;
    max-width: 480px;
}

.d-walkthrough-light .d-row-text p {
    color: #3a4651;
}

.d-walkthrough-dark .d-row-text p {
    color: rgba(255, 255, 255, 0.72);
}

.d-row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.d-row-tags span {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 100px;
    font-weight: 500;
}

.d-walkthrough-light .d-row-tags span {
    border: 1px solid #d8d4c8;
    color: #3a4651;
}

.d-walkthrough-dark .d-row-tags span {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
}

.d-row-link {
    display: inline-block;
    margin-top: 28px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 2px;
    cursor: pointer;
}

.d-walkthrough-light .d-row-link {
    color: #13181B;
    border-bottom: 1px solid #13181B;
}

.d-walkthrough-dark .d-row-link {
    color: #fff;
    border-bottom: 1px solid #fff;
}

/* Illustration panel container */
.d-row-illustration {
    height: 360px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.d-walkthrough-light .d-row-illustration {
    background: #fff;
    border: 1px solid #e8e6df;
}

.d-walkthrough-dark .d-row-illustration {
    background: #171d22;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/* ===== ILLUSTRATIONS ===== */

.d-illus-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.d-walkthrough-light .d-illus-eyebrow {
    color: #878D90;
}

.d-walkthrough-dark .d-illus-eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

/* Summary */
.d-illus-summary {
    padding: 32px;
}

.d-kv {
    display: grid;
    grid-template-columns: 140px 1fr;
    padding: 10px 0;
    font-size: 13px;
}

.d-walkthrough-light .d-kv {
    border-bottom: 1px solid #f0eee7;
}

.d-walkthrough-dark .d-kv {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.d-walkthrough-light .d-kv .k {
    color: #878D90;
}

.d-walkthrough-dark .d-kv .k {
    color: rgba(255, 255, 255, 0.7);
}

.d-kv .v {
    font-weight: 600;
}

.d-walkthrough-light .d-kv .v {
    color: #13181B;
}

.d-walkthrough-dark .d-kv .v {
    color: #fff;
}

.d-illus-foot {
    margin-top: 18px;
    font-size: 11px;
}

.d-illus-foot i {
    margin-right: 6px;
}

.d-illus-foot-ok {
    color: #3B863B;
}

.d-walkthrough-dark .d-illus-foot-ok {
    color: #7BD37B;
}

/* Index */
.d-illus-index {
    padding: 28px;
}

.d-illus-table {
    border-radius: 3px;
}

.d-walkthrough-light .d-illus-table {
    border: 1px solid #f0eee7;
}

.d-walkthrough-dark .d-illus-table {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.d-illus-row {
    display: grid;
    grid-template-columns: 90px 1fr 140px;
    padding: 12px 14px;
    font-size: 13px;
}

.d-walkthrough-light .d-illus-row {
    border-bottom: 1px solid #f0eee7;
}

.d-walkthrough-dark .d-illus-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.d-illus-row:last-child {
    border-bottom: none;
}

.d-walkthrough-light .d-illus-row-tinted {
    background: #f4fafd;
}

.d-walkthrough-dark .d-illus-row-tinted {
    background: rgba(66, 192, 222, 0.12);
}

.d-illus-row .p {
    font-weight: 600;
    font-family: monospace;
    font-size: 11px;
}

.d-walkthrough-light .d-illus-row .p {
    color: #12A0C1;
}

.d-walkthrough-dark .d-illus-row .p {
    color: #42C0DE;
}

.d-illus-row .d {
    font-weight: 600;
}

.d-walkthrough-light .d-illus-row .d {
    color: #13181B;
}

.d-walkthrough-dark .d-illus-row .d {
    color: #fff;
}

.d-illus-row .s {
    font-size: 12px;
}

.d-walkthrough-light .d-illus-row .s {
    color: #878D90;
}

.d-walkthrough-dark .d-illus-row .s {
    color: rgba(255, 255, 255, 0.7);
}

/* Expert */
.d-illus-expert {
    padding: 28px;
}

.d-illus-expert-row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
}

.d-walkthrough-light .d-illus-expert-row {
    border-bottom: 1px solid #f0eee7;
}

.d-walkthrough-dark .d-illus-expert-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.d-illus-expert-row:last-of-type {
    border-bottom: none;
}

.d-illus-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.d-walkthrough-light .d-illus-avatar {
    background: #f4fafd;
    color: #12A0C1;
}

.d-walkthrough-dark .d-illus-avatar {
    background: rgba(66, 192, 222, 0.12);
    color: #42C0DE;
}

.d-illus-expert-info .n {
    font-size: 13px;
    font-weight: 700;
}

.d-walkthrough-light .d-illus-expert-info .n {
    color: #13181B;
}

.d-walkthrough-dark .d-illus-expert-info .n {
    color: #fff;
}

.d-illus-expert-info .m {
    font-size: 11px;
}

.d-walkthrough-light .d-illus-expert-info .m {
    color: #878D90;
}

.d-walkthrough-dark .d-illus-expert-info .m {
    color: rgba(255, 255, 255, 0.7);
}

.d-illus-status {
    font-size: 11px;
    font-weight: 600;
}

.d-walkthrough-light .d-illus-status {
    color: #3a4651;
}

.d-walkthrough-dark .d-illus-status {
    color: rgba(255, 255, 255, 0.7);
}

.d-illus-status-ok {
    color: #3B863B;
}

.d-walkthrough-dark .d-illus-status-ok {
    color: #7BD37B;
}

/* Intake */
.d-illus-intake {
    padding: 28px;
}

.d-illus-stats-grid {
    background: #f4fafd;
    padding: 14px 16px;
    border-radius: 4px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.d-walkthrough-dark .d-illus-stats-grid {
    background: rgba(66, 192, 222, 0.12);
}

.d-illus-stats-grid .big {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.d-walkthrough-light .d-illus-stats-grid .big {
    color: #13181B;
}

.d-walkthrough-dark .d-illus-stats-grid .big {
    color: #fff;
}

.d-illus-stats-grid .lbl {
    font-size: 11px;
}

.d-walkthrough-light .d-illus-stats-grid .lbl {
    color: #878D90;
}

.d-walkthrough-dark .d-illus-stats-grid .lbl {
    color: rgba(255, 255, 255, 0.7);
}

.d-illus-step {
    display: grid;
    grid-template-columns: 70px 1fr 1fr;
    gap: 12px;
    padding: 10px 0;
    font-size: 12px;
}

.d-walkthrough-light .d-illus-step {
    border-bottom: 1px solid #f0eee7;
}

.d-walkthrough-dark .d-illus-step {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.d-illus-step:last-child {
    border-bottom: none;
}

.d-illus-step .s {
    font-weight: 700;
}

.d-walkthrough-light .d-illus-step .s {
    color: #12A0C1;
}

.d-walkthrough-dark .d-illus-step .s {
    color: #42C0DE;
}

.d-illus-step .t {
    font-weight: 600;
}

.d-walkthrough-light .d-illus-step .t {
    color: #13181B;
}

.d-walkthrough-dark .d-illus-step .t {
    color: #fff;
}

.d-walkthrough-light .d-illus-step .m {
    color: #878D90;
}

.d-walkthrough-dark .d-illus-step .m {
    color: rgba(255, 255, 255, 0.7);
}

/* Review */
.d-illus-review {
    padding: 28px;
}

.d-illus-doc {
    padding: 12px 0;
}

.d-walkthrough-light .d-illus-doc {
    border-bottom: 1px solid #f0eee7;
}

.d-walkthrough-dark .d-illus-doc {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.d-illus-doc:last-child {
    border-bottom: none;
}

.d-illus-doc .hdr {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.d-illus-doc .hdr .t {
    font-size: 13px;
    font-weight: 600;
}

.d-walkthrough-light .d-illus-doc .hdr .t {
    color: #13181B;
}

.d-walkthrough-dark .d-illus-doc .hdr .t {
    color: #fff;
}

.d-illus-doc .hdr .n {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.d-walkthrough-light .d-illus-doc .hdr .n {
    color: #878D90;
}

.d-walkthrough-dark .d-illus-doc .hdr .n {
    color: rgba(255, 255, 255, 0.7);
}

.d-illus-doc .bar {
    margin-top: 6px;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.d-walkthrough-light .d-illus-doc .bar {
    background: #f0eee7;
}

.d-walkthrough-dark .d-illus-doc .bar {
    background: rgba(255, 255, 255, 0.08);
}

.d-illus-doc .bar span {
    display: block;
    height: 100%;
}

.d-walkthrough-light .d-illus-doc .bar span {
    background: #12A0C1;
}

.d-walkthrough-dark .d-illus-doc .bar span {
    background: #42C0DE;
}

.d-illus-doc .ext {
    font-size: 11px;
    margin-top: 6px;
}

.d-walkthrough-light .d-illus-doc .ext {
    color: #878D90;
}

.d-walkthrough-dark .d-illus-doc .ext {
    color: rgba(255, 255, 255, 0.7);
}

/* Cohort */
.d-illus-cohort {
    padding: 28px;
}

.d-illus-template {
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.d-walkthrough-light .d-illus-template {
    border: 1px solid #f0eee7;
}

.d-walkthrough-dark .d-illus-template {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.d-illus-template .lbl {
    font-size: 12px;
    margin-bottom: 6px;
}

.d-walkthrough-light .d-illus-template .lbl {
    color: #878D90;
}

.d-walkthrough-dark .d-illus-template .lbl {
    color: rgba(255, 255, 255, 0.7);
}

.d-illus-template .body {
    font-size: 13px;
    line-height: 1.5;
}

.d-walkthrough-light .d-illus-template .body {
    color: #13181B;
}

.d-walkthrough-dark .d-illus-template .body {
    color: #fff;
}

.d-illus-template .tag {
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.d-walkthrough-light .d-illus-template .tag {
    background: #f4fafd;
    color: #12A0C1;
}

.d-walkthrough-dark .d-illus-template .tag {
    background: rgba(66, 192, 222, 0.12);
    color: #42C0DE;
}

.d-illus-cohort-row {
    display: grid;
    grid-template-columns: 1fr 90px 12px;
    align-items: center;
    padding: 9px 0;
    font-size: 12px;
}

.d-walkthrough-light .d-illus-cohort-row {
    border-bottom: 1px solid #f0eee7;
}

.d-walkthrough-dark .d-illus-cohort-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.d-illus-cohort-row:last-of-type {
    border-bottom: none;
}

.d-illus-cohort-row .t {
    font-weight: 600;
}

.d-walkthrough-light .d-illus-cohort-row .t {
    color: #13181B;
}

.d-walkthrough-dark .d-illus-cohort-row .t {
    color: #fff;
}

.d-illus-cohort-row .n {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.d-walkthrough-light .d-illus-cohort-row .n {
    color: #878D90;
}

.d-walkthrough-dark .d-illus-cohort-row .n {
    color: rgba(255, 255, 255, 0.7);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    justify-self: end;
    display: inline-block;
}

.dot-ok {
    background: #3B863B;
}

.d-walkthrough-dark .dot-ok {
    background: #7BD37B;
}

.dot-primary {
    background: #12A0C1;
}

.d-walkthrough-dark .dot-primary {
    background: #42C0DE;
}

.dot-muted {
    background: #3a4651;
}

.d-walkthrough-dark .dot-muted {
    background: rgba(255, 255, 255, 0.7);
}

.dot-warn {
    background: #D27A2A;
}

/* Walkthrough CTA */
.d-walkthrough-cta {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

/* ===== COMPLIANCE ===== */
.d-compliance {
    padding: 20px 80px;
    background: #f9f9f9;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    color: #4a5560;
}

.d-compliance span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.d-compliance i {
    font-size: 11px;
    color: #3B863B;
}

/* ============================================================
   SUB-PAGE PRIMITIVES — extensions to the home page system
   ============================================================ */

/* Static hero (no carousel) — used by sub-pages */
.d-page-hero {
    padding: 64px 80px 72px;
    background-color: #fff;
}

.d-page-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.d-page-hero-grid.is-single {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

/* Contact page: 2-col grid with intro and extras stacked on the left, form on the right */
.d-contact-grid {
    grid-template-areas:
        "intro form"
        "extras form";
    align-items: start;
}

.d-contact-grid > .d-hero-text {
    grid-area: intro;
}

.d-contact-grid > .d-hero-visual {
    grid-area: form;
}

.d-contact-grid > .d-contact-extras {
    grid-area: extras;
}

.d-page-hero-grid.is-single .d-hero-h1 {
    font-size: 48px;
}

.d-page-hero-grid.is-single .d-hero-body {
    margin-left: auto;
    margin-right: auto;
}

/* Feature grid — for "what's in the product" panels */
.d-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 24px;
}

.d-feature-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.d-feature-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Blog list pagination */
.d-blog-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 36px;
}

.d-blog-page-btn {
    min-width: 36px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    color: #4a5560;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.d-blog-page-btn:hover:not(:disabled):not(.is-active) {
    background: #F2FBFD;
    color: var(--fl-primary);
    border-color: var(--fl-primary);
}

.d-blog-page-btn.is-active {
    background: var(--fl-primary);
    color: #fff;
    border-color: var(--fl-primary);
    cursor: default;
}

.d-blog-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.d-feature-card {
    border: 1px solid #e8e6df;
    border-radius: 4px;
    padding: 24px;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.d-feature-card:hover {
    border-color: #c9d8de;
    box-shadow: 0 6px 18px rgba(15, 30, 45, 0.04);
}

.d-walkthrough-dark .d-feature-card {
    background: #171d22;
    border-color: rgba(255, 255, 255, 0.10);
}

.d-walkthrough-dark .d-feature-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.d-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.d-feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.d-walkthrough-light .d-feature-card h3 {
    color: #13181B;
}

.d-walkthrough-dark .d-feature-card h3 {
    color: #fff;
}

.d-feature-card p {
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.d-walkthrough-light .d-feature-card p {
    color: #4a5560;
}

.d-walkthrough-dark .d-feature-card p {
    color: rgba(255, 255, 255, 0.78);
}

/* Dark full-bleed CTA (page footer-ish) */
.d-cta-dark {
    background: #0f1418;
    color: #fff;
    padding: 80px 80px;
    text-align: center;
}

.d-cta-dark h2 {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    color: #fff;
}

.d-cta-dark p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}

.d-cta-dark .d-cta-row {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Process / numbered steps (used on how-it-works style sections) */
.d-process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 24px;
}

.d-process-step {
    border-top: 2px solid var(--fl-primary, #12A0C1);
    padding-top: 20px;
}

.d-process-num {
    font-size: 14px;
    font-family: Georgia, serif;
    font-style: italic;
    color: #878D90;
    margin-bottom: 12px;
}

.d-process-step h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #13181B;
    letter-spacing: -0.01em;
}

.d-process-step p {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5560;
    margin: 0;
}

/* Dark variant: legible text on the deep charcoal background */
.d-walkthrough-dark .d-process-num {
    color: rgba(255, 255, 255, 0.6);
}

.d-walkthrough-dark .d-process-step h3 {
    color: #fff;
}

.d-walkthrough-dark .d-process-step p {
    color: rgba(255, 255, 255, 0.78);
}

.d-walkthrough-dark .d-process-step {
    border-top-color: #42C0DE;
}

/* Pricing table (lightweight) */
.d-pricing {
    max-width: 640px;
    margin: 0 auto;
    border: 1px solid #e8e6df;
    border-radius: 6px;
    overflow: hidden;
}

.d-pricing-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    padding: 18px 24px;
    border-bottom: 1px solid #e8e6df;
    align-items: center;
}

.d-pricing-row:last-child {
    border-bottom: none;
}

.d-pricing-row.is-head {
    background: #f9f9f9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #878D90;
    padding: 14px 24px;
}

.d-pricing-row .label {
    font-size: 14px;
    color: #283339;
}

.d-pricing-row .price {
    font-size: 22px;
    font-weight: 700;
    color: var(--fl-primary, #12A0C1);
    text-align: right;
}

/* ===== Timeline (logo-essence: origin radiating into a vertical trunk) ===== */
.fl-timeline {
    position: relative;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 32px;
    margin-top: 24px;
    align-items: stretch;
}

/* Vertical trunk that all dots sit on. Centred in the 60px spoke column. */
.fl-timeline::before {
    content: "";
    position: absolute;
    left: 29.25px;
    top: 64px;     /* clears the origin node */
    bottom: 24px;
    width: 1.5px;
    background: linear-gradient(to bottom, rgba(18, 160, 193, 0.55) 0%, rgba(18, 160, 193, 0.10) 100%);
}

/* Origin / focal node at the top of the spoke column — a filled dot inside a faint ring. */
.fl-timeline::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #12A0C1;
    box-shadow:
        0 0 0 6px rgba(18, 160, 193, 0.10),
        0 0 0 12px rgba(18, 160, 193, 0.05);
}

/* The original SVG layer is now decorative-only — keep it for the soft outward
   rays but it no longer carries any responsibility for connecting dots. */
.fl-timeline-spokes {
    width: 60px;
    height: 100%;
    align-self: stretch;
    overflow: visible;
    pointer-events: none;
    opacity: 0.7;
}

.fl-timeline-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fl-timeline-step {
    position: relative;
    padding: 24px 0 24px 28px;
}

.fl-timeline-step + .fl-timeline-step {
    border-top: 1px solid #e8e6df;
}

/* Dots are positioned to land exactly on the trunk drawn by .fl-timeline::before.
   Trunk is at left: 29.25px in the 60px spoke column; gap is 32px. So the dot's
   centre needs to be 32 + (60 - 29.25) = 62.75px to the LEFT of the step content,
   i.e. left: -62.75px - 6 = -68.75px (with 12px dot, half-width 6). */
.fl-timeline-dot {
    position: absolute;
    left: -68.75px;
    top: 32px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #12A0C1;
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(18, 160, 193, 0.18);
    z-index: 1;
}

.fl-timeline-num {
    font-size: 12px;
    font-family: Georgia, serif;
    font-style: italic;
    color: #12A0C1;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.fl-timeline-step h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #13181B;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.fl-timeline-step p {
    font-size: 15px;
    line-height: 1.65;
    color: #4a5560;
    margin: 0;
    max-width: 720px;
}

@media (max-width: 768px) {
    .fl-timeline {
        grid-template-columns: 60px 1fr;
        gap: 16px;
    }

    .fl-timeline-spokes {
        width: 60px;
    }

    .fl-timeline-step h3 {
        font-size: 18px;
    }

    .fl-timeline-step p {
        font-size: 14px;
    }
}

/* ===== Sub-navigation strip (Medical AI / Mass & Class section pages) ===== */
.d-subnav {
    background: #f9fafb;
    border-bottom: 1px solid #E5E7EB;
}

.d-subnav-inner {
    /* Match .d-page-hero's 80px left/right padding so the subnav links
     * align with the eyebrow / H1 of the page hero below. */
    padding: 12px 80px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.d-subnav-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #878D90;
    flex: none;
}

.d-subnav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
}

.d-subnav-link {
    font-size: 13px;
    font-weight: 600;
    color: #4a5560;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.d-subnav-link:hover {
    color: #12A0C1;
    text-decoration: none;
}

.d-subnav-link.is-active {
    color: #12A0C1;
    border-bottom-color: #12A0C1;
}

@media (max-width: 1024px) {
    .d-subnav-inner {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* Form panel (signup/contact/etc) */
.d-form {
    background: #fff;
    border: 1px solid #e8e6df;
    border-radius: 6px;
    padding: 32px;
}

.d-form .form-group {
    margin-bottom: 16px;
}

.d-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4a5560;
    margin-bottom: 6px;
}

.d-form input,
.d-form select,
.d-form textarea {
    width: 100%;
    border: 1px solid #d8d4c8;
    border-radius: 4px;
    padding: 10px 12px;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    color: #13181B;
    background: #fff;
}

.d-form input:focus,
.d-form select:focus,
.d-form textarea:focus {
    outline: none;
    border-color: #12A0C1;
    box-shadow: 0 0 0 3px rgba(18, 160, 193, 0.18);
}

/* Two-column page layout */
.d-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .d-page-hero {
        padding: 48px 32px 64px;
    }

    .d-page-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .d-contact-grid {
        grid-template-areas:
            "intro"
            "form"
            "extras";
    }

    .d-feature-grid,
    .d-feature-grid.cols-3,
    .d-feature-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .d-process {
        grid-template-columns: 1fr;
    }

    .d-cta-dark {
        padding: 56px 32px;
    }

    .d-cta-dark h2 {
        font-size: 28px;
    }

    .d-two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 1024px) {
    .d-hero {
        padding: 96px 32px 64px;
        min-height: 0;
    }

    .d-hero-slide {
        inset: 96px 32px 64px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .d-pager {
        top: 32px;
        left: 32px;
        right: 32px;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .d-pager-bar {
        width: 40px;
    }

    .d-hero-h1 {
        font-size: 38px;
    }

    .d-hero-card {
        width: 100%;
        max-width: 420px;
    }

    .d-trusted,
    .d-stat-strip,
    .d-walkthrough,
    .d-compliance {
        padding-left: 32px;
        padding-right: 32px;
    }

    .d-stat-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .d-walkthrough {
        padding-top: 60px;
    }

    .d-walkthrough-head h2 {
        font-size: 32px;
    }

    .d-row {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0;
    }

    .d-row[data-flip="true"] .d-row-text,
    .d-row[data-flip="true"] .d-row-illustration {
        order: initial;
    }

    .d-row-text h3 {
        font-size: 28px;
    }

    .d-compliance {
        flex-wrap: wrap;
        gap: 12px 24px;
        justify-content: flex-start;
    }

    .d-chev {
        display: none;
    }
}
