/* ============================================
   AUTOMATDO TPV CLUSTER
   Landing, industry, cost and false-pass pages, plus the
   shared components used inside the TPV guide.
   Extends landing.css design system. Classes prefixed tpvc-.
   ============================================ */

/* ---------- Layout ---------- */
.tpvc-hero,
.tpvc-section {
    position: relative;
    z-index: 10;
}

.tpvc-section {
    padding: var(--space-4xl) 0;
}

.tpvc-section--alt {
    background: var(--bg-secondary);
}

/* Prose sections share the container's left edge with the card sections,
   with the reading column capped at 760px. */
/* A centred reading column: 760px of text plus the side padding, so narrow
   sections sit in the middle of the page instead of hugging its left edge. */
.tpvc-narrow {
    max-width: calc(760px + 2 * var(--space-xl));
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.tpvc-narrow > *,
.tpvc-after-cards {
    max-width: 760px;
}

.tpvc-section-head {
    max-width: 760px;
    margin-bottom: var(--space-2xl);
}

/* ---------- Type ---------- */
.tpvc-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.tpvc-h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: var(--space-lg);
}

.tpvc-page p,
.tpvc-page li {
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Headings inside list items would otherwise inherit the body grey. */
.tpvc-page h2,
.tpvc-page h3 {
    color: var(--text-primary);
}

.tpvc-page p {
    margin-bottom: var(--space-md);
}

.tpvc-page p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.tpvc-page a:not([class]) {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tpvc-lead {
    font-size: 1.125rem;
}

.tpvc-small {
    font-size: 0.875rem;
}

/* ---------- Hero ---------- */
.tpvc-hero {
    padding: 8rem var(--space-xl) var(--space-3xl);
}

.tpvc-hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-3xl);
    align-items: center;
}

.tpvc-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.tpvc-page .tpvc-hero-lead {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.tpvc-page .tpvc-byline {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-xl);
}

.tpvc-page .tpvc-byline a {
    color: var(--text-secondary);
    text-decoration: none;
}

.tpvc-page .tpvc-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin: var(--space-lg) 0 0;
}

.tpvc-page .tpvc-hero-links a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-primary);
    padding-bottom: 2px;
}

/* Text-only hero (cost, false pass): one reading column, no visual */
.tpvc-hero--text {
    padding-left: 0;
    padding-right: 0;
}

.tpvc-hero--text .tpvc-checklist--hero {
    margin-top: var(--space-lg);
}

/* ---------- Table (cost ranges) ---------- */
.tpvc-table-wrap {
    margin: var(--space-xl) 0;
    overflow-x: auto;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
}

.tpvc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.tpvc-table th,
.tpvc-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-subtle);
}

.tpvc-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
}

.tpvc-table tbody th {
    font-weight: 600;
    color: var(--text-primary);
}

.tpvc-table td {
    color: var(--text-secondary);
}

.tpvc-table tbody tr:last-child th,
.tpvc-table tbody tr:last-child td {
    border-bottom: 0;
}

/* ---------- Formula ---------- */
.tpvc-formula {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    padding: var(--space-xl);
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-primary);
    border: 1px solid rgba(212, 165, 48, 0.35);
    border-radius: var(--radius-lg);
    background: rgba(212, 165, 48, 0.07);
}

.tpvc-formula-top {
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--accent-primary);
}

/* ---------- Illustrative verification call (result card) ----------
   template-parts/tpv/result-card.php. The markup is the finished call;
   tpv-cluster.js (initCallCards) plays it step by step. */
