/* === CONVERSION COMPONENTS ================================= */
.hero-split { text-align: left; }
.hero-split .hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero-split h1 { margin-inline: 0; font-size: clamp(1.875rem, 4.2vw, 2.875rem); line-height: 1.15; }
.hero-split .hero-copy p { color: rgba(255,255,255,0.85); max-width: 600px; margin-bottom: 1rem; }
.hero-split .hero-copy .hero-lead { font-size: 1.1875rem; color: #fff; font-weight: 500; }
.hero-split .hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: flex-start; margin-top: 1.5rem; }
.hero-split .hero-reassure { font-size: 0.9375rem; color: rgba(255,255,255,0.75); margin-top: 0.75rem; }
.hero-visual { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 1.25rem; }
.hero-visual__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.75); margin-bottom: 0.75rem; }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.problem-card__solution { font-size: 0.9375rem; color: var(--text-dark); border-top: 1px solid var(--border-gray); padding-top: 0.75rem; margin-top: auto; }

.mock { background: var(--bg-white); border: 1px solid var(--border-gray); border-radius: var(--radius); overflow: hidden; font-size: 0.8125rem; color: var(--text-dark); box-shadow: var(--shadow-sm); }
.mock__bar { background: var(--bg-light); border-bottom: 1px solid var(--border-gray); padding: 0.45rem 0.75rem; font-weight: 600; font-size: 0.75rem; color: var(--text-muted); }
.mock__scroll { overflow-x: auto; }
.mock table { width: 100%; border-collapse: collapse; }
.mock th, .mock td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--border-gray); text-align: left; white-space: nowrap; }
.mock th { background: #f1f5f9; font-weight: 600; font-size: 0.75rem; color: var(--text-muted); }
.mock--sheet th, .mock--sheet td { border-right: 1px solid var(--border-gray); font-family: Consolas, "Courier New", monospace; font-size: 0.75rem; }
.mock__warn { background: #fef9c3; }
.mock__empty { color: #94a3b8; font-style: italic; }
.mock__note { padding: 0.5rem 0.75rem; font-size: 0.75rem; color: var(--text-muted); background: var(--bg-light); margin: 0; }
.status { display: inline-block; border-radius: 999px; padding: 0.1rem 0.55rem; font-size: 0.6875rem; font-weight: 700; }
.status--ok { background: #dcfce7; color: #166534; }
.status--due { background: #fef3c7; color: #92400e; }
.status--late { background: #fee2e2; color: #991b1b; }
.status--new { background: #e0e7ff; color: #3730a3; }

.steps-h { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; counter-reset: sh; }
.steps-h li { counter-increment: sh; position: relative; padding-top: 3.25rem; }
.steps-h li::before { content: counter(sh); position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent-teal); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps-h h3 { font-size: 1.125rem; color: var(--text-dark); margin-bottom: 0.35rem; }
.steps-h p { font-size: 0.9375rem; margin-bottom: 0; }

.reassure-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.reassure-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.35rem; font-size: 0.9375rem; }
.reassure-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-teal); font-weight: 700; }

.btn-light { background: #fff; color: var(--primary-blue); border: 2px solid #fff; }
.btn-light:hover, .btn-light:focus { background: #f1f5f9; color: var(--primary-blue); }
.hiw-hero .hero-cta { margin-top: 1.5rem; }
.cta-section .cta-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.cta-section .cta-reassure { margin-top: 1rem; margin-bottom: 0; font-size: 0.9375rem; }
.sp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.sp-card__problem { font-weight: 600; color: var(--text-dark); }

.wf { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; list-style: none; padding: 0; margin: 0 0 1rem; }
.wf li { background: var(--bg-white); border: 1px solid var(--border-gray); border-left: 4px solid var(--accent-teal); border-radius: var(--radius); padding: 0.6rem 0.9rem; font-weight: 600; font-size: 0.9375rem; color: var(--text-dark); }
.wf li + li::before { content: "\2192"; margin-right: 0.6rem; color: var(--accent-teal-dark); }
.svc-body { max-width: 780px; margin-inline: auto; }
.svc-body h2 { margin-top: 2.25rem; }
.svc-body h2:first-child { margin-top: 0; }
.svc-body ul { padding-left: 1.25rem; }
.svc-body li { margin-bottom: 0.35rem; }
.hiw-hero .btn { margin-top: 1.25rem; }

/* Demonstrations */
.demo-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; margin-bottom: 0.5rem; }
.hero-visual .demo-label { color: rgba(255,255,255,0.8); }
.demo-dash, .demo-flow, .demo-improve { margin: 0; }
.demo-dash__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 0.75rem; border-bottom: 1px solid var(--border-gray); }
.demo-dash__tiles div { background: var(--bg-light); border-radius: var(--radius); padding: 0.5rem; text-align: center; }
.demo-dash__tiles strong { display: block; font-size: 1.25rem; color: var(--text-dark); }
.demo-dash__tiles span { font-size: 0.6875rem; color: var(--text-muted); }
.flow-v { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; }
.flow-v li { background: var(--bg-white); border: 1px solid var(--border-gray); border-top: 4px solid var(--accent-teal); border-radius: var(--radius); padding: 0.85rem; display: flex; flex-direction: column; gap: 0.4rem; }
.flow-v strong { display: block; color: var(--text-dark); font-size: 0.9375rem; }
.flow-v small { display: block; color: var(--text-muted); font-size: 0.8125rem; }
.flow-v__icon { font-size: 1.25rem; color: var(--accent-teal-dark); }
.improve-table { border: 1px solid var(--border-gray); border-radius: var(--radius); overflow: hidden; background: var(--bg-white); }
.improve-row { display: grid; grid-template-columns: 1fr 1fr; }
.improve-row span { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--border-gray); font-size: 0.9375rem; }
.improve-row span:first-child { color: var(--text-muted); border-right: 1px solid var(--border-gray); }
.improve-row span:last-child { color: var(--text-dark); font-weight: 600; }
.improve-row--head span { background: var(--bg-light); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.demo-block { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; }
.demo-block__cta { margin-top: 1rem; }

/* Compact solution and hosting cards */
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.solution-card { background: var(--bg-white); border: 1px solid var(--border-gray); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; }
.solution-card h3 { font-size: 1.0625rem; color: var(--text-dark); margin-bottom: 0.4rem; }
.solution-card p { font-size: 0.9375rem; margin-bottom: 0.75rem; }
.solution-card a { margin-top: auto; font-weight: 600; color: var(--accent-teal-dark); }
.host-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.host-card { background: var(--bg-white); border: 1px solid var(--border-gray); border-top: 4px solid var(--primary-blue); border-radius: var(--radius); padding: 1.25rem; }
.host-card h3 { font-size: 1.0625rem; color: var(--text-dark); margin-bottom: 0.4rem; }
.host-card p { font-size: 0.9375rem; margin-bottom: 0; }
.benefit-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.benefit-3 h3 { font-size: 1.0625rem; color: var(--text-dark); margin-bottom: 0.35rem; }
.benefit-3 p { font-size: 0.9375rem; margin-bottom: 0; }
.section-cta { text-align: center; margin-top: 1.75rem; }
.prose-narrow { max-width: 720px; margin-inline: auto; }

/* Hosting comparison table */
.host-table-wrap { overflow-x: auto; border: 1px solid var(--border-gray); border-radius: var(--radius); }
.host-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--bg-white); font-size: 0.9375rem; }
.host-table th, .host-table td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border-gray); text-align: left; vertical-align: top; }
.host-table thead th { background: var(--bg-light); color: var(--text-dark); }
.host-table tbody th { color: var(--text-dark); font-weight: 600; width: 22%; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.host-card p + p { margin-top: 0.6rem; }

/* Repositioned homepage */
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.help-list { margin: 0.75rem 0 1rem 1.1rem; padding: 0; columns: 2; column-gap: 1.5rem; font-size: 0.925rem; }
.help-list li { break-inside: avoid; margin-bottom: 0.25rem; }
.familiar-list { list-style: none; margin: 1.5rem auto; padding: 0; max-width: 760px; display: grid; gap: 0.6rem; }
.familiar-list li { padding: 0.75rem 1rem 0.75rem 2.5rem; background: var(--bg-white, #fff); border: 1px solid var(--border-gray, #e5e7eb); border-radius: var(--radius, 8px); position: relative; }
.familiar-list li::before { content: "\2713"; position: absolute; left: 1rem; color: var(--accent-teal, #0d9488); font-weight: 700; }
.repair-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; align-items: start; margin-top: 1.5rem; }
.flow-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 0; }
.flow-compare figcaption { grid-column: 1 / -1; }
.flow-compare__col { border: 1px solid var(--border-gray, #e5e7eb); border-radius: var(--radius, 8px); padding: 1rem; background: var(--bg-white, #fff); }
.flow-compare__col--before { border-top: 4px solid #dc2626; }
.flow-compare__col--after { border-top: 4px solid var(--accent-teal, #0d9488); }
.flow-compare ol { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.flow-compare li { padding: 0.5rem 0.75rem; border-radius: 6px; background: #f8fafc; position: relative; }
.flow-compare li + li::before { content: "\2193"; position: absolute; top: -0.85rem; left: 50%; font-size: 0.75rem; color: #94a3b8; }
.flow-compare li.is-fail { background: #fef2f2; color: #991b1b; font-weight: 600; }
.cta-reassure { margin-top: 1rem; font-size: 0.95rem; opacity: 0.9; }
.benefit-3.benefit-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .benefit-3.benefit-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .benefit-3.benefit-4 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .help-grid, .repair-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .flow-compare { grid-template-columns: 1fr; }
  .help-list { columns: 1; }
}

/* FAQ list used on service pages */
.faq-simple dt { font-weight: 700; color: var(--text-dark); margin-top: 1rem; }
.faq-simple dd { margin: 0.25rem 0 0; }

@media (max-width: 1024px) {
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-v { grid-template-columns: 1fr; }
  .flow-v li { flex-direction: row; align-items: flex-start; border-top-width: 1px; border-left: 4px solid var(--accent-teal); }
}
@media (max-width: 900px) {
  .hero-split .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .problem-grid, .steps-h, .host-grid, .benefit-3, .demo-block { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .solution-grid { grid-template-columns: 1fr; }
  .hero-split .hero-visual { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Hero connected-workflow visual */
.rwv { margin: 0; display: grid; gap: .6rem; padding: 1.1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); color: #0f172a; text-align: left; min-width: 0; }
.rwv__title { margin: 0; font-weight: 700; font-size: 1rem; color: #0f172a; }
.rwv__label { margin: 0 0 .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.rwv__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.rwv__step { display: flex; align-items: flex-start; gap: .55rem; padding: .5rem .65rem; border-radius: 8px; background: #fff7ed; border: 1px dashed #fdba74; line-height: 1.3; }
.rwv__step svg { width: 18px; height: 18px; flex: none; margin-top: .1rem; color: #b45309; }
.rwv__step strong { display: block; font-size: .9rem; }
.rwv__step small { display: block; font-size: .8rem; color: #475569; }
.rwv__step.is-ok { background: #f0fdf4; border: 1px solid #bbf7d0; }
.rwv__step.is-ok::before { content: "\2713"; font-weight: 700; color: #16a34a; flex: none; }
.rwv__with { display: flex; flex-direction: column; align-items: center; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-teal-dark, #0f766e); }
.rwv__with::after { content: "\2193"; font-size: 1.1rem; line-height: 1; }
.rwv__caption { text-align: right; font-size: .7rem; color: #64748b; }
.help-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .help-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .hero-split .hero-visual { display: block; margin-top: 1.5rem; }
}
@media (max-width: 600px) { .help-grid--4 { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .hero-split .hero-visual { display: block; }
}

/* Problem entry points */
.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.entry-card { padding: 1.75rem; border-radius: 14px; background: var(--color-surface, #fff); border: 1px solid var(--color-border, #e2e8f0); border-top: 4px solid var(--color-primary, #1d4ed8); display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.entry-card--fix { border-top-color: #d97706; }
.entry-card p { margin: 0; }
.entry-card .btn { margin-top: auto; }
.feature-card--accent { border-color: #fcd34d; box-shadow: 0 0 0 1px #fde68a inset; }
@media (max-width: 700px) { .entry-grid { grid-template-columns: 1fr; } }

/* Compact connected-workflow steps */
.wf-steps { margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.wf-steps__row { display: grid; gap: .5rem; }
.wf-steps__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; counter-reset: wf; }
.wf-steps__list li { counter-increment: wf; padding: .45rem .75rem; border-radius: 999px; font-size: .875rem; background: #f8fafc; border: 1px solid #e2e8f0; }
.wf-steps__list li::before { content: counter(wf) ". "; font-weight: 700; }
.wf-steps__list--after li { background: #f0fdf4; border-color: #bbf7d0; }
@media (max-width: 600px) { .wf-steps__list { flex-direction: column; } }

/* Workflow demonstration (Examples) */
.wf-demo { border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.25rem; background: #fff; display: grid; gap: 1rem; }
.wf-demo__controls { display: flex; flex-wrap: wrap; gap: .5rem; }
.wf-demo__controls [aria-pressed="true"] { outline: 2px solid #0d9488; outline-offset: 2px; font-weight: 700; }
.wf-demo__steps { display: grid; gap: .5rem; padding-left: 1.25rem; margin: 0; }
.wf-demo__steps li { padding: .5rem .75rem; border-radius: 8px; background: #f8fafc; border-left: 4px solid #94a3b8; }
.wf-demo__steps li.is-fail { border-left-color: #b45309; background: #fffbeb; }
.wf-demo__steps li.is-work { border-left-color: #2563eb; background: #eff6ff; }
.wf-demo__steps li.is-ok { border-left-color: #15803d; background: #f0fdf4; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Homepage hero customer-choice cards */
.hero-choice { padding-block: 3rem; }
.hero-choice h1 { max-width: 850px; }
.hero-intro { max-width: 720px; margin: 0 auto; }
.hero-intro p { font-size: 1.0625rem; line-height: 1.6; color: rgba(255,255,255,0.82); font-weight: 400; margin: 0 0 1rem; }
.hero-intro p:last-child { margin-bottom: 0; }
.hero-intro .hero-intro__lead { color: rgba(255,255,255,0.9); font-weight: 400; font-size: 1.125rem; line-height: 1.6; margin: 1.25rem 0 0; }
.hero-support { max-width: 720px; margin: 1.125rem auto 0; font-size: 0.875rem; line-height: 1.5; color: rgba(255,255,255,0.75); text-align: center; }
@media (max-width: 480px) { .hero-choice .container { padding-inline: 1rem; } .hero-intro .hero-intro__lead { font-size: 1.03125rem; } }
.choice-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 880px; margin: 1.625rem auto 0; }
@media (min-width: 768px) { .choice-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.choice-card { display: flex; flex-direction: column; gap: 0.6rem; height: 100%; background: var(--bg-white); color: var(--text-dark); border: 1px solid var(--border-gray); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); text-align: left; }
.choice-card h2 { font-size: 1.25rem; margin: 0; color: var(--text-dark); }
.choice-card p { margin: 0; color: var(--text-muted); }
.choice-card .btn { margin-top: auto; align-self: flex-start; min-height: 44px; }
.choice-card__icon { width: 2rem; height: 2rem; color: var(--accent-teal-dark); }
.choice-card__icon svg { width: 100%; height: 100%; }
@media (max-width: 480px) { .choice-card { padding: 1.25rem; } .choice-card .btn { align-self: stretch; text-align: center; } }

/* Homepage workflow example and start section */
.flow-compare__summary { margin: 1.5rem auto 1rem; }
.start-lead { margin-bottom: 0; }

/* Homepage .NET repair callout */
.dotnet-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; background: var(--bg-light); border: 1px solid var(--border-gray); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.dotnet-callout__icon { width: 2.25rem; height: 2.25rem; flex: 0 0 auto; color: var(--accent-teal-dark); }
.dotnet-callout__icon svg { width: 100%; height: 100%; }
.dotnet-callout__body { flex: 1 1 20rem; }
.dotnet-callout__body h2 { font-size: 1.25rem; margin: 0 0 0.35rem; }
.dotnet-callout__body p { margin: 0; }
.dotnet-callout .btn { min-height: 44px; }
