/* The comparison pages in the immersive system (30 November 2026).
   Loaded after styles.css and home-immersive.css by the four pages under
   /compare and by their sister guides (/itoro-live, /online-prayer-meetings,
   /live-prayer-app), whose body carries both classes: home-immersive for the homepage's
   tokens, head, buttons and earth, and cmp for what is theirs alone.
   Night to pray, daylight to find: each page opens on the night earth with the
   short answer standing on it, lays the comparison out on daylight paper, and
   closes on the earth as a horizon. The earth's edge is light, with no drawn
   line. */
.cmp {
    --cmp-link: #E3C56A;
}

.cmp :not(.cmp-related > li) > a:not([class]) {
    color: var(--cmp-link);
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.45);
    text-underline-offset: 3px;
}

.cmp :not(.cmp-related > li) > a:not([class]):hover {
    text-decoration-color: var(--hi-gold);
}

.cmp-eyebrow {
    font: 600 12px/1.4 var(--hi-body);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hi-gold);
}

.cmp-eyebrow span {
    color: var(--hi-muted);
    margin-left: 14px;
}

/* The cities' marks read a little larger and stay lit on these earths. */
.cmp .hi-globe[data-tone="night"] .hi-globe-mark {
    width: clamp(18px, calc(var(--size) * 0.02), 34px);
    background: rgba(var(--hi-limb), 0.3);
    box-shadow: 0 0 22px rgba(var(--hi-limb), 0.75);
    animation-name: cmp-breathe;
}

@keyframes cmp-breathe {
    from {
        opacity: 0.62;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

/* ---------- Hero: the night earth, the short answer standing on it ---------- */
.cmp-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #070605;
    padding: 164px 0 clamp(130px, 15vw, 220px);
    min-height: min(940px, 100vh);
}

.cmp-sky .hi-globe {
    --size: max(900px, min(150vw, 2300px));
    left: 50%;
    top: 55%;
    margin-left: calc(var(--size) / -2);
    box-shadow:
        0 -30px 120px rgba(var(--hi-limb), 0.24),
        0 0 260px rgba(var(--hi-limb), 0.12);
}

.cmp-sky .hi-globe::after,
.cmp .hi-sky--close .hi-globe::after {
    box-shadow: inset 0 70px 140px -70px rgba(var(--hi-limb), 0.62);
}

.cmp-sky::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(180deg, rgba(7, 6, 5, 0.5) 0%, rgba(7, 6, 5, 0) 34%, rgba(7, 6, 5, 0) 62%, rgba(14, 13, 11, 0.6) 86%, var(--hi-ground) 100%);
}

.cmp-hero-in {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.home-immersive.cmp h1 {
    font-size: clamp(2.5rem, 4.9vw, 4.5rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
    margin: 22px 0 26px;
    text-wrap: balance;
}

.cmp-vs {
    color: var(--hi-gold);
    font-size: 0.56em;
    letter-spacing: 0.02em;
    vertical-align: 0.22em;
    margin: 0 0.1em;
}

.cmp-lede {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.55;
    color: var(--hi-paper);
    max-width: 560px;
    text-shadow: 0 1px 18px rgba(7, 6, 5, 0.9);
}

.cmp-disclosure {
    margin-top: 26px;
    max-width: 540px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--hi-soft);
    padding-left: 16px;
    border-left: 1px solid rgba(var(--hi-limb), 0.5);
    text-shadow: 0 1px 14px rgba(7, 6, 5, 0.9);
}

.cmp-answer {
    padding: clamp(26px, 3vw, 40px);
    border-radius: 28px;
    background: rgba(20, 18, 15, 0.66);
    border: 1px solid rgba(var(--hi-limb), 0.24);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
    backdrop-filter: blur(22px) saturate(1.2);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 90px rgba(var(--hi-limb), 0.1);
}

.home-immersive.cmp .cmp-answer h2 {
    font: 600 12px/1.4 var(--hi-body) !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hi-gold);
    margin-bottom: 18px;
}

.cmp-answer-lead {
    font-family: var(--hi-display);
    font-weight: 300;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--hi-paper);
}

.cmp-answer-lead strong {
    font-weight: 300;
}