.tpvc-call {
    --call-surface: rgba(22, 22, 25, 0.94);
    --call-raised: rgba(255, 255, 255, 0.035);
    --call-line: rgba(255, 255, 255, 0.08);
    --call-node-line: rgba(255, 255, 255, 0.2);
    --call-muted: var(--text-tertiary);
    --call-gold: var(--accent-primary);
    --call-gold-soft: rgba(212, 165, 48, 0.09);
    --call-green: #22c55e;
    --call-green-soft: rgba(34, 197, 94, 0.1);
    --call-red: #f87171;
    --call-red-solid: #ef4444;
    --call-red-soft: rgba(239, 68, 68, 0.12);
    --call-amber: #fbbf24;
    --call-amber-solid: #f59e0b;
    --call-amber-soft: rgba(245, 158, 11, 0.12);
    --call-blue: #7cb4ff;
    --call-blue-solid: #3b82f6;
    --call-blue-soft: rgba(59, 130, 246, 0.13);
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

[data-theme="light"] .tpvc-call {
    --call-surface: #ffffff;
    --call-raised: rgba(15, 23, 42, 0.03);
    --call-line: rgba(15, 23, 42, 0.09);
    --call-node-line: rgba(15, 23, 42, 0.2);
    --call-muted: #64748b;
    --call-gold-soft: rgba(184, 145, 42, 0.08);
    --call-green: #15803d;
    --call-green-soft: rgba(21, 128, 61, 0.08);
    --call-red: #b91c1c;
    --call-red-solid: #dc2626;
    --call-red-soft: rgba(220, 38, 38, 0.07);
    --call-amber: #b45309;
    --call-amber-solid: #d97706;
    --call-amber-soft: rgba(217, 119, 6, 0.08);
    --call-blue: #1d4ed8;
    --call-blue-solid: #2563eb;
    --call-blue-soft: rgba(37, 99, 235, 0.07);
}

/* Gold glow behind the card; the outcome's colour fades in when the call ends. */
.tpvc-call-glow,
.tpvc-call-glow::after {
    position: absolute;
    inset: -48px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(36px);
}

.tpvc-call-glow {
    background: radial-gradient(ellipse at 50% 42%, rgba(212, 165, 48, 0.26) 0%, transparent 66%);
}

.tpvc-call-glow::after {
    content: '';
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.tpvc-call[data-outcome="rejected"] .tpvc-call-glow::after {
    background: radial-gradient(ellipse at 50% 70%, rgba(239, 68, 68, 0.28) 0%, transparent 62%);
}

.tpvc-call[data-outcome="review"] .tpvc-call-glow::after {
    background: radial-gradient(ellipse at 50% 70%, rgba(245, 158, 11, 0.26) 0%, transparent 62%);
}

.tpvc-call[data-outcome="transfer"] .tpvc-call-glow::after {
    background: radial-gradient(ellipse at 50% 70%, rgba(59, 130, 246, 0.26) 0%, transparent 62%);
}

.tpvc-call:not(.is-armed) .tpvc-call-glow::after,
.tpvc-call.is-ended .tpvc-call-glow::after {
    opacity: 1;
}

[data-theme="light"] .tpvc-call-glow {
    opacity: 0.55;
}

.tpvc-call-card {
    position: relative;
    overflow: hidden;
    background: var(--call-surface);
    border: 1px solid var(--call-line);
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

[data-theme="light"] .tpvc-call-card {
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

/* Header */
.tpvc-call-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 0.875rem 1.125rem;
    background: linear-gradient(135deg, rgba(212, 165, 48, 0.14) 0%, rgba(212, 165, 48, 0.03) 100%);
    border-bottom: 1px solid var(--call-line);
}

.tpvc-call-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--call-gold);
}

.tpvc-call-live {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--call-muted);
    background: var(--call-raised);
    border: 1px solid var(--call-line);
    transition: color 0.3s, background 0.3s, border-color 0.3s;
}

.tpvc-call-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.tpvc-call.is-armed:not(.is-ended) .tpvc-call-live {
    color: var(--call-red);
    background: var(--call-red-soft);
    border-color: transparent;
}

.tpvc-call.is-playing .tpvc-call-live-dot {
    animation: tpvcCallRec 1.2s ease-in-out infinite;
}

.tpvc-call-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--call-muted);
    border: 1px solid var(--call-line);
    border-radius: var(--radius-full);
    padding: 0.1875rem 0.5625rem;
}

