/* ===================================================================
   Mahj & Friends — Landing Page
   Color + font tokens mirror the iOS app (Colors.swift / Fonts.swift)
   so the web presence feels like an extension of the product, not a
   separate marketing surface.
=================================================================== */

/* ===== Tokens ===== */
:root {
    --void:        #020407;
    --deep:        #060A0E;
    --surface:     #090D14;
    --jade:        #081813;
    --jade-lit:    #0F2419;
    --gold:        #D4B07A;
    --gold-bright: #EDD098;
    --gold-dim:    #7A6035;
    --snow:        #F4EEE4;
    --pearl:       #C8BEA8;
    --stone:       #706858;
    --live:        #4AA870;
    --warn:        #D86050;
    --glass:       rgba(255, 255, 255, 0.042);
    --glass-bd:    rgba(255, 255, 255, 0.085);

    --display: 'Cormorant Garamond', 'Times New Roman', serif;
    --sans:    'Jost', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

    --max-w: 1180px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    /* iOS Safari quirk: overflow-x: hidden must be on BOTH html and
       body to fully suppress horizontal scroll when a child element
       is wider than viewport (e.g., the hero gold-glow halo or the
       spotlight visual halos). */
    overflow-x: hidden;
}
body {
    margin: 0;
    padding: 0;
    background: var(--void);
    color: var(--snow);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.snow { color: var(--snow); }
.gold { color: var(--gold); }

/* ===================================================================
   Brand wordmark — two stacked rows mirroring GamesView.swift:
   row 1 → "MAHJ & FRIENDS" (Cormorant gold + Jost stone)
   row 2 → "——— SOCIAL MAHJONG ———" (Jost gold caps with hairline rules)
=================================================================== */
.nav__brand,
.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    color: inherit;
    line-height: 1;
    padding: 4px 0;
}
.brand__top {
    display: flex;
    align-items: baseline;
    gap: 10px;
    line-height: 1;
}
.brand__mark {
    font-family: var(--display);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.16em;
    color: var(--gold);
    line-height: 1;
}
.brand__mark--sm { font-size: 22px; }
.brand__amp {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.22em;
    color: var(--pearl);
    text-transform: uppercase;
    position: relative;
    top: -1px;
}
.brand__amp--sm { font-size: 12px; }

.brand__kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    line-height: 1;
}
.brand__kicker--sm .brand__kicker-text { font-size: 9px; }
.brand__kicker-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.55;
    min-width: 12px;
}
.brand__kicker-text {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.4em;
    color: var(--gold);
    text-transform: uppercase;
    white-space: nowrap;
}

/* ===================================================================
   NAV
=================================================================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 40px 22px;
    background: rgba(2, 4, 7, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-bd);
}
.nav__brand {
    display: flex;
    align-items: center;
}
.nav__links {
    display: flex;
    gap: 30px;
    font-size: 15px;
    font-weight: 500;
    color: var(--pearl);
}
.nav__links a {
    transition: color 0.2s ease;
    position: relative;
}
.nav__links a:hover { color: var(--gold); }
.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 720px) {
    .nav { padding: 20px 22px 18px; }
    .nav__links { gap: 18px; font-size: 13px; }
    .nav__links a:nth-child(1),
    .nav__links a:nth-child(2) { display: none; }
}

/* ===================================================================
   HERO
=================================================================== */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 24px 100px;
}
.hero__glow {
    position: absolute;
    top: -12%;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 1100px;
    border-radius: 50%;
    /* Layered: gold center → jade-felt outer ring → fade. Suggests
       a card table viewed from above without being literal. */
    background:
        radial-gradient(
            circle at center,
            rgba(212, 176, 122, 0.20) 0%,
            rgba(212, 176, 122, 0.08) 22%,
            rgba(15, 36, 25, 0.28) 45%,
            transparent 68%
        );
    pointer-events: none;
    filter: blur(24px);
}
.hero__inner {
    position: relative;
    text-align: center;
    max-width: 720px;
    width: 100%;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 32px;
    border-radius: 999px;
    background: rgba(212, 176, 122, 0.13);
    border: 1px solid rgba(212, 176, 122, 0.4);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
}
.hero__badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 10px rgba(74, 168, 112, 0.7);
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}
.hero__kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 28px;
    max-width: 360px;
}
.hero__kicker-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.7;
}
.hero__kicker-text {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.45em;
    color: var(--gold);
    text-transform: uppercase;
    white-space: nowrap;
}

