/* Theme Variables */
:root {
    --primary: #00f0ff;
    --primary-fixed-dim: #00dbe9;
    --on-primary: #00363a;
    --primary-container: rgba(0, 240, 255, 0.1);
    
    --background: #050608;
    --surface: #111318;
    --surface-container: #1e2024;
    --surface-container-high: #282a2e;
    --surface-container-highest: #333539;
    --surface-container-lowest: #0c0e12;
    
    --on-surface: #e2e2e8;
    --on-surface-variant: #b9cacb;
    --outline: #849495;
    --outline-variant: #3b494b;
    
    --error: #ffb4ab;
    --secondary: #ffb59a;
    
    --font-headline: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--on-surface);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.grid-bg {
    background-image: radial-gradient(circle at 2px 2px, rgba(219, 252, 255, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-headline);
    color: #fff;
    line-height: 1.1;
}

.glow-text {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.font-mono {
    font-family: var(--font-mono);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 100px 0;
    }
}

/* Components */
.glass-panel {
    background: rgba(26, 28, 32, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(219, 252, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-panel:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
}

.store-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

.store-badge-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.store-badge-button:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.store-badge-button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.store-badge-button img {
    display: block;
    width: auto;
    height: 48px;
    object-fit: contain;
}

.store-badge-button img.google-play-badge {
    height: 70px;
}

.card-actions .store-badge-button {
    min-height: 0;
    margin-left: -9px;
}

.card-actions .store-badge-button img.google-play-badge {
    height: 54px;
}

/* Header */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(17, 19, 24, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    z-index: 1000;
}

nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .nav-center {
        display: none;
    }
    nav {
        display: flex;
        justify-content: space-between;
    }
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 64px;
    }
}

.hero-content p {
    font-size: 18px;
    color: var(--on-surface-variant);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
}

.hero-visual img {
    width: 100%;
    max-width: 450px;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Terminal Section */
.terminal-container {
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 16px;
    overflow: hidden;
}

.terminal-header {
    background: var(--surface-container-high);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--outline-variant);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: var(--error); opacity: 0.5; }
.dot-yellow { background: var(--secondary); opacity: 0.5; }
.dot-green { background: var(--primary); opacity: 0.5; }

.terminal-tabs {
    display: flex;
    border-bottom: 1px solid var(--outline-variant);
}

.tab-btn {
    flex: 1;
    padding: 16px;
    background: transparent;
    border: none;
    color: var(--on-surface-variant);
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
    border-bottom: 2px solid var(--primary);
}

.tab-content {
    display: none;
    padding: 32px;
}

.tab-content.active {
    display: block;
}

/* Terminal Content Styles */
.history-item, .news-item {
    border-left: 2px solid var(--outline-variant);
    padding-left: 20px;
    margin-bottom: 24px;
}

.history-item:last-child, .news-item:last-child {
    margin-bottom: 0;
}

.history-item.current {
    border-left-color: var(--primary);
}

.item-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--primary-fixed-dim);
    margin-bottom: 4px;
}

.item-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.ios-download-panel {
    align-items: center;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.14);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 18px 20px;
}

.icon-link-button,
.release-download-button {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    min-width: 36px;
    padding: 0 8px;
    transition: var(--transition);
}

.icon-link-button:hover,
.release-download-button:hover {
    background: rgba(0, 240, 255, 0.1);
}

.release-history-item {
    background: transparent;
    border-top: none;
    border-right: none;
    border-bottom: none;
    cursor: pointer;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    text-align: left;
    width: 100%;
}

.release-history-main {
    appearance: none;
    background: transparent;
    border: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    text-align: left;
}

.release-history-item:hover .item-title {
    color: var(--primary);
}

.release-history-text {
    display: block;
}

.release-history-text .item-meta,
.release-history-text .item-title {
    display: block;
}

.release-download-actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.release-empty {
    color: var(--on-surface-variant);
}

/* Animations */
.ping-slow {
    animation: ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

.terminal-cursor::after {
    content: '_';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--primary);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--on-surface-variant);
    cursor: pointer;
    font-size: 24px;
}

/* Footer */
footer {
    background: var(--surface-container-lowest);
    border-top: 1px solid var(--outline-variant);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.footer-logo-area p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--on-surface-variant);
}

.footer-links h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-link-button {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--on-surface-variant);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    padding: 0;
    text-align: left;
    transition: var(--transition);
}

