/* Horizon template — modern SaaS dark gradient look. Scoped under
   `.template-horizon` so its rules don't leak into Default / Blank. The
   gradient + dark background are template-fixed (not theme-driven) — the
   look is the template's identity. Theme assignment becomes effectively
   cosmetic for Horizon. */

.template-horizon {
    /* Hide the masthead — Horizon owns its own hero block. */
}

/* Override the layout-level brand strip to blend with the gradient. */
.template-horizon .brand {
    background: transparent;
    border-bottom: none;
    position: relative;
    z-index: 2;
}
.template-horizon .brand__inner {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Footer also blends — light text on dark. */
.template-horizon .sitefoot {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}
.template-horizon .sitefoot__copy a {
    color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.18);
}
.template-horizon .sitefoot__copy a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}
.template-horizon .sitefoot__sep {
    color: rgba(255, 255, 255, 0.3);
}

/* The body background itself — the brand strip + footer are transparent so
   the gradient bleeds through end-to-end. */
.template-horizon body,
body.template-horizon {
    background: #0B1437;
    color: #E2E8FF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
                 system-ui, sans-serif;
}

/* ─── Hero shell ──────────────────────────────────────────────────────── */

.horizon {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    color: #E2E8FF;
}

/* Radial gradient — pinned to upper-right, fades into the deep navy. The
   absolute-positioned div keeps the gradient out of the document flow so
   nothing accidentally inherits a fixed colour. */
.horizon__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 75% 30%,
            rgba(124, 92, 255, 0.55) 0%,
            rgba(73, 51, 168, 0.4)  25%,
            rgba(33, 31, 86, 0.2)   50%,
            transparent             70%),
        linear-gradient(135deg, #0B1437 0%, #131a4d 50%, #1d1b50 100%);
    pointer-events: none;
    z-index: 0;
}

.horizon__shell {
    position: relative;
    z-index: 1;
    max-width: 70rem;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
}

@media (min-width: 56rem) {
    .horizon__shell { padding: 6rem 2rem 4rem; }
}

/* ─── Hero grid ───────────────────────────────────────────────────────── */

.horizon__hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 56rem) {
    .horizon__hero {
        grid-template-columns: 1.1fr 1fr;
        gap: 4rem;
    }
}

/* ─── Left column: domain, lede, trust list ───────────────────────────── */

.horizon__eyebrow {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.horizon__domain {
    margin: 0 0 1rem;
    /* Inverse-of-character-count sizing — same approach as
       .masthead__domain in lander.css. The horizon shell uses a slightly
       smaller ceiling (4.5rem vs 6rem) since the surrounding panel is
       narrower, so the calc multiplier is 60vw vs 75vw to land at the
       same visual scale for typical-length domains. */
    font-size: clamp(2.2rem, calc(60vw / var(--domain-len, 12)), 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    word-break: break-word;
}

.horizon__lede {
    margin: 0 0 2rem;
    font-size: 1.1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    max-width: 32rem;
}

.horizon__trust {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.1rem;
    max-width: 32rem;
}
.horizon__trust li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    font-size: 0.95rem;
    line-height: 1.45;
}
.horizon__trust strong {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.1rem;
}
.horizon__trust span {
    color: rgba(255, 255, 255, 0.7);
}
.horizon__check {
    color: #a78bfa;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
/* Intra-page jump nav — see lander.css for rationale. Sits below the
   trust list, white-on-dark to match horizon's palette. */
.horizon__jump {
    margin: 1.25rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: .85rem 1.5rem;
    font-size: .85rem;
    letter-spacing: .04em;
}
.horizon__jump a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 1px;
}
.horizon__jump a:hover, .horizon__jump a:focus-visible {
    color: #fff;
    border-bottom-color: #fff;
}

/* ─── Right column: card ──────────────────────────────────────────────── */

.horizon__card-wrap { min-width: 0; }

.horizon__card {
    background: #fff;
    color: #0F172A;
    border-radius: 14px;
    padding: 2rem 1.75rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 24px 48px -12px rgba(0, 0, 0, 0.45),
        0 8px 16px -8px rgba(0, 0, 0, 0.25);
}
.horizon__card--thanks {
    border: 1px solid rgba(167, 139, 250, 0.4);
}

.horizon__card-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.55);
}
.horizon__card-title {
    margin: 0 0 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
}
.horizon__card-body {
    margin: 0 0 1.5rem;
    color: rgba(15, 23, 42, 0.75);
    font-size: 0.95rem;
    line-height: 1.55;
}
.horizon__card-body strong {
    color: #0F172A;
    font-weight: 600;
}

.horizon__alert {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    color: #7f1d1d;
    font-size: 0.85rem;
}

.horizon__form { display: contents; }
.horizon__label {
    display: block;
    margin: 0.85rem 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.65);
}
.horizon__hint {
    color: rgba(15, 23, 42, 0.45);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.horizon__input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    font: inherit;
    border: 1.5px solid rgba(15, 23, 42, 0.15);
    border-radius: 8px;
    background: #fff;
    color: #0F172A;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}
.horizon__input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.horizon__input--area { resize: vertical; min-height: 5rem; }

.horizon__amount {
    display: flex;
    align-items: stretch;
    border: 1.5px solid rgba(15, 23, 42, 0.15);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s ease;
}
.horizon__amount:focus-within {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.horizon__prefix {
    display: flex;
    align-items: center;
    padding: 0 0.9rem;
    background: rgba(15, 23, 42, 0.04);
    color: rgba(15, 23, 42, 0.65);
    font-weight: 600;
    border-right: 1px solid rgba(15, 23, 42, 0.1);
}
.horizon__input--amount {
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0F172A;
}
.horizon__input--amount:focus { box-shadow: none; }

.horizon__altcha { margin: 1rem 0 0.5rem; min-height: 2.5rem; }

.horizon__btn {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 8px 16px -4px rgba(109, 40, 217, 0.45);
}
.horizon__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -4px rgba(109, 40, 217, 0.55); }
.horizon__btn:active { transform: translateY(0); }
.horizon__btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.horizon__back {
    display: inline-block;
    margin-top: 0.85rem;
    color: rgba(15, 23, 42, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
}
.horizon__back:hover { color: #0F172A; }

.horizon__note {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.78rem;
    color: rgba(15, 23, 42, 0.5);
    text-align: center;
}

/* ─── Bottom trust strip ──────────────────────────────────────────────── */

.horizon__strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 56rem) {
    .horizon__strip {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}
.horizon__strip-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
}
.horizon__strip-item strong {
    display: block;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.1rem;
    font-size: 0.95rem;
}
.horizon__strip-item span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.45;
}
.horizon__strip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.12);
    color: #c4b5fd;
    flex-shrink: 0;
}