.hero__headline {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(54px, 12vw, 110px);
    line-height: 0.96;
    letter-spacing: -0.01em;
    margin: 0 0 28px;
}
.hero__sub {
    font-size: clamp(16px, 2.5vw, 19px);
    color: var(--pearl);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 36px;
}
.hero__tile-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 64px;
}
/* TileChip — visual echo of iOS app's TileView. Ivory gradient face,
   gold border, mode symbol on top, mode label beneath. Refined nod
   to the actual tiles without using a literal screenshot. */
.tile-chip {
    width: 64px;
    height: 88px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(160deg, #F8F1E0 0%, #E9DEC4 60%, #DCCDA8 100%);
    border: 1.5px solid var(--gold);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 30px rgba(212, 176, 122, 0.15);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile-chip::before {
    /* Inner faint gold rim — mirrors TileView's inner stroke. */
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 7px;
    border: 1px solid rgba(122, 96, 53, 0.35);
    pointer-events: none;
}
.tile-chip:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 40px rgba(212, 176, 122, 0.3);
}
.tile-chip__symbol {
    font-size: 24px;
    line-height: 1;
    color: #4A3420;
    filter: grayscale(0.1);
}
.tile-chip__symbol--big { font-size: 30px; }
.tile-chip__label {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 0.18em;
    color: #4A3420;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ===================================================================
   EMAIL CAPTURE
=================================================================== */
.capture {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto 12px;
    padding: 6px;
    border-radius: 14px;
    background: var(--glass);
    border: 1px solid var(--glass-bd);
    backdrop-filter: blur(8px);
}
.capture__input {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--snow);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
}
.capture__input::placeholder { color: var(--stone); }
.capture__btn {
    padding: 14px 22px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--void);
    font-family: var(--sans);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 18px rgba(212, 176, 122, 0.25);
}
.capture__btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 8px 28px rgba(212, 176, 122, 0.4);
}
.capture__btn:active { transform: translateY(0); }
.capture__note {
    font-size: 12px;
    color: var(--stone);
    margin: 0;
}
.capture--lg {
    max-width: 560px;
    padding: 8px;
}
.capture--lg .capture__input { font-size: 16px; padding: 16px 18px; }
.capture--lg .capture__btn  { font-size: 13px; padding: 16px 26px; }

@media (max-width: 540px) {
    .capture { flex-direction: column; gap: 6px; padding: 10px; }
    .capture__btn { padding: 14px; }
}

/* ===================================================================
   SECTION HEADERS
=================================================================== */
.section-head {
    margin: 0 auto 56px;
    max-width: var(--max-w);
    padding: 0 24px;
}
.section-head--centered {
    text-align: center;
}
.section-head__cap {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.28em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
    padding-left: 28px;
}
.section-head__cap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}
.section-head--centered .section-head__cap {
    padding-left: 0;
}
.section-head--centered .section-head__cap::before {
    display: none;
}
.section-head h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.05;
    margin: 0;
    color: var(--snow);
    max-width: 720px;
}
.section-head--centered h2 { margin: 0 auto; }

/* ===================================================================
   VALUE TRIO
=================================================================== */
.trio {
    padding: 80px 24px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.trio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.trio__card {
    padding: 32px 28px;
    background: var(--glass);
    border: 1px solid var(--glass-bd);
    border-radius: 18px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.trio__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.5;
}
.trio__card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 176, 122, 0.3);
}
.trio__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    color: var(--gold);
    filter: drop-shadow(0 0 14px rgba(212, 176, 122, 0.35));
}
.trio__icon svg {
    width: 100%;
    height: 100%;
}
.trio__card h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 26px;
    margin: 0 0 10px;
    color: var(--snow);
}
.trio__card p {
    font-size: 15px;
    color: var(--pearl);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 860px) {
    .trio__grid { grid-template-columns: 1fr; gap: 14px; }
    .trio { padding: 60px 20px; }
}