.footer-link-button:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 12px;
    color: var(--on-surface-variant);
    opacity: 0.5;
}

.icon-button {
    align-items: center;
    background: transparent;
    border: none;
    color: var(--on-surface-variant);
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    padding: 0;
    transition: var(--transition);
}

.icon-button:hover {
    color: var(--primary);
}

.legal-page {
    min-height: calc(100vh - 216px);
    padding: 72px 0 96px;
}

.legal-page-container {
    max-width: 920px;
}

.legal-page-eyebrow {
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.legal-page h1 {
    font-size: clamp(34px, 5vw, 52px);
    margin-bottom: 32px;
}

.legal-document {
    background: rgba(26, 28, 32, 0.72);
    border: 1px solid rgba(219, 252, 255, 0.12);
    border-radius: 8px;
    padding: 32px;
}

.legal-document pre {
    color: var(--on-surface-variant);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.release-detail-modal,
.desktop-modal-content {
    max-width: 640px;
    text-align: left;
}

.release-detail-modal h2,
.desktop-modal-content h2,
.message-modal-content h2 {
    margin-bottom: 12px;
}

.release-detail-modal h3 {
    color: #fff;
    font-size: 20px;
    margin: 12px 0 18px;
}

.release-notes {
    color: var(--on-surface-variant);
    margin: 0 0 28px 20px;
}

.release-notes li {
    margin-bottom: 10px;
}

.release-detail-actions,
.desktop-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.desktop-options {
    flex-direction: column;
}

.desktop-option-button {
    justify-content: center;
}

.message-modal-content {
    max-width: 420px;
}

.message-modal-content p {
    color: var(--on-surface-variant);
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .store-badge-row {
        gap: 10px;
    }

    .store-badge-button {
        min-height: 48px;
    }

    .store-badge-button img {
        height: 44px;
    }

    .store-badge-button img.google-play-badge {
        height: 64px;
    }

    .card-actions .store-badge-button {
        margin-left: -10px;
    }

    .legal-page {
        padding: 48px 0 64px;
    }

    .legal-document {
        padding: 22px;
    }

    .legal-document pre {
        font-size: 14px;
    }

    .release-history-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .release-download-actions,
    .release-detail-actions {
        width: 100%;
    }
}

/* Product center */
.product-center {
    min-height: calc(100vh - 72px);
    padding: 0 0 96px;
    background:
        radial-gradient(circle at 88% 3%, rgba(0, 173, 214, .16), transparent 24rem),
        radial-gradient(circle at 8% 35%, rgba(91, 67, 194, .15), transparent 25rem),
        var(--background);
}

.product-center .shell,
.product-footer .shell {
    width: min(calc(100% - 40px), 1180px);
    margin: 0 auto;
}

.product-hero {
    padding: 92px 0 68px;
}

.product-center .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.product-center .eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
}

.product-center h1 {
    max-width: 790px;
    margin: 20px 0 18px;
    color: var(--on-surface);
    font-family: var(--font-headline);
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -.03em;
}

.product-center h1 span { display: block; }
.product-center h1 .title-break { margin-top: .14em; }

.hero-copy {
    max-width: 570px;
    margin: 0;
    color: var(--on-surface-variant);
    font-size: 17px;
}

.product-center .section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.product-center .section-head h2 {
    margin: 0;
    color: var(--on-surface);
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -.04em;
}

.product-center .section-head p {
    max-width: 430px;
    margin: 0;
    color: var(--on-surface-variant);
    font-size: 14px;
    text-align: right;
}

.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    padding: 30px;
    border: 1px solid rgba(219, 252, 255, .12);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(21, 30, 46, .9), rgba(15, 23, 36, .74));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

.product-card::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -105px;
    bottom: -145px;
    border-radius: 50%;
    background: rgba(0, 240, 255, .14);
}

.product-card.receipts::after { background: rgba(255, 181, 154, .14); }

.card-top,
.card-actions,
.card-links {
    position: relative;
    z-index: 1;
}

.card-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.product-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
}

.product-icon img { width: 100%; height: 100%; object-fit: contain; }

