/* ==========================================================================
   URN homepage — lead-generation layer (Nov 2026)
   Loads after urn-home.css and reuses its --uh-* tokens. Scoped to .uh.
   Mobile-first: base rules target ~360px, wider layouts are opt-in.
   Rules that hide content are gated on .uhl-js, which urn-home-leads.js sets,
   so the page stays fully usable if that script fails to load.
   ========================================================================== */

.uh {
    --uhl-tint: #e9f3fa;
    --uhl-shadow: 0 24px 60px rgba(8, 61, 68, 0.14);
    --uhl-field-h: 48px;
}

/* ---------- Hero: copy + quote form ---------- */
.uh-hero--lead .uh-hero-grid {
    display: flex;
    flex-direction: column;
}
/* On phones the form sits directly under the headline; secondary actions follow it. */
.uh-hero--lead .uh-hero-copy { display: contents; }
.uh-hero--lead .uh-hero-copy > * { order: 6; }
.uh-hero--lead .uh-hero-copy > .uh-eyebrow { order: 1; }
.uh-hero--lead .uh-hero-copy > h1 { order: 2; }
.uh-hero--lead .uh-hero-copy > .uh-lede { order: 3; }
.uh-hero--lead .uh-quote { order: 4; }
.uh-hero--lead .uh-hero-copy > .uh-actions { order: 5; margin-top: 22px; }
.uh-hero--lead .uh-hero-points { display: none; }

.uh-hero--lead h1 {
    font-size: clamp(32px, 7.6vw, 58px);
    line-height: 1.06;
    max-width: 760px;
}
.uh-hero--lead .uh-lede { margin-bottom: 22px; }

.uh-hero-points {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--uh-ink);
}
.uh-hero-points li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}
.uh-hero-points li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e3f4ea;
    color: var(--uh-wa);
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 980px) {
    .uh-hero--lead { text-align: left; }
    .uh-hero--lead .uh-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: 56px;
        align-items: start;
    }
    .uh-hero--lead .uh-hero-copy { display: block; }
    .uh-hero--lead .uh-hero-points { display: block; }
    .uh-hero--lead h1,
    .uh-hero--lead .uh-lede { margin-left: 0; margin-right: 0; }
    .uh-hero--lead .uh-actions { justify-content: flex-start; margin-top: 0; }
    .uh-hero--lead .uh-host { margin-left: 0; margin-right: auto; }
    .uh-hero--lead .uh-quote { position: sticky; top: calc(var(--urn-nav-h, 92px) + 16px); }
}

/* ---------- Quote card ---------- */
.uh-quote {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--uh-line);
    border-radius: var(--uh-radius);
    box-shadow: var(--uhl-shadow);
    padding: 22px 18px 20px;
    text-align: left;
    scroll-margin-top: calc(var(--urn-nav-h, 92px) + 16px);
}
.uh-quote-head h2,
.uh-quote-done h2 {
    font-family: var(--uh-display);
    font-size: clamp(21px, 5.4vw, 26px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 4px;
    color: var(--uh-ink);
}
.uh-quote-head p { font-size: 14.5px; color: var(--uh-ink-soft); margin: 0 0 14px; }
.uh-quote-dots {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
}
.uh-quote-dots li {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--uh-tile);
    transition: background-color 0.3s;
}
.uh-quote-dots li.is-on { background: var(--uh-blue); }

.uh-qstep {
    border: 0;
    margin: 0 0 18px;
    padding: 0;
    min-width: 0;
}
.uh-qstep legend,
.uh-qlabel {
    float: none;
    width: auto;
    font-size: 16px;
    font-weight: 700;
    color: var(--uh-ink);
    margin: 0 0 12px;
    padding: 0;
}
.uh-qlabel { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.uhl-js .uh-qstep { display: none; margin-bottom: 0; }
.uhl-js .uh-qstep.is-on { display: block; animation: uhl-step 0.35s var(--uh-ease) both; }
@keyframes uhl-step {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: none; }
}

.uh-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.uh-chips--sm { margin-bottom: 4px; }
.uh-chip { position: relative; margin: 0; cursor: pointer; }
.uh-chip input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}
.uh-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 56px;
    padding: 8px 10px;
    border: 1.5px solid var(--uh-line);
    border-radius: var(--uh-radius-sm);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--uh-ink);
    background: #fff;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--uh-ease);
}
.uh-chips--sm .uh-chip span { min-height: 46px; font-size: 14px; }
.uh-chip:hover span { border-color: var(--uh-blue); }
.uh-chip:active span { transform: scale(0.97); }
.uh-chip input:checked + span {
    background: var(--uhl-tint);
    border-color: var(--uh-blue);
    color: var(--uh-blue-dark);
}
.uh-chip input:focus-visible + span { outline: 3px solid var(--uh-orange); outline-offset: 2px; }

