/* US market pages — styles layered on top of index2.css.
   English-only marketing pages (Reg S-P landing + advisers).
   Reuses the Resilis brand tokens from index2.css (--primary-color, etc.). */

:root {
    --us-amber: #d97706;
    --us-amber-soft: #fef3c7;
    --us-green: #047857;
    --us-ink: #0f172a;
}

/* ---- shared section helpers ---- */
.us-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.us-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    background: #fff;
}

/* ---- pain cards ---- */
.pain-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    transition: all 0.3s ease;
}
.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

/* ---- segment cards ---- */
.segment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .segment-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .segment-grid { grid-template-columns: repeat(3, 1fr); }
}

.segment-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    background: #fff;
    padding: 1.75rem;
    transition: all 0.3s ease;
}
.segment-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 25px -5px rgba(83, 109, 230, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.segment-card .segment-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.segment-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--us-ink);
    margin-bottom: 0.75rem;
}
.segment-card p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.55;
    flex-grow: 1;
}
/* Cards that carry a CTA are clickable as a whole (stretched-link pattern). */
.segment-card:has(.segment-cta) { cursor: pointer; }
.segment-card .segment-cta {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.2s ease;
}
.segment-card .segment-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}
.segment-card .segment-cta:hover { color: var(--secondary-color); }
/* Keep any inline links inside the card body above the stretched overlay. */
.segment-card p a { position: relative; z-index: 1; }
.segment-card.is-featured {
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px -8px rgba(83, 109, 230, 0.18);
}

/* ---- accordion (native <details>) used on adviser pages ---- */
.us-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.us-accordion[open] {
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px -8px rgba(83, 109, 230, 0.15);
}
.us-accordion > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--us-ink);
}
.us-accordion > summary::-webkit-details-marker { display: none; }
.us-accordion > summary .summary-kicker {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}
.us-accordion > summary .summary-icon {
    flex: 0 0 auto;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.25s ease;
}
.us-accordion[open] > summary .summary-icon { transform: rotate(45deg); }
.us-accordion .accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: #374151;
    line-height: 1.65;
}
.us-accordion .accordion-body .ans-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--us-green);
    margin-bottom: 0.4rem;
}

/* ---- before / after contrast ---- */
.contrast-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .contrast-grid { grid-template-columns: 1fr 1fr; }
}
.contrast-col { border-radius: 0.875rem; padding: 1.75rem; }
.contrast-col.before { background: #f8fafc; border: 1px solid #e5e7eb; }
.contrast-col.after { background: #fff; border: 1px solid var(--accent-color); }
.contrast-col h4 { font-weight: 700; font-size: 1.125rem; margin-bottom: 1rem; color: var(--us-ink); }
.contrast-col li { display: flex; gap: 0.6rem; padding: 0.55rem 0; font-size: 0.95rem; color: #4b5563; border-bottom: 1px dashed #e5e7eb; }
.contrast-col li:last-child { border-bottom: 0; }
.contrast-col.before li i { color: var(--us-amber); }
.contrast-col.after li i { color: var(--us-green); }

/* ---- status console (hero side panel) ---- */
.us-console {
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.25);
}
.us-console .state { padding: 0.85rem 0; }
.us-console .state .dot {
    display: inline-block;
    width: 0.6rem; height: 0.6rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
    vertical-align: middle;
}
.us-console .state .dot.amber { background: var(--us-amber); }
.us-console .state .dot.green { background: var(--us-green); }

/* ---- evidence still ---- */
.us-figure {
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    overflow: hidden;
    background: #fff;
}
.us-figure svg { display: block; width: 100%; height: auto; border-bottom: 1px solid #e5e7eb; }
.us-figure img { display: block; width: 100%; height: auto; padding: 1rem; box-sizing: border-box; border-bottom: 1px solid #e5e7eb; }

/* ---- obligation -> capability table (healthcare pages) ---- */
.us-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}
.us-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.us-table th,
.us-table td {
    text-align: left;
    vertical-align: top;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.55;
}
.us-table thead th {
    background: #f8fafc;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.us-table tbody tr:last-child td { border-bottom: 0; }
.us-table tbody td:first-child { color: var(--us-ink); font-weight: 600; }
.us-table td strong { color: var(--us-ink); }
.us-table .col-offer { color: #374151; }

.us-table-note {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.6;
    margin-top: 1rem;
}
.us-table-note code,
.us-table-note em { font-style: normal; }

/* ---- numbered steps (test -> learn -> revise) ---- */
.us-step {
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    background: #fff;
    padding: 1.75rem;
    height: 100%;
}
.us-step .step-num {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.us-step h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--us-ink);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}
.us-step p { color: #4b5563; font-size: 0.95rem; line-height: 1.55; }

/* ---- founder / people block ---- */
.us-people {
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--accent-color);
    border-radius: 0.875rem;
    background: #fff;
    padding: 2rem;
    color: #374151;
    line-height: 1.7;
}
.us-people p + p { margin-top: 1rem; }
.us-people strong { color: var(--us-ink); }
