/* ============================================================
   App Frame — Edulite-inspired light split layout
   Left: headline + form + features  |  Right: phone floating
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── ROOT ── */
.rwy-af-body {
    min-height: 100dvh;
    background: #f5f4ff;
    color: #1a1a2e;
    font-family: 'Nunito', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.rwy-hidden { display: none !important; }

/* ── MAIN GRID ── */
.rwy-af-wrap {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1280px;
    margin: 0 auto;
}

/* ══ LEFT PANEL ══════════════════════════════════════════════ */
.rwy-af-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* logo pins to top */
    padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px);
    padding-right: clamp(20px, 3vw, 40px);
    gap: 0; /* individual margins control spacing */
    position: relative;
    z-index: 2;
}
/* Space each section independently so logo stays top */
.rwy-af-topbar       { flex-shrink: 0; margin-bottom: clamp(28px, 4vh, 52px); }
.rwy-af-hero-text    { flex-shrink: 0; margin-bottom: 20px; }
.rwy-af-form-wrap    { flex-shrink: 0; margin-bottom: 16px; }
.rwy-af-left .rwy-counter { margin-bottom: 16px; }
.rwy-af-stats        { flex-shrink: 0; margin-bottom: 14px; }
.rwy-af-privacy      { flex-shrink: 0; margin-bottom: 0; }

/* Top bar */
.rwy-af-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.rwy-af-logo { display: block; }
.rwy-af-wordmark {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #1a1a2e;
    letter-spacing: -.01em;
}
.rwy-af-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent, #22d3ee);
    background: var(--accent-light, rgba(34,211,238,.1));
    border: 1.5px solid var(--accent-mid, rgba(34,211,238,.25));
    border-radius: 99px;
    padding: 5px 12px;
}
.rwy-af-badge__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: rwyPulse 2s ease infinite;
    flex-shrink: 0;
}