.uh-qnav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}
.uh-qnav .uh-btn { flex: 1; }
.uh-qback {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 6px;
    background: none;
    border: 0;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--uh-ink-soft);
    cursor: pointer;
}
.uh-qback:hover { color: var(--uh-ink); text-decoration: underline; }
.uh-qback:focus-visible { outline: 3px solid var(--uh-orange); outline-offset: 2px; border-radius: 6px; }
.uh-qerror {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #b3261e;
}
.uh-quote .uh-field input.is-bad { border-color: #b3261e; }
.uh-quote .uh-form-fine { margin-top: 12px; }

.uh-quote-done { text-align: center; padding: 18px 4px 8px; }
.uh-quote-done p { font-size: 15.5px; color: var(--uh-ink-soft); margin: 6px 0 18px; }
.uh-quote-tick {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #e3f4ea;
    color: var(--uh-wa);
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.uh-quote-done .uh-btn { width: 100%; }

@media (min-width: 560px) {
    .uh-quote { padding: 30px 28px 26px; }
}

/* ---------- "Check us before you trust us" strip ---------- */
.uh-diff {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.uh-diff li { display: flex; gap: 14px; align-items: flex-start; }
.uh-diff i {
    flex: 0 0 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--uhl-tint);
    color: var(--uh-blue);
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.uh-diff strong { display: block; font-size: 16px; line-height: 1.3; color: var(--uh-ink); margin-bottom: 3px; }
.uh-diff span { font-size: 14.5px; line-height: 1.5; color: var(--uh-ink-soft); }
@media (min-width: 640px) { .uh-diff { grid-template-columns: 1fr 1fr; gap: 24px 32px; } }
@media (min-width: 1080px) { .uh-diff { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Free lead magnets ---------- */
.uh-magnets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.uh-magnet {
    background: #fff;
    border: 1px solid var(--uh-line);
    border-radius: var(--uh-radius);
    padding: 26px 20px;
}
.uh-magnet h3 {
    font-family: var(--uh-display);
    font-size: clamp(22px, 5vw, 27px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 8px;
    color: var(--uh-ink);
}
.uh-magnet > p { font-size: 15.5px; line-height: 1.55; color: var(--uh-ink-soft); margin: 0 0 18px; }
.uh-magnet > .uh-link { display: inline-block; margin-top: 14px; }
.uh-magnet--dark { background: var(--uh-ink); border-color: var(--uh-ink); }
.uh-magnet--dark h3 { color: #fcfcf8; }
.uh-magnet--dark > p { color: rgba(252, 252, 248, 0.78); }
.uh-magnet--dark .uh-tile-kicker { color: #ffb37a; }

.uh-mini { display: grid; grid-template-columns: 1fr; gap: 10px; }
.uh-mini input {
    width: 100%;
    min-height: var(--uhl-field-h);
    padding: 10px 14px;
    border: 1.5px solid var(--uh-line);
    border-radius: 12px;
    font: inherit;
    font-size: 16px;
    color: var(--uh-ink);
    background: #fff;
}
.uh-mini input:focus { outline: 3px solid rgba(0, 98, 159, 0.25); border-color: var(--uh-blue); }
.uh-mini input.is-bad { border-color: #b3261e; }
.uh-magnet--dark .uh-mini input { border-color: transparent; }
.uh-magnet--dark .uh-mini input:focus { outline: 3px solid var(--uh-orange); outline-offset: 2px; }
.uh-qstep legend:focus, .uh-quote-done h2:focus { outline: none; }
.uh-mini-msg { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; color: var(--uh-wa); }
.uh-mini-msg.is-bad { color: #b3261e; }
.uh-magnet--dark .uh-mini-msg { color: #9be3b6; }
.uh-magnet--dark .uh-mini-msg.is-bad { color: #ffb4ab; }
@media (min-width: 860px) {
    .uh-magnets { grid-template-columns: 1fr 1fr; gap: 20px; }
    .uh-magnet { padding: 36px 32px; }
}

/* ---------- Mobile action bar: quote + call + WhatsApp ---------- */
.uh-mbar .uh-btn--call {
    flex: 0 0 auto;
    background: #fff;
    color: var(--uh-ink);
    border-color: var(--uh-line);
}

/* ---------- Motion (transform / opacity / clip-path only) ---------- */
/* Pure CSS entrance (not gated on the script class), so it runs once at first
   paint and cannot restart when the deferred script loads. */
.uh-hero--lead .uh-eyebrow,
.uh-hero--lead h1,
.uh-hero--lead .uh-lede,
.uh-hero--lead .uh-quote {
    animation: uhl-rise 0.8s var(--uh-ease) both;
}
.uh-hero--lead h1 { animation-delay: 0.06s; }
.uh-hero--lead .uh-lede { animation-delay: 0.12s; }
.uh-hero--lead .uh-quote { animation-delay: 0.2s; }
@keyframes uhl-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* Forest plot draws in from the left the first time it is seen. */
.uhl-js .uh-plot svg { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--uh-ease); }
.uhl-js .uh-plot.is-drawn svg { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
    .uh-hero--lead .uh-eyebrow,
    .uh-hero--lead h1,
    .uh-hero--lead .uh-lede,
    .uh-hero--lead .uh-quote,
    .uhl-js .uh-qstep.is-on { animation: none; }
    .uhl-js .uh-plot svg { clip-path: none; transition: none; }
    .uh-chip span, .uh-quote-dots li { transition: none; }
}
