/* === Homepage ============================================ */
:root { --amber: #b45309; --amber-soft: #fef3c7; --amber-bar: #d97706; }

.hp-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8125rem; font-weight: 700; color: var(--accent-teal); margin-bottom: 0.75rem; }
.hp-section { padding-block: 4.5rem; }
.hp-section--alt { background: var(--bg-light); }
.hp-intro { max-width: 780px; margin: 0 auto 2.25rem; text-align: center; }
.hp-intro h2 { font-size: clamp(1.625rem, 1.15rem + 1.6vw, 2.375rem); line-height: 1.2; margin-bottom: 1rem; }
.hp-intro p { font-size: 1.0625rem; line-height: 1.65; color: var(--text-muted); }
.hp-center { text-align: center; margin-top: 1.5rem; }
.hp-closing { text-align: center; font-size: 1.125rem; font-weight: 600; max-width: 680px; margin: 2rem auto 0; }
.hp-note { text-align: center; font-size: 0.9375rem; color: var(--text-muted); max-width: 720px; margin: 1.75rem auto 0; }
.hp-link { font-weight: 600; color: var(--accent-teal-dark); }
.hp-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hp-actions--center { justify-content: center; }

/* Hero */
.hp-hero { background: var(--primary-blue); color: #fff; padding-block: 3.5rem 4rem; overflow: hidden; }
.hp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hp-hero .hp-eyebrow { color: #5eead4; }
.hp-hero h1 { color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 3.375rem); line-height: 1.1; margin-bottom: 1rem; }
.hp-hero__lead { font-size: 1.3125rem; font-weight: 600; color: #fff; margin-bottom: 0.75rem; }
.hp-hero__copy p { color: rgba(255,255,255,0.9); line-height: 1.6; }
.hp-hero__trust { margin-top: 1rem; font-size: 0.9375rem; color: rgba(255,255,255,0.82) !important; }

/* Dashboard */
.hp-dash { margin: 0; background: #fff; color: var(--text-dark); border-radius: 12px; box-shadow: 0 20px 40px rgba(2,6,23,0.25); padding: 1.5rem; }
.hp-dash__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.hp-dash__title { font-weight: 700; margin: 0; }
.hp-dash__sub { margin: 0.15rem 0 0; font-size: 0.875rem; color: var(--text-muted); }
.hp-dash__badge { display: inline-block; flex-shrink: 0; background: var(--bg-light); border: 1px solid var(--border-gray); color: var(--text-muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.25rem 0.6rem; border-radius: 999px; }
.hp-dash__primary { margin: 1.25rem 0 1rem; display: flex; flex-direction: column; }
.hp-dash__value { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 800; color: var(--amber); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hp-dash__label { font-size: 0.9375rem; color: var(--text-muted); }
.hp-dash__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0 0 1.25rem; }
.hp-dash__stats div { background: var(--bg-light); border-radius: 8px; padding: 0.6rem 0.75rem; }
.hp-dash__stats dt { font-size: 0.75rem; color: var(--text-muted); }
.hp-dash__stats dd { margin: 0; font-weight: 700; font-size: 1.125rem; }
.hp-dash__table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hp-dash__table th, .hp-dash__table td { padding: 0.5rem 0; border-bottom: 1px solid var(--border-gray); text-align: left; font-weight: 500; vertical-align: middle; }
.hp-dash__table thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 600; }
.hp-dash__table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 1rem; }
.hp-dash__table tfoot th, .hp-dash__table tfoot td { font-weight: 700; border-bottom: none; color: var(--amber); }
.hp-bar { display: block; height: 6px; background: var(--amber-soft); border-radius: 3px; margin-top: 0.3rem; max-width: 220px; }
.hp-bar span { display: block; height: 100%; background: var(--amber-bar); border-radius: 3px; }
.hp-dash__note { margin-top: 1rem; font-size: 0.8125rem; color: var(--text-muted); }

/* Cards and grids */
.hp-grid { display: grid; gap: 1.25rem; }
.hp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hp-grid--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hp-grid--5 > * { grid-column: span 2; }
.hp-grid--5 > :nth-child(4) { grid-column: 2 / span 2; }
.hp-card { display: block; background: #fff; border: 1px solid var(--border-gray); border-radius: 10px; padding: 1.5rem; color: inherit; text-decoration: none; }
.hp-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.hp-card h3 a { color: inherit; text-decoration: none; }
.hp-card h3 a::after { content: " \2192"; color: var(--accent-teal); }
.hp-card h3 a:hover, .hp-card h3 a:focus-visible { color: var(--accent-teal-dark); text-decoration: underline; }
.hp-card p { margin: 0; color: var(--text-muted); line-height: 1.6; }
a.hp-card:hover, a.hp-card:focus-visible { border-color: var(--accent-teal); text-decoration: none; }
.hp-card--problem { border-top: 4px solid var(--amber-bar); }
.hp-card__num { display: inline-flex; width: 2rem; height: 2rem; border-radius: 50%; align-items: center; justify-content: center; background: var(--amber-soft); color: var(--amber); font-weight: 700; margin-bottom: 0.75rem; }
.hp-icon { display: inline-flex; width: 2.5rem; height: 2.5rem; border-radius: 8px; align-items: center; justify-content: center; background: rgba(13,148,136,0.1); color: var(--accent-teal-dark); margin-bottom: 0.75rem; }

/* Process */
.hp-process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: hp; }
.hp-process li { position: relative; background: #fff; border: 1px solid var(--border-gray); border-radius: 10px; padding: 1.5rem 1.25rem; }
.hp-process li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -1.25rem; width: 1.25rem; height: 2px; background: var(--accent-teal); }
.hp-process__stage { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-teal-dark); margin-bottom: 0.4rem; }
.hp-process h3 { font-size: 1.125rem; }
.hp-process p { margin: 0; color: var(--text-muted); }

/* Flow diagram */
.hp-flow { display: grid; grid-template-columns: minmax(0, 1.3fr) 2rem minmax(0, 0.8fr) 2rem minmax(0, 1fr); align-items: center; gap: 0.75rem; }
.hp-flow__sources { display: grid; gap: 0.75rem; }
.hp-flow__box { background: #fff; border: 1px solid var(--border-gray); border-radius: 10px; padding: 1rem 1.25rem; }
.hp-flow__box h3 { font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.4rem; }
.hp-flow__box ul, .hp-flow__outputs { margin: 0; padding-left: 1.1rem; }
.hp-flow__engine { background: var(--primary-blue); color: #fff; font-weight: 700; text-align: center; border-radius: 10px; padding: 1.5rem 1rem; }
.hp-flow__arrow { height: 2px; background: var(--accent-teal); position: relative; }
.hp-flow__arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left-color: var(--accent-teal); }
.hp-flow__outputs { background: #fff; border: 1px solid var(--accent-teal); border-radius: 10px; padding: 1rem 1rem 1rem 2.1rem; }
.hp-flow__outputs li { margin-bottom: 0.25rem; }
.hp-checks { list-style: none; padding: 0; margin: 2rem auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem 1.5rem; }
.hp-checks li { position: relative; padding-left: 1.5rem; }
.hp-checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-teal); font-weight: 700; }

/* Value example */
.hp-value { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--border-gray); border-radius: 12px; padding: 2rem; text-align: center; }
.hp-value__badge { margin: 0 auto 1.25rem; }
.hp-value__grid { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.hp-value__grid dt { font-size: 0.875rem; color: var(--text-muted); }
.hp-value__grid dd { margin: 0; font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hp-value__op { font-size: 1.5rem; color: var(--text-muted); }
.hp-value__result dd { color: var(--amber); }

/* Software chips */
.hp-chips { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; max-width: 900px; }
.hp-chips li { border: 1px solid var(--border-gray); background: #fff; border-radius: 999px; padding: 0.5rem 1rem; font-weight: 500; }

/* Partner */
.hp-partner { background: #0f2a6b; color: #fff; padding-block: 4.5rem; }
.hp-partner .hp-intro h2 { color: #fff; }
.hp-partner .hp-intro p { color: rgba(255,255,255,0.88); }
.hp-partner .hp-eyebrow { color: #5eead4; }
.hp-card--partner { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); color: #fff; }
.hp-card--partner h3 { color: #fff; }
.hp-card--partner .hp-link { color: #5eead4; }
a.hp-card--partner:hover, a.hp-card--partner:focus-visible { background: rgba(255,255,255,0.12); border-color: #5eead4; }

/* Secondary services */
.hp-secondary { padding-block: 3rem; }
.hp-secondary .hp-intro h2 { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); }
.hp-card--compact { padding: 1rem 1.25rem; }
.hp-card--compact h3 { font-size: 1rem; margin: 0; }
.hp-card--compact h3::after { content: " \2192"; color: var(--accent-teal); }

@media (max-width: 1024px) {
    .hp-hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-grid--5 > *, .hp-grid--5 > :nth-child(4) { grid-column: auto; }
    .hp-grid--5 > :last-child { grid-column: 1 / -1; }
    .hp-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-process li::after { display: none; }
    .hp-flow { grid-template-columns: 1fr; }
    .hp-flow__arrow { width: 2px; height: 1.75rem; justify-self: center; }
    .hp-flow__arrow::after { right: -5px; top: auto; bottom: -4px; border-left-color: transparent; border-top-color: var(--accent-teal); }
    .hp-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .hp-section, .hp-partner { padding-block: 3rem; }
    .hp-grid--3, .hp-grid--4, .hp-grid--5, .hp-process, .hp-checks { grid-template-columns: 1fr; }
    .hp-grid--5 > :last-child { grid-column: auto; }
    .hp-actions .btn { width: 100%; text-align: center; }
    .hp-dash { padding: 1.125rem; }
    .hp-dash__stats dd { font-size: 1rem; }
    .hp-value { padding: 1.5rem 1rem; }
    .hp-value__grid { flex-direction: column; }
}