.product-card:not(.receipts) .product-icon { background: #050608; }

.product-tag {
    padding: 6px 10px;
    border: 1px solid rgba(0, 240, 255, .3);
    border-radius: 999px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.receipts .product-tag { border-color: rgba(255, 181, 154, .38); color: var(--secondary); }

.product-card h3 {
    position: relative;
    z-index: 1;
    margin: 31px 0 8px;
    color: var(--on-surface);
    font-size: 31px;
    letter-spacing: -.04em;
}

.product-card > p {
    position: relative;
    z-index: 1;
    max-width: 470px;
    min-height: 52px;
    margin: 0;
    color: var(--on-surface-variant);
}

.chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.chip { padding: 7px 10px; border: 1px solid rgba(219, 252, 255, .12); border-radius: 9px; color: #dce6f4; font-size: 12px; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 33px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 10px; font-family: var(--font-mono); font-size: 13px; text-decoration: none; }
.button-primary { background: var(--primary); color: var(--on-primary); }
.button-secondary { background: var(--secondary); color: #351103; }
.text-link,
.card-links a,
.internal-link { color: var(--primary); font-size: 13px; text-decoration: none; }
.receipts .text-link,
.receipts .card-links a { color: var(--secondary); }
.card-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.internal-link { display: inline-block; margin-top: 15px; }
.internal-link[hidden] { display: none !important; }

.updates { padding: 74px 0 0; }
.updates-title { margin: 0; padding: 14px 3px 13px; border-bottom: 1px solid rgba(219, 252, 255, .12); color: var(--on-surface); font-size: 12px; font-weight: 750; letter-spacing: .12em; }
.tab-panel { display: none; padding-top: 22px; }
.tab-panel.active { display: block; }
.update-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.update-item { padding: 22px; border: 1px solid rgba(219, 252, 255, .12); border-radius: 16px; background: rgba(255, 255, 255, .025); }
.release-item-clickable { cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.release-item-clickable:hover,
.release-item-clickable:focus-visible { border-color: rgba(0, 240, 255, .45); background: rgba(0, 240, 255, .055); outline: none; transform: translateY(-2px); }
.update-item time { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.update-item h3 { margin: 10px 0 6px; color: var(--on-surface); font-size: 19px; letter-spacing: -.025em; }
.update-item p { margin: 0; color: var(--on-surface-variant); font-size: 14px; }
.release-version { margin-top: 0 !important; color: var(--primary) !important; }
.news-item time { color: var(--secondary); }
.loading-state { color: var(--on-surface-variant); }
.product-footer { border-top: 1px solid rgba(219, 252, 255, .12); color: var(--on-surface-variant); font-size: 13px; }
.product-footer .footer-inner { display: flex; align-items: center; justify-content: center; min-height: 78px; }

@media (max-width: 760px) {
    .product-center .shell,
    .product-footer .shell { width: min(calc(100% - 28px), 1180px); }
    .product-hero { padding: 67px 0 55px; }
    .product-center h1 { max-width: none; font-size: clamp(24px, 9.2vw, 52px); line-height: 1.08; }
    .product-center h1 span { white-space: nowrap; }
    .product-center h1 .title-break { margin-top: .18em; }
    .product-center .section-head { display: block; }
    .product-center .section-head p { margin-top: 11px; text-align: left; }
    .products { grid-template-columns: 1fr; }
    .product-card { min-height: 0; padding: 23px; border-radius: 20px; }
    .product-card h3 { margin-top: 25px; font-size: 28px; }
    .product-card > p { min-height: 0; }
    .updates { padding-top: 59px; }
    .update-list { grid-template-columns: 1fr; }
    .product-footer .footer-inner { padding: 18px 0; }
}

.legal-page { min-height: 100vh; padding: 0; background: var(--background); }
.legal-page .shell { width: min(calc(100% - 40px), 980px); margin: 0 auto; }
.legal-main { min-height: calc(100vh - 150px); padding: 44px 0 88px; }
.legal-document { padding: 42px clamp(22px, 5vw, 64px); border: 1px solid rgba(219, 252, 255, .12); border-radius: 20px; background: rgba(255, 255, 255, .025); }
.legal-document h1 { margin: 0 0 24px; color: var(--on-surface); font-family: var(--font-headline); font-size: clamp(34px, 6vw, 58px); letter-spacing: -.04em; }
.generated-note { margin: 0 0 26px; color: var(--on-surface-variant); font-size: 12px; }
.legal-copy { color: var(--on-surface-variant); font-size: 15px; line-height: 1.75; }
.legal-copy h2 { margin: 34px 0 10px; color: var(--on-surface); font-family: var(--font-headline); font-size: 24px; }
.legal-copy p { margin: 0 0 16px; }
.legal-copy ul { margin: 0 0 20px; padding-left: 24px; }
.legal-copy li { margin-bottom: 8px; }
.legal-copy code { color: var(--primary); }

/* Independent app pages */
.topbar {
    border-bottom: 1px solid rgba(219, 252, 255, .1);
    background: rgba(8, 10, 16, .82);
    backdrop-filter: blur(18px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.product-topbar .topbar-inner { justify-content: center; }
.product-topbar .brand-mark {
    width: 32px;
    height: 32px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
}

.product-topbar .brand-mark img {
    width: 32px;
    height: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--on-surface);
    font-family: var(--font-headline);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(255, 255, 255, .94);
}

.brand-mark img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.nav-cta {
    color: var(--on-surface-variant);
    font-size: 13px;
    text-decoration: none;
}

.nav-cta:hover,
.brand:hover { color: var(--primary); }

.app-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 90% 8%, rgba(0, 173, 214, .14), transparent 24rem),
        var(--background);
}

.app-page .shell { width: min(calc(100% - 40px), 980px); margin: 0 auto; }
.app-main { min-height: calc(100vh - 150px); padding: 44px 0 88px; }
.back-link { display: inline-block; margin-bottom: 48px; color: var(--on-surface-variant); font-size: 14px; text-decoration: none; }
.back-link[hidden] { display: none !important; }
.back-link:hover { color: var(--primary); }
.app-hero { display: grid; grid-template-columns: 132px 1fr; gap: 30px; align-items: center; padding-bottom: 56px; border-bottom: 1px solid rgba(219, 252, 255, .12); }
.app-hero-copy { min-width: 0; }
.app-hero-title { min-width: 0; }
.app-icon { display: grid; place-items: center; width: 132px; height: 132px; padding: 22px; border-radius: 32px; background: rgba(255, 255, 255, .94); box-shadow: 0 20px 54px rgba(0, 0, 0, .25); }
.app-page:not(.receipt-app-page) .app-icon { background: #050608; }
.app-icon img { width: 100%; height: 100%; object-fit: contain; }
.app-hero h1 { margin: 12px 0 12px; color: var(--on-surface); font-family: var(--font-headline); font-size: clamp(38px, 6vw, 68px); letter-spacing: -.04em; }
.app-hero p { max-width: 650px; margin: 0; color: var(--on-surface-variant); font-size: 18px; }
.app-actions { margin-top: 24px; }
.button-disabled { cursor: default; opacity: .72; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 42px 0; }
.app-panel { padding: 24px; border: 1px solid rgba(219, 252, 255, .12); border-radius: 16px; background: rgba(255, 255, 255, .025); }
.app-panel h2 { margin: 0 0 10px; color: var(--on-surface); font-size: 20px; }
.app-panel p { margin: 0; color: var(--on-surface-variant); font-size: 14px; }
.legal-links-panel { padding: 26px; border: 1px solid rgba(219, 252, 255, .12); border-radius: 16px; background: rgba(255, 255, 255, .025); }
.legal-links-panel h2 { margin: 0 0 16px; color: var(--on-surface); font-size: 20px; }
.legal-link-grid { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-link-grid a { color: var(--primary); font-size: 14px; text-decoration: none; }
.receipt-app-page .eyebrow,
.receipt-app-page .legal-link-grid a { color: var(--secondary); }

@media (max-width: 760px) {
    .app-page .shell { width: min(calc(100% - 28px), 980px); }
    .app-main { padding-top: 30px; }
    .back-link { margin-bottom: 32px; }
    .app-page .app-hero { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
    .app-page .app-hero-copy { display: contents; }
    .app-page .app-hero-title { grid-column: 2; align-self: center; }
    .app-page .app-hero-copy > p,
    .app-page .app-hero-copy > .app-actions { grid-column: 1 / -1; }
    .app-icon { width: 96px; height: 96px; padding: 16px; border-radius: 24px; }
    .app-page .app-hero h1 { margin-top: 6px; font-size: clamp(20px, 7vw, 34px); letter-spacing: -.05em; white-space: nowrap; }
    .app-hero p { font-size: 16px; }
    .app-grid { grid-template-columns: 1fr; }
}
