/* =============================================================================
   USING CREDITS — credit model guide
   CR: fysh-using-credits-rebuild-2026-09-27
   Loaded only by using-credits.php via $page_css. Mirrors the price-broker
   feature page layout (navy gradient hero, section rhythm, premium content
   cards, navy CTA band) so the two explainer pages read as one family.
   Shared globals do the heavy lifting: .container, .section, .section-eyebrow,
   .section-heading and .btn come from base/components. Content cards use the
   project standard 4px radius.
============================================================================= */

/* ── Hero (matches .pb-hero) ───────────────────────────────────────────────── */
.uc-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, var(--navy) 0%, #12305A 55%, #1A3A6E 100%);
    padding: 5rem 0 4rem;
    text-align: center;
}
/* Hero watermark. Same approach as the Price Broker hero, rotation reversed and
   zoomed out to reveal more of the artwork. CR: fysh-uc-hero-watermark-2026-09-28 */
.uc-hero::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 62%;
    width: 2283px;
    height: 1239px;
    transform: translate(-50%, -50%) rotate(-40deg);
    background: url('/assets/img/using-credits-hero-wm.webp') no-repeat center;
    background-size: 1300px auto;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}
.uc-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}
.uc-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(201,168,76,0.14);
    color: var(--gold-lt, #E8C96A);
    border: 1px solid rgba(201,168,76,0.32);
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
}
.uc-hero__label svg { flex-shrink: 0; }
.uc-hero__heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0;
}
.uc-hero__sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    max-width: 54ch;
    margin: 0;
}
.uc-hero__cta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ── Intro section ─────────────────────────────────────────────────────────── */
.uc-intro { max-width: 760px; }
.uc-intro .section-eyebrow { display: block; margin-bottom: 0.5rem; }
.uc-intro .section-heading { margin-bottom: 1rem; }
.uc-intro__text {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* Lead answer now uses the shared .resolve-card component (components.css) */

/* ── Credit cards grid ─────────────────────────────────────────────────────── */
.uc-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
}
@media (min-width: 640px)  { .uc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .uc-grid { grid-template-columns: repeat(3, 1fr); } }

/* The final card spans the full row on 2-up so it never sits alone half width */
@media (min-width: 640px) and (max-width: 899px) {
    .uc-grid .uc-card:last-child { grid-column: 1 / -1; }
}

.uc-card {
    background: var(--white, #fff);
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 4px;
    padding: 1.6rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(15,35,64,0.07));
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.uc-card:hover {
    box-shadow: var(--shadow-md, 0 6px 20px rgba(15,35,64,0.13));
    transform: translateY(-3px);
    border-color: rgba(201,168,76,0.5);
}
.uc-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(201,168,76,0.16), rgba(201,168,76,0.05));
    border: 1px solid rgba(201,168,76,0.35);
    color: var(--gold-dark, #A8863A);
    flex-shrink: 0;
}
.uc-card__icon i { font-size: 22px; line-height: 1; }
.uc-card__title {
    font-family: var(--font-display, 'Nunito', system-ui, sans-serif);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--navy, #0F2340);
    line-height: 1.3;
    margin: 0 0 0.5rem;
}
.uc-card__body {
    font-size: 0.9rem;
    color: var(--slate, #3A4657);
    line-height: 1.65;
    margin: 0;
}
/* Inline links adopt the shared public-page prose link treatment (matches
   .sg-prose a). The global reset is a { color: inherit; text-decoration: none; },
   so links need this to read as links. CR: fysh-using-credits-link-2026-10-08 */
.uc-card__body a {
    color: var(--blue, #1E5BA8);
    text-decoration: underline;
    text-decoration-color: rgba(30, 91, 168, 0.3);
    text-underline-offset: 2px;
    transition: color var(--ease), text-decoration-color var(--ease);
}
.uc-card__body a:hover,
.uc-card__body a:focus-visible {
    color: var(--navy);
    text-decoration-color: var(--navy);
}

/* ── CTA band (matches .pb-cta-band) ───────────────────────────────────────── */
.uc-cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, var(--navy) 0%, #12305A 55%, #1A3A6E 100%);
    padding: 5rem 0;
    text-align: center;
}
/* CTA band watermark. Same approach as the hero, rotation reversed and zoomed out
   to reveal more of the artwork. CR: fysh-uc-cta-watermark-2026-09-28 */
.uc-cta-band::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 62%;
    width: 2295px;
    height: 1550px;
    transform: translate(-50%, -50%) rotate(-40deg);
    background: url('/assets/img/using-credits-cta-wm.webp') no-repeat center;
    background-size: 1300px auto;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}
.uc-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.uc-cta-heading {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin: 0;
}
.uc-cta-heading em { font-style: italic; color: var(--gold-lt, #E8C96A); }
.uc-cta-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.65;
    max-width: 46ch;
    margin: 0;
}
.uc-cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}