/* Order chips */
.tpvc-call-order {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0;
    padding: 0.875rem 1.125rem 0;
}

.tpvc-call-chip {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-secondary);
    background: var(--call-raised);
    border: 1px solid var(--call-line);
    border-radius: var(--radius-sm);
    padding: 0.1875rem 0.5rem;
}

.tpvc-call-chip--id {
    font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
    color: var(--call-muted);
}

/* Steps: a timeline whose line fills green as each step passes */
.tpvc-call-steps {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.tpvc-call-step {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: background 0.35s, border-color 0.35s, box-shadow 0.35s, opacity 0.35s;
}

.tpvc-call-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: calc(0.75rem + 13px);
    top: calc(0.625rem + 32px);
    bottom: calc(-0.625rem - 0.375rem + 4px);
    width: 2px;
    border-radius: 2px;
    background: var(--call-line);
    transition: background 0.4s;
}

.tpvc-call-step.is-pass:not(:last-child)::after {
    background: linear-gradient(var(--call-green), rgba(34, 197, 94, 0.25));
}

/* Status node */
.tpvc-call-node {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--call-muted);
    background: var(--call-surface);
    border: 1.5px solid var(--call-node-line);
    transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.tpvc-call-node svg {
    display: none;
    width: 14px;
    height: 14px;
}

.tpvc-call-step:is(.is-pass, .is-fail, .is-review, .is-transfer, .is-skipped) .tpvc-call-num {
    display: none;
}

.tpvc-call-step:is(.is-pass, .is-fail, .is-review, .is-transfer, .is-skipped) .tpvc-call-node svg {
    display: block;
    animation: tpvcCallPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tpvc-call-step.is-pass .tpvc-call-node {
    color: #fff;
    background: var(--call-green);
    border-color: var(--call-green);
}

.tpvc-call-step.is-fail .tpvc-call-node {
    color: #fff;
    background: var(--call-red-solid);
    border-color: var(--call-red-solid);
    box-shadow: 0 0 0 5px var(--call-red-soft);
}

.tpvc-call-step.is-review .tpvc-call-node {
    color: #fff;
    background: var(--call-amber-solid);
    border-color: var(--call-amber-solid);
    box-shadow: 0 0 0 5px var(--call-amber-soft);
}

.tpvc-call-step.is-transfer .tpvc-call-node {
    color: #fff;
    background: var(--call-blue-solid);
    border-color: var(--call-blue-solid);
    box-shadow: 0 0 0 5px var(--call-blue-soft);
}

.tpvc-call-step.is-skipped .tpvc-call-node {
    border-style: dashed;
    background: transparent;
}

.tpvc-call-step.is-active .tpvc-call-node {
    color: var(--call-gold);
    border-color: var(--call-gold);
}

.tpvc-call-step.is-active .tpvc-call-node::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--call-gold);
    border-right-color: var(--call-gold);
    animation: tpvcCallSpin 0.9s linear infinite;
}

/* Step states */
.tpvc-call-step.is-active {
    background: var(--call-gold-soft);
    border-color: rgba(212, 165, 48, 0.45);
    box-shadow: 0 0 24px rgba(212, 165, 48, 0.1);
}

.tpvc-call-step.is-fail {
    background: var(--call-red-soft);
    border-color: rgba(239, 68, 68, 0.38);
}

.tpvc-call-step.is-review {
    background: var(--call-amber-soft);
    border-color: rgba(245, 158, 11, 0.38);
}

.tpvc-call-step.is-transfer {
    background: var(--call-blue-soft);
    border-color: rgba(59, 130, 246, 0.38);
}

.tpvc-call-step.is-skipped {
    opacity: 0.5;
}

.tpvc-call-step.is-pending {
    opacity: 0.5;
}

.tpvc-call-step-body {
    min-width: 0;
    padding-top: 0.25rem;
    line-height: 1.45;
}

.tpvc-call-step-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
}