/* ===================================================================
   SCREENSHOTS GRID
   3 columns × 2 rows on desktop, 2 columns on tablet, 1 column on
   phone. All screenshots same size, no scroll, no stagger — reads
   as a deliberate gallery instead of a sliding strip.
=================================================================== */
.screens {
    padding: 80px 24px 100px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.screens__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
    padding: 30px 0 0;
}

.phone {
    margin: 0;
    /* Flex column so img + caption are both explicit center items.
       Without this the caption text-aligns within the full grid cell
       and can drift off-center relative to the narrower image. */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s ease;
}
.phone:hover { transform: translateY(-4px); }
.phone img {
    width: 100%;
    max-width: 280px;
    border-radius: 36px;
    border: 1px solid var(--glass-bd);
    box-shadow:
        0 0 0 4px rgba(20, 20, 30, 0.6),
        0 30px 60px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(212, 176, 122, 0.08);
    background: var(--surface);
}
.phone figcaption {
    margin-top: 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--gold);
    text-transform: uppercase;
}

@media (max-width: 940px) {
    .screens__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}
@media (max-width: 560px) {
    .screens__grid { grid-template-columns: 1fr; gap: 36px; }
    .phone img { max-width: 240px; }
}

/* ===================================================================
   FEATURES GRID
=================================================================== */
.features {
    padding: 80px 24px 100px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.feat {
    padding: 26px 24px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-bd);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.25s ease, transform 0.25s ease;
    position: relative;
}
.feat:hover {
    border-color: rgba(212, 176, 122, 0.35);
    transform: translateY(-2px);
}
/* Mode cards (4P / H2H / QP) keep their meaningful glyph. */
.feat--mode .feat__mode-glyph {
    font-size: 26px;
    line-height: 1;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(212, 176, 122, 0.3));
}
/* Non-mode cards use a refined typographic numeral instead of an
   icon — quieter, more deliberate. */
.feat__num {
    font-family: var(--display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    opacity: 0.8;
}
.feat strong {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 17px;
    color: var(--snow);
    letter-spacing: -0.005em;
}
.feat > span:last-child {
    font-size: 14px;
    color: var(--pearl);
    line-height: 1.6;
}

@media (max-width: 980px) {
    .features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .features__grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   STORY
=================================================================== */
.story {
    padding: 100px 24px;
    max-width: 760px;
    margin: 0 auto;
}
.story__body p {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(20px, 2.4vw, 24px);
    line-height: 1.55;
    color: var(--pearl);
    margin: 0 0 22px;
    text-align: center;
}
.story__body p strong {
    font-weight: 600;
    color: var(--snow);
}
.story__sign {
    font-family: var(--sans) !important;
    font-size: 14px !important;
    letter-spacing: 0.1em;
    color: var(--stone) !important;
    margin-top: 28px !important;
}

/* ===================================================================
   SECONDARY CTA
=================================================================== */
.cta {
    margin: 40px 24px 60px;
    padding: 60px 24px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 30% 20%, rgba(212, 176, 122, 0.14), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(8, 24, 19, 0.6), transparent 60%),
        var(--surface);
    border: 1px solid rgba(212, 176, 122, 0.25);
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}
.cta__inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.cta h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(34px, 5vw, 50px);
    line-height: 1.05;
    margin: 0 0 12px;
}
.cta p {
    font-size: 16px;
    color: var(--pearl);
    margin: 0 0 32px;
}

/* ===================================================================
   FOOTER
=================================================================== */
.footer {
    border-top: 1px solid var(--glass-bd);
    padding: 50px 24px 70px;
    margin-top: 40px;
}
.footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}
.footer__brand {
    display: flex;
    align-items: center;
}
.footer__links {
    display: flex;
    gap: 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--pearl);
    justify-content: center;
}
.footer__links a {
    transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--gold); }
.footer__fine {
    font-size: 13px;
    color: var(--pearl);
    line-height: 1.65;
    text-align: right;
    max-width: 380px;
}
.footer__fine p { margin: 0 0 4px; }

@media (max-width: 860px) {
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 22px;
    }
    .footer__brand { justify-content: center; }
    .footer__fine { text-align: center; max-width: none; }
}

