:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #FF8C00;
    --accent-deep: #FF2E00;
    --accent-gradient: linear-gradient(135deg, #FF2E00 0%, #FF8C00 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    --max-width: 1200px;
    --radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 6px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .fade-in-up { opacity: 1; transform: none; transition: none; }
    .hero::before { animation: none; }
    html { scroll-behavior: auto; }
}

/* Type helpers */
.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.center { text-align: center; }

h2 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.lede-sm {
    max-width: 720px;
    margin: 0 auto 48px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.55);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.logo img {
    height: 32px;
    width: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 26px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover { color: var(--text-primary); }

.actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pill {
    padding: 9px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
}

.pill-light {
    background: #ffffff;
    color: #000000;
}

.pill-light:hover { background: #f0f0f0; transform: scale(1.04); }

.pill-testflight {
    background: linear-gradient(135deg, #007AFF 0%, #00B4FF 100%);
    color: #fff;
}

.pill-testflight:hover { transform: scale(1.04); }

.pill-web {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.pill-web:hover { background: rgba(255, 140, 0, 0.1); transform: scale(1.04); }


/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 150px 20px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    width: 900px;
    height: 700px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 90, 0, 0.22), transparent 60%);
    filter: blur(80px);
    z-index: -1;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-46%) translateY(30px); }
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -2.5px;
    line-height: 1.02;
    margin-bottom: 22px;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .lede {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-note a { color: var(--accent); }

.btn {
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover { background: #e0e0e0; transform: translateY(-2px); }

.btn-testflight {
    background: linear-gradient(135deg, #007AFF 0%, #00B4FF 100%);
    color: #ffffff;
}

.btn-testflight:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 122, 255, 0.4);
}

.btn-android {
    background: linear-gradient(135deg, #1e9e5a 0%, #3DDC84 100%);
    color: #04150b;
}

.btn-android:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(61, 220, 132, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover { background: rgba(255, 140, 0, 0.1); transform: translateY(-2px); }

/* Phones */
.phone {
    border-radius: 36px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9), 0 0 0 6px #0a0a0a, 0 0 0 7px rgba(255, 255, 255, 0.08);
    background: #000;
}

.phone img { width: 100%; }

.hero-phones {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    margin: 70px auto 0;
    max-width: 1100px;
    width: 100%;
    perspective: 1400px;
}

.hero-phones .phone { width: 30%; max-width: 330px; flex: 0 0 auto; }

.hero-phones .tilt-left {
    transform: translateX(8%) rotateY(14deg) scale(0.9);
    transform-origin: right bottom;
    z-index: 1;
}

.hero-phones .tilt-right {
    transform: translateX(-8%) rotateY(-14deg) scale(0.9);
    transform-origin: left bottom;
    z-index: 1;
}

.hero-phones .center {
    z-index: 2;
    transform: translateY(-20px);
}


/* Film */
.film {
    padding: 90px 20px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.film h2.center { margin-bottom: 44px; }

.film-main,
.film-side {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #050505;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.film-main video,
.film-side video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.film-main figcaption,
.film-side figcaption {
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
}

.film-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.film-copy h3 { font-size: 1.6rem; margin-bottom: 14px; letter-spacing: -0.5px; }
.film-copy p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.65; }
.film-solo { max-width: 720px; margin: 40px auto 0; text-align: center; }
.film-link { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 600; }
.film-link:hover { text-decoration: underline; }

/* Stories: three vertical spots that loop muted, tap opens the 30s cut with sound */
.stories {
    padding: 100px 20px 10px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.stories h2.center { margin-bottom: 44px; }

.story-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 300px));
    justify-content: center;
    gap: 40px;
}

.story {
    all: unset;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    min-width: 0;
}

.story-frame {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    border-radius: 28px;
    overflow: hidden;
    background: #050505;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}

.story:hover .story-frame,
.story:focus-visible .story-frame {
    transform: translateY(-6px);
    border-color: rgba(255, 140, 0, 0.55);
    box-shadow: 0 40px 90px -20px rgba(255, 90, 0, 0.35);
}

.story:focus-visible .story-frame { outline: 2px solid var(--accent); outline-offset: 4px; }

/* A play disc fades in on hover so the tile reads as a film, not a screenshot */
.story-frame::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23FF8C00'/%3E%3C/svg%3E") 55% 50% / 30px no-repeat;
    border: 1px solid rgba(255, 140, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.story:hover .story-frame::after,
.story:focus-visible .story-frame::after { opacity: 1; transform: scale(1); }

.story-loop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 6px;
    text-align: left;
}

.story-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
}

.story-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.3px; line-height: 1.3; }

.story-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.story-play::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 9px solid var(--accent);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.story:hover .story-play { color: var(--text-primary); }

/* Film lightbox */
.film-dialog {
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    max-width: none;
    max-height: none;
    overflow: visible;
}

.film-dialog::backdrop {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.film-dialog video {
    display: block;
    height: min(86vh, 1280px);
    width: auto;
    max-width: 94vw;
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 40px 120px rgba(255, 90, 0, 0.25);
}

.film-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: #111;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.film-close:hover { border-color: var(--accent); }

/* Web of Trust split: the vertical film stands where the phone screenshot sits elsewhere */
.spot-frame {
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #050505;
    box-shadow: 0 40px 100px -20px rgba(255, 90, 0, 0.25);
}

.spot-frame video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    background: #000;
    cursor: pointer;
}

.spot-frame figcaption {
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
}

.trust { position: relative; }

.trust::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 90, 0, 0.14), transparent 65%);
    filter: blur(60px);
    z-index: -1;
}

