/* =========================================================
   GLOBAL / LANDING / SETUP STYLES
   Visual styles only; selected Setup options are intentionally black.
   ========================================================= */

:root {
    --paper: #f6efe6;
    --surface: rgba(255, 253, 249, 0.86);
    --ink: #181512;
    --muted: #716a63;
    --line: rgba(70, 56, 44, 0.14);
    --green: #5d9b63;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 12%, rgba(203, 144, 94, 0.13), transparent 26%),
        radial-gradient(circle at 86% 62%, rgba(99, 132, 91, 0.10), transparent 27%),
        linear-gradient(180deg, #f8f2eb 0%, #efe5da 100%);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

button, input { font: inherit; }
a { color: inherit; }

.page-width {
    width: min(1240px, calc(100% - 80px));
    margin: 0 auto;
}

/* ---------- Top navigation ---------- */
.topbar {
    height: 72px;
    padding: 0 38px;
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(249, 245, 239, 0.72);
    border-bottom: 1px solid rgba(255,255,255,0.42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    box-shadow: 0 8px 20px rgba(24, 21, 18, 0.16);
}

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 17px;
}

.session-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-input {
    width: 170px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    outline: none;
    background: rgba(255,255,255,0.72);
    color: var(--ink);
    font-size: 12px;
    backdrop-filter: blur(8px);
}

.session-input:focus {
    border-color: rgba(24,21,18,0.35);
    box-shadow: 0 0 0 4px rgba(24,21,18,0.05);
}

.btn {
    border: 0;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-dark {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 13px 30px rgba(24,21,18,0.18);
}

.btn-small {
    height: 42px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 12px;
}

.btn-primary {
    min-width: 245px;
    min-height: 54px;
    padding: 0 25px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 13px;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 850px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}

.hero-image-layer {
    position: absolute;
    inset: 0;
    background-image: url("../images/hero-bg.jpg");
    background-size: cover;
    background-position: center 54%;
    transform: scale(1.035);
    filter: saturate(0.90) contrast(0.96);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(247,241,233,0.97) 0%,
            rgba(247,241,233,0.88) 31%,
            rgba(247,241,233,0.58) 55%,
            rgba(44,26,16,0.10) 100%),
        linear-gradient(180deg,
            rgba(247,241,233,0.20) 0%,
            rgba(44,26,16,0.08) 70%,
            rgba(25,17,12,0.26) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 64px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
    gap: 54px;
    align-items: stretch;
}

.glass-panel {
    border: 1px solid rgba(255,255,255,0.34);
    border-radius: 28px;
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    box-shadow: 0 30px 90px rgba(42,25,14,0.12);
}

.hero-copy {
    padding: 54px 56px 50px;
    background: rgba(248,244,237,0.62);
}

.section-kicker,
.hero-stat-label {
    display: inline-block;
    margin-bottom: 25px;
    font-size: 10px;
    letter-spacing: 0.18em;
    font-weight: 800;
    color: rgba(43,36,30,0.62);
}

.hero-copy h1,
.hero-stat-number,
.section-heading h2,
.cta-inner h2,
.setup-card h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -0.052em;
}

.hero-copy h1 {
    margin: 0 0 24px;
    max-width: 720px;
    font-size: clamp(54px, 5.35vw, 84px);
    line-height: 0.94;
}

.hero-copy > p {
    margin: 0;
    max-width: 610px;
    color: #5e5851;
    font-size: 17px;
    line-height: 1.68;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.micro-note {
    color: #7c746d;
    font-size: 11px;
}

.hero-stat {
    align-self: end;
    min-height: 450px;
    padding: 48px 42px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(31,24,19,0.48);
    color: #fff;
    border-color: rgba(255,255,255,0.22);
}

.hero-stat .hero-stat-label {
    color: rgba(255,255,255,0.65);
}

.hero-stat-number {
    margin-bottom: 25px;
    font-size: clamp(68px, 6.4vw, 100px);
    line-height: 0.88;
}

.hero-stat p {
    margin: 0 0 15px;
    max-width: 400px;
    color: rgba(255,255,255,0.82);
    font-size: 15px;
    line-height: 1.55;
}

.source-link {
    width: fit-content;
    color: rgba(255,255,255,0.60);
    font-size: 11px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.source-link:hover {
    color: #fff;
    border-color: currentColor;
}

/* ---------- Evidence section ---------- */
.evidence-section {
    padding: 110px 0 120px;
    background:
        radial-gradient(circle at 7% 12%, rgba(183,109,58,0.10), transparent 23%),
        linear-gradient(180deg, rgba(255,255,255,0.76), rgba(247,241,233,0.88));
}

.section-heading {
    margin-bottom: 44px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #8a8076;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-style: italic;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(42px, 4vw, 58px);
}

.section-intro {
    max-width: 330px;
    margin: 0 0 8px;
    text-align: right;
    color: #81786f;
    font-size: 13px;
    line-height: 1.55;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    overflow: hidden;
    border-radius: 25px;
    outline: none;
    cursor: pointer;
    background: rgba(255,255,255,0.90);
    border: 1px solid rgba(61,48,38,0.10);
    box-shadow: 0 18px 55px rgba(63,43,27,0.10);
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.stat-card:hover,
.stat-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 28px 75px rgba(63,43,27,0.16);
}

.card-image {
    min-height: 285px;
    padding: 20px 22px 23px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
    transition: transform 400ms ease;
}

.stat-card:hover .card-image {
    transform: scale(1.018);
}

.card-tag {
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.80);
    backdrop-filter: blur(8px);
    color: #37312c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-image-number {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(45px, 4vw, 62px);
    line-height: 1;
    letter-spacing: -0.05em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.22);
}

.card-body {
    position: relative;
    z-index: 2;
    padding: 24px 24px 25px;
    background: rgba(255,253,249,0.97);
}

.card-body-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.stat-label {
    max-width: 330px;
    margin: 0;
    color: #514a44;
    font-size: 14px;
    line-height: 1.5;
}

.expand-btn {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1ebe4;
    color: #81776f;
    transition: transform 220ms ease, background 220ms ease;
}

.stat-card[aria-expanded="true"] .expand-btn {
    transform: rotate(180deg);
    background: #e8ddd2;
}

.stat-detail {
    display: none;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.stat-detail p { margin: 0 0 12px; }

.stat-detail a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.stat-card[aria-expanded="true"] .stat-detail {
    display: block;
}

/* ---------- CTA ---------- */
.cta-section {
    min-height: 520px;
    padding: 96px 24px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2a211b 0%, #181512 52%, #293126 100%);
}

.cta-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.35;
}

.glow-one {
    width: 360px;
    height: 360px;
    left: -90px;
    top: -120px;
    background: radial-gradient(circle, rgba(206,132,75,0.82), transparent 68%);
}

.glow-two {
    width: 440px;
    height: 440px;
    right: -120px;
    bottom: -190px;
    background: radial-gradient(circle, rgba(91,133,88,0.72), transparent 68%);
}

.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    text-align: center;
}

.cta-inner .eyebrow { color: rgba(255,255,255,0.58); }

.cta-inner h2 {
    margin: 0 0 23px;
    font-size: clamp(50px, 5.5vw, 78px);
    line-height: 0.96;
}

.cta-description {
    max-width: 590px;
    margin: 0 auto 33px;
    color: rgba(255,255,255,0.67);
    font-size: 14px;
    line-height: 1.65;
}

.cta-button {
    background: #f7efe5;
    color: var(--ink);
    box-shadow: 0 13px 30px rgba(0,0,0,0.18);
}

/* ---------- Footer ---------- */
.footer {
    background: #f6efe7;
    border-top: 1px solid var(--line);
}

.footer-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sdg-pill {
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.72);
    color: #746c64;
    font-size: 11px;
}