.cmp-answer-lead + p {
    margin-top: 16px;
    color: var(--hi-soft);
    font-size: 1.02rem;
    line-height: 1.65;
}

/* ---------- The night sections ---------- */
.cmp-night {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--hi-ground);
    padding: clamp(40px, 6vw, 80px) 0;
}

.cmp-night--glow {
    background:
        radial-gradient(ellipse 60% 55% at 50% 0%, rgba(var(--hi-limb), 0.07), transparent 70%),
        #121110;
}

.cmp-note {
    max-width: 800px;
    margin: 0 auto clamp(40px, 6vw, 80px);
    text-align: center;
    font-family: var(--hi-display);
    font-weight: 300;
    font-size: clamp(1.2rem, 1.9vw, 1.55rem);
    line-height: 1.5;
    letter-spacing: -0.015em;
    color: var(--hi-vellum);
}

.cmp-note::before {
    content: "";
    display: block;
    width: 22px;
    height: 38px;
    margin: 0 auto 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='6.4 2.4 11.2 19.2' fill='none' stroke='%23D4AF37' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21L12 10M8 8.5C8 8.5 7 9 7 11.5C7 14 12 18 12 18C12 18 17 14 17 11.5C17 9 16 8.5 16 8.5M12 3C12 3 9 4 9 7M12 3C12 3 15 4 15 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cmp-block {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 20px clamp(32px, 6vw, 96px);
    padding: clamp(36px, 5vw, 60px) 0;
    border-top: 1px solid var(--hi-line);
}

.home-immersive.cmp .cmp-block h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.15rem) !important;
    line-height: 1.12;
    text-wrap: balance;
}

.cmp-block-body {
    max-width: 700px;
}

.cmp-block-body p,
.cmp-block-body li {
    color: var(--hi-soft);
    font-size: 1.06rem;
    line-height: 1.72;
}

.cmp-block-body p + p {
    margin-top: 16px;
}

.cmp-block-body strong {
    color: var(--hi-paper);
    font-weight: 500;
}

.cmp-block--trust {
    border: 1px solid rgba(var(--hi-limb), 0.22);
    border-radius: 28px;
    padding: clamp(28px, 4vw, 48px);
    margin: clamp(20px, 3vw, 36px) 0;
    background: rgba(33, 30, 25, 0.5);
}

.cmp-block--trust + .cmp-block {
    border-top: 0;
}

.cmp-sources {
    list-style: none;
}

.cmp-sources li {
    padding: 12px 0;
    border-bottom: 1px solid var(--hi-line);
    font-size: 0.98rem;
}

.cmp-small {
    margin-top: 20px;
    font-size: 0.9rem !important;
    color: var(--hi-muted) !important;
}

/* ---------- Daylight: the comparison itself ---------- */
.cmp-day {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(180deg, #FBF8F1, var(--hi-paper) 55%, #F6F0E2);
    color: var(--hi-ink);
    padding: clamp(72px, 9vw, 120px) 0 clamp(220px, 26vw, 380px);
}

.cmp-sky-day .hi-globe {
    --size: max(760px, min(128vw, 1700px));
    left: 50%;
    bottom: calc(var(--size) * -1 + clamp(150px, 20vw, 300px));
    margin-left: calc(var(--size) / -2);
    box-shadow:
        0 -24px 80px rgba(138, 109, 31, 0.12),
        0 0 140px rgba(var(--hi-limb), 0.24);
}

.cmp-sky-day .hi-globe::after {
    box-shadow: inset 0 30px 80px -40px rgba(var(--hi-limb), 0.75);
}

.cmp-day :focus-visible {
    outline-color: var(--hi-gold-ink);
}

.cmp-day .cmp-eyebrow {
    color: var(--hi-gold-ink);
}

.home-immersive.cmp .cmp-day h2 {
    color: var(--hi-ink);
    font-size: clamp(2rem, 3.6vw, 3rem) !important;
    margin: 10px 0 clamp(28px, 4vw, 44px);
}

.cmp-matrix-wrap {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(138, 109, 31, 0.18);
    box-shadow: 0 40px 80px -40px rgba(60, 44, 10, 0.28), 0 2px 6px rgba(60, 44, 10, 0.05);
    overflow: hidden;
}

.cmp-matrix {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.cmp-matrix th,
.cmp-matrix td {
    text-align: left;
    vertical-align: top;
    padding: 18px clamp(16px, 2.2vw, 28px);
    font-size: 1.02rem;
    line-height: 1.5;
}

.cmp-matrix thead th {
    font: 600 12px/1.4 var(--hi-body);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hi-faint);
    padding-top: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(138, 109, 31, 0.22);
}

.cmp-matrix tbody tr + tr > * {
    border-top: 1px solid rgba(26, 24, 21, 0.08);
}

.cmp-matrix tbody th {
    font-weight: 500;
    color: var(--hi-ink);
}

.cmp-matrix td {
    color: #4A443B;
}

.cmp-matrix .is-itoro {
    background: rgba(212, 175, 55, 0.1);
    color: var(--hi-ink);
}

.cmp-matrix thead .is-itoro {
    color: var(--hi-gold-ink);
}

.cmp-day-note {
    max-width: 760px;
    margin: clamp(28px, 4vw, 44px) auto 0;
    text-align: center;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--hi-edge);
}

