/* Stashify marketing — single stylesheet */

:root {
    /* — Dark Fintech Palette — */
    --color-bg: #070b14;
    --color-bg-alt: #0c1221;
    --color-surface: rgba(15, 23, 42, 0.6);
    --color-surface-solid: #0f172a;
    --color-elevated: rgba(30, 41, 59, 0.5);
    --color-primary: #3b82f6;
    --color-primary-strong: #2563eb;
    --color-accent: #c9a227;
    --color-accent-glow: rgba(201, 162, 39, 0.3);
    --color-teal: #2dd4bf;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-text-dim: #64748b;
    --color-border: rgba(148, 163, 184, 0.12);
    --color-border-glass: rgba(255, 255, 255, 0.08);
    --color-glass-bg: rgba(15, 23, 42, 0.65);
    --color-glass-border: rgba(255, 255, 255, 0.1);
    --color-dark: #020617;
    --color-dark-mid: #0f172a;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow-blue: 0 0 40px rgba(59, 130, 246, 0.15);
    --shadow-glow-gold: 0 0 40px rgba(201, 162, 39, 0.12);
    --radius-lg: 1.25rem;
    --radius-md: 0.875rem;
    --radius-pill: 999px;
    --container-max: 1120px;
    --header-h: 4rem;
    --font: 'IBM Plex Sans', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: 0.2s ease;
    --glass-blur: 16px;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    background-image: radial-gradient(ellipse at 20% 0%, rgba(59, 130, 246, 0.12), transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(45, 212, 191, 0.08), transparent 45%), radial-gradient(ellipse at 50% 80%, rgba(201, 162, 39, 0.05), transparent 50%);
    background-attachment: fixed;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

@media (prefers-reduced-motion: reduce) {
    body::after {
        display: none;
    }
}

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

a {
    color: var(--color-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--color-primary-strong);
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    background: var(--color-dark);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* —— Header —— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-glass-border);
    background: rgba(7, 11, 20, 0.75);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.brand:hover {
    color: var(--color-text);
}

.brand-mark {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.brand-mark--sm {
    width: 36px;
    height: 36px;
}

.brand__logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.brand-mark--sm .brand__logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.brand-logo-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(140deg, var(--color-teal), var(--color-primary-strong));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark--sm .brand-logo-fallback {
    border-radius: 10px;
    font-size: 0.6rem;
}

.asset-img-wrap--fallback .brand-logo-fallback {
    z-index: 2;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    color: var(--color-text);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem 1.5rem;
}

.site-nav a:not(.btn) {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.35rem 0;
}

.site-nav a:not(.btn):hover {
    color: var(--color-text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0 1.35rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.btn:focus-visible {
    outline-offset: 3px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
    color: #fff;
}

.btn--secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid rgba(59, 130, 246, 0.35);
}

.btn--secondary:hover {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-text);
    transform: translateY(-2px);
}

.btn--block {
    width: 100%;
}

.btn:disabled,
.btn[aria-disabled='true'] {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

@media (max-width: 960px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.25rem;
        background: rgba(7, 11, 20, 0.95);
        backdrop-filter: blur(var(--glass-blur));
        border-bottom: 1px solid var(--color-glass-border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition:
            transform var(--transition),
            opacity var(--transition),
            visibility var(--transition);
    }

    .site-nav--open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .site-nav .btn {
        margin-top: 0.5rem;
        justify-content: center;
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (min-width: 961px) {
    .site-nav .btn--sm-desktop {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
        min-height: 40px;
        font-size: 0.875rem;
    }
}

/* —— Sections —— */
.section {
    padding: 5rem 0;
}

.section--tight-top {
    padding-top: 2.5rem;
}

.section__eyebrow {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.section__subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 36rem;
    margin: 0 0 2.5rem;
}

.section__subtitle--wide {
    max-width: 42rem;
}

.section__title--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.card .card-cta {
    margin-top: 1rem;
}

/* —— Hero —— */
.hero {
    position: relative;
    padding-top: 3rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.07), transparent 70%);
    bottom: -100px;
    left: -80px;
    pointer-events: none;
    z-index: 0;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after {
        display: none;
    }
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 960px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, #f1f5f9, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin: 0 0 1.75rem;
    max-width: 34rem;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hero__trust {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0;
}

.hero-mockup {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    padding-inline: 0.65rem;
    box-sizing: content-box;
}

@media (min-width: 960px) {
    .hero-mockup {
        margin: 0 0 0 auto;
        max-width: 340px;
    }
}

.hero-mockup__frame {
    position: relative;
    overflow: visible;
}

.hero-mockup__frame.iphone-bezel {
    box-shadow:
        0 28px 56px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.08),
        0 0 80px rgba(59, 130, 246, 0.2);
}

.hero-mockup__screen {
    position: relative;
}

.hero-mockup__screen.iphone-display {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* —— iPhone-style body: metal bezel + physical side buttons + mock status bar —— */
.iphone-bezel {
    position: relative;
    z-index: 0;
    border-radius: 2.85rem;
    padding: 0.6rem;
    background: linear-gradient(145deg, #6e6e72 0%, #4a4a4e 18%, #3a3a3c 42%, #2c2c2e 62%, #1c1c1e 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -3px 8px rgba(0, 0, 0, 0.45),
        inset 1px 0 0 rgba(255, 255, 255, 0.06),
        inset -1px 0 0 rgba(0, 0, 0, 0.35),
        0 22px 48px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(0, 0, 0, 0.45);
    overflow: visible;
}

.iphone-bezel::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 36%;
    height: 3px;
    border-radius: 2px;
    background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0 1px, transparent 1px 3px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 2;
}

.iphone-bezel__hardware {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.iphone-bezel__rail {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.iphone-bezel__rail--left {
    left: 0;
    width: 0;
    align-items: flex-start;
    padding-top: 24%;
    padding-bottom: 28%;
    justify-content: flex-start;
    gap: 0.55rem;
}

.iphone-bezel__rail--right {
    right: 0;
    width: 0;
    align-items: flex-end;
    padding-top: 26%;
    justify-content: flex-start;
}

.iphone-side-btn {
    display: block;
    flex-shrink: 0;
    background: linear-gradient(180deg, #454548 0%, #2d2d30 45%, #1a1a1c 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

.iphone-bezel__rail--left .iphone-side-btn {
    margin-left: -2px;
    border-radius: 3px 1px 1px 3px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-right: none;
}

.iphone-bezel__rail--right .iphone-side-btn {
    margin-right: -2px;
    border-radius: 1px 3px 3px 1px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-left: none;
}

.iphone-side-btn--silent {
    width: 3px;
    height: 1.65rem;
    margin-bottom: 0.15rem;
}

.iphone-side-btn--vol {
    width: 4px;
    height: 2.85rem;
}

.iphone-side-btn--power {
    width: 4px;
    height: 4.75rem;
}

.iphone-display {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    border-radius: 2.2rem;
    overflow: hidden;
    background: #0a0a0b;
    box-shadow:
        inset 0 0 0 2px #1a1a1c,
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* iOS-style status row (no notch): time + signal + battery */
.iphone-status-bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem 0.3rem 1.5rem;
    background: #fff;
    color: #0a0a0a;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.iphone-status-bar__time {
    flex: 1;
    min-width: 0;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.iphone-status-bar__right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.iphone-status-bar__signal {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 11px;
}

.iphone-status-bar__signal-bar {
    width: 3px;
    border-radius: 1px;
    background: currentColor;
}

.iphone-status-bar__signal-bar:nth-child(1) {
    height: 4px;
}

.iphone-status-bar__signal-bar:nth-child(2) {
    height: 6px;
}

.iphone-status-bar__signal-bar:nth-child(3) {
    height: 8px;
}

.iphone-status-bar__signal-bar:nth-child(4) {
    height: 10px;
}

.iphone-status-bar__battery {
    display: block;
    flex-shrink: 0;
    color: currentColor;
}

/* Bottom home indicator (gesture bar) — no physical button */
.iphone-home-indicator {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem 0.55rem;
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 0px));
    background: #e5e7eb;
}

.iphone-home-indicator__bar {
    width: 8.5rem;
    max-width: 38%;
    height: 4px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.28);
}
#screenshots .iphone-home-indicator {
    background: #f3f4f6;
}

.iphone-display__scroll {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #e5e7eb;
}

.hero-mockup .iphone-display__scroll {
    overflow: visible;
    flex: 1 1 auto;
}

.shot__screen .ui-mock,
.hero-mockup__screen .ui-mock {
    min-height: 100%;
}

/* —— In-browser UI mocks (match Stashify app patterns) —— */
.ui-mock {
    --ui-text: #111827;
    --ui-muted: #6b7280;
    --ui-border: #f3f4f6;
    font-family: var(--font);
    text-align: left;
    color: var(--ui-text);
    line-height: 1.35;
}

.ui-mock--hero {
    font-size: 9px;
    min-height: 50em;
}

@media (min-width: 400px) {
    .ui-mock--hero {
        font-size: 9.5px;
    }
}

.ui-mock--shot {
    font-size: 10px;
}

.ui-mock--debt,
.ui-mock--cashflow {
    display: flex;
    flex-direction: column;
    background: #f3f4f6;
}

.ui-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ui-header--compact {
    padding: 0.65rem 0.75rem;
}

.ui-header__left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.ui-header__logo {
    width: 2.75em;
    height: 2.75em;
    border-radius: 0.9em;
    flex-shrink: 0;
    background: linear-gradient(140deg, #0f766e, #0c4a6e);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.35);
}

.ui-header__title {
    margin: 0;
    font-size: 1.35em;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.ui-header__greet {
    margin: 0.1em 0 0;
    font-size: 1.05em;
    color: var(--ui-muted);
    font-weight: 500;
}

.ui-header__actions {
    display: flex;
    gap: 0.45em;
}

.ui-icon-btn {
    width: 3.2em;
    height: 3.2em;
    border-radius: 0.85em;
    background: #f3f4f6;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.ui-body {
    padding: 0.85rem 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f3f4f6;
    flex: 1;
}

.ui-balance-card {
    border-radius: 1.35em;
    padding: 1.1em 1.15em 1.15em;
    background: linear-gradient(130deg, #1d4ed8, #2563eb 45%, #0ea5e9);
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.ui-balance-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ui-balance-card__label {
    font-size: 1.05em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(219, 234, 254, 0.95);
    font-weight: 600;
}

.ui-balance-card__eye {
    width: 1.35em;
    height: 1em;
    border-radius: 0.35em;
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

.ui-balance-card__eye::after {
    content: '';
    position: absolute;
    width: 0.45em;
    height: 0.45em;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.ui-balance-card__amount {
    margin: 0.35em 0 0.25em;
    font-size: 2.85em;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.ui-balance-card__debt {
    margin: 0 0 0.9em;
    font-size: 1.05em;
    color: rgba(191, 219, 254, 0.95);
}

.ui-balance-card__debt strong {
    color: #fff;
    font-weight: 600;
}

.ui-balance-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75em;
}

.ui-balance-card__cell {
    border-radius: 1em;
    padding: 0.85em 0.75em;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.ui-balance-card__cell-label {
    display: block;
    font-size: 1.05em;
    color: rgba(219, 234, 254, 0.95);
    margin-bottom: 0.25em;
}

.ui-balance-card__cell-val {
    font-size: 1.35em;
    font-weight: 600;
}

.ui-balance-card__net {
    margin: 0.85em 0 0;
    font-size: 1.05em;
    color: #d1fae5;
    font-weight: 500;
}

.ui-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55em;
}

.ui-quick-grid--sm {
    gap: 0.45em;
}

.ui-quick {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35em;
    padding: 0.65em 0.35em;
    background: #fff;
    border-radius: 1em;
    border: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 1.05em;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ui-quick__i {
    width: 1.6em;
    height: 1.6em;
    border-radius: 0.45em;
}

.ui-quick__i--blue {
    background: rgba(37, 99, 235, 0.15);
}
.ui-quick__i--indigo {
    background: rgba(79, 70, 229, 0.15);
}
.ui-quick__i--amber {
    background: rgba(245, 158, 11, 0.18);
}
.ui-quick__i--rose {
    background: rgba(244, 63, 94, 0.15);
}
.ui-quick__i--emerald {
    background: rgba(16, 185, 129, 0.15);
}
.ui-quick__i--slate {
    background: rgba(71, 85, 105, 0.15);
}

.ui-mini-card {
    background: #fff;
    border-radius: 1.15em;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 0.85em 1em 1em;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ui-mini-card--in-panel {
    border: none;
    box-shadow: none;
    padding: 0.5em 0 0;
}

.ui-mini-card__head {
    display: flex;
    align-items: center;
    gap: 0.45em;
    margin-bottom: 0.35em;
}

.ui-mini-card__title {
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    color: #374151;
}

.ui-mini-card__chev {
    font-size: 1.35em;
    color: #3b82f6;
    font-weight: 300;
    line-height: 1;
}

.ui-mini-card__icon {
    width: 1.35em;
    height: 1.35em;
    border-radius: 0.35em;
    flex-shrink: 0;
}

.ui-mini-card__icon--emerald {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.ui-mini-card__icon--blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.ui-mini-card__meta {
    margin: 0 0 0.45em;
    font-size: 1.05em;
    color: var(--ui-muted);
}

.ui-mini-card__highlight {
    margin: 0 0 0.35em;
    font-size: 1.25em;
    font-weight: 600;
    color: #1f2937;
}

.ui-mini-card__highlight--lg {
    font-size: 1.45em;
}

.ui-mini-card__highlight strong {
    color: #059669;
}

.ui-mini-card__sub {
    margin: 0;
    font-size: 1.05em;
    color: #9ca3af;
}

.ui-forecast-card {
    background: #fff;
    border-radius: 1.15em;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 0.85em 1em 1em;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ui-forecast-card__head {
    display: flex;
    align-items: center;
    gap: 0.45em;
    margin-bottom: 0.65em;
}

.ui-forecast-row {
    display: flex;
    gap: 0.5em;
}

.ui-forecast-row--stretch {
    flex-wrap: wrap;
}

.ui-forecast-pill {
    flex: 1;
    min-width: 0;
    border-radius: 0.85em;
    padding: 0.55em 0.45em;
    background: #f9fafb;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.ui-forecast-pill--grow {
    flex: 1 1 28%;
}

.ui-forecast-pill__l {
    display: block;
    font-size: 0.95em;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui-forecast-pill__b {
    display: block;
    font-size: 1.15em;
    font-weight: 700;
    color: #374151;
    margin: 0.15em 0;
}

.ui-forecast-pill__n {
    font-size: 0.95em;
    font-weight: 600;
}

.ui-forecast-pill__n--pos {
    color: #10b981;
}

.ui-forecast-pill__n--neg {
    color: #f43f5e;
}

/* Debt / cashflow full-bleed mocks */
.ui-tabs {
    display: flex;
    gap: 0.35em;
    padding: 0.65rem 0.75rem 0.5rem;
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ui-tabs__pill {
    padding: 0.55em 0.9em;
    border-radius: 0.75em;
    font-size: 1.15em;
    font-weight: 600;
    color: #4b5563;
    background: transparent;
}

.ui-tabs__pill--active {
    background: #2563eb;
    color: #fff;
}

.ui-forecast-app {
    flex: 1;
    padding: 0.75rem 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ui-forecast-app__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ui-forecast-app__title {
    margin: 0;
    font-size: 1.65em;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.ui-forecast-app__sub {
    margin: 0;
    font-size: 1.05em;
    color: var(--ui-muted);
}

.ui-forecast-app__sub--mt {
    margin-top: 0.35rem;
}

.ui-dots {
    display: flex;
    justify-content: center;
    gap: 0.45em;
    padding: 0.25rem 0 0.15rem;
}

.ui-dots span {
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    background: #d1d5db;
}

.ui-dots span.on {
    background: #2563eb;
    transform: scale(1.15);
}

.ui-panel {
    background: #fff;
    border-radius: 1.25em;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1em 0.95em 1.05em;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.ui-panel--flush {
    padding-top: 0.85em;
}

.ui-panel__title {
    margin: 0 0 0.35em;
    font-size: 1.55em;
    font-weight: 700;
    text-align: center;
}

.ui-panel__remain {
    margin: 0 0 0.85em;
    text-align: center;
    font-size: 1.1em;
    color: var(--ui-muted);
}

.ui-panel__remain strong {
    color: #111827;
}

.ui-debt-line {
    border-top: 1px solid #f3f4f6;
    padding-top: 0.85em;
    margin-top: 0.75em;
}

.ui-debt-line:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.ui-debt-line__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
}

.ui-debt-line__name {
    font-size: 1.2em;
    font-weight: 600;
}

.ui-badge {
    font-size: 0.95em;
    font-weight: 700;
    padding: 0.2em 0.55em;
    border-radius: 0.45em;
    background: #fef3c7;
    color: #b45309;
}

.ui-badge--priority {
    background: #dbeafe;
    color: #1d4ed8;
}

.ui-debt-line__due {
    margin: 0.25em 0 0.15em;
    font-size: 1.05em;
    color: var(--ui-muted);
}

.ui-debt-line__pay {
    margin: 0;
    font-size: 1.1em;
    color: #374151;
}

.ui-debt-line__pay strong {
    color: #111827;
}

.ui-hint {
    font-size: 0.95em;
    font-weight: 500;
    color: #059669;
}

.asset-img-wrap--fallback .asset-img {
    display: none !important;
}

/* —— Cards grid —— */
.card-grid {
    display: grid;
    gap: 1.25rem;
}

.card-grid--3 {
    grid-template-columns: 1fr;
}

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

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

.card-grid--2 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .card-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: var(--color-glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.35rem;
    box-shadow: var(--shadow-card);
    color: var(--color-text);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: var(--shadow-card), var(--shadow-glow-blue);
}

@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
}

.card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.card__icon svg {
    width: 22px;
    height: 22px;
}

.card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-pill);
    background: rgba(201, 162, 39, 0.15);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.and-more {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin: 2rem 0 0;
    padding: 1rem 1.25rem;
    background: rgba(59, 130, 246, 0.06);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(59, 130, 246, 0.2);
}

/* —— Screenshots —— */
#screenshots .shots-scroll {
    --shot-screen-h: min(520px, 58vh);
    padding-inline: 0.5rem;
    box-sizing: border-box;
}

@media (max-width: 959px) {
    #screenshots .shots-scroll {
        --shot-screen-h: min(480px, 52vh);
        /* Edge-to-edge scrollport so center snap math matches the viewport */
        padding-inline: 0;
    }
}

#screenshots .shot .shot__screen.iphone-display.iphone-display--scroll {
    height: var(--shot-screen-h);
    min-height: var(--shot-screen-h);
    max-height: var(--shot-screen-h);
}

#screenshots .shot .iphone-display__scroll {
    background: #f3f4f6;
}

#screenshots .shot .ui-mock--shot {
    min-height: 100%;
    box-sizing: border-box;
}

#screenshots .shot .iphone-bezel {
    width: 100%;
    max-width: 304px;
    margin-inline: auto;
}

#screenshots .ui-mock--shot:not(.ui-mock--debt):not(.ui-mock--cashflow) {
    display: flex;
    flex-direction: column;
}

#screenshots .ui-mock--shot:not(.ui-mock--debt):not(.ui-mock--cashflow) .ui-body {
    flex: 1;
}

#screenshots .ui-mock--debt .ui-forecast-app,
#screenshots .ui-mock--cashflow .ui-forecast-app {
    flex: 1;
    min-height: 0;
}

.shots-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 960px) {
    .shots-scroll {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        align-items: start;
    }
}

.shot {
    flex: 0 0 min(280px, 85vw);
    scroll-snap-align: start;
}

/* Mobile: center each phone in the viewport while horizontal scrolling */
@media (max-width: 959px) {
    .shots-scroll {
        /* Half of each .shot width: min(280px, 85vw) → min(140px, 42.5vw) */
        scroll-padding-inline: calc(50vw - min(140px, 42.5vw));
    }

    .shot {
        scroll-snap-align: center;
    }
}

@media (min-width: 960px) {
    .shot {
        flex: none;
    }
}

.shot__frame:not(.iphone-bezel) {
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border: 1px solid var(--color-glass-border);
    box-shadow: var(--shadow-card);
}

.shot__frame.iphone-bezel {
    padding: 0.55rem;
    box-shadow:
        var(--shadow-card),
        0 24px 48px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(59, 130, 246, 0.1);
    overflow: visible;
}

.shot__screen:not(.iphone-display) {
    position: relative;
    border-radius: 1.25rem;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: min(560px, 72vh);
    background: #e5e7eb;
    -webkit-overflow-scrolling: touch;
}

.shot figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-text-muted);
}

/* —— Download —— */
.section--download {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.04), transparent);
    border-block: 1px solid var(--color-glass-border);
}

.download-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 2rem;
}

/* —— FAQ —— */
.faq-list {
    max-width: 40rem;
    margin: 0 auto;
}

.faq-list details {
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-md);
    background: var(--color-glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 0.65rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.faq-list summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.15rem;
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-list details[open] summary::after {
    transform: rotate(-135deg);
}

.faq-list .faq-answer {
    padding: 0 1.15rem 1.1rem;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.faq-list details[open] summary {
    color: var(--color-primary);
}

/* —— CTA band —— */
.cta-band {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-surface-solid) 0%, #1e293b 100%);
    border-top: 1px solid var(--color-glass-border);
    border-bottom: 1px solid var(--color-glass-border);
    color: #e2e8f0;
    text-align: center;
}

.cta-band h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
    color: var(--color-text);
}

.cta-band p {
    margin: 0 auto 1.5rem;
    max-width: 28rem;
    color: var(--color-text-muted);
    font-size: 1.0625rem;
}

.cta-band .btn--primary {
    min-height: 48px;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.cta-band__trust {
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-text-dim);
}

/* —— Footer —— */
.site-footer {
    padding: 3rem 0 2rem;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.site-footer a {
    color: var(--color-text-dim);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--color-text);
}

.site-footer__grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .site-footer__grid {
        grid-template-columns: 1fr auto;
        align-items: start;
    }
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.site-footer__brand > span:last-child {
    font-weight: 700;
    color: var(--color-text);
    font-size: 1.0625rem;
}

.site-footer__tagline {
    margin: 0;
    max-width: 22rem;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.site-footer__col h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-dim);
    margin: 0 0 0.75rem;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

/* —— Reveal —— */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(12px);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* SVG utility */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* —— Legal (privacy / terms) —— */
.legal-doc {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 0 3rem;
}

.legal-doc h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.legal-doc .legal-meta {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin: 0 0 2rem;
}

.legal-doc h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.02em;
}

.legal-doc p,
.legal-doc li {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text);
}

.legal-doc p {
    margin: 0 0 1rem;
}

.legal-doc ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.legal-doc li {
    margin-bottom: 0.35rem;
}

.legal-doc a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-doc a:hover {
    text-decoration-thickness: 2px;
}