/* ===================================================================
   GENERIC PAGE (privacy / terms)
=================================================================== */
.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 28px 100px;
}
.page h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1;
    margin: 0 0 8px;
    color: var(--snow);
}
.page__date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--stone);
    text-transform: uppercase;
    margin: 0 0 40px;
}
.page h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 26px;
    color: var(--gold);
    margin: 40px 0 12px;
}
.page p,
.page li {
    font-size: 16px;
    color: var(--pearl);
    line-height: 1.7;
}
.page ul { padding-left: 22px; }
.page li { margin-bottom: 6px; }
.page a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(212, 176, 122, 0.5);
}
.page a:hover { text-decoration-color: var(--gold); }

/* ===================================================================
   "SEE EVERY SCREEN" link — appears below the third spotlight,
   bridges to the dedicated /screens gallery page.
=================================================================== */
.screens-link {
    align-self: center;
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--void);
    font-family: var(--sans);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(212, 176, 122, 0.32);
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.screens-link:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 176, 122, 0.45);
}
.screens-link__arrow {
    font-size: 18px;
    transition: transform 0.25s ease;
}
.screens-link:hover .screens-link__arrow { transform: translateX(4px); }

/* ===================================================================
   /screens page — dedicated gallery
   Renders the 6-up gallery on its own page so the home page doesn't
   carry redundant phones (the spotlights already feature 3 of them).
=================================================================== */
.screens-page {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 90px 24px 80px;
    /* Belt + suspenders centering for everything inside */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.screens-page__header {
    width: 100%;
    text-align: center;
    margin-bottom: 80px;
    max-width: 720px;
    /* Flex centering for the cap + h1 + p so even if a child has
       its own padding/positioning, the column stays centered. */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.screens-page__header .section-head__cap {
    padding-left: 0;
    margin-bottom: 20px;
    position: static;
    /* Fully centered, no leading hairline that would offset it. */
}
.screens-page__header .section-head__cap::before { display: none; }
.screens-page__header h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(42px, 6vw, 62px);
    line-height: 1;
    margin: 0 0 18px;
    color: var(--snow);
    letter-spacing: -0.005em;
    text-align: center;
}
.screens-page__header p {
    font-size: 18px;
    color: var(--pearl);
    margin: 0;
    text-align: center;
}
.screens-page__grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px 36px;
    margin-bottom: 0;
}
.phone--xl img {
    max-width: 320px;
}
.screens-page__cta {
    width: 100%;
    text-align: center;
    padding: 90px 24px 30px;
    margin-top: 80px;
    border-top: 1px solid rgba(212, 176, 122, 0.22);
    /* Flex column with center alignment so the form pill stays
       centered regardless of viewport width. */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.screens-page__cta h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.05;
    margin: 0 0 16px;
    text-align: center;
}
.screens-page__cta p {
    font-size: 17px;
    color: var(--pearl);
    margin: 0 0 36px;
    text-align: center;
    max-width: 480px;
}
@media (max-width: 940px) {
    .screens-page__grid { grid-template-columns: repeat(2, 1fr); gap: 50px 28px; }
}
@media (max-width: 560px) {
    .screens-page { padding: 60px 20px 60px; }
    .screens-page__header { margin-bottom: 56px; }
    .screens-page__grid { grid-template-columns: 1fr; gap: 40px; }
    .phone--xl img { max-width: 260px; }
    .screens-page__cta { padding: 70px 20px 20px; margin-top: 56px; }
}