.cmp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- Choose one, choose the other: equal weight ---------- */
.cmp-choose {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 28px);
    padding: clamp(24px, 4vw, 48px) 0;
}

.cmp-plate {
    padding: clamp(26px, 3.4vw, 44px);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(33, 30, 25, 0.92), rgba(26, 24, 21, 0.92));
    border: 1px solid var(--hi-line);
    box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}

.home-immersive.cmp .cmp-plate h2 {
    font-size: clamp(1.5rem, 2.3vw, 2rem) !important;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hi-line);
}

.cmp-plate ul {
    list-style: none;
}

.cmp-plate li {
    position: relative;
    padding: 9px 0 9px 26px;
    color: var(--hi-soft);
    font-size: 1.05rem;
    line-height: 1.6;
}

.cmp-plate li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 1.15em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hi-gold);
    box-shadow: 0 0 10px rgba(var(--hi-limb), 0.8);
}

/* ---------- The guides' own modules ---------- */
.home-immersive.cmp .cmp-head {
    font-size: clamp(1.9rem, 3.4vw, 2.9rem) !important;
    max-width: 760px;
    margin: clamp(20px, 3vw, 40px) 0 clamp(24px, 3.4vw, 40px);
    text-wrap: balance;
}

.cmp-cards {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(14px, 2vw, 22px);
    padding-bottom: clamp(24px, 4vw, 48px);
}

.cmp-card {
    flex: 1 1 300px;
    padding: clamp(24px, 3vw, 36px);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(33, 30, 25, 0.92), rgba(26, 24, 21, 0.92));
    border: 1px solid var(--hi-line);
    box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}

.home-immersive.cmp .cmp-card h3 {
    font-size: 1.4rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--hi-paper);
}

.cmp-card h3 b {
    display: block;
    margin-bottom: 14px;
    font: 600 12px/1.4 var(--hi-body);
    letter-spacing: 0.14em;
    color: var(--hi-gold);
}

.cmp-card p,
.cmp-after {
    color: var(--hi-soft);
    font-size: 1.04rem;
    line-height: 1.68;
}

.cmp-card p + p {
    margin-top: 12px;
}

.cmp-after {
    padding-bottom: clamp(24px, 4vw, 48px);
}

.cmp-list {
    list-style: none;
}

.cmp-list li {
    position: relative;
    padding: 7px 0 7px 26px;
}

.cmp-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 1.1em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hi-gold);
    box-shadow: 0 0 10px rgba(var(--hi-limb), 0.8);
}

.cmp-day-text {
    max-width: 760px;
    margin: -12px 0 clamp(24px, 3.4vw, 36px);
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--hi-edge);
}

.cmp-day-text strong {
    color: var(--hi-ink);
}

.cmp-day .cmp-day-group + .cmp-day-group {
    margin-top: clamp(56px, 7vw, 88px);
}

.cmp-rows {
    list-style: none;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(138, 109, 31, 0.18);
    box-shadow: 0 40px 80px -40px rgba(60, 44, 10, 0.28), 0 2px 6px rgba(60, 44, 10, 0.05);
    overflow: hidden;
}