.relay-film { max-width: 980px; margin: 0 auto 32px; }

/* Platforms */
.platforms {
    padding: 90px 20px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.platform {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 26px 28px;
    border-radius: var(--radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.platform:hover { transform: translateY(-4px); border-color: rgba(255, 140, 0, 0.5); }

.platform-name { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }
.platform-sub { color: var(--text-secondary); font-size: 0.92rem; }
.platform-cta { color: var(--accent); font-weight: 600; font-size: 0.92rem; margin-top: 8px; }

.platform.web { border-color: rgba(255, 140, 0, 0.35); }

/* Web app */
.web {
    padding: 110px 20px 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.web .lede-sm { margin-bottom: 0; }
.web .hero-buttons { justify-content: center; margin: 28px 0 56px; }

.browser {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0a0a0a;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9), 0 0 80px -30px rgba(255, 140, 0, 0.25);
}

.browser img { display: block; width: 100%; height: auto; }

.browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    background: #141414;
    border-bottom: 1px solid var(--glass-border);
}

.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c2c2e; }

.browser-bar p {
    flex: 1;
    max-width: 360px;
    margin: 0 auto;
    padding: 4px 14px;
    border-radius: 8px;
    background: #000;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
}

.web-row {
    display: grid;
    grid-template-columns: 1fr minmax(200px, 260px);
    gap: 28px;
    margin-top: 28px;
    align-items: start;
}

.web-row .shot img { display: block; width: 100%; height: auto; }

.web-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.web-points li {
    padding: 22px 24px;
    border-radius: var(--radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.web-points strong { display: block; color: var(--text-primary); margin-bottom: 4px; }

/* Split section */
.split {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 70px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 110px 20px;
}

.split .phone.solo { width: 100%; }

.split-copy p { color: var(--text-secondary); font-size: 1.1rem; }
.split-copy .eyebrow { color: var(--accent); font-size: 0.8rem; }

.feed-list {
    list-style: none;
    margin-top: 28px;
    display: grid;
    gap: 12px;
}

.feed-list li {
    padding-left: 22px;
    position: relative;
    color: var(--text-secondary);
}

.feed-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gradient);
}

.feed-list strong { color: var(--text-primary); }

/* Features Grid */
.features {
    padding: 100px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.features h2.center { margin-bottom: 48px; }
.features .lede-sm + .grid { margin-top: 0; }
.features h2.center + .lede-sm { margin-top: -30px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); max-width: 980px; margin: 0 auto; }

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 36px;
    border-radius: var(--radius);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); }

.card h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.card p { color: var(--text-secondary); }

.bitcoin {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 69, 0, 0.05) 50%, transparent 100%);
}