.tpvc-call-step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tpvc-call-step-status {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--call-muted);
    transition: opacity 0.3s, transform 0.3s;
}

.tpvc-call-step.is-pass .tpvc-call-step-status { color: var(--call-green); }
.tpvc-call-step.is-fail .tpvc-call-step-status { color: var(--call-red); }
.tpvc-call-step.is-review .tpvc-call-step-status { color: var(--call-amber); }
.tpvc-call-step.is-transfer .tpvc-call-step-status { color: var(--call-blue); }

.tpvc-call-step:is(.is-pending, .is-active) .tpvc-call-step-status {
    opacity: 0;
    transform: translateY(3px);
}

/* The customer's answer, with a waveform while they speak */
.tpvc-call-quote {
    position: relative;
    margin: 0.1875rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.tpvc-call-step:is(.is-fail, .is-review, .is-transfer) .tpvc-call-quote {
    color: var(--text-primary);
}

/* Hidden by opacity, not visibility, so screen readers still have the
   customer's words before the playback reaches them. */
.tpvc-call-step.is-pending .tpvc-call-said,
.tpvc-call-step.is-active:not(.is-said) .tpvc-call-said {
    opacity: 0;
}

.tpvc-call-step.is-said .tpvc-call-w {
    animation: tpvcCallWord 0.32s ease-out both;
    animation-delay: calc(var(--i) * 70ms);
}

.tpvc-call-wave {
    position: absolute;
    top: 0.25em;
    left: 0;
    display: none;
    align-items: center;
    gap: 3px;
    height: 0.95em;
}

.tpvc-call-step.is-active:not(.is-said) .tpvc-call-wave {
    display: inline-flex;
}

.tpvc-call-wave i {
    width: 3px;
    height: 100%;
    border-radius: 2px;
    background: var(--call-gold);
    animation: tpvcCallWave 0.9s ease-in-out infinite;
}

.tpvc-call-wave i:nth-child(2) { animation-delay: 0.12s; }
.tpvc-call-wave i:nth-child(3) { animation-delay: 0.24s; }
.tpvc-call-wave i:nth-child(4) { animation-delay: 0.36s; }
.tpvc-call-wave i:nth-child(5) { animation-delay: 0.48s; }

/* Result */
.tpvc-call-result {
    --outcome: var(--call-red);
    --outcome-solid: var(--call-red-solid);
    --outcome-soft: var(--call-red-soft);
    position: relative;
    margin: 0.75rem 1.125rem 0;
    padding: 0.875rem 1rem;
    border-radius: 14px;
    background: var(--outcome-soft);
    border: 1px solid var(--call-line);
    border-color: color-mix(in srgb, var(--outcome-solid) 35%, transparent);
    transition: background 0.5s ease, border-color 0.5s ease;
}

.tpvc-call-result > :not(.tpvc-call-result-wait) {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* While the call plays, the result's space holds a placeholder, so the card
   keeps its height and nothing on the page moves when the result lands. */
.tpvc-call-result-wait {
    position: absolute;
    inset: -1px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--call-muted);
    border: 1px dashed var(--call-node-line);
    border-radius: 14px;
}

.tpvc-call-result-spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--call-node-line);
    border-top-color: var(--call-gold);
    animation: tpvcCallSpin 0.9s linear infinite;
}

.tpvc-call.is-armed:not(.is-ended) .tpvc-call-result {
    background: transparent;
    border-color: transparent;
}

.tpvc-call.is-armed:not(.is-ended) .tpvc-call-result-wait {
    display: flex;
}

.tpvc-call-result--review {
    --outcome: var(--call-amber);
    --outcome-solid: var(--call-amber-solid);
    --outcome-soft: var(--call-amber-soft);
}

.tpvc-call-result--transfer {
    --outcome: var(--call-blue);
    --outcome-solid: var(--call-blue-solid);
    --outcome-soft: var(--call-blue-soft);
}