/* ── Decorative sparkles ── */
.rwy-deco {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
}
.rwy-sparkle {
    position: absolute;
    color: var(--accent, #22d3ee);
}
.rwy-sparkle--1 {
    width: 32px;
    top: 12%; right: 8%;
    opacity: .5;
    animation: rwySpinSlow 8s linear infinite;
}
.rwy-sparkle--2 {
    width: 18px;
    top: 22%; right: 18%;
    opacity: .35;
    animation: rwySpinSlow 12s linear infinite reverse;
}
.rwy-sparkle--3 {
    width: 14px;
    bottom: 28%; left: 2%;
    opacity: .3;
    animation: rwySpinSlow 10s linear infinite;
}
.rwy-swoosh {
    /* Flows in-document under the headline — NOT absolutely positioned */
    display: block;
    width: clamp(100px, 18vw, 200px);
    color: var(--accent, #22d3ee);
    opacity: .7;
    margin-top: -6px; /* tuck close under the last headline word */
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: rwySwooshDraw 1.2s .5s ease forwards;
}
@keyframes rwySwooshDraw { to { stroke-dashoffset: 0; } }
@keyframes rwySpinSlow { to { transform: rotate(360deg); } }

/* ── Headline ── */
.rwy-af-hero-text { flex-shrink: 0; }
.rwy-af-headline {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: clamp(38px, 5.5vw, 72px);
    line-height: 1.05;
    letter-spacing: -.02em;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.rwy-af-headline__accent {
    color: var(--accent, #22d3ee);
    position: relative;
    display: inline-block;
}
.rwy-af-headline__bang {
    color: var(--accent, #22d3ee);
    font-family: 'Fredoka', sans-serif;
}
.rwy-af-sub {
    font-size: clamp(15px, 1.8vw, 18px);
    color: #6b7280;
    line-height: 1.5;
    max-width: 400px;
    font-weight: 600;
}

/* ── Form ── */
.rwy-af-form-wrap { flex-shrink: 0; }
.rwy-af-form-row {
    display: flex;
    gap: 0;
    background: #fff;
    border: 2px solid rgba(0,0,0,.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    transition: border-color .2s, box-shadow .2s;
    max-width: 460px;
}
.rwy-af-form-row:focus-within {
    border-color: var(--accent, #22d3ee);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--accent,#22d3ee) 20%, transparent);
}
.rwy-af-email-input {
    flex: 1; min-width: 0;
    background: transparent;
    border: none; outline: none;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: #1a1a2e;
}
.rwy-af-email-input::placeholder { color: #9ca3af; font-weight: 500; }
.rwy-af-cta {
    background: var(--accent, #22d3ee);
    color: #fff;
    border: none;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: .01em;
    transition: opacity .15s, transform .1s;
    flex-shrink: 0;
}
.rwy-af-cta:hover:not(:disabled) { opacity: .88; }
.rwy-af-cta:disabled { opacity: .4; cursor: default; }

/* Learn more link */
.rwy-af-learn-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    text-decoration: none;
    margin-top: 12px;
    transition: color .15s;
}
.rwy-af-learn-link:hover { color: #1a1a2e; }
.rwy-af-learn-link__play {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.12);
    display: flex; align-items: center; justify-content: center;
    color: #4b5563;
    transition: border-color .15s;
}
.rwy-af-learn-link:hover .rwy-af-learn-link__play { border-color: var(--accent,#22d3ee); color: var(--accent,#22d3ee); }

/* Message */
.rwy-msg { font-size: 13px; min-height: 16px; margin-top: 8px; max-width: 460px; }

/* ── Counter ── */
.rwy-af-left .rwy-counter { max-width: 460px; margin-bottom: 0; }
/* Mobile card counter */
.rwy-af-mobile-card .rwy-counter { max-width: 100%; margin-bottom: 0; }

/* ── Features/stats grid ── */
.rwy-af-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    max-width: 460px;
    flex-shrink: 0;
}
.rwy-af-stat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.rwy-af-stat__icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: var(--accent-light, rgba(34,211,238,.1));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--icon-color, var(--accent, #22d3ee));
    margin-top: 1px;
}
.rwy-af-stat__text {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    line-height: 1.3;
}
/* Active slide stat */
.rwy-af-stat--slide {
    grid-column: 1 / -1;
    background: color-mix(in srgb, var(--icon-color, var(--accent,#22d3ee)) 6%, #fff);
    border: 1.5px solid color-mix(in srgb, var(--icon-color, var(--accent,#22d3ee)) 25%, transparent);
    border-radius: 12px;
    padding: 10px 12px;
    gap: 12px;
    animation: rwyStatFade .3s ease;
}
.rwy-af-stat--slide .rwy-af-stat__icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--icon-color, var(--accent,#22d3ee));
    color: #fff;
}
.rwy-af-stat--slide .rwy-af-stat__text {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
}
@keyframes rwyStatFade { from { opacity: .5; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Privacy */
.rwy-af-privacy {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
    flex-shrink: 0;
}

/* Countdown */
.rwy-af-cd {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0,0,0,.04);
    border-radius: 12px;
    max-width: 280px;
    flex-shrink: 0;
}
.rwy-af-cd__unit { display: flex; flex-direction: column; align-items: center; min-width: 40px; }
.rwy-af-cd__num { font-size: 24px; font-weight: 900; font-family: 'Fredoka',sans-serif; color: var(--accent,#22d3ee); line-height: 1; }
.rwy-af-cd__lbl { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: #9ca3af; }
.rwy-af-cd__sep { font-size: 18px; font-weight: 900; color: #d1d5db; margin-bottom: 8px; }

/* ══ RIGHT PANEL ═════════════════════════════════════════════ */
.rwy-af-right {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--accent, #22d3ee) 10%, #ede9fe);
    min-height: 100dvh;
    overflow: hidden;
}

/* Background blobs */
.rwy-blobs { position: absolute; inset: 0; pointer-events: none; }
.rwy-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}
.rwy-blob--1 {
    width: 55%; height: 55%;
    top: -10%; right: -10%;
    background: color-mix(in srgb, var(--accent,#22d3ee) 30%, #fff);
    opacity: .6;
    animation: rwyBlobFloat 10s ease-in-out infinite alternate;
}
.rwy-blob--2 {
    width: 40%; height: 40%;
    bottom: 5%; left: -5%;
    background: color-mix(in srgb, #818cf8 40%, #fff);
    opacity: .5;
    animation: rwyBlobFloat 14s ease-in-out infinite alternate-reverse;
}
@keyframes rwyBlobFloat {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(5%, -8%) scale(1.1); }
}

/* Sparkles around phone */
.rwy-phone-deco { position: absolute; inset: 0; pointer-events: none; }
.rwy-psparkle {
    position: absolute;
    animation: rwySpinSlow 8s linear infinite;
}
.rwy-psparkle--1 { width: 36px; top: 10%; right: 12%; color: #f472b6; opacity: .7; animation-duration: 9s; }
.rwy-psparkle--2 { width: 22px; top: 55%; left: 8%; color: var(--accent,#22d3ee); opacity: .6; animation-duration: 12s; animation-direction: reverse; }
.rwy-psparkle--3 { width: 16px; bottom: 18%; right: 8%; color: #fbbf24; opacity: .65; animation-duration: 7s; }

/* ── Phone frame ── */
.rwy-af-phone-stage {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 5;
    animation: rwyPhoneFloat 6s ease-in-out infinite alternate;
}
@keyframes rwyPhoneFloat {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-14px); }
}
.rwy-af-phone {
    height: clamp(400px, 72vh, 620px);
    width: calc(clamp(400px, 72vh, 620px) / 2.17);
    position: relative;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.18)) drop-shadow(0 8px 20px rgba(0,0,0,.12));
    flex-shrink: 0;
}

/* Phone shell — natural titanium */
.rwy-af-shell {
    position: absolute;
    inset: 0;
    border-radius: calc(clamp(400px,72vh,620px) / 2.17 * .12);
    background: transparent;
    box-shadow:
        0 0 0 8px #b5a593,
        0 0 0 9px rgba(212,201,184,.6),
        0 0 0 10px rgba(0,0,0,.2);
    pointer-events: none;
    z-index: 2;
}
.rwy-af-island {
    position: absolute;
    top: calc(clamp(400px,72vh,620px) * .016);
    left: 50%; transform: translateX(-50%);
    width: 30%;
    height: calc(clamp(400px,72vh,620px) * .034);
    background: #0a0a0a;
    border-radius: 99px;
    z-index: 20;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.rwy-af-btn {
    position: absolute;
    border-radius: 2px;
    background: linear-gradient(90deg, #c8bdb0, #a8988a);
    z-index: 1;
}
.rwy-af-btn--mute  { left: -3px; top: 14%; width: 3px; height: 5%; }
.rwy-af-btn--vol1  { left: -3px; top: 23%; width: 3px; height: 9%; }
.rwy-af-btn--vol2  { left: -3px; top: 34%; width: 3px; height: 9%; }
.rwy-af-btn--power { right: -3px; top: 27%; width: 3px; height: 14%; }

.rwy-af-screen {
    position: absolute;
    inset: calc(clamp(400px,72vh,620px) * .022);
    border-radius: calc(clamp(400px,72vh,620px) / 2.17 * .09);
    overflow: hidden;
    background: #f8fafc;
    z-index: 15;
}
.rwy-af-screen-empty {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; color: #9ca3af;
    font-size: 11px; text-align: center; padding: 20px;
}
.rwy-af-slider { position: absolute; inset: 0; overflow: hidden; }
.rwy-af-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity .5s cubic-bezier(.25,.46,.45,.94);
    pointer-events: none;
}
.rwy-af-slide--active { opacity: 1; pointer-events: auto; }
.rwy-af-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; pointer-events: none; }

/* Screen dots */
.rwy-af-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 4px; z-index: 20;
}
.rwy-af-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(0,0,0,.2); border: none; cursor: pointer; padding: 0;
    transition: background .25s, transform .25s;
}
.rwy-af-dot--active { background: var(--accent,#22d3ee); transform: scale(1.4); }

/* ── Navigation arrows ── */
.rwy-af-arrow {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,.9);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #374151;
    flex-shrink: 0; margin: 0 10px;
    transition: background .15s, transform .1s;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    z-index: 30;
}
.rwy-af-arrow:hover { background: #fff; transform: scale(1.08); }

/* Desktop nav row */
.rwy-af-nav-row {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-top: 20px; z-index: 5;
}
.rwy-af-nav-btn {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,.5); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.7);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #374151;
    transition: background .15s, transform .1s;
}
.rwy-af-nav-btn:hover { background: #fff; transform: scale(1.1); }
.rwy-af-nav-dots { display: flex; gap: 6px; align-items: center; }
.rwy-af-nav-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0;
    transition: background .25s, width .25s;
}
.rwy-af-nav-dot--active { background: var(--accent,#22d3ee); width: 20px; border-radius: 4px; }

/* Hero image */
.rwy-af-hero-img {
    position: absolute; bottom: 0; left: 10%;
    width: clamp(160px, 18vw, 260px); z-index: 4; pointer-events: none;
}
.rwy-af-hero-img img {
    width: 100%; height: auto; display: block;
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    animation: rwyPhoneFloat 7s ease-in-out infinite alternate-reverse;
}

/* ══ MOBILE BOTTOM CARD ══════════════════════════════════════ */
.rwy-af-mobile-card { display: none; }

/* ── Coin burst ── */
@keyframes rwyCoinBurst {
    0%   { transform: translate(0,0) scale(0); opacity: 1; }
    60%  { opacity: 1; }
    100% { transform: translate(var(--tx),var(--ty)) scale(1.2); opacity: 0; }
}
.rwy-coin-burst {
    position: fixed; pointer-events: none; z-index: 99999;
    width: 28px; height: 28px;
    animation: rwyCoinBurst .9s ease-out forwards;
}

/* ── Animations ── */
@keyframes rwyPulse { 0%,100% { opacity:1; } 50% { opacity:.35; } }

/* ══════════════════════════════════════════════════════════════
   MOBILE ≤ 899px — phone top, card bottom sheet
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 899px) {
    .rwy-af-wrap {
        grid-template-columns: 1fr;
        min-height: 100dvh;
    }
    .rwy-af-left { display: none; } /* hidden — mobile uses the bottom card instead */
    .rwy-af-right {
        height: 100dvh;
        min-height: unset;
        position: fixed;
        inset: 0;
    }
    .rwy-af-phone {
        height: clamp(380px, 74vh, 540px);
        width: calc(clamp(380px, 74vh, 540px) / 2.17);
        animation: rwyPhoneFloat 6s ease-in-out infinite alternate;
    }
    .rwy-af-shell {
        border-radius: calc(clamp(380px,74vh,540px) / 2.17 * .12);
        box-shadow: 0 0 0 7px #b5a593, 0 0 0 8px rgba(212,201,184,.6), 0 0 0 9px rgba(0,0,0,.2);
    }
    .rwy-af-screen {
        inset: calc(clamp(380px,74vh,540px) * .022);
        border-radius: calc(clamp(380px,74vh,540px) / 2.17 * .09);
    }
    .rwy-af-island {
        top: calc(clamp(380px,74vh,540px) * .016);
        height: calc(clamp(380px,74vh,540px) * .034);
    }
    .rwy-af-nav-row { display: none; }
    .rwy-af-arrow { display: flex; }

    /* Mobile card */
    .rwy-af-mobile-card {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: rgba(250,250,255,.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 28px 28px 0 0;
        border-top: 2px solid rgba(255,255,255,.8);
        box-shadow: 0 -8px 40px rgba(0,0,0,.12);
        padding: 10px 22px 32px;
        padding-bottom: max(32px, env(safe-area-inset-bottom,32px));
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 100;
        transition: max-height .45s cubic-bezier(.32,.72,0,1);
    }
    .rwy-af-mobile-card.rwy-af-card--open { max-height: 88vh; }
    .rwy-af-card__pill {
        width: 36px; height: 4px; border-radius: 2px;
        background: rgba(0,0,0,.1); margin: 0 auto;
        cursor: grab; flex-shrink: 0;
    }
    .rwy-af-card__head { flex-shrink: 0; }
    .rwy-af-card__title {
        font-family: 'Fredoka', sans-serif; font-weight: 700;
        font-size: clamp(22px, 6vw, 30px);
        line-height: 1.1; letter-spacing: -.02em;
        color: #1a1a2e; margin-bottom: 2px;
    }
    .rwy-af-card__sub { font-size: 14px; color: #6b7280; font-weight: 600; }
    .rwy-af-card__desc { font-size: 13px; color: #6b7280; }
    .rwy-af-form-row--mobile {
        background: #fff;
        border: 2px solid rgba(0,0,0,.08);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,0,0,.06);
        max-width: 100%;
        flex-shrink: 0;
    }
    .rwy-af-form-row--mobile:focus-within { border-color: var(--accent,#22d3ee); }
    .rwy-af-mobile-card .rwy-counter { max-width: 100%; margin-bottom: 0; }
    .rwy-af-mobile-card .rwy-cnt-bar__track { background: rgba(0,0,0,.07); }
    .rwy-af-stats--mobile { max-width: 100%; }
    .rwy-af-privacy { font-size: 11px; flex-shrink: 0; }
}

@media (max-width: 480px) {
    .rwy-af-stats { grid-template-columns: 1fr; }
    .rwy-af-stats--mobile { grid-template-columns: 1fr; }
}

/* ── MOBILE TOPBAR (logo + badge in card) ── */
.rwy-af-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    margin-bottom: 4px;
}

/* Mobile swoosh under headline */
.rwy-af-mobile-swoosh {
    display: block;
    width: clamp(100px, 40vw, 180px);
    color: var(--accent, #22d3ee);
    opacity: .7;
    margin-top: 6px;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: rwySwooshDraw 1s .3s ease forwards;
}

/* Hide mobile topbar on desktop (already shown in left panel) */
@media (min-width: 900px) {
    .rwy-af-mobile-topbar { display: none; }
    .rwy-af-mobile-swoosh  { display: none; }
}

/* ── MOBILE HERO TOPBAR — logo above phone, hidden on desktop ── */
.rwy-af-mobile-hero-topbar {
    display: none; /* hidden by default (desktop shows left panel logo) */
}
@media (max-width: 899px) {
    .rwy-af-mobile-hero-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 22px 8px;
        position: relative;
        z-index: 20;
        flex-shrink: 0;
    }
    /* Hide the duplicate logo that was inside the bottom card */
    .rwy-af-mobile-topbar {
        display: none;
    }
    /* Right panel needs to be a column so topbar sits above the phone */
    .rwy-af-right {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* content flows from top */
        padding-top: 0;
    }
    /* Phone stage takes remaining space, centred */
    .rwy-af-phone-stage {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding-bottom: 4px;
    }
}

/* ── FORM FEEDBACK MESSAGES — visible on both desktop and mobile ── */
.rwy-msg {
    min-height: 0;
    transition: all .2s ease;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    border-radius: 10px;
    line-height: 1.4;
}
.rwy-msg.is-success {
    background: #d1fae5;
    color: #065f46;
    border: 1.5px solid #6ee7b7;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rwy-msg.is-success::before {
    content: '✓';
    font-size: 16px;
    font-weight: 900;
    flex-shrink: 0;
}
.rwy-msg.is-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1.5px solid #fca5a5;
    padding: 10px 14px;
}
.rwy-msg.is-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1.5px solid #93c5fd;
    padding: 10px 14px;
}
/* Ensure mobile card message is visible */
.rwy-af-mobile-card .rwy-msg { max-width: 100%; }
.rwy-af-left .rwy-msg { max-width: 460px; }

/* ══════════════════════════════════════════════════════════════
   STORE BADGES — App download links
   ══════════════════════════════════════════════════════════════ */

.rwy-af-stores {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.rwy-af-stores__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #9ca3af;
    margin: 0;
}

.rwy-af-store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Badge as SVG image link — scales nicely */
.rwy-store-badge {
    display: inline-block;
    height: 44px;          /* Apple/Google recommended minimum tap target */
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    transition: opacity .15s, transform .12s;
    /* Subtle shadow so badges sit off the background */
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.rwy-store-badge:hover {
    opacity: .88;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.24);
}

.rwy-store-badge svg {
    display: block;
    height: 44px;
    width: auto;
    max-width: 160px;
}

/* Slight tint on Amazon badge to match branding */
.rwy-store-badge--amazon svg rect { rx: 8px; }

/* Learn More — now a subtle text link below badges */
.rwy-af-learn-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
    text-decoration: none;
    transition: color .15s;
    align-self: flex-start;
}
.rwy-af-learn-link:hover { color: #1a1a2e; }
.rwy-af-learn-link__play {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.12);
    display: flex; align-items: center; justify-content: center;
    color: #4b5563;
    flex-shrink: 0;
    transition: border-color .15s;
}
.rwy-af-learn-link:hover .rwy-af-learn-link__play { border-color: var(--accent,#22d3ee); color: var(--accent,#22d3ee); }

/* ── Mobile card store badges ── */
.rwy-af-stores--mobile {
    max-width: 100%;
}
.rwy-af-stores--mobile .rwy-af-store-badges {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.rwy-af-stores--mobile .rwy-af-store-badges::-webkit-scrollbar { display: none; }

/* ── Mobile card improvements from UX research ──────────────────
   Key findings:
   - Counter should be most prominent social proof element
   - Store badges above the fold are conversion-critical
   - Card should breathe — less density, more whitespace
   - Features scroll chip should be visually separated
   ─────────────────────────────────────────────────────────────── */

/* Tighter padding on mobile card for more breathing room between elements */
@media (max-width: 899px) {
    .rwy-af-mobile-card {
        gap: 10px;
        padding-left: 18px;
        padding-right: 18px;
    }
    /* Counter as first-class social proof block */
    .rwy-af-mobile-card .rwy-counter {
        order: 2;
    }
    /* Form always immediately after counter */
    .rwy-af-form-row--mobile {
        order: 3;
    }
    /* Store badges right after form — secondary CTA, above the fold */
    .rwy-af-stores--mobile {
        order: 4;
    }
    /* Features below the fold — they confirm value after primary action */
    .rwy-af-stats--mobile {
        order: 5;
    }
    /* Privacy footer stays last */
    .rwy-af-privacy {
        order: 6;
    }
    .rwy-af-mobile-card {
        display: flex;
        flex-direction: column;
    }
    /* Store badges touch-friendly on mobile */
    .rwy-af-stores--mobile .rwy-store-badge {
        height: 40px;
    }
    .rwy-af-stores--mobile .rwy-store-badge svg {
        height: 40px;
        max-width: 140px;
    }
}

/* ── Desktop left panel — badges stack neatly ── */
.rwy-af-left .rwy-af-stores {
    max-width: 460px;
}

/* ══════════════════════════════════════════════════════════════
   COUNTER — light theme overrides for appframe layout
   The base styles in frontend.css are dark-themed.
   These selectors override for the light card background.
   ══════════════════════════════════════════════════════════════ */

/* Both desktop left-panel and mobile card */
.rwy-af-left .rwy-counter,
.rwy-af-mobile-card .rwy-counter {
    max-width: 100%;
    margin-bottom: 0;
}

/* ── BAR counter ── */
.rwy-af-left .rwy-cnt-bar,
.rwy-af-mobile-card .rwy-cnt-bar {
    max-width: 100%;
    margin-bottom: 0;
}
.rwy-af-left .rwy-cnt-bar__top,
.rwy-af-mobile-card .rwy-cnt-bar__top {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    opacity: 1;
}
.rwy-af-left .rwy-cnt-bar__top strong,
.rwy-af-mobile-card .rwy-cnt-bar__top strong {
    color: var(--accent, #22d3ee);
}
.rwy-af-left .rwy-cnt-bar__track,
.rwy-af-mobile-card .rwy-cnt-bar__track {
    background: rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    height: 7px;
}

/* ── RING counter ── */
.rwy-af-left .rwy-cnt-ring svg,
.rwy-af-mobile-card .rwy-cnt-ring svg {
    color: #1a1a2e;
}
.rwy-af-left .rwy-cnt-ring circle:first-child,
.rwy-af-mobile-card .rwy-cnt-ring circle:first-child {
    stroke: rgba(0,0,0,.08);
}
.rwy-af-left .rwy-cnt-ring__label,
.rwy-af-mobile-card .rwy-cnt-ring__label {
    color: #6b7280;
}
.rwy-af-left .rwy-cnt-ring__left,
.rwy-af-mobile-card .rwy-cnt-ring__left {
    color: #374151;
}

/* ── BIG NUMBER counter ── */
.rwy-af-left .rwy-cnt-number__meta span:first-child,
.rwy-af-mobile-card .rwy-cnt-number__meta span:first-child {
    color: #6b7280;
    opacity: 1;
}
.rwy-af-left .rwy-cnt-number__left,
.rwy-af-mobile-card .rwy-cnt-number__left {
    color: #374151;
    opacity: 1;
}
.rwy-af-left .rwy-cnt-number__left strong,
.rwy-af-mobile-card .rwy-cnt-number__left strong {
    color: #1a1a2e;
}

/* ── MINIMAL counter ── */
.rwy-af-left .rwy-cnt-minimal,
.rwy-af-mobile-card .rwy-cnt-minimal {
    color: #374151;
    opacity: 1;
    font-size: 15px;
    font-weight: 600;
}
.rwy-af-left .rwy-cnt-minimal strong,
.rwy-af-mobile-card .rwy-cnt-minimal strong {
    color: var(--accent, #22d3ee);
}

/* ── SEGMENTS counter ── */
.rwy-af-left .rwy-cnt-segs__dot,
.rwy-af-mobile-card .rwy-cnt-segs__dot {
    background: rgba(0,0,0,.1);
}
.rwy-af-left .rwy-cnt-segs__label,
.rwy-af-mobile-card .rwy-cnt-segs__label {
    color: #6b7280;
    opacity: 1;
}
.rwy-af-left .rwy-cnt-segs__label strong,
.rwy-af-left .rwy-cnt-segs__label span,
.rwy-af-mobile-card .rwy-cnt-segs__label strong,
.rwy-af-mobile-card .rwy-cnt-segs__label span {
    color: #1a1a2e;
}

/* ── PILLS counter ── */
.rwy-af-left .rwy-cnt-pills__pill,
.rwy-af-mobile-card .rwy-cnt-pills__pill {
    background: rgba(0,0,0,.1);
}
.rwy-af-left .rwy-cnt-pills__label,
.rwy-af-mobile-card .rwy-cnt-pills__label {
    color: #6b7280;
    opacity: 1;
}