.sdg-dot {
    width: 13px;
    height: 13px;
    border-radius: 4px;
    background: var(--green);
}

/* ---------- Setup page ---------- */
.setup-body {
    min-height: 100vh;
    padding-top: 72px;
}

.text-link {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.setup-shell { padding: 70px 0; }

.setup-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255,253,249,0.90);
    box-shadow: 0 24px 70px rgba(47,34,24,0.12);
    backdrop-filter: blur(12px);
}

.setup-card h1 {
    margin: 0 0 36px;
    font-size: 56px;
}

.session-note {
    margin: -22px 0 30px;
    color: var(--muted);
    font-size: 13px;
}

fieldset {
    margin: 0 0 32px;
    padding: 0;
    border: 0;
}

legend {
    margin-bottom: 13px;
    font-weight: 800;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.choice-row label { cursor: pointer; }

.choice-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-row span {
    min-width: 118px;
    height: 48px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,0.78);
    transition: all 180ms ease;
}

.choice-row input:checked + span {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.form-message {
    min-height: 22px;
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .page-width {
        width: min(100% - 40px, 820px);
    }

    .hero {
        min-height: auto;
        padding: 130px 0 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-stat {
        min-height: 360px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-image {
        min-height: 360px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-intro {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .topbar { padding: 0 18px; }
    .session-input { display: none; }

    .page-width { width: calc(100% - 28px); }

    .hero-copy,
    .hero-stat {
        padding: 34px 28px;
        border-radius: 22px;
    }

    .hero-copy h1 { font-size: 49px; }
    .hero-stat-number { font-size: 66px; }
    .card-image { min-height: 260px; }

    .setup-card { padding: 32px 23px; }

    .choice-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .choice-row span { width: 100%; }

    .footer-inner {
        min-height: 110px;
        flex-direction: column;
        justify-content: center;
        gap: 14px;
    }
}


/* =========================================================
   HERO CAROUSEL — V3
   ========================================================= */

.hero-carousel {
    position: relative;
    min-height: 850px;
    overflow: hidden;
    background: #1c1713;
    padding-top: 72px;
}

.carousel-slide {
    position: absolute;
    inset: 72px 0 0 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 700ms ease, visibility 700ms ease;
}

.carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.slide-photo,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide-photo {
    background-image: url("../images/hero-bg.jpg");
    background-size: cover;
    background-position: center 54%;
    transform: scale(1.03);
    filter: saturate(.9) contrast(.96);
}

.slide-photo-two {
    background-position: center 52%;
    transform: scale(1.045);
}

.slide-shade {
    position: absolute;
    inset: 0;
}

.shade-one {
    background:
        linear-gradient(90deg,
            rgba(247,241,233,.97) 0%,
            rgba(247,241,233,.88) 31%,
            rgba(247,241,233,.56) 56%,
            rgba(44,26,16,.10) 100%),
        linear-gradient(180deg,
            rgba(247,241,233,.18) 0%,
            rgba(44,26,16,.06) 70%,
            rgba(25,17,12,.28) 100%);
}

.shade-two {
    background:
        linear-gradient(90deg,
            rgba(25,18,13,.10) 0%,
            rgba(25,18,13,.24) 43%,
            rgba(25,18,13,.50) 72%,
            rgba(20,15,12,.72) 100%),
        linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.25));
}

.video-shade {
    background:
        linear-gradient(90deg,
            rgba(18,16,14,.78) 0%,
            rgba(18,16,14,.57) 38%,
            rgba(18,16,14,.24) 70%,
            rgba(18,16,14,.16) 100%),
        linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.34));
}

.slide-shell {
    position: relative;
    z-index: 3;
    height: 100%;
    min-height: 778px;
    display: flex;
    align-items: center;
}

.intro-panel {
    width: min(720px, 64%);
    padding: 54px 56px 50px;
    border-radius: 28px;
    background: rgba(248,244,237,.69);
    border: 1px solid rgba(255,255,255,.42);
    box-shadow: 0 30px 90px rgba(42,25,14,.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.intro-panel h1,
.stat-panel .hero-stat-number,
.video-copy h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -.052em;
}

.intro-panel h1 {
    margin: 0 0 24px;
    font-size: clamp(54px, 5.35vw, 84px);
    line-height: .94;
}

.intro-panel > p {
    max-width: 610px;
    margin: 0;
    color: #5e5851;
    font-size: 17px;
    line-height: 1.68;
}

.evidence-shell {
    justify-content: flex-end;
}

.stat-panel {
    width: min(560px, 46%);
    min-height: 500px;
    padding: 50px 48px;
    border-radius: 30px;
    background: rgba(29,22,17,.56);
    color: #fff;
    border: 1px solid rgba(255,255,255,.20);
    box-shadow: 0 30px 90px rgba(20,13,9,.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-panel .hero-stat-label {
    margin-bottom: 26px;
    color: rgba(255,255,255,.66);
}

.stat-panel .hero-stat-number {
    margin-bottom: 30px;
    font-size: clamp(78px, 7vw, 112px);
    line-height: .86;
}

.stat-panel > p {
    max-width: 430px;
    margin: 0 0 16px;
    color: rgba(255,255,255,.85);
    font-size: 16px;
    line-height: 1.58;
}

.stat-panel .source-link {
    color: rgba(255,255,255,.62);
}

.hero-video {
    object-fit: cover;
    object-position: center;
    background: #15120f;
}

.video-shell {
    justify-content: flex-start;
}

.video-copy {
    width: min(690px, 58%);
    color: #fff;
}

.light-kicker {
    color: rgba(255,255,255,.66);
}

.video-copy h2 {
    margin: 0 0 24px;
    font-size: clamp(58px, 6vw, 92px);
    line-height: .93;
}

.video-copy > p {
    max-width: 590px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 17px;
    line-height: 1.65;
}

.light-button {
    background: #f7efe5;
    color: #181512;
    box-shadow: 0 14px 35px rgba(0,0,0,.24);
}

.light-note {
    color: rgba(255,255,255,.63);
}

/* carousel controls */
.carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(24,20,17,.34);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 180ms ease, background 180ms ease;
}

.carousel-arrow:hover {
    background: rgba(24,20,17,.58);
    transform: translateY(-1px);
}

.carousel-arrow-left { left: 28px; }
.carousel-arrow-right { right: 28px; }

.carousel-arrow-icon {
    width: 0;
    height: 0;
    display: block;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}

.carousel-arrow-left .carousel-arrow-icon {
    border-right: 9px solid currentColor;
    transform: translateX(-2px);
}

.carousel-arrow-right .carousel-arrow-icon {
    border-left: 9px solid currentColor;
    transform: translateX(2px);
}

.carousel-dots {
    position: absolute;
    z-index: 10;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(24,20,17,.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.46);
    cursor: pointer;
    transition: width 220ms ease, border-radius 220ms ease, background 220ms ease;
}

.carousel-dot.is-active {
    width: 26px;
    border-radius: 999px;
    background: #fff;
}

.carousel-counter {
    position: absolute;
    right: 42px;
    bottom: 28px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.78);
    font-size: 11px;
    letter-spacing: .12em;
}

.counter-line {
    width: 34px;
    height: 1px;
    background: rgba(255,255,255,.45);
}

/* keep navigation visible over all slides */
.hero-carousel + .evidence-section {
    position: relative;
    z-index: 3;
}

/* Prevent legacy single-hero rules from affecting the carousel. */
.hero {
    display: none !important;
}

@media (max-width: 980px) {
    .hero-carousel {
        min-height: 820px;
    }

    .carousel-slide {
        inset: 72px 0 0;
    }

    .slide-shell {
        min-height: 748px;
    }

    .intro-panel,
    .stat-panel,
    .video-copy {
        width: 100%;
        max-width: 690px;
    }

    .evidence-shell {
        justify-content: flex-start;
    }

    .carousel-arrow-left { left: 16px; }
    .carousel-arrow-right { right: 16px; }
    .carousel-counter { display: none; }
}

@media (max-width: 600px) {
    .hero-carousel {
        min-height: 790px;
    }

    .slide-shell {
        min-height: 718px;
        align-items: flex-end;
        padding-bottom: 78px;
    }

    .intro-panel,
    .stat-panel {
        padding: 34px 28px;
        border-radius: 22px;
    }

    .intro-panel h1 {
        font-size: 48px;
    }

    .stat-panel {
        min-height: 430px;
    }

    .stat-panel .hero-stat-number {
        font-size: 72px;
    }

    .video-copy {
        padding: 0 20px 16px 20px;
    }

    .video-copy h2 {
        font-size: 50px;
    }

    .video-copy > p {
        font-size: 15px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .carousel-dots {
        bottom: 20px;
    }
}


/* =========================================================
   CATCHABREAK BRAND + SETUP PAGE REFRESH
   ========================================================= */

.catchabreak-brand {
    gap: 11px;
}

.catchabreak-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #181715;
    color: #fff;
    box-shadow: 0 8px 22px rgba(24, 23, 21, 0.15);
}

.catchabreak-icon svg {
    width: 22px;
    height: 22px;
}

.brand-wordmark {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1;
}

/* Setup page layout */
.new-setup-page {
    min-height: 100vh;
    padding-top: 72px;
    background: #f5f1ec;
}

.setup-topbar {
    background: rgba(249, 247, 243, 0.96);
    border-bottom: 1px solid rgba(60, 52, 45, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.setup-page-shell {
    width: min(100% - 36px, 930px);
    margin: 0 auto;
    padding: 30px 0 74px;
}

.break-setup-card {
    overflow: hidden;
    border: 1px solid rgba(61, 52, 45, 0.11);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 2px 5px rgba(48, 39, 31, 0.06),
        0 18px 45px rgba(48, 39, 31, 0.06);
}

.break-setup-card-header {
    position: relative;
    padding: 46px 56px 40px;
    border-bottom: 1px solid rgba(61, 52, 45, 0.09);
}

.setup-kicker {
    margin: 0 0 8px;
    color: #a29c96;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.setup-subtitle {
    margin: 0;
    color: #69635e;
    font-size: 16px;
    line-height: 1.5;
}

.setup-session {
    position: absolute;
    top: 45px;
    right: 56px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f4f1ed;
    color: #938c85;
    font-size: 11px;
}

.break-preferences-form {
    padding: 0 56px;
}

.setup-question {
    padding: 42px 0 44px;
    border-bottom: 1px solid rgba(61, 52, 45, 0.085);
}

.setup-question h2 {
    margin: 0 0 19px;
    color: #24211f;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.question-helper {
    margin: -10px 0 20px;
    color: #a19b95;
    font-size: 15px;
    line-height: 1.45;
}

.compact-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.compact-choice,
.setting-choice,
.goal-choice {
    cursor: pointer;
}

.compact-choice input,
.setting-choice input,
.goal-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.compact-choice span {
    min-width: 112px;
    height: 58px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e4e0dc;
    border-radius: 15px;
    background: #fff;
    color: #49443f;
    font-size: 16px;
    font-weight: 750;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.compact-choice:hover span,
.goal-choice:hover span,
.setting-choice:hover .setting-choice-inner {
    border-color: #b8b1aa;
    transform: translateY(-1px);
}

.compact-choice input:focus-visible + span,
.goal-choice input:focus-visible + span,
.setting-choice input:focus-visible + .setting-choice-inner {
    outline: 3px solid rgba(24, 23, 21, 0.12);
    outline-offset: 3px;
}

.compact-choice input:checked + span {
    border-color: #1b1917;
    background: #1b1917;
    color: #fff;
    box-shadow: 0 8px 22px rgba(27, 25, 23, 0.13);
}

.setting-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.setting-choice-inner {
    min-height: 142px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 2px solid #e5e1dd;
    border-radius: 20px;
    background: #fff;
    color: #5d5751;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.setting-choice-inner svg {
    width: 33px;
    height: 33px;
}

.setting-choice-inner strong {
    font-size: 17px;
}

.setting-choice input:checked + .setting-choice-inner {
    border-color: #1b1917;
    background: #f2efeb;
    color: #1b1917;
    box-shadow: inset 0 0 0 1px #1b1917;
}

.goal-question {
    padding-bottom: 48px;
}

.goal-choice-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.goal-choice span {
    min-height: 58px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1.5px solid #e4e0dc;
    border-radius: 15px;
    background: #fff;
    color: #383430;
    font-size: 16px;
    font-weight: 750;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.goal-choice input:checked + span {
    border-color: #1b1917;
    background: #1b1917;
    color: #fff;
    box-shadow: 0 8px 22px rgba(27, 25, 23, 0.13);
}

.setup-form-footer {
    min-height: 120px;
    padding: 30px 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.setup-help-text {
    margin: 0;
    color: #a29c96;
    font-size: 15px;
    line-height: 1.45;
}

.setup-next-button {
    min-width: 142px;
    height: 64px;
    padding: 0 24px;
    border: 0;
    border-radius: 18px;
    background: #dcd8d4;
    color: #aaa39d;
    font-size: 18px;
    font-weight: 800;
    cursor: not-allowed;
    transition:
        background 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.setup-next-button:not(:disabled) {
    background: #1b1917;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(27, 25, 23, 0.16);
}

.setup-next-button:not(:disabled):hover {
    transform: translateY(-1px);
}

.map-placeholder-page {
    min-height: 100vh;
    padding-top: 72px;
    background: #f5f1ec;
}

.map-placeholder-shell {
    width: min(100% - 36px, 980px);
    margin: 0 auto;
    padding: 80px 0;
}

.map-placeholder-card {
    padding: 56px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(61, 52, 45, 0.1);
    box-shadow: 0 18px 45px rgba(48, 39, 31, 0.07);
}

.map-placeholder-card h1 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 52px;
    letter-spacing: -0.05em;
}

.map-placeholder-card p {
    color: #766f68;
    line-height: 1.65;
}

.map-selection-summary {
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #f6f2ed;
    color: #514b45;
    font-size: 14px;
}

@media (max-width: 760px) {
    .brand-wordmark {
        font-size: 21px;
    }

    .setup-page-shell {
        width: min(100% - 22px, 620px);
        padding-top: 18px;
    }

    .break-setup-card {
        border-radius: 22px;
    }

    .break-setup-card-header,
    .break-preferences-form {
        padding-left: 24px;
        padding-right: 24px;
    }

    .break-setup-card-header {
        padding-top: 34px;
        padding-bottom: 30px;
    }

    .setup-session {
        position: static;
        display: inline-block;
        margin-top: 14px;
    }

    .setting-choice-grid,
    .goal-choice-row {
        grid-template-columns: 1fr;
    }

    .setting-choice-inner {
        min-height: 104px;
        flex-direction: row;
    }

    .setup-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .setup-next-button {
        width: 100%;
    }
}


/* =========================================================
   HOME HEADER ACTIONS + SESSION / DASHBOARD MODALS
   ========================================================= */

.header-actions {
    gap: 12px;
}

.header-outline-button {
    height: 42px;
    padding: 0 22px;
    border: 1.5px solid #ddd8d2;
    border-radius: 15px;
    background: rgba(255,255,255,0.56);
    color: #49433e;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.header-outline-button:hover {
    transform: translateY(-1px);
    border-color: #bdb6af;
    background: rgba(255,255,255,0.86);
    box-shadow: 0 8px 22px rgba(39,31,25,0.06);
}

.header-start-button {
    min-width: 84px;
    padding-left: 24px;
    padding-right: 24px;
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.app-modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31, 28, 25, 0.35);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.modal-card {
    position: relative;
    z-index: 2;
    width: min(100%, 670px);
    padding: 58px 56px 54px;
    border-radius: 30px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 28px 90px rgba(25,20,16,0.22);
}

.dashboard-modal-card {
    width: min(100%, 690px);
}

.modal-close {
    position: absolute;
    top: 26px;
    right: 28px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #9d958e;
    font-size: 40px;
    line-height: 1;
    font-weight: 300;
    cursor: pointer;
}

.modal-card h2 {
    margin: 0 0 13px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 44px;
    line-height: 1.02;
    font-weight: 400;
    letter-spacing: -0.045em;
    color: #1d1a18;
}

.modal-card > p {
    margin: 0 0 36px;
    max-width: 540px;
    color: #7d756f;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

.modal-form {
    display: flex;
    flex-direction: column;
}

.modal-code-input {
    width: 100%;
    height: 78px;
    padding: 0 28px;
    border: 3px solid #22201d;
    border-radius: 21px;
    outline: none;
    background: #fbfbfb;
    color: #211e1b;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.modal-code-input::placeholder {
    color: #d7d3cf;
    opacity: 1;
}

.modal-code-input:focus {
    box-shadow: 0 0 0 4px rgba(34,32,29,0.08);
}

.modal-error {
    min-height: 20px;
    margin: 8px 2px 5px;
    color: #9a4f48;
    font-size: 12px;
}

.modal-primary-button,
.modal-secondary-button {
    width: 100%;
    min-height: 72px;
    border-radius: 20px;
    font-size: 19px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.modal-primary-button {
    border: 0;
    background: #1b1917;
    color: #fff;
    box-shadow: 0 10px 28px rgba(27,25,23,0.13);
}

.modal-secondary-button {
    border: 1.5px solid #e1ddd9;
    background: #fff;
    color: #433e39;
}

.modal-primary-button:hover,
.modal-secondary-button:hover {
    transform: translateY(-1px);
}

.modal-divider {
    margin: 28px 0;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #a29a93;
    font-size: 14px;
    font-weight: 700;
}

.modal-divider::before,
.modal-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ebe7e3;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .header-actions {
        gap: 7px;
    }

    .header-outline-button {
        padding: 0 11px;
        font-size: 11px;
    }

    .header-start-button {
        min-width: auto;
        padding-left: 15px;
        padding-right: 15px;
    }

    .modal-card {
        padding: 48px 24px 28px;
        border-radius: 24px;
    }

    .modal-card h2 {
        padding-right: 35px;
        font-size: 37px;
    }

    .modal-card > p {
        font-size: 16px;
        margin-bottom: 27px;
    }

    .modal-code-input {
        height: 66px;
        padding: 0 18px;
        border-width: 2.5px;
        font-size: 17px;
    }

    .modal-primary-button,
    .modal-secondary-button {
        min-height: 62px;
        font-size: 17px;
    }
}

@media (max-width: 560px) {
    .header-outline-button:first-child {
        max-width: 96px;
        white-space: normal;
        line-height: 1.05;
    }

    .header-outline-button {
        height: 44px;
    }

    .header-actions {
        margin-left: 10px;
    }

    .catchabreak-brand .brand-wordmark {
        display: none;
    }
}


.dashboard-placeholder-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-primary-link,
.dashboard-secondary-link {
    min-height: 50px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-primary-link {
    background: #1b1917;
    color: #fff;
}

.dashboard-secondary-link {
    border: 1.5px solid #ded9d4;
    background: #fff;
    color: #48423d;
}


/* =========================================================
   LANDING HEADER POSITION + UNIFIED SETUP SELECTION
   ========================================================= */

.landing-topbar {
    display: flex;
    justify-content: space-between;
}

.landing-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.landing-brand-divider {
    width: 1px;
    height: 32px;
    background: #ddd7d1;
}

.landing-dashboard-button {
    min-width: 120px;
}

/* Make all four setup sections use the same black selected state. */
.setting-choice input:checked + .setting-choice-inner {
    border-color: #1b1917 !important;
    background: #1b1917 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(27, 25, 23, 0.13) !important;
}

.setting-choice input:checked + .setting-choice-inner svg {
    color: #ffffff !important;
}

.compact-choice input:checked + span,
.goal-choice input:checked + span {
    border-color: #1b1917 !important;
    background: #1b1917 !important;
    color: #ffffff !important;
}

@media (max-width: 650px) {
    .landing-brand-divider {
        display: none;
    }

    .landing-dashboard-button {
        min-width: auto;
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* Navigation links */
.header-text-link {
    color: #5c554f;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}
.header-text-link:hover { text-decoration: underline; }
.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
}
.footer-links > a {
    color: #676059;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}
@media (max-width: 600px) {
    .header-text-link { font-size: 11px; }
    .footer-links { align-items: flex-start; flex-direction: column; gap: 10px; }
}

/* ---- Language switch ---- */
.language-picker {
    position: relative;
    z-index: 40;
}

.language-switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 112px;
    height: 36px;
    padding: 3px;
    border: 1px solid rgba(232, 210, 150, .72);
    border-radius: 10px;
    background: #111a2a;
    color: #f4e4c0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    cursor: pointer;
    overflow: hidden;
}

.language-switch::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    border-radius: 7px;
    background: linear-gradient(180deg, #f0cf83 0%, #c99a46 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
    transform: translateX(0);
    transition: transform 180ms ease;
}

.language-switch[aria-checked="true"]::before {
    transform: translateX(100%);
}

.language-switch-option {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    height: 100%;
    color: rgba(244, 228, 192, .72);
    transition: color 160ms ease;
    user-select: none;
}

.language-switch[aria-checked="false"] .language-switch-option-en,
.language-switch[aria-checked="true"] .language-switch-option-zh {
    color: #081427;
}

.language-switch:hover {
    border-color: #f0cf83;
}

.language-switch:focus-visible {
    outline: 2px solid #f0cf83;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .language-switch {
        width: 96px;
        height: 34px;
        font-size: 11px;
    }
}