.tpvc-call.is-armed:not(.is-ended) .tpvc-call-result > :not(.tpvc-call-result-wait) {
    opacity: 0;
    transform: translateY(10px);
}

.tpvc-call-result-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tpvc-call-result-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--outcome-solid);
    box-shadow: 0 0 0 5px var(--outcome-soft);
}

.tpvc-call-result-icon svg {
    width: 16px;
    height: 16px;
}

.tpvc-call-result-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.125rem;
    line-height: 1.25;
    color: var(--text-primary);
}

.tpvc-call-result-sub {
    margin: 0.125rem 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--outcome);
}

.tpvc-call-result-rows {
    display: grid;
    gap: 0.375rem;
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--call-line);
}

.tpvc-call-result-rows > div {
    display: grid;
    grid-template-columns: 5.75rem 1fr;
    gap: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.tpvc-call-result-rows dt {
    color: var(--call-muted);
}

.tpvc-call-result-rows dd {
    margin: 0;
    color: var(--text-primary);
}

.tpvc-call.is-ended .tpvc-call-result-rows > div {
    animation: tpvcCallWord 0.4s ease-out both;
}

.tpvc-call.is-ended .tpvc-call-result-rows > div:nth-child(2) { animation-delay: 0.08s; }
.tpvc-call.is-ended .tpvc-call-result-rows > div:nth-child(3) { animation-delay: 0.16s; }
.tpvc-call.is-ended .tpvc-call-result-rows > div:nth-child(4) { animation-delay: 0.24s; }

/* Footer */
.tpvc-call-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: 0.875rem;
    padding: 0.75rem 1.125rem;
    font-size: 0.75rem;
    color: var(--call-muted);
    background: var(--call-raised);
    border-top: 1px solid var(--call-line);
}

.tpvc-call-replay {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
    padding: 0.25rem 0.625rem;
    font: inherit;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--call-line);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.tpvc-call-replay:hover,
.tpvc-call-replay:focus-visible {
    color: var(--text-primary);
    border-color: var(--call-gold);
}

.tpvc-call-replay[hidden] {
    display: none;
}