/* ===================================================================
   STATS BAND
   Quiet credibility band between trio and screenshots: four large
   gold display numerals, thin gold dividers, caps labels. Borrowed
   structurally from neptune.coach's stats moment, reinterpreted in
   our serif/gold-on-void aesthetic.
=================================================================== */
.stats {
    padding: 56px 24px;
    max-width: var(--max-w);
    margin: 0 auto;
    border-top: 1px solid rgba(212, 176, 122, 0.18);
    border-bottom: 1px solid rgba(212, 176, 122, 0.18);
    overflow: hidden;
}
.stats__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.stat {
    text-align: center;
    padding: 0 12px;
    flex: 0 0 auto;
}
.stat__num {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 56px;  /* Fixed height so numerals + word stat all share a baseline. */
    font-family: var(--display);
    font-weight: 600;
    font-size: 56px;
    line-height: 1;
    color: var(--gold);
    letter-spacing: -0.005em;
    margin-bottom: 10px;
}
.stat__num--word { font-size: 40px; }
.stat__label {
    display: block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--pearl);
    text-transform: uppercase;
}
.stats__divider {
    display: inline-block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    opacity: 0.4;
}
@media (max-width: 720px) {
    .stats__inner { gap: 22px 28px; }
    .stats__divider { display: none; }
    .stat { flex: 0 0 calc(50% - 28px); }
    .stat__num { font-size: 44px; }
    .stat__num--word { font-size: 34px; }
}

/* ===================================================================
   FEATURE SPOTLIGHTS
   Three deep-dives, alternating left/right. Each: phone screenshot
   on one side, kicker + headline + body + small stats row on the
   other. Stretches the page vertically so the gallery doesn't have
   to do all the visual work alone.
=================================================================== */
.spotlights {
    padding: 90px 24px 100px;
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 100px;
    /* iOS Safari belt-and-suspenders: contain spotlight halos so
       they can't push the page past viewport on mobile. */
    overflow: hidden;
}
.spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.spotlight--reverse .spotlight__visual { order: 2; }
.spotlight__visual {
    position: relative;
    display: flex;
    justify-content: center;
}
.spotlight__visual::before {
    /* Soft gold halo behind the phone. */
    content: '';
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle at center, rgba(212, 176, 122, 0.18), transparent 60%);
    filter: blur(34px);
    z-index: -1;
}
.spotlight__visual img {
    width: 100%;
    max-width: 320px;
    border-radius: 36px;
    border: 1px solid var(--glass-bd);
    box-shadow:
        0 0 0 4px rgba(20, 20, 30, 0.6),
        0 30px 60px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(212, 176, 122, 0.12);
    background: var(--surface);
    transition: transform 0.4s ease;
}
.spotlight__visual:hover img { transform: translateY(-4px); }

.spotlight__cap {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.32em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 18px;
    position: relative;
    padding-left: 28px;
}
.spotlight__cap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}
.spotlight__text h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(34px, 4.4vw, 46px);
    line-height: 1.05;
    margin: 0 0 22px;
    color: var(--snow);
    letter-spacing: -0.005em;
}
.spotlight__text p {
    font-size: 17px;
    color: var(--pearl);
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 480px;
}
.spotlight__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    align-items: center;
}
.spotlight__stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    font-size: 14px;
    color: var(--pearl);
    font-weight: 500;
}
.spotlight__stats strong {
    font-family: var(--display);
    font-weight: 600;
    font-size: 22px;
    color: var(--gold);
    line-height: 1;
}

@media (max-width: 880px) {
    .spotlights { gap: 80px; padding: 60px 24px 36px; }
    .spotlight {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .spotlight--reverse .spotlight__visual { order: 0; }
    .spotlight__visual img { max-width: 240px; }
    .spotlight__visual::before { inset: -10px; }
    /* Stat row: stack vertically on mobile so 3 short items don't
       wrap awkwardly to "2 on top + 1 below". */
    .spotlight__stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    /* Visual delineation between spotlights — thin fading gold rule
       below each one (except the last). */
    .spotlight:not(:last-of-type)::after {
        content: '';
        display: block;
        height: 1px;
        width: 60%;
        margin: 40px auto 0;
        background: linear-gradient(to right, transparent, rgba(212, 176, 122, 0.45), transparent);
    }
}
@media (max-width: 540px) {
    .spotlights { gap: 64px; padding: 50px 20px 28px; }
    .spotlight__visual img { max-width: 220px; }
    .screens-link {
        font-size: 13px;
        padding: 16px 28px;
        letter-spacing: 0.18em;
    }
    /* Tighten the gap before the next section's cap on mobile —
       spotlights -> features had 60+80 = 140px of dead space. */
    .features { padding: 50px 24px 70px; }
    .stats { padding: 40px 20px; }
}

/* ===================================================================
   REDUCE MOTION
=================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
}