/* Showcase */
.showcase {
    padding: 100px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.showcase h2.center { margin-bottom: 56px; }

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.shot {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #050505;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.shot:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }

.shot.wide { grid-column: span 3; }

.shot.wide img {
    width: 100%;
    max-height: 760px;
    object-fit: cover;
    object-position: top;
}

.shot figcaption {
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
}

/* Blog teaser */
.blog-teaser {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.teaser {
    display: block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.teaser:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }

.teaser-kicker {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.teaser h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.teaser-body { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; margin-bottom: 20px; }
.teaser-cta { color: var(--accent); font-weight: 600; font-size: 0.95rem; }

/* CTA */
.cta-section {
    padding: 150px 20px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 69, 0, 0.06) 100%);
}

.cta-section h2 { font-size: 3.2rem; margin-bottom: 18px; }

.cta-section p {
    max-width: 640px;
    margin: 0 auto 32px;
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

footer a { color: var(--text-primary); }
footer a:hover { color: var(--accent); }
.footer-small { margin-top: 10px; font-size: 0.8rem; opacity: 0.7; }

/* Responsive */
@media (max-width: 960px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .shot.wide { grid-column: span 2; }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .film-row { grid-template-columns: 1fr; gap: 28px; }
    .trust .spot-frame { max-width: 360px; margin: 0 auto; }
    .split .phone.solo { max-width: 320px; margin: 0 auto; }
    .nav-links { display: none; }
    .web-points { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    nav { padding: 12px 18px; }
    .logo span { display: none; }
    .hero { padding-top: 110px; }
    .hero h1 { font-size: 3rem; letter-spacing: -1.5px; }
    .hero .lede { font-size: 1.1rem; }
    h2 { font-size: 2rem; }
    .hero-phones { margin-top: 44px; }
    .hero-phones .phone { width: 34%; border-radius: 22px; }
    .features, .showcase, .platforms { padding: 60px 16px; }
    .film { padding: 60px 16px 0; }
    .film-main, .film-side { border-radius: 18px; }
    .card { padding: 28px; }
    .gallery { grid-template-columns: 1fr; gap: 20px; }
    .web { padding: 60px 16px 20px; }
    .web-row { grid-template-columns: 1fr; }
    .web-row .phone-shot { max-width: 300px; margin: 0 auto; }
    .browser-bar p { display: none; }
    .actions .pill-web { display: none; }
    .shot.wide { grid-column: span 1; }
    .stories { padding: 60px 0 0; }
    .stories h2.center { padding: 0 16px; }
    .story-row {
        display: flex;
        overflow-x: auto;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        gap: 14px;
        padding: 4px 16px 24px;
        scroll-padding-inline: 16px;
        scrollbar-width: none;
    }
    .story-row::-webkit-scrollbar { display: none; }
    .story { flex: 0 0 68%; scroll-snap-align: start; }
    .trust .spot-frame { max-width: 300px; }
    .story-frame { border-radius: 22px; }
    .cta-section { padding: 90px 16px; }
    .cta-section h2 { font-size: 2.2rem; }
}

/* The app-first shell (shell.js): the web app full screen in a frame over the page, or, on "What is Nostr Vault?",
   live in the hero's phone with the page around it. Without JavaScript none of this applies. */
.live-app {
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow: hidden;
    background: #000;
}

.live-app iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    transform-origin: 0 0; /* scaled down into the phone (shell.js fit) */
}

.live-app.framed {
    z-index: 50;
    border-radius: 36px;
    box-shadow: 0 0 0 6px #0a0a0a, 0 0 0 7px rgba(255, 255, 255, 0.08);
}

html.shell-app { overflow: hidden; }
html.shell-app #site { visibility: hidden; }

/* The phone the app sits in: the hero's centre phone, its screenshot kept for size only. */
html.shell .hero-phones { perspective: none; }
html.shell .hero-phones .tilt-left,
html.shell .hero-phones .tilt-right { display: none; }
html.shell .hero-phones .phone-slot {
    --phone-h: min(760px, calc(100svh - 210px));
    height: var(--phone-h);
    width: calc(var(--phone-h) * 900 / 1957);
    max-width: none;
    transform: none;
    box-shadow: none;
    border-color: transparent;
}
html.shell .phone-slot img { visibility: hidden; height: 100%; }

.hero-open { display: none; }
html.shell .hero-open {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
}
.hero-open .btn { border: 0; font-family: inherit; }
.hero-open p { font-size: 0.85rem; color: var(--text-secondary); }

/* Wide windows: the copy on the left, the live phone on the right, both in the first screen. */
@media (min-width: 961px) {
    html.shell .hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-content: center;
        column-gap: 72px;
        max-width: var(--max-width);
        min-height: 100svh;
        margin: 0 auto;
        padding: 96px 40px 40px;
        text-align: left;
    }
    html.shell .hero-copy { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
    html.shell .hero h1 { font-size: 4.4rem; }
    html.shell .hero .hero-buttons { justify-content: flex-start; }
    html.shell .hero-phones { grid-column: 2; grid-row: 1; margin: 0; width: auto; }
    html.shell .hero-open { grid-column: 2; grid-row: 2; margin-top: 22px; }
}

/* Narrow windows: the headline, then the live phone in the first screen, then the rest of the copy. */
@media (max-width: 960px) {
    html.shell .hero { padding-top: 92px; }
    html.shell .hero-copy { display: contents; }
    html.shell .hero .eyebrow { order: 1; margin-bottom: 8px; }
    html.shell .hero h1 { order: 2; font-size: 2.5rem; letter-spacing: -1px; margin-bottom: 0; }
    html.shell .hero-phones { order: 3; margin-top: 22px; }
    html.shell .hero-open { order: 4; margin-top: 20px; }
    html.shell .hero .lede { order: 5; margin-top: 36px; }
    html.shell .hero .hero-buttons { order: 6; }
    html.shell .hero .hero-note { order: 7; }
    html.shell .actions .pill-web { display: inline-block; }
    html.shell .actions .pill-light { display: none; }
    html.shell .hero-phones .phone-slot {
        --phone-h: min(640px, calc(100svh - 320px), calc(min(340px, 86vw) * 1957 / 900));
        border-radius: 36px;
    }
}

/* Legacy nav button used by blog + privacy pages */
.actions .btn-download {
    background: #ffffff;
    color: #000000;
    padding: 9px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.88rem;
}

.actions .btn-download:hover { background: #f0f0f0; transform: scale(1.04); }