.cmp-rows li {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 6px clamp(16px, 3vw, 40px);
    padding: 20px clamp(18px, 2.4vw, 30px);
    font-size: 1.04rem;
    line-height: 1.55;
    color: #4A443B;
}

.cmp-rows li + li {
    border-top: 1px solid rgba(26, 24, 21, 0.08);
}

.cmp-rows strong {
    font-weight: 500;
    color: var(--hi-ink);
}

@media (max-width: 720px) {
    .cmp-rows li {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Where next ---------- */
.cmp-related {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
}

.cmp-related a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 22px 24px 24px;
    border-radius: 20px;
    border: 1px solid var(--hi-line);
    background: rgba(33, 30, 25, 0.6);
    color: var(--hi-paper);
    font-size: 1.08rem;
    line-height: 1.35;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.cmp-related a:hover {
    border-color: rgba(var(--hi-limb), 0.5);
    background: rgba(41, 37, 31, 0.8);
    transform: translateY(-2px);
}

.cmp-related small {
    font: 600 11px/1.4 var(--hi-body);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hi-gold);
}

/* ---------- The close: the earth as a horizon ---------- */
.cmp-close {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #070605;
    text-align: center;
    padding: clamp(96px, 12vw, 170px) 0 clamp(220px, 30vw, 420px);
}

.home-immersive.cmp .cmp-close h2 {
    font-size: clamp(2.3rem, 5vw, 4.2rem) !important;
    line-height: 1.05;
    margin-bottom: 34px;
    text-wrap: balance;
}

.cmp-cta {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.08rem;
    color: var(--hi-ink);
    background: linear-gradient(135deg, var(--hi-gold-pale), var(--hi-gold));
    box-shadow: 0 0 20px rgba(243, 217, 122, 0.34), 0 0 60px rgba(212, 175, 55, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cmp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 26px rgba(243, 217, 122, 0.5), 0 0 70px rgba(212, 175, 55, 0.32);
}

.cmp-foot {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    font-size: 0.9rem;
    color: var(--hi-soft);
}

/* ---------- Smaller frames ---------- */
@media (max-width: 900px) {
    .cmp-hero {
        padding-top: 150px;
        min-height: 0;
    }

    .cmp-hero-in,
    .cmp-block,
    .cmp-choose {
        grid-template-columns: minmax(0, 1fr);
    }

    .cmp-sky .hi-globe {
        --size: max(820px, 210vw);
        top: auto;
        bottom: calc(var(--size) * -1 + min(62%, 620px));
    }

    .cmp-related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* The matrix on a phone: each question is its own card, each answer named. */
@media (max-width: 720px) {
    .cmp-matrix,
    .cmp-matrix tbody,
    .cmp-matrix tr,
    .cmp-matrix th,
    .cmp-matrix td {
        display: block;
    }

    .cmp-matrix thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .cmp-matrix-wrap {
        background: none;
        border: 0;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }

    .cmp-matrix tbody tr {
        margin-bottom: 12px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(138, 109, 31, 0.18);
        box-shadow: 0 18px 40px -26px rgba(60, 44, 10, 0.3);
        overflow: hidden;
    }

    .cmp-matrix tbody tr + tr > *,
    .cmp-matrix tbody tr > * {
        border-top: 0;
    }

    .cmp-matrix tbody th {
        padding: 18px 18px 12px;
        font-size: 1.08rem;
    }

    .cmp-matrix td {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
        padding: 12px 18px;
        border-top: 1px solid rgba(26, 24, 21, 0.07) !important;
    }

    .cmp-matrix td::before {
        content: attr(data-label);
        font: 600 11px/1.6 var(--hi-body);
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--hi-faint);
        padding-top: 2px;
    }

    .cmp-matrix td.is-itoro::before {
        color: var(--hi-gold-ink);
    }
}

@media (max-width: 560px) {
    .cmp-related {
        grid-template-columns: minmax(0, 1fr);
    }

    .cmp-eyebrow span {
        display: block;
        margin: 6px 0 0;
    }

    .cmp-cta {
        display: block;
    }
}