@keyframes tpvcCallRec {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

@keyframes tpvcCallSpin {
    to { transform: rotate(360deg); }
}

@keyframes tpvcCallPop {
    from { transform: scale(0.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes tpvcCallWave {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

@keyframes tpvcCallWord {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Founder note ---------- */
.tpvc-founder {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-left: 3px solid var(--accent-primary);
    border-radius: var(--radius-lg);
}

[data-theme="light"] .tpvc-founder {
    background: var(--bg-card-solid);
}

.tpvc-founder-photo {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.tpvc-founder .tpvc-founder-quote {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.tpvc-founder .tpvc-founder-sig {
    margin: 0;
    font-size: 0.9375rem;
}

.tpvc-founder .tpvc-founder-sig a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Four models ---------- */
.tpvc-models {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.tpvc-model,
.tpvc-outcome-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
}

[data-theme="light"] .tpvc-model,
[data-theme="light"] .tpvc-outcome-card {
    background: var(--bg-card-solid);
    box-shadow: var(--shadow-sm);
}

.tpvc-model h3,
.tpvc-outcome-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.tpvc-page .tpvc-model-how {
    color: var(--text-primary);
}

.tpvc-page .tpvc-model p:last-child,
.tpvc-page .tpvc-outcome-card p:last-child {
    margin-bottom: 0;
}

/* ---------- Callouts ---------- */
.tpvc-callout {
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    border: 1px solid rgba(212, 165, 48, 0.35);
    border-radius: var(--radius-lg);
    background: rgba(212, 165, 48, 0.07);
}

.tpvc-callout--quiet {
    border-color: var(--border-medium);
    background: transparent;
}

.tpvc-callout h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.tpvc-page .tpvc-callout p:last-child {
    margin-bottom: 0;
}

/* ---------- Three outcomes ---------- */
.tpvc-outcomes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.tpvc-outcome-card--alert {
    border-color: rgba(239, 68, 68, 0.45);
}

.tpvc-outcome-card--alert h3 {
    color: #f87171;
}

[data-theme="light"] .tpvc-outcome-card--alert h3 {
    color: #b91c1c;
}

.tpvc-after-cards {
    margin-top: var(--space-2xl);
}

/* ---------- Bulleted list ---------- */
.tpvc-list {
    list-style: disc;
    margin: var(--space-lg) 0;
    padding-left: 1.25rem;
}

.tpvc-list li {
    margin-bottom: var(--space-sm);
}

.tpvc-list li::marker {
    color: var(--accent-primary);
}

/* ---------- Steps and proofs ---------- */
.tpvc-steps,
.tpvc-proofs {
    list-style: none;
    counter-reset: tpvc-step;
    margin: var(--space-xl) 0;
}

.tpvc-steps li,
.tpvc-proofs > li {
    counter-increment: tpvc-step;
    position: relative;
    padding-left: 3rem;
    margin-bottom: var(--space-lg);
}

.tpvc-steps li::before,
.tpvc-proofs > li::before {
    content: counter(tpvc-step);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--accent-primary);
    border: 1px solid rgba(212, 165, 48, 0.4);
    border-radius: 50%;
}

.tpvc-proofs > li {
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.tpvc-proofs h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.tpvc-page .tpvc-our-answer {
    margin-bottom: 0;
    padding: var(--space-md) var(--space-lg);
    background: rgba(212, 165, 48, 0.07);
    border-radius: var(--radius-md);
}

/* ---------- Industries ---------- */
.tpvc-industries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.tpvc-industry {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-base), transform var(--transition-base);
}

.tpvc-industry:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.tpvc-industry-label {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
}

.tpvc-industry-blurb {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- FAQ ---------- */
.tpvc-faq-list {
    border-top: 1px solid var(--border-medium);
}

.tpvc-faq-item {
    border-bottom: 1px solid var(--border-medium);
}

.tpvc-faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tpvc-faq-item summary::-webkit-details-marker {
    display: none;
}

.tpvc-faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-primary);
    transition: transform var(--transition-fast);
}

.tpvc-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.tpvc-faq-answer {
    padding-bottom: var(--space-lg);
}

/* ---------- Related pages ---------- */
.tpvc-related {
    padding: var(--space-3xl) 0;
}

.tpvc-related-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.tpvc-related-list a {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    height: 100%;
    padding: var(--space-lg);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base);
}

.tpvc-related-list a:hover {
    border-color: var(--accent-primary);
}

.tpvc-related-label {
    font-weight: 600;
    color: var(--text-primary);
}

.tpvc-related-blurb {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---------- Forms ---------- */
.tpvc-form {
    position: relative;
}

.tpvc-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.tpvc-inline-field {
    display: flex;
    gap: var(--space-sm);
}

/* The contact form's fields take their styles from .form-group (landing.css). */
.tpvc-inline-field input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
}

.tpvc-inline-field input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(212, 165, 48, 0.15);
}

.tpvc-form .lead-consent {
    margin-top: var(--space-md);
}

.tpvc-contact-form .lead-consent {
    margin: 0 0 var(--space-md);
}

.tpvc-inline-field .btn-primary {
    flex-shrink: 0;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.tpvc-page .tpvc-form-note,
.tpvc-form-note {
    margin: var(--space-sm) 0 0;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.tpvc-form-note a {
    color: inherit;
    text-decoration: underline;
}

.tpvc-form-status {
    margin: var(--space-sm) 0 0;
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Empty but still rendered, so screen readers keep the live region. */
.tpvc-form-status:empty {
    margin: 0;
}

.tpvc-form[data-state="success"] .tpvc-form-status {
    color: var(--success);
}

.tpvc-form[data-state="error"] .tpvc-form-status {
    color: var(--error);
}

.tpvc-form button[disabled] {
    opacity: 0.6;
    cursor: wait;
}

/* ---------- Checklist ---------- */
.tpvc-checklist--hero,
.tpvc-checklist--inline {
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-card);
    border: 1px solid rgba(212, 165, 48, 0.35);
    border-radius: var(--radius-lg);
}

[data-theme="light"] .tpvc-checklist--hero,
[data-theme="light"] .tpvc-checklist--inline {
    background: var(--bg-card-solid);
}

.tpvc-checklist--inline {
    margin: var(--space-2xl) 0;
}

.tpvc-checklist .tpvc-checklist-kicker {
    margin: 0 0 var(--space-xs);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-primary);
}

.tpvc-checklist .tpvc-checklist-text {
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.tpvc-checklist-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: var(--space-3xl);
    align-items: center;
}

.tpvc-checklist-cover {
    width: 100%;
    height: auto;
    max-width: 360px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
}

/* ---------- Contact ---------- */
.tpvc-contact {
    background: var(--bg-secondary);
}

.tpvc-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.tpvc-contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
}

[data-theme="light"] .tpvc-contact-form {
    background: var(--bg-card-solid);
    box-shadow: var(--shadow-md);
}

.tpvc-contact-form .btn-primary {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.tpvc-signature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.tpvc-signature img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.tpvc-page .tpvc-signature p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ---------- Video ---------- */
.tpvc-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-medium);
    background: #000;
}

.tpvc-video-frame iframe,
.tpvc-video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Article context (shortcodes inside the guide) ---------- */
.article-content .tpvc-founder,
.article-content .tpvc-checklist--inline {
    margin: var(--space-2xl) 0;
}

.article-content .tpvc-section {
    padding: var(--space-2xl) 0;
    background: transparent;
}

.article-content .tpvc-narrow,
.article-content .section-container {
    padding: 0;
    max-width: none;
}

.article-content .tpvc-contact-grid,
.article-content .tpvc-checklist-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.article-content .tpvc-related-list {
    grid-template-columns: 1fr;
    padding-left: 0;
}

/* blog.css styles every article img, list item and link; undo that for the
   TPV components rendered by shortcodes. */
.article-content .tpvc-checklist-cover {
    max-width: 200px;
    margin: 0;
    border: 0;
    border-radius: var(--radius-md);
}

.article-content .tpvc-founder-photo,
.article-content .tpvc-signature img {
    margin: 0;
    border: 0;
    border-radius: 50%;
}

.article-content .tpvc-related-list li {
    list-style: none;
    margin-bottom: 0;
}

.article-content a.tpvc-related-link,
.article-content a.btn-secondary,
.article-content a.btn-primary {
    text-decoration: none;
}

.article-content a.tpvc-related-link {
    color: inherit;
}

.article-content a.btn-secondary {
    color: var(--text-primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .tpvc-hero-container,
    .tpvc-contact-grid {
        grid-template-columns: 1fr;
    }

    .tpvc-hero-visual {
        max-width: 560px;
    }

    .tpvc-outcomes,
    .tpvc-industries,
    .tpvc-related-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tpvc-hero {
        padding: 6.5rem var(--space-md) var(--space-2xl);
    }

    .tpvc-section {
        padding: var(--space-3xl) 0;
    }

    .tpvc-narrow,
    .tpvc-page .section-container {
        padding: 0 var(--space-md);
    }

    .tpvc-models,
    .tpvc-checklist-grid {
        grid-template-columns: 1fr;
    }

    .tpvc-checklist-cover {
        max-width: 220px;
    }

    .tpvc-inline-field {
        flex-direction: column;
    }

    .tpvc-contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .tpvc-founder {
        flex-direction: column;
    }

    .tpvc-call-result-rows > div {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tpvc-call *,
    .tpvc-call *::before,
    .tpvc-call *::after {
        animation: none !important;
        transition: none !important;
    }

    .tpvc-industry,
    .tpvc-faq-item summary::after {
        transition: none;
    }

    .tpvc-checklist-cover {
        transform: none;
    }
}
