/* =========================================================
   PrimeDrive — Neumorphism Design System
   Built for Botswana & Southern Africa
   ========================================================= */

:root {
    /* Brand palette (from reference) */
    --blue-bright:  #2078CF;
    --blue-mid:     #0E4EB2;
    --blue-deep:    #011F65;
    --blue-darker:  #020C47;
    --blue-near:    #000521;

    /* Neumorphic surface tokens */
    --bg:           #e6efff;   /* light blue-tinted */
    --bg-soft:      #eef4ff;
    --bg-card:      #e6efff;
    --bg-deep:      #020C47;   /* dark sections */

    /* Shadows */
    --shadow-light: rgba(255, 255, 255, 0.95);
    --shadow-dark:  rgba(163, 184, 220, 0.55);

    --shadow-light-deep: rgba(28, 60, 130, 0.35);
    --shadow-dark-deep:  rgba(0, 4, 25, 0.6);

    /* Text */
    --text:         #020C47;
    --text-soft:    #3b4778;
    --text-mute:    #6b7799;
    --text-inv:     #ffffff;
    --text-inv-soft:#a9b6dc;

    /* Accents */
    --accent:       #2078CF;
    --accent-hover: #0E4EB2;
    --success:      #1aa97a;

    /* Geometry */
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 28px;
    --r-xl: 36px;
    --r-pill: 999px;

    /* Motion */
    --ease: cubic-bezier(.22, 1, .36, 1);

    /* Spacing */
    --max:   1240px;
    --gutter: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Geist', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }

/* =========================================================
   AMBIENT BACKGROUND
   Soft animated blue blobs that drift behind the page
   ========================================================= */
.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 12%, rgba(32, 120, 207, 0.15), transparent 45%),
        radial-gradient(circle at 86% 32%, rgba(14, 78, 178, 0.12), transparent 50%),
        radial-gradient(circle at 35% 88%, rgba(1, 31, 101, 0.10), transparent 55%),
        var(--bg);
}
.ambient::before,
.ambient::after {
    content: '';
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: drift 24s ease-in-out infinite alternate;
}
.ambient::before {
    background: radial-gradient(circle, #2078CF 0%, transparent 60%);
    top: -25vmax; left: -20vmax;
}
.ambient::after {
    background: radial-gradient(circle, #0E4EB2 0%, transparent 60%);
    bottom: -25vmax; right: -20vmax;
    animation-delay: -12s;
}
@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(4vmax, -3vmax) scale(1.08); }
    100% { transform: translate(-3vmax, 5vmax) scale(0.95); }
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
.display, h1, h2, h3, h4 {
    font-family: 'Geist', 'Geist', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--text);
}

h1, .h1 {
    font-size: clamp(2.6rem, 6.4vw, 5.2rem);
    font-weight: 800;
    font-variation-settings: "wdth" 90;
}
h2, .h2 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 700;
}
h3, .h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: var(--accent);
    border-radius: 1px;
}
.lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--text-soft);
    max-width: 56ch;
    line-height: 1.6;
}

.serif-italic {
    font-family: 'Instrument Serif', 'Geist', serif;
    font-style: italic;
    font-weight: 400;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
section { padding: clamp(70px, 9vw, 130px) 0; }

/* =========================================================
   NEUMORPHIC SURFACES
   ========================================================= */
.neu {
    background: var(--bg);
    border-radius: var(--r-lg);
    box-shadow:
        -10px -10px 24px var(--shadow-light),
        10px 10px 28px var(--shadow-dark);
}
.neu-sm {
    background: var(--bg);
    border-radius: var(--r-md);
    box-shadow:
        -6px -6px 14px var(--shadow-light),
        6px 6px 14px var(--shadow-dark);
}
.neu-inset {
    background: var(--bg);
    border-radius: var(--r-lg);
    box-shadow:
        inset -6px -6px 14px var(--shadow-light),
        inset 6px 6px 14px var(--shadow-dark);
}
.neu-inset-sm {
    background: var(--bg);
    border-radius: var(--r-md);
    box-shadow:
        inset -4px -4px 10px var(--shadow-light),
        inset 4px 4px 10px var(--shadow-dark);
}

/* Dark variant */
.neu-dark {
    background: var(--blue-darker);
    border-radius: var(--r-lg);
    box-shadow:
        -10px -10px 24px var(--shadow-light-deep),
        10px 10px 28px var(--shadow-dark-deep);
}
.neu-dark-inset {
    background: var(--blue-darker);
    border-radius: var(--r-lg);
    box-shadow:
        inset -6px -6px 14px var(--shadow-light-deep),
        inset 6px 6px 14px var(--shadow-dark-deep);
}

/* =========================================================
   BUTTONS — pill shapes matching the palette reference
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--r-pill);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
    white-space: nowrap;
    will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-near));
    color: var(--text-inv);
    box-shadow:
        -4px -4px 10px var(--shadow-light),
        4px 4px 14px var(--shadow-dark),
        inset 1px 1px 2px rgba(255,255,255,0.12);
}
.btn--primary:hover {
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
    transform: translateY(-1px);
    box-shadow:
        -6px -6px 14px var(--shadow-light),
        6px 6px 18px var(--shadow-dark),
        inset 1px 1px 2px rgba(255,255,255,0.18);
}

.btn--ghost {
    background: var(--bg);
    color: var(--text);
    box-shadow:
        -4px -4px 10px var(--shadow-light),
        4px 4px 12px var(--shadow-dark);
}
.btn--ghost:hover {
    color: var(--blue-deep);
    box-shadow:
        -6px -6px 14px var(--shadow-light),
        6px 6px 16px var(--shadow-dark);
    transform: translateY(-1px);
}

.btn--accent {
    background: var(--blue-bright);
    color: var(--text-inv);
    box-shadow:
        -3px -3px 8px var(--shadow-light),
        4px 4px 12px var(--shadow-dark);
}
.btn--accent:hover { background: var(--blue-mid); transform: translateY(-1px); }

.btn--lg { padding: 18px 34px; font-size: 1rem; }
.btn--sm { padding: 11px 20px; font-size: 0.85rem; }

.btn-icon { width: 18px; height: 18px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
    position: sticky;
    top: 16px;
    z-index: 100;
    padding: 0 var(--gutter);
    margin-top: 16px;
}
.nav__inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 12px 26px;
    background: var(--bg);
    border-radius: var(--r-pill);
    box-shadow:
        -6px -6px 14px var(--shadow-light),
        6px 6px 18px var(--shadow-dark);
    backdrop-filter: blur(12px);
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Geist', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--text);
}
.logo__mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
    display: grid;
    place-items: center;
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.4), 0 4px 10px rgba(14,78,178,0.3);
    position: relative;
    isolation: isolate;
}
.logo__letter {
    color: white;
    font-family: 'Geist', sans-serif;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.08em;
    transform: translateX(-1px);
}
.logo__mark-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    border: 2px solid var(--bg);
    box-shadow: 0 0 10px rgba(37, 193, 111, 0.75);
}
.logo__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--success);
    margin-left: -4px;
    margin-bottom: -8px;
    align-self: end;
    box-shadow: 0 0 8px rgba(37, 193, 111, 0.6);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}
.nav__link {
    padding: 8px 14px;
    border-radius: var(--r-pill);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover {
    color: var(--blue-deep);
    background: rgba(255,255,255,0.5);
}

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

.nav__burger {
    display: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow:
        -3px -3px 8px var(--shadow-light),
        3px 3px 8px var(--shadow-dark);
    place-items: center;
}
.nav__burger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    position: relative;
}
.nav__burger span::before,
.nav__burger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top: 6px; }

@media (max-width: 900px) {
    .nav__links { display: none; }
    .nav__burger { display: grid; }
    .nav__cta .btn--ghost { display: none; }
}

/* Mobile drawer */
.drawer {
    position: fixed; inset: 0;
    background: rgba(0, 5, 33, 0.6);
    backdrop-filter: blur(10px);
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 90px;
}
.drawer.open { display: flex; }
.drawer__inner {
    width: min(90%, 380px);
    background: var(--bg);
    border-radius: var(--r-xl);
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,5,33,0.3);
}
.drawer__close {
    position: absolute;
    top: 24px; right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: -3px -3px 8px var(--shadow-light), 3px 3px 8px var(--shadow-dark);
    display: grid; place-items: center;
    font-size: 1.3rem; color: var(--text);
}
.drawer__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.drawer__link {
    display: block;
    padding: 14px 18px;
    font-weight: 600;
    border-radius: var(--r-md);
    color: var(--text);
}
.drawer__link:hover { background: var(--bg-soft); }
.drawer .btn { width: 100%; margin-top: 12px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 120px);
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}
@media (max-width: 920px) {
    .hero__grid { grid-template-columns: 1fr; }
}
.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    background: var(--bg);
    border-radius: var(--r-pill);
    box-shadow:
        inset -3px -3px 8px var(--shadow-light),
        inset 3px 3px 8px var(--shadow-dark);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 26px;
}
.hero__tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-mid));
    color: white;
    border-radius: var(--r-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero__tag-pill::before {
    content: '';
    width: 6px; height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255,255,255,0.9);
    animation: pulse 1.6s ease infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 1.05em;
}

.hero__lead {
    margin-top: 26px;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--text-soft);
    max-width: 52ch;
    line-height: 1.6;
}
.hero__ctas {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.hero__meta {
    margin-top: 36px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.hero__meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--text-soft);
    font-weight: 500;
}
.hero__meta-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow:
        -3px -3px 8px var(--shadow-light),
        3px 3px 8px var(--shadow-dark);
    display: grid;
    place-items: center;
    color: var(--blue-deep);
}
.hero__meta-icon svg { width: 16px; height: 16px; }

/* Hero phone visual */
.hero__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 580px;
}
@media (max-width: 920px) { .hero__visual { min-height: 540px; } }

/* =========================================================
   PHONE MOCKUP
   ========================================================= */
.phone {
    width: 290px;
    height: 580px;
    border-radius: 44px;
    background: var(--bg);
    box-shadow:
        -16px -16px 36px var(--shadow-light),
        16px 16px 50px var(--shadow-dark);
    padding: 12px;
    position: relative;
    transition: transform .6s var(--ease);
}
.phone__screen {
    width: 100%;
    height: 100%;
    border-radius: 34px;
    background: var(--bg-soft);
    box-shadow:
        inset -4px -4px 10px var(--shadow-light),
        inset 4px 4px 10px var(--shadow-dark);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.phone__notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: var(--blue-near);
    border-radius: 14px;
    z-index: 5;
}
.phone__status {
    padding: 18px 24px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text);
}
.phone__status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}
.phone__status-icons svg { width: 14px; height: 14px; }

.phone__content {
    flex: 1;
    overflow: hidden;
    padding: 16px 20px 0;
    display: flex;
    flex-direction: column;
}

/* Phone home screen content */
.app-greet {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.app-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-mid));
    display: grid; place-items: center;
    color: white; font-weight: 700; font-size: 0.78rem;
    box-shadow: -2px -2px 4px var(--shadow-light), 2px 2px 4px var(--shadow-dark);
}
.app-greet-text { flex: 1; }
.app-greet-text small { font-size: 0.65rem; color: var(--text-mute); display: block; }
.app-greet-text strong { font-size: 0.85rem; color: var(--text); }
.app-bell {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-soft);
    box-shadow: -2px -2px 4px var(--shadow-light), 2px 2px 4px var(--shadow-dark);
    display: grid; place-items: center;
    color: var(--text);
}
.app-bell svg { width: 14px; height: 14px; }

.app-hero-card {
    background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-deep) 100%);
    border-radius: 18px;
    padding: 16px;
    color: white;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: -3px -3px 8px var(--shadow-light), 3px 3px 10px var(--shadow-dark);
}
.app-hero-card::after {
    content: '';
    position: absolute;
    right: -30px; top: -30px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.app-hero-card__chip {
    display: inline-block;
    padding: 4px 9px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--r-pill);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.app-hero-card h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 4px;
    font-family: 'Geist', sans-serif;
}
.app-hero-card p {
    font-size: 0.65rem;
    opacity: 0.85;
    line-height: 1.4;
}

.app-search {
    background: var(--bg-soft);
    border-radius: var(--r-pill);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: inset -2px -2px 5px var(--shadow-light), inset 2px 2px 5px var(--shadow-dark);
    margin-bottom: 14px;
}
.app-search svg { width: 12px; height: 12px; color: var(--text-mute); }
.app-search-text { font-size: 0.7rem; color: var(--text-mute); flex: 1; }

.app-chips { display: flex; gap: 6px; margin-bottom: 14px; overflow: hidden; }
.app-chip {
    padding: 5px 10px;
    background: var(--bg-soft);
    border-radius: var(--r-pill);
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-soft);
    box-shadow: -2px -2px 4px var(--shadow-light), 2px 2px 4px var(--shadow-dark);
    white-space: nowrap;
}
.app-chip.active { background: var(--blue-near); color: white; box-shadow: inset 1px 1px 2px rgba(255,255,255,0.1); }

.app-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.app-section-head strong { font-size: 0.78rem; color: var(--text); }
.app-section-head small { font-size: 0.62rem; color: var(--blue-mid); font-weight: 600; }

.app-car {
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 12px;
    box-shadow: -3px -3px 8px var(--shadow-light), 3px 3px 8px var(--shadow-dark);
}
.app-car__img {
    width: 100%;
    height: 90px;
    border-radius: 12px;
    background: linear-gradient(135deg, #cbd9f0, #8ba6c9);
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
}
.app-car__img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 120'%3E%3Cpath fill='%23ffffff' opacity='.92' d='M28 77c8-14 22-18 42-18h16c13-18 35-28 67-28 24 0 44 8 58 24l17 6c7 3 10 8 10 15v9c0 5-4 9-9 9h-13c-3 12-13 21-26 21s-24-9-27-21H82c-3 12-13 21-27 21-13 0-24-9-27-21H15c-6 0-10-4-10-10v-4c0-4 9-4 23-3z'/%3E%3Cpath fill='%23020C47' opacity='.18' d='M98 59c10-13 26-20 51-20 15 0 29 4 41 13l-88 7z'/%3E%3Ccircle cx='55' cy='91' r='13' fill='%23020C47' opacity='.35'/%3E%3Ccircle cx='190' cy='91' r='13' fill='%23020C47' opacity='.35'/%3E%3C/svg%3E") center/contain no-repeat;
}
.app-car__heart {
    position: absolute;
    top: 8px; left: 8px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: white;
    display: grid; place-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.app-car__heart svg { width: 11px; height: 11px; color: var(--blue-near); }
.app-car__info { display: flex; justify-content: space-between; align-items: center; }
.app-car__info strong { font-size: 0.75rem; color: var(--text); }
.app-car__price { font-size: 0.78rem; font-weight: 700; color: var(--blue-deep); }

.app-tabbar {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-near);
    padding: 8px;
    border-radius: var(--r-pill);
    display: flex;
    gap: 4px;
    box-shadow: 0 8px 20px rgba(0,5,33,0.3);
    z-index: 4;
}
.app-tab {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: grid; place-items: center;
    color: rgba(255,255,255,0.6);
}
.app-tab.active {
    background: white;
    color: var(--blue-near);
}
.app-tab svg { width: 14px; height: 14px; }

/* Phone tilt animation in hero */
.hero__phone-stack {
    position: relative;
    transform-style: preserve-3d;
}
.hero__phone-stack .phone {
    transform: rotate(-4deg);
}
.hero__phone-stack .phone:hover { transform: rotate(-2deg) translateY(-6px); }

/* Floating tags around phone */
.float-tag {
    position: absolute;
    padding: 10px 16px;
    background: var(--bg);
    border-radius: var(--r-pill);
    box-shadow:
        -5px -5px 12px var(--shadow-light),
        5px 5px 14px var(--shadow-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    animation: bob 5s ease-in-out infinite;
    z-index: 3;
}
.float-tag__icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-mid));
    color: white;
}
.float-tag__icon svg { width: 14px; height: 14px; }
.float-tag--1 { top: 8%; left: -8%; animation-delay: -0.5s; }
.float-tag--2 { top: 42%; right: -10%; animation-delay: -2s; }
.float-tag--3 { bottom: 14%; left: -4%; animation-delay: -3s; }
@media (max-width: 920px) {
    .float-tag--1 { left: 2%; }
    .float-tag--2 { right: 2%; }
    .float-tag--3 { left: 4%; bottom: 6%; }
}
@media (max-width: 520px) {
    .float-tag { font-size: 0.72rem; padding: 8px 12px; }
    .float-tag__icon { width: 26px; height: 26px; }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust-strip {
    padding: 40px 0 0;
}
.trust-strip__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 28px clamp(20px, 4vw, 40px);
}
@media (max-width: 720px) {
    .trust-strip__inner { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
.trust-stat {
    text-align: center;
    padding: 14px;
}
.trust-stat__value {
    font-family: 'Geist', sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    color: var(--blue-deep);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.04em;
}
.trust-stat__label {
    font-size: 0.78rem;
    color: var(--text-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =========================================================
   SECTION HEADER
   ========================================================= */
.section-head {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
}
.section-head .eyebrow {
    justify-content: center;
    margin-bottom: 18px;
}
.section-head h2 {
    margin-bottom: 18px;
}
.section-head h2 .accent {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--blue-bright);
    font-size: 1.05em;
}
.section-head p {
    color: var(--text-soft);
    font-size: 1.05rem;
}

/* =========================================================
   FEATURES GRID
   ========================================================= */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 960px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features__grid { grid-template-columns: 1fr; } }

.feature {
    padding: 32px;
    background: var(--bg);
    border-radius: var(--r-lg);
    box-shadow:
        -10px -10px 24px var(--shadow-light),
        10px 10px 28px var(--shadow-dark);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    position: relative;
}
.feature:hover {
    transform: translateY(-6px);
    box-shadow:
        -14px -14px 30px var(--shadow-light),
        14px 14px 36px var(--shadow-dark);
}
.feature__icon {
    width: 60px; height: 60px;
    border-radius: 18px;
    background: var(--bg);
    box-shadow:
        inset -4px -4px 10px var(--shadow-light),
        inset 4px 4px 10px var(--shadow-dark);
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    color: var(--blue-deep);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 12px; font-size: 1.15rem; }
.feature p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.6; }
.feature__tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 10px;
    background: rgba(32,120,207,0.12);
    color: var(--blue-deep);
    border-radius: var(--r-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* =========================================================
   DEMO VIDEO (CSS-animated loop)
   ========================================================= */
.demo {
    padding: clamp(70px, 9vw, 130px) 0;
}
.demo__player {
    max-width: 980px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg);
    border-radius: var(--r-xl);
    box-shadow:
        -14px -14px 30px var(--shadow-light),
        14px 14px 36px var(--shadow-dark);
}
.demo__stage {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--blue-near);
    box-shadow:
        inset -6px -6px 14px rgba(255,255,255,0.05),
        inset 6px 6px 14px rgba(0,0,0,0.4);
}
.demo__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(32,120,207,0.4), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(14,78,178,0.3), transparent 50%),
        var(--blue-near);
}

.demo__phone {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 400px;
    border-radius: 36px;
    background: #0a1340;
    padding: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.demo__phone-screen {
    width: 100%; height: 100%;
    border-radius: 28px;
    background: var(--bg-soft);
    overflow: hidden;
    position: relative;
}
.demo__step {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: stepCycle 20s infinite;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    color: var(--text);
}
.demo__step:nth-child(1) { animation-delay: 0s; }
.demo__step:nth-child(2) { animation-delay: 4s; }
.demo__step:nth-child(3) { animation-delay: 8s; }
.demo__step:nth-child(4) { animation-delay: 12s; }
.demo__step:nth-child(5) { animation-delay: 16s; }

@keyframes stepCycle {
    0%   { opacity: 0; transform: translateX(20px); }
    3%   { opacity: 1; transform: translateX(0); }
    20%  { opacity: 1; transform: translateX(0); }
    23%  { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 0; transform: translateX(-20px); }
}

.demo__step-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--blue-bright);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.demo__step-title {
    font-family: 'Geist', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.demo__step-card {
    flex: 1;
    background: white;
    border-radius: 14px;
    padding: 12px;
    box-shadow: -2px -2px 6px var(--shadow-light), 2px 2px 6px var(--shadow-dark);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.demo__step-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--bg-soft);
    border-radius: 10px;
    font-size: 0.62rem;
}
.demo__step-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-mid));
    flex-shrink: 0;
}
.demo__step-fake-img {
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, #cbd9f0, #8ba6c9);
    position: relative;
}
.demo__step-fake-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 120'%3E%3Cpath fill='%23ffffff' opacity='.92' d='M28 77c8-14 22-18 42-18h16c13-18 35-28 67-28 24 0 44 8 58 24l17 6c7 3 10 8 10 15v9c0 5-4 9-9 9h-13c-3 12-13 21-26 21s-24-9-27-21H82c-3 12-13 21-27 21-13 0-24-9-27-21H15c-6 0-10-4-10-10v-4c0-4 9-4 23-3z'/%3E%3Cpath fill='%23020C47' opacity='.18' d='M98 59c10-13 26-20 51-20 15 0 29 4 41 13l-88 7z'/%3E%3Ccircle cx='55' cy='91' r='13' fill='%23020C47' opacity='.35'/%3E%3Ccircle cx='190' cy='91' r='13' fill='%23020C47' opacity='.35'/%3E%3C/svg%3E") center/contain no-repeat;
}
.demo__step-btn {
    margin-top: auto;
    background: var(--blue-near);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: var(--r-pill);
    font-size: 0.7rem;
    font-weight: 700;
}
.demo__step-check {
    text-align: center;
    flex: 1;
    display: grid;
    place-items: center;
    color: var(--success);
    flex-direction: column;
    gap: 10px;
}
.demo__step-check svg { width: 56px; height: 56px; }
.demo__step-check strong { font-size: 0.85rem; }
.demo__step-check small { font-size: 0.6rem; color: var(--text-soft); }

/* Step navigator on side */
.demo__steps {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 4;
}
@media (max-width: 720px) { .demo__steps { display: none; } }
.demo__step-pill {
    padding: 10px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-pill);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity .4s var(--ease);
}
.demo__step-pill.active {
    opacity: 1;
    background: rgba(32,120,207,0.18);
    border-color: rgba(32,120,207,0.4);
    color: white;
}
.demo__step-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: grid; place-items: center;
    font-size: 0.65rem;
    font-weight: 700;
}
.demo__step-pill.active .demo__step-num {
    background: var(--blue-bright);
    color: white;
}

@keyframes pillCycle {
    0%,18%   { opacity: 1; background: rgba(32,120,207,0.18); border-color: rgba(32,120,207,0.4); color: white; }
    19%,100% { opacity: 0.5; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }
}
.demo__steps .demo__step-pill { animation: pillCycle 20s infinite; }
.demo__steps .demo__step-pill:nth-child(1) { animation-delay: 0s; }
.demo__steps .demo__step-pill:nth-child(2) { animation-delay: 4s; }
.demo__steps .demo__step-pill:nth-child(3) { animation-delay: 8s; }
.demo__steps .demo__step-pill:nth-child(4) { animation-delay: 12s; }
.demo__steps .demo__step-pill:nth-child(5) { animation-delay: 16s; }

.demo__player-foot {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}
.demo__player-foot strong { color: var(--text); font-size: 1.05rem; }
.demo__player-foot small { color: var(--text-soft); font-size: 0.85rem; display: block; margin-top: 2px; }
.demo__live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(32,120,207,0.1);
    color: var(--blue-deep);
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.demo__live::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--blue-bright);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
@media (max-width: 960px) { .how__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .how__grid { grid-template-columns: 1fr; } }

.how__step {
    padding: 32px 26px;
    background: var(--bg);
    border-radius: var(--r-lg);
    box-shadow:
        -10px -10px 24px var(--shadow-light),
        10px 10px 28px var(--shadow-dark);
    position: relative;
}
.how__num {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 4rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--blue-bright);
    margin-bottom: 16px;
    font-weight: 400;
    display: block;
}
.how__step h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text);
    font-family: 'Geist', sans-serif;
    font-weight: 700;
}
.how__step p { color: var(--text-soft); font-size: 0.92rem; line-height: 1.55; }

/* =========================================================
   APP SHOWCASE — multi-phone display
   ========================================================= */
.showcase {
    padding: clamp(70px, 9vw, 130px) 0;
    position: relative;
    overflow: hidden;
}
.showcase__phones {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 50px;
}
.showcase__phones .phone {
    width: 250px;
    height: 510px;
    transform: rotate(0);
}
.showcase__phones .phone:nth-child(1) { transform: rotate(-3deg) translateY(20px); }
.showcase__phones .phone:nth-child(2) { transform: rotate(0deg) translateY(-10px); z-index: 2; }
.showcase__phones .phone:nth-child(3) { transform: rotate(3deg) translateY(20px); }
@media (max-width: 720px) {
    .showcase__phones .phone:nth-child(1),
    .showcase__phones .phone:nth-child(2),
    .showcase__phones .phone:nth-child(3) { transform: none; }
}

/* Phone screen variants */
/* MESSAGES VARIANT */
.msg-head {
    padding-top: 30px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.msg-head h4 { font-family: 'Geist', sans-serif; font-size: 1.1rem; }
.msg-head-actions { display: flex; gap: 6px; }
.msg-head-actions div {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--bg-soft);
    box-shadow: -2px -2px 4px var(--shadow-light), 2px 2px 4px var(--shadow-dark);
    display: grid; place-items: center;
}
.msg-head-actions svg { width: 12px; height: 12px; color: var(--text); }

.msg-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.msg-tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    border-radius: var(--r-pill);
    background: var(--bg-soft);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-soft);
    box-shadow: inset -2px -2px 4px var(--shadow-light), inset 2px 2px 4px var(--shadow-dark);
}
.msg-tab.active { background: var(--blue-near); color: white; box-shadow: none; }

.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: var(--bg-soft);
    border-radius: 14px;
    box-shadow: -2px -2px 4px var(--shadow-light), 2px 2px 4px var(--shadow-dark);
    align-items: flex-start;
}
.msg-item__avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-mid));
    flex-shrink: 0;
    display: grid; place-items: center;
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    position: relative;
}
.msg-item__avatar::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-soft);
}
.msg-item__body { flex: 1; min-width: 0; }
.msg-item__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.msg-item__name { font-size: 0.7rem; font-weight: 700; color: var(--text); }
.msg-item__time { font-size: 0.55rem; color: var(--text-mute); }
.msg-item__preview { font-size: 0.65rem; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* PROFILE VARIANT */
.profile-hero {
    height: 90px;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
    border-radius: 16px;
    margin: 30px 0 0;
    position: relative;
}
.profile-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cbd9f0, #8ba6c9);
    border: 3px solid var(--bg-soft);
    position: absolute;
    bottom: -28px;
    left: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.profile-pro {
    position: absolute;
    bottom: -8px;
    left: 30px;
    background: var(--blue-near);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.profile-info { margin-top: 40px; }
.profile-info h4 { font-family: 'Geist', sans-serif; font-size: 1.1rem; margin-bottom: 4px; }
.profile-info small { font-size: 0.62rem; color: var(--text-soft); display: block; }

.profile-stats {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.profile-stat {
    padding: 10px 6px;
    background: var(--bg-soft);
    border-radius: 12px;
    text-align: center;
    box-shadow: -2px -2px 4px var(--shadow-light), 2px 2px 4px var(--shadow-dark);
}
.profile-stat strong { font-family: 'Geist', sans-serif; font-size: 1rem; color: var(--text); display: block; }
.profile-stat small { font-size: 0.55rem; color: var(--text-soft); }

.profile-actions { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.profile-btn {
    padding: 10px;
    border-radius: var(--r-pill);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    box-shadow: -2px -2px 4px var(--shadow-light), 2px 2px 4px var(--shadow-dark);
}
.profile-btn.primary { background: var(--blue-near); color: white; box-shadow: none; }
.profile-btn.ghost { background: var(--bg-soft); color: var(--text); }

/* =========================================================
   PRICING
   ========================================================= */
.pricing {
    padding: clamp(70px, 9vw, 130px) 0;
}
.pricing__toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}
.pricing__toggle-inner {
    background: var(--bg);
    padding: 6px;
    border-radius: var(--r-pill);
    box-shadow:
        inset -3px -3px 8px var(--shadow-light),
        inset 3px 3px 8px var(--shadow-dark);
    display: flex;
}
.pricing__toggle button {
    padding: 11px 24px;
    border-radius: var(--r-pill);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-soft);
    transition: all .25s var(--ease);
}
.pricing__toggle button.active {
    background: var(--blue-near);
    color: white;
    box-shadow: -2px -2px 5px var(--shadow-light), 2px 2px 5px var(--shadow-dark);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1100px) { .pricing__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pricing__grid { grid-template-columns: 1fr; } }

.tier {
    padding: 30px 26px;
    background: var(--bg);
    border-radius: var(--r-lg);
    box-shadow:
        -8px -8px 22px var(--shadow-light),
        8px 8px 22px var(--shadow-dark);
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tier:hover {
    transform: translateY(-4px);
    box-shadow:
        -12px -12px 26px var(--shadow-light),
        12px 12px 28px var(--shadow-dark);
}
.tier--featured {
    background: var(--blue-near);
    color: white;
    transform: translateY(-10px) scale(1.02);
}
.tier--featured:hover { transform: translateY(-16px) scale(1.02); }
.tier--featured h3 { color: white; }

.tier__badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(32,120,207,0.15);
    color: var(--blue-bright);
    border-radius: var(--r-pill);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
    align-self: flex-start;
}
.tier--featured .tier__badge {
    background: rgba(32,120,207,0.3);
    color: white;
}

.tier h3 { font-size: 1.2rem; margin-bottom: 4px; }
.tier__sub {
    color: var(--text-soft);
    font-size: 0.82rem;
    margin-bottom: 22px;
    min-height: 32px;
}
.tier--featured .tier__sub { color: rgba(255,255,255,0.7); }

.tier__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 22px;
}
.tier__currency {
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text);
}
.tier__amount {
    font-family: 'Geist', sans-serif;
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--text);
    letter-spacing: -0.03em;
}
.tier__period { color: var(--text-soft); font-size: 0.85rem; }
.tier--featured .tier__currency,
.tier--featured .tier__amount { color: white; }
.tier--featured .tier__period { color: rgba(255,255,255,0.7); }

.tier__features {
    list-style: none;
    margin-bottom: 26px;
    flex: 1;
}
.tier__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--text-soft);
}
.tier--featured .tier__features li { color: rgba(255,255,255,0.85); }
.tier__features li::before {
    content: '';
    width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232078CF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
    margin-top: 2px;
}
.tier--featured .tier__features li::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.tier .btn {
    width: 100%;
    justify-content: center;
}
.tier--featured .btn--primary {
    background: white;
    color: var(--blue-near);
    box-shadow: -2px -2px 6px rgba(255,255,255,0.08), 2px 2px 8px rgba(0,0,0,0.25);
}
.tier--featured .btn--primary:hover {
    background: rgba(255,255,255,0.9);
}

.pricing__hint {
    text-align: center;
    margin-top: 36px;
    color: var(--text-soft);
    font-size: 0.9rem;
}
.pricing__hint a { color: var(--blue-deep); font-weight: 600; }

/* =========================================================
   SECURITY / TRUST
   ========================================================= */
.security {
    padding: clamp(70px, 9vw, 130px) 0;
}
.security__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
@media (max-width: 920px) { .security__inner { grid-template-columns: 1fr; } }

.security__visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 480px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    isolation: isolate;
}
/* Outer glow disc */
.security__visual::before {
    content: '';
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(32, 120, 207, 0.18), rgba(255,255,255,0) 60%),
                linear-gradient(135deg, var(--bg), var(--bg-soft));
    box-shadow:
        -20px -20px 50px var(--shadow-light),
        24px 24px 60px var(--shadow-dark),
        inset 1px 1px 0 rgba(255,255,255,0.9);
    z-index: -2;
}
/* Inner ring */
.security__visual::after {
    content: '';
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    border: 2px solid rgba(14, 78, 178, 0.15);
    z-index: -1;
}
.security__shield {
    width: 38%;
    aspect-ratio: 1;
    background: linear-gradient(145deg, var(--blue-deep), var(--blue-darker));
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    color: white;
    box-shadow:
        inset -6px -6px 14px rgba(0,0,0,0.4),
        inset 6px 6px 14px rgba(32, 120, 207, 0.5),
        0 20px 50px rgba(2, 12, 71, 0.4),
        0 0 0 8px rgba(255,255,255,0.7);
}
.security__shield svg {
    width: 55%;
    height: 55%;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.3));
}
.security__shield::after {
    content: '';
    position: absolute;
    inset: -22%;
    border-radius: 50%;
    border: 1.5px solid rgba(14, 78, 178, 0.18);
    pointer-events: none;
}
.security__orbit {
    position: absolute;
    width: 78%;
    height: 78%;
    border-radius: 50%;
    border: 1.5px dashed rgba(14, 78, 178, 0.3);
    animation: spin 30s linear infinite;
    z-index: -1;
}
.security__orbit::before,
.security__orbit::after {
    content: '';
    position: absolute;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow:
        -5px -5px 12px var(--shadow-light),
        5px 5px 12px var(--shadow-dark);
    top: 50%;
    transform: translateY(-50%);
}
.security__orbit::before {
    left: -28px;
    background: var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E4EB2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 12l2 2 4-4'/><circle cx='12' cy='12' r='9'/></svg>") center/55% no-repeat;
}
.security__orbit::after  {
    right: -28px;
    background: var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E4EB2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>") center/55% no-repeat;
}
/* Second orbit ring */
.security__orbit-2 {
    position: absolute;
    width: 95%;
    height: 95%;
    border-radius: 50%;
    border: 1px solid rgba(32, 120, 207, 0.18);
    animation: spin 45s linear infinite reverse;
    z-index: -1;
}
.security__orbit-2::before,
.security__orbit-2::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--blue-bright);
    box-shadow: 0 0 0 4px rgba(32, 120, 207, 0.15), 0 4px 14px rgba(32,120,207,0.4);
}
.security__orbit-2::before { top: -7px; left: 50%; transform: translateX(-50%); }
.security__orbit-2::after { bottom: -7px; left: 50%; transform: translateX(-50%); background: var(--blue-deep); }

@keyframes spin {
    from { transform: rotate(0); }
    to   { transform: rotate(360deg); }
}

.security__feature-list {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.security__feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.security__feature-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    flex-shrink: 0;
    background: var(--bg);
    box-shadow: -3px -3px 8px var(--shadow-light), 3px 3px 8px var(--shadow-dark);
    display: grid; place-items: center;
    color: var(--blue-deep);
}
.security__feature-icon svg { width: 20px; height: 20px; }
.security__feature h4 { font-size: 1rem; margin-bottom: 4px; }
.security__feature p { color: var(--text-soft); font-size: 0.9rem; line-height: 1.55; }

/* =========================================================
   FAQ
   ========================================================= */
.faq {
    padding: clamp(70px, 9vw, 130px) 0;
}
.faq__list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.faq__item {
    padding: 4px 6px;
    background: var(--bg);
    border-radius: var(--r-lg);
    box-shadow:
        -6px -6px 14px var(--shadow-light),
        6px 6px 16px var(--shadow-dark);
    overflow: hidden;
}
.faq__q {
    width: 100%;
    text-align: left;
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    transition: color .2s var(--ease);
}
.faq__q:hover { color: var(--blue-deep); }
.faq__icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: -2px -2px 5px var(--shadow-light), 2px 2px 5px var(--shadow-dark);
    display: grid; place-items: center;
    flex-shrink: 0;
    transition: transform .3s var(--ease);
}
.faq__icon::before {
    content: '+';
    font-family: 'Geist', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--blue-deep);
    line-height: 1;
}
.faq__item.open .faq__icon { transform: rotate(45deg); }
.faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease), padding .35s var(--ease);
    padding: 0 26px;
    color: var(--text-soft);
    line-height: 1.65;
    font-size: 0.95rem;
}
.faq__item.open .faq__a {
    max-height: 300px;
    padding: 0 26px 22px;
}

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
    padding: clamp(70px, 9vw, 130px) 0;
}
.cta-banner__inner {
    padding: clamp(40px, 7vw, 80px);
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-near) 100%);
    border-radius: var(--r-xl);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        -10px -10px 30px var(--shadow-light),
        10px 10px 36px var(--shadow-dark);
}
.cta-banner__inner::before,
.cta-banner__inner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}
.cta-banner__inner::before {
    width: 280px; height: 280px;
    top: -100px; left: -80px;
    background: rgba(32,120,207,0.4);
}
.cta-banner__inner::after {
    width: 220px; height: 220px;
    bottom: -80px; right: -80px;
    background: rgba(14,78,178,0.35);
}
.cta-banner__content { position: relative; z-index: 1; }
.cta-banner h2 { color: white; margin-bottom: 18px; }
.cta-banner h2 .accent {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    color: var(--blue-bright);
    font-weight: 400;
}
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 36px; font-size: 1.05rem; }
.cta-banner .btn--primary { background: white; color: var(--blue-near); }
.cta-banner .btn--primary:hover { background: var(--blue-bright); color: white; }
.cta-banner .btn--ghost {
    background: rgba(255,255,255,0.08);
    color: white;
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.1);
}
.cta-banner .btn--ghost:hover { background: rgba(255,255,255,0.16); }
.cta-banner__ctas { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    padding: 60px 0 30px;
    background: var(--blue-near);
    color: rgba(255,255,255,0.7);
    margin-top: clamp(40px, 6vw, 80px);
}
.footer__top {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 50px;
}
@media (max-width: 960px) {
    .footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 540px) {
    .footer__top { grid-template-columns: 1fr; }
}
.footer__brand .logo { color: white; }
.footer__brand .logo__mark { box-shadow: 0 4px 14px rgba(32,120,207,0.5); }
.footer__brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    max-width: 32ch;
    line-height: 1.55;
}
.footer__socials {
    margin-top: 22px;
    display: flex;
    gap: 10px;
}
.footer__social {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: grid; place-items: center;
    color: white;
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.footer__social:hover { background: var(--blue-bright); transform: translateY(-2px); }
.footer__social svg { width: 16px; height: 16px; }

.footer h5 {
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a {
    color: rgba(255,255,255,0.65);
    font-size: 0.92rem;
    transition: color .2s var(--ease);
}
.footer a:hover { color: white; }

.footer__bottom {
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}
.footer__bottom-links { display: flex; gap: 22px; }

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookies {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 480px;
    margin: 0 auto;
    z-index: 200;
    transform: translateY(120%);
    transition: transform .5s var(--ease);
}
.cookies.show { transform: translateY(0); }
.cookies__inner {
    padding: 22px;
    background: var(--bg);
    border-radius: var(--r-lg);
    box-shadow:
        -10px -10px 24px var(--shadow-light),
        10px 10px 30px var(--shadow-dark),
        0 12px 36px rgba(0, 5, 33, 0.18);
}
.cookies__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.cookies__icon {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: var(--bg);
    box-shadow: -2px -2px 6px var(--shadow-light), 2px 2px 6px var(--shadow-dark);
    display: grid; place-items: center;
    color: var(--blue-deep);
}
.cookies__icon svg { width: 18px; height: 18px; }
.cookies__head strong { color: var(--text); font-size: 0.95rem; }
.cookies p { font-size: 0.82rem; color: var(--text-soft); margin-bottom: 16px; line-height: 1.55; }
.cookies__actions { display: flex; gap: 8px; }
.cookies__actions .btn { padding: 11px 18px; font-size: 0.85rem; flex: 1; }
.cookies__close {
    position: absolute;
    top: 14px; right: 14px;
    width: 28px; height: 28px;
    border-radius: 50%;
    color: var(--text-soft);
    font-size: 1.1rem;
    background: transparent;
}
.cookies a { color: var(--blue-deep); font-weight: 600; }

/* =========================================================
   LEGAL / DOC PAGES
   ========================================================= */
.doc {
    padding: 60px 0 100px;
}
.doc__head {
    max-width: 780px;
    margin: 0 auto 56px;
    text-align: center;
}
.doc__head .eyebrow { justify-content: center; margin-bottom: 18px; }
.doc__head h1 { margin-bottom: 18px; font-size: clamp(2.4rem, 5vw, 3.8rem); }
.doc__head p { color: var(--text-soft); font-size: 1.08rem; max-width: 60ch; margin: 0 auto; }

.doc__body {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(36px, 5vw, 60px);
    background: var(--bg);
    border-radius: var(--r-xl);
    box-shadow:
        -10px -10px 26px var(--shadow-light),
        10px 10px 30px var(--shadow-dark);
}
.doc__body h2 {
    font-size: 1.6rem;
    margin: 36px 0 14px;
    padding-bottom: 12px;
    border-bottom: 1.5px dashed rgba(14,78,178,0.15);
}
.doc__body h2:first-child { margin-top: 0; }
.doc__body h3 {
    font-size: 1.15rem;
    margin: 26px 0 10px;
    color: var(--blue-deep);
}
.doc__body p, .doc__body li {
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 14px;
    font-size: 1rem;
}
.doc__body ul, .doc__body ol { padding-left: 22px; }
.doc__body li { margin-bottom: 8px; }
.doc__body strong { color: var(--text); }
.doc__body a { color: var(--blue-deep); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(14,78,178,0.3); }
.doc__body a:hover { text-decoration-color: var(--blue-deep); }
.doc__updated {
    display: inline-block;
    margin-bottom: 30px;
    padding: 6px 14px;
    background: rgba(32,120,207,0.1);
    color: var(--blue-deep);
    border-radius: var(--r-pill);
    font-size: 0.78rem;
    font-weight: 600;
}

/* Careers specific */
.role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 30px 0 18px;
}
@media (max-width: 720px) { .role-grid { grid-template-columns: 1fr; } }
.role {
    padding: 24px;
    background: var(--bg);
    border-radius: var(--r-lg);
    box-shadow: inset -4px -4px 10px var(--shadow-light), inset 4px 4px 10px var(--shadow-dark);
}
.role__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.role__tag {
    padding: 4px 10px;
    background: var(--bg);
    border-radius: var(--r-pill);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-soft);
    box-shadow: -2px -2px 4px var(--shadow-light), 2px 2px 4px var(--shadow-dark);
}
.role h3 { font-size: 1.15rem; margin-bottom: 6px; }
.role p { font-size: 0.9rem; color: var(--text-soft); }
.role__cta {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue-deep);
    font-size: 0.88rem;
    font-weight: 600;
}

/* Mission page */
.mission-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 30px 0;
}
@media (max-width: 720px) { .mission-values { grid-template-columns: 1fr; } }
.mission-value {
    padding: 24px;
    background: var(--bg);
    border-radius: var(--r-lg);
    box-shadow: inset -4px -4px 10px var(--shadow-light), inset 4px 4px 10px var(--shadow-dark);
}
.mission-value__num {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 2.2rem;
    color: var(--blue-bright);
    line-height: 1;
    margin-bottom: 10px;
}
.mission-value h3 { font-size: 1.05rem; margin-bottom: 8px; }
.mission-value p { font-size: 0.9rem; color: var(--text-soft); }

/* =========================================================
   UTILITIES
   ========================================================= */
/* fade-in: always visible by default; JS adds .scroll-anim to <html> to enable
   scroll-triggered reveal, but content NEVER hides without JS. */
.fade-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.scroll-anim .fade-in:not(.visible) {
    opacity: 0;
    transform: translateY(20px);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hide scrollbar but keep functionality */
::selection { background: var(--blue-bright); color: white; }

/* =========================================================
   AUTHENTICATION
   ========================================================= */
.auth-shell {
    min-height: 100vh;
    padding-top: clamp(130px, 15vw, 190px);
    padding-bottom: clamp(70px, 9vw, 120px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    gap: clamp(36px, 7vw, 90px);
    align-items: center;
}
.auth-hero h1 { margin: 18px 0 22px; }
.auth-card {
    padding: clamp(26px, 4vw, 38px);
    border-radius: var(--r-xl);
    background: var(--bg-card);
    box-shadow:
        -14px -14px 34px var(--shadow-light),
        14px 14px 38px var(--shadow-dark),
        inset 1px 1px 0 rgba(255,255,255,0.75);
}
.auth-card__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: var(--r-pill);
    background: var(--bg);
    box-shadow: inset 4px 4px 10px rgba(163,184,220,0.45), inset -4px -4px 10px rgba(255,255,255,0.85);
    margin-bottom: 22px;
}
.auth-tab {
    padding: 12px 18px;
    border-radius: var(--r-pill);
    color: var(--text-soft);
    font-weight: 800;
    transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.auth-tab.active {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-near));
    color: white;
    box-shadow: 4px 4px 12px var(--shadow-dark);
}
.auth-card__status {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: var(--r-md);
    color: var(--blue-deep);
    background: rgba(32,120,207,0.1);
    box-shadow: inset 2px 2px 6px rgba(163,184,220,0.35), inset -2px -2px 6px rgba(255,255,255,0.8);
    font-size: 0.92rem;
}
.auth-card__status.error { color: #9f1d35; background: rgba(255, 79, 117, 0.12); }
.btn--google {
    width: 100%;
    color: var(--text);
    background: var(--bg);
    box-shadow: -6px -6px 15px var(--shadow-light), 6px 6px 18px var(--shadow-dark);
}
.btn--google svg { width: 20px; height: 20px; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-mute);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: rgba(1,31,101,0.12);
}
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 8px; color: var(--text-soft); font-size: 0.9rem; font-weight: 700; }
.auth-form input,
.auth-form select {
    width: 100%;
    padding: 15px 17px;
    border: 0;
    outline: 0;
    border-radius: var(--r-md);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    box-shadow: inset 4px 4px 10px rgba(163,184,220,0.48), inset -4px -4px 10px rgba(255,255,255,0.9);
}
.auth-form input:focus,
.auth-form select:focus { box-shadow: 0 0 0 3px rgba(32,120,207,0.18), inset 4px 4px 10px rgba(163,184,220,0.48), inset -4px -4px 10px rgba(255,255,255,0.9); }
.btn--full { width: 100%; margin-top: 4px; }
.auth-card__fineprint { margin-top: 18px; color: var(--text-mute); font-size: 0.84rem; line-height: 1.6; }
.auth-card__fineprint a { color: var(--blue-deep); font-weight: 800; }
@media (max-width: 980px) {
    .auth-shell { grid-template-columns: 1fr; padding-top: 120px; }
}
@media (max-width: 560px) {
    .auth-card { border-radius: var(--r-lg); }
}
/* =========================================================
   FOCUSED AUTH + ABOUT DESTINATION
   ========================================================= */
.auth-page .ambient {
    background:
        radial-gradient(circle at 20% 10%, rgba(32,120,207,0.18), transparent 42%),
        radial-gradient(circle at 80% 80%, rgba(1,31,101,0.12), transparent 52%),
        var(--bg);
}
.auth-shell--single {
    width: min(100% - 32px, 460px);
    min-height: 100svh;
    margin: 0 auto;
    padding: clamp(28px, 7vh, 72px) 0;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
}
.auth-card--focused { width: 100%; }
.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
    color: var(--text);
    font-family: 'Geist', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
}
.auth-logo .logo__mark { width: 44px; height: 44px; }
.founder-story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 28px 0 36px;
}
.founder-story-card {
    padding: 26px;
    border-radius: var(--r-lg);
    background: var(--bg-card);
    box-shadow: -8px -8px 20px var(--shadow-light), 8px 8px 24px var(--shadow-dark);
}
.founder-story-card__avatar {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: white;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
    box-shadow: 0 10px 24px rgba(32,120,207,0.35);
    font-weight: 800;
}
.founder-story-card__role {
    color: var(--blue-deep);
    font-weight: 800;
    margin-bottom: 10px;
}
@media (max-width: 720px) {
    .founder-story-grid { grid-template-columns: 1fr; }
}

/* Footer has link-only About now; story lives on about.html. */
.footer__top { grid-template-columns: 1.35fr repeat(4, minmax(120px, 1fr)); }
@media (max-width: 1180px) {
    .footer__top { grid-template-columns: 1.4fr repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 540px) {
    .footer__top { grid-template-columns: 1fr; }
}

/* =========================================================
   IN-APP MOBILE STRUCTURE
   ========================================================= */
.app-page {
    min-height: 100svh;
    background: #eef0f3;
}
.app-shell {
    width: min(100% - 24px, 430px);
    min-height: 100svh;
    margin: 0 auto;
    padding: 20px 0 112px;
    position: relative;
}
.phone-frame {
    min-height: calc(100svh - 132px);
    padding: 24px;
    border-radius: 42px;
    background: #f5f6f8;
    box-shadow: -14px -14px 30px rgba(255,255,255,0.95), 14px 14px 34px rgba(174,181,194,0.55);
    overflow: hidden;
}
.app-topbar,
.app-screen-head,
.profile-cover {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.app-user { display: flex; align-items: center; gap: 12px; }
.app-user span { color: #7d828d; font-size: 0.9rem; }
.app-user strong { display: block; font-size: 1.15rem; }
.app-avatar,
.msg-avatar,
.profile-avatar {
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #1c2027, #080a0f);
    font-weight: 800;
}
.app-avatar { width: 54px; height: 54px; border-radius: 20px; }
.app-icon-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: white;
    color: #1e2229;
    box-shadow: -6px -6px 14px rgba(255,255,255,0.9), 6px 6px 16px rgba(174,181,194,0.45);
    font-size: 1.2rem;
}
.app-search {
    margin: 28px 0 24px;
    padding: 10px 10px 10px 22px;
    display: grid;
    grid-template-columns: 24px 1fr 58px;
    align-items: center;
    gap: 12px;
    border-radius: 999px;
    background: white;
    box-shadow: inset 2px 2px 5px rgba(174,181,194,0.18), 8px 8px 20px rgba(174,181,194,0.28);
}
.app-search input {
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    min-width: 0;
}
.app-search button {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: white;
    background: #20242b;
    font-size: 1.2rem;
}
.brand-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 26px;
}
.brand-strip button {
    padding: 18px 8px;
    border-radius: 24px;
    color: white;
    background: #20242b;
    box-shadow: 8px 8px 18px rgba(174,181,194,0.35);
    font-weight: 800;
}
.app-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.app-section-head h2,
.app-screen-head h1 { font-size: 1.45rem; }
.app-section-head a { color: #777d89; font-weight: 700; }
.car-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.car-card {
    min-height: 220px;
    padding: 16px;
    border-radius: 26px;
    background: #ebecef;
    box-shadow: inset -8px -8px 18px rgba(255,255,255,0.8), inset 8px 8px 18px rgba(174,181,194,0.22);
    position: relative;
}
.save-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
}
.car-art,
.detail-car-art {
    height: 94px;
    margin: 38px 0 12px;
    border-radius: 50% 50% 34% 34%;
    background: linear-gradient(160deg, #fff, #cfd3db 62%, #111 63% 72%, transparent 73%);
    filter: drop-shadow(0 16px 14px rgba(20,25,35,0.16));
}
.car-art--black { background: linear-gradient(160deg, #242a33, #05070a 62%, #111 63% 72%, transparent 73%); }
.car-art--silver { background: linear-gradient(160deg, #f8f8f8, #aeb5c0 62%, #111 63% 72%, transparent 73%); }
.car-art--gold { background: linear-gradient(160deg, #f7cc64, #bc7c20 62%, #111 63% 72%, transparent 73%); }
.car-card h3 { font-size: 1rem; }
.car-card p { display: flex; justify-content: space-between; gap: 10px; color: #222; }
.car-card span { color: #4d535d; }
.app-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: min(100% - 56px, 374px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 999px;
    background: #20242b;
    box-shadow: 0 18px 36px rgba(0,0,0,0.26);
    z-index: 20;
}
.app-bottom-nav button {
    min-height: 54px;
    border-radius: 999px;
    color: white;
    font-weight: 800;
}
.app-bottom-nav button span { display: none; margin-left: 6px; }
.app-bottom-nav button.active {
    background: rgba(255,255,255,0.12);
}
.app-bottom-nav button.active span { display: inline; }
.message-tabs { display: flex; gap: 12px; margin-bottom: 22px; }
.message-tabs button,
.profile-action,
.buy-row button {
    padding: 14px 22px;
    border-radius: 999px;
    background: #20242b;
    color: white;
    font-weight: 800;
}
.message-tabs button:not(.active),
.profile-action--light { background: white; color: #555; box-shadow: 6px 6px 14px rgba(174,181,194,0.3); }
.message-list { display: grid; gap: 14px; }
.message-list article,
.settings-list a {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: white;
    color: #20242b;
}
.msg-avatar { width: 46px; height: 46px; border-radius: 50%; }
.message-list p { color: #717782; font-size: 0.88rem; }
.message-list span { color: #8b909a; font-size: 0.82rem; }
.profile-cover {
    height: 160px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 32px;
    background: linear-gradient(135deg, #e0c2aa, #f4ece5);
}
.profile-card { margin-top: -50px; text-align: center; }
.profile-avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px; border: 5px solid white; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.profile-stats span { padding: 16px; border-radius: 18px; background: white; color: #777; }
.profile-stats strong { display: block; color: #111; font-size: 1.35rem; }
.profile-action { width: 100%; margin-bottom: 12px; }
.settings-title { font-size: 1.2rem; margin: 24px 0 12px; }
.settings-list { display: grid; gap: 12px; }
.settings-list a { grid-template-columns: 1fr auto; }
.detail-hero { height: 290px; border-radius: 34px; padding: 16px; display: flex; justify-content: space-between; align-items: flex-start; background: #22262d; position: relative; }
.detail-hero .app-icon-btn { background: rgba(255,255,255,0.12); color: white; }
.detail-car-art { position: absolute; left: 34px; right: 34px; bottom: 30px; height: 120px; margin: 0; }
.detail-sheet { margin: -36px 0 0; position: relative; padding: 26px; border-radius: 32px; background: white; }
.detail-title,
.buy-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.detail-title h1 { font-size: 1.6rem; }
.detail-sheet p { color: #737985; margin: 14px 0 20px; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.feature-row span { padding: 14px 10px; border-radius: 18px; background: #f1f2f4; text-align: center; font-weight: 800; font-size: 0.85rem; }
.buy-row button { min-width: 150px; }
@media (max-width: 420px) {
    .phone-frame { padding: 18px; border-radius: 32px; }
    .brand-strip { gap: 10px; }
    .brand-strip button { font-size: 0.78rem; }
    .app-bottom-nav { width: calc(100% - 28px); }
}

/* =========================================================
   v2 — APP UPGRADES
   • Smaller bottom-nav pill with bigger SVG icons
   • iMessage-style conversation (blue bubbles, gray bubbles)
   • Real car images
   • Sell form, FAB, toast, modal, commission note
   ========================================================= */

/* --- Global typography polish (Geist) --- */
body { font-feature-settings: 'ss01' on, 'cv11' on; letter-spacing: -0.005em; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.02em; }

/* CRITICAL: ensure [hidden] always wins over display rules */
.app-page [hidden] { display: none !important; }

/* ---------- Bottom nav: compact pill, big SVG icons ---------- */
.app-bottom-nav {
    width: min(100% - 56px, 280px);
    padding: 6px;
    gap: 4px;
    bottom: 22px;
    border-radius: 999px;
    background: rgba(20, 24, 30, 0.92);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}
.app-bottom-nav button {
    min-height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    border-radius: 999px;
    transition: color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
    position: relative;
}
.app-bottom-nav button svg {
    width: 26px;
    height: 26px;
}
.app-bottom-nav button.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}
.app-bottom-nav button:active { transform: scale(0.94); }
.app-bottom-nav button span { display: none !important; }

/* Unread dot */
.nav-dot {
    position: absolute;
    top: 8px;
    right: 14px;
    width: 8px;
    height: 8px;
    background: #ff453a;
    border-radius: 50%;
    border: 2px solid rgba(20,24,30,1);
    box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.6);
    animation: navPulse 2s ease-out infinite;
}
@keyframes navPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.55); }
    70% { box-shadow: 0 0 0 6px rgba(255, 69, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0); }
}

/* ---------- Real car images ---------- */
.car-img {
    width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: 18px;
    margin: 26px 0 14px;
    background-size: cover;
    background-position: center;
    background-color: #d6dce4;
    box-shadow: 0 10px 22px rgba(20, 25, 35, 0.18);
    overflow: hidden;
    position: relative;
}
.car-card {
    background: white;
    box-shadow:
        0 1px 2px rgba(20,25,40,0.06),
        0 6px 18px rgba(20,25,40,0.07);
    border-radius: 22px;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.car-card:active {
    transform: scale(0.985);
}
.car-card:hover {
    box-shadow:
        0 2px 4px rgba(20,25,40,0.08),
        0 12px 30px rgba(20,25,40,0.12);
}
.car-card .save-dot {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: #20242b;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    z-index: 2;
    top: 36px;
    left: auto;
    right: 14px;
    transition: transform .15s var(--ease), color .15s var(--ease);
}
.car-card .save-dot.saved {
    color: #ff3b6b;
    transform: scale(1.05);
}
.car-card .save-dot:active { transform: scale(0.85); }
.car-card h3 { font-weight: 700; font-size: 0.98rem; }
.car-card p strong { font-weight: 700; color: #020C47; }
.car-card .car-meta {
    color: #6b7280;
    font-size: 0.78rem;
    margin-top: 2px;
    display: block;
    font-weight: 500;
}

/* ---------- Brand strip: more like chips ---------- */
.brand-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 22px;
    padding-bottom: 4px;
    grid-template-columns: none;
    scrollbar-width: none;
}
.brand-strip::-webkit-scrollbar { display: none; }
.brand-strip button {
    padding: 10px 18px;
    border-radius: 999px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: none;
    border: 1.5px solid rgba(20, 25, 40, 0.08);
    font-weight: 600;
    font-size: 0.88rem;
    flex-shrink: 0;
    transition: all .15s var(--ease);
}
.brand-strip button.active {
    color: white;
    background: #20242b;
    border-color: #20242b;
}
.brand-strip button:not(.active):hover {
    background: white;
    color: #20242b;
}

/* ---------- App search refinement (less elevated) ---------- */
.app-search {
    background: white;
    box-shadow:
        0 1px 2px rgba(20,25,40,0.04),
        0 4px 14px rgba(20,25,40,0.05);
    border: 1px solid rgba(20,25,40,0.05);
    margin: 24px 0 22px;
}
.app-search svg { color: #8b909a; width: 20px; height: 20px; }
.app-search input::placeholder { color: #8b909a; font-weight: 500; }
.app-search button {
    width: 44px;
    height: 44px;
    background: #0066FF;
    color: white;
}
.app-search button svg { width: 18px; height: 18px; }

.app-search--compact button { display: none; }
.app-search--compact { grid-template-columns: 20px 1fr; }

/* ---------- Phone frame: less heavy ---------- */
.phone-frame {
    padding: 22px;
    border-radius: 32px;
    background: #f5f6f8;
    box-shadow:
        0 1px 2px rgba(20,25,40,0.04),
        0 8px 30px rgba(20,25,40,0.06);
    position: relative;
}

/* ---------- App topbar: cleaner ---------- */
.app-topbar { margin-bottom: 8px; }
.app-icon-btn {
    width: 44px; height: 44px;
    background: white;
    color: #20242b;
    box-shadow:
        0 1px 2px rgba(20,25,40,0.05),
        0 4px 12px rgba(20,25,40,0.06);
    transition: transform .15s var(--ease);
}
.app-icon-btn:active { transform: scale(0.92); }
.app-icon-btn svg { width: 20px; height: 20px; }
.app-avatar {
    background: linear-gradient(135deg, #0066FF, #003E99);
    border-radius: 14px;
    width: 44px;
    height: 44px;
}

/* ---------- FAB: sell your car ---------- */
.fab {
    position: fixed;
    right: max(24px, calc(50% - 200px));
    bottom: 92px;
    z-index: 19;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px 0 14px;
    height: 50px;
    border-radius: 999px;
    background: #0066FF;
    color: white;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(0, 102, 255, 0.4), 0 1px 0 rgba(255,255,255,0.2) inset;
    transition: transform .18s var(--ease);
}
.fab:active { transform: scale(0.96); }
.fab svg { width: 22px; height: 22px; }
.fab span { font-size: 0.9rem; }

/* ============================================================
   ============== iMessage CONVERSATION SCREEN ================
   ============================================================ */
.conversation { display: flex; flex-direction: column; padding: 0; overflow: hidden; }

.convo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 12px;
    background: rgba(245, 246, 248, 0.85);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
    position: relative;
    z-index: 2;
}
.convo-back, .convo-info {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: #0066FF;
    background: transparent;
    flex-shrink: 0;
}
.convo-back svg, .convo-info svg { width: 24px; height: 24px; }
.convo-back:active, .convo-info:active { background: rgba(0,102,255,0.08); }

.convo-id { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.convo-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066FF, #003E99);
    color: white;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 0.88rem;
    flex-shrink: 0;
}
.convo-id-text { min-width: 0; overflow: hidden; }
.convo-id-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1c1c1e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.convo-id-text small {
    color: #8e8e93;
    font-size: 0.72rem;
    font-weight: 500;
}

/* Context strip (the car being discussed) */
.convo-context {
    margin: 10px 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(0, 102, 255, 0.07);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 14px;
    cursor: pointer;
    transition: background .15s var(--ease);
}
.convo-context:active { background: rgba(0, 102, 255, 0.12); }
.convo-context-img {
    width: 48px;
    aspect-ratio: 1;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.convo-context-info { flex: 1; min-width: 0; }
.convo-context-info strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: #1c1c1e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.convo-context-info span {
    color: #0066FF;
    font-size: 0.8rem;
    font-weight: 600;
}
.convo-context-arrow { color: #8e8e93; flex-shrink: 0; }

/* Thread */
.convo-thread {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 380px;
    max-height: calc(100svh - 280px);
    scroll-behavior: smooth;
}

/* Date / system separator */
.convo-date {
    text-align: center;
    color: #8e8e93;
    font-size: 0.7rem;
    font-weight: 600;
    margin: 12px 0 6px;
    letter-spacing: 0.02em;
}

/* Bubbles */
.bubble-wrap {
    display: flex;
    width: 100%;
    margin-top: 2px;
}
.bubble-wrap.them { justify-content: flex-start; }
.bubble-wrap.me { justify-content: flex-end; }

.bubble {
    max-width: 76%;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.32;
    word-wrap: break-word;
    white-space: pre-wrap;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    animation: bubblePop .22s var(--ease) both;
}
@keyframes bubblePop {
    from { transform: scale(0.85) translateY(6px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Outgoing (me): iMessage blue */
.bubble.me {
    background: linear-gradient(180deg, #0A84FF, #0066FF);
    color: white;
}
/* Outgoing tail */
.bubble.me.tail {
    border-bottom-right-radius: 6px;
}
.bubble.me.tail::after {
    content: '';
    position: absolute;
    right: -7px;
    bottom: 0;
    width: 16px;
    height: 18px;
    background: #0066FF;
    border-bottom-left-radius: 16px 14px;
    clip-path: polygon(0 0, 0 100%, 80% 100%);
    z-index: -1;
}

/* Incoming (them): iMessage gray */
.bubble.them {
    background: #E9E9EB;
    color: #1c1c1e;
}
.bubble.them.tail {
    border-bottom-left-radius: 6px;
}
.bubble.them.tail::after {
    content: '';
    position: absolute;
    left: -7px;
    bottom: 0;
    width: 16px;
    height: 18px;
    background: #E9E9EB;
    border-bottom-right-radius: 16px 14px;
    clip-path: polygon(100% 0, 100% 100%, 20% 100%);
    z-index: -1;
}

/* Time stamp under last bubble */
.bubble-time {
    width: 100%;
    text-align: center;
    color: #8e8e93;
    font-size: 0.68rem;
    font-weight: 500;
    margin: 10px 0 4px;
    letter-spacing: 0.02em;
}
.bubble-time b { color: #1c1c1e; font-weight: 600; margin-right: 4px; }

/* Read receipt */
.bubble-read {
    width: 100%;
    text-align: right;
    color: #8e8e93;
    font-size: 0.62rem;
    margin-top: 2px;
    margin-bottom: 4px;
    padding-right: 4px;
}

/* Typing indicator */
.bubble.typing {
    background: #E9E9EB;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.bubble.typing .dot {
    width: 8px;
    height: 8px;
    background: #8e8e93;
    border-radius: 50%;
    animation: typingBounce 1.2s infinite ease-in-out;
}
.bubble.typing .dot:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing .dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Composer */
.convo-composer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(245, 246, 248, 0.95);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-top: 0.5px solid rgba(60, 60, 67, 0.18);
}
.convo-plus, .convo-send {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform .15s var(--ease);
}
.convo-plus {
    background: rgba(120, 120, 128, 0.16);
    color: #1c1c1e;
}
.convo-plus svg { width: 20px; height: 20px; }
.convo-plus:active { transform: scale(0.9); }
.convo-composer input {
    flex: 1;
    min-width: 0;
    padding: 8px 14px;
    border-radius: 18px;
    background: white;
    border: 1px solid rgba(60, 60, 67, 0.18);
    font: inherit;
    font-size: 0.95rem;
    outline: none;
    color: #1c1c1e;
    transition: border-color .15s var(--ease);
}
.convo-composer input:focus { border-color: #0066FF; }
.convo-composer input::placeholder { color: #8e8e93; }
.convo-send {
    background: #0066FF;
    color: white;
}
.convo-send svg { width: 18px; height: 18px; }
.convo-send:active { transform: scale(0.88); }
.convo-send:disabled {
    background: rgba(120, 120, 128, 0.24);
    color: #8e8e93;
}

/* ---------- Message LIST (conversation previews) ---------- */
.message-list { display: flex; flex-direction: column; gap: 0; }
.message-list article {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 6px;
    border-radius: 0;
    background: transparent;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.14);
    cursor: pointer;
    transition: background .12s var(--ease);
}
.message-list article:last-child { border-bottom: none; }
.message-list article:active { background: rgba(60, 60, 67, 0.06); }
.message-list article.unread strong { font-weight: 700; }
.message-list article.unread p { color: #1c1c1e; font-weight: 500; }
.message-list .msg-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066FF, #003E99);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
}
.message-list article > div:nth-child(2) { min-width: 0; }
.message-list strong { font-size: 0.98rem; color: #1c1c1e; font-weight: 600; }
.message-list p {
    color: #6b7280;
    font-size: 0.86rem;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}
.message-list span { color: #8e8e93; font-size: 0.78rem; align-self: flex-start; margin-top: 4px; }

.message-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.message-tabs button {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(120, 120, 128, 0.12);
    color: #6b7280;
    font-weight: 600;
    font-size: 0.85rem;
}
.message-tabs button.active {
    background: #20242b;
    color: white;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8e8e93;
}
.empty-state svg { width: 48px; height: 48px; opacity: 0.4; margin-bottom: 12px; }
.empty-state strong { display: block; color: #1c1c1e; font-size: 1rem; margin-bottom: 4px; }
.empty-state p { font-size: 0.88rem; margin: 0; }

/* ============================================================
   ===================== DETAIL screen ========================
   ============================================================ */
.detail-hero {
    height: 320px;
    border-radius: 26px;
    background: #d6dce4;
    padding: 14px;
    position: relative;
    overflow: hidden;
}
.detail-hero .app-icon-btn {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    color: #1c1c1e;
    position: relative;
    z-index: 2;
}
.detail-car-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.18));
    z-index: 1;
    pointer-events: none;
}
.detail-sheet {
    margin-top: -28px;
    background: white;
    border-radius: 28px 28px 0 0;
    padding: 24px;
    position: relative;
    z-index: 2;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.detail-title h1 { font-size: 1.45rem; font-weight: 700; }
.detail-title small { color: #6b7280; font-size: 0.85rem; }
.detail-title span { background: #f0f0f3; padding: 6px 12px; border-radius: 12px; font-weight: 600; font-size: 0.85rem; color: #1c1c1e; }
.detail-sheet p { color: #4b5563; line-height: 1.5; }

.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.feature-row span {
    padding: 12px 8px;
    border-radius: 14px;
    background: #f5f6f8;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.feature-row b { font-weight: 700; color: #1c1c1e; font-size: 0.95rem; }
.feature-row i { font-style: normal; color: #8e8e93; font-size: 0.72rem; font-weight: 500; }

.commission-note {
    background: rgba(0, 102, 255, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.18);
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.82rem;
    color: #003E99;
    margin-bottom: 18px;
    line-height: 1.4;
}
.commission-note strong { color: #0066FF; }

.buy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.buy-row small { display: block; color: #8e8e93; font-size: 0.78rem; }
.buy-row strong { font-size: 1.45rem; font-weight: 700; color: #1c1c1e; }
.buy-row__actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-buy, .btn-ghost {
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform .15s var(--ease), background .15s var(--ease);
}
.btn-buy {
    background: #0066FF;
    color: white;
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.35);
}
.btn-buy:active { transform: scale(0.97); }
.btn-buy:hover { background: #003E99; }
.btn-ghost {
    background: rgba(120, 120, 128, 0.12);
    color: #1c1c1e;
}
.btn-ghost:active { transform: scale(0.97); }
.btn-ghost:hover { background: rgba(120, 120, 128, 0.18); }

/* ============================================================
   ===================== SELL FORM ============================
   ============================================================ */
.sell-intro {
    padding: 14px 16px;
    background: rgba(0, 102, 255, 0.06);
    border-radius: 14px;
    color: #003E99;
    font-size: 0.84rem;
    line-height: 1.5;
    margin: 0 0 18px;
}
.sell-intro strong { color: #0066FF; font-weight: 700; }

.sell-form { display: flex; flex-direction: column; gap: 14px; padding-bottom: 100px; }
.sell-photo {
    cursor: pointer;
    display: block;
}
.sell-photo-preview {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    background: #f5f6f8;
    border: 2px dashed rgba(120, 120, 128, 0.3);
    display: grid;
    place-items: center;
    color: #8e8e93;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: border-color .15s var(--ease), background .15s var(--ease);
}
.sell-photo-preview svg { width: 40px; height: 40px; margin-bottom: 4px; }
.sell-photo-preview span { font-size: 0.86rem; font-weight: 600; }
.sell-photo-preview.has-image { border: none; }
.sell-photo-preview.has-image svg,
.sell-photo-preview.has-image span { display: none; }

.sell-field { display: grid; gap: 6px; }
.sell-field > span { font-size: 0.82rem; font-weight: 600; color: #6b7280; padding-left: 4px; }
.sell-field input,
.sell-field select,
.sell-field textarea {
    padding: 12px 14px;
    border-radius: 14px;
    background: white;
    border: 1px solid rgba(60, 60, 67, 0.16);
    font: inherit;
    font-size: 0.95rem;
    color: #1c1c1e;
    outline: none;
    transition: border-color .15s var(--ease);
}
.sell-field input:focus,
.sell-field select:focus,
.sell-field textarea:focus { border-color: #0066FF; }
.sell-field textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.sell-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.sell-commission {
    background: #f5f6f8;
    border-radius: 14px;
    padding: 14px;
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.5;
}
.sell-commission.active {
    background: rgba(0, 102, 255, 0.07);
    color: #003E99;
}
.sell-commission strong { color: #0066FF; }

/* ============================================================
   ===================== PROFILE polish =======================
   ============================================================ */
.profile-cover {
    height: 120px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0066FF 0%, #003E99 100%);
    padding: 14px;
    margin-bottom: 0;
}
.profile-cover .app-icon-btn {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    color: white;
}
.profile-card { background: transparent; box-shadow: none; padding: 0; }
.profile-avatar {
    width: 86px; height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066FF, #003E99);
    border: 4px solid #f5f6f8;
    margin: -50px auto 12px;
}
.profile-card h1 { font-size: 1.3rem; font-weight: 700; }
.profile-card p { color: #8e8e93; font-size: 0.86rem; margin-bottom: 18px; }
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 18px;
}
.profile-stats span {
    padding: 12px 8px;
    border-radius: 14px;
    background: white;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.profile-stats strong { display: block; color: #1c1c1e; font-size: 1.2rem; margin-bottom: 2px; }
.profile-action {
    padding: 12px 20px;
    border-radius: 999px;
    background: #0066FF;
    color: white;
    font-weight: 700;
    width: 100%;
    margin-bottom: 8px;
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.3);
}
.profile-action--light {
    background: white;
    color: #1c1c1e;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.profile-section { margin-top: 22px; }
.settings-title { font-size: 1rem; color: #6b7280; margin: 0 0 10px; padding-left: 6px; font-weight: 600; }
.settings-list { display: flex; flex-direction: column; background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.settings-list a {
    grid-template-columns: 1fr auto;
    padding: 14px 16px;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.14);
    color: #1c1c1e;
    font-weight: 500;
    background: transparent;
    border-radius: 0;
}
.settings-list a:last-child { border-bottom: none; }
.settings-list a span { color: #8e8e93; font-size: 0.86rem; }
.settings-list a:active { background: rgba(60, 60, 67, 0.06); }

/* ============================================================
   ===================== TOAST ================================
   ============================================================ */
.toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%) translateY(20px);
    z-index: 200;
    background: rgba(20, 24, 30, 0.96);
    backdrop-filter: blur(20px);
    color: white;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
    max-width: calc(100% - 32px);
    text-align: center;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   ===================== MODAL ================================
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(0, 0, 20, 0.5);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s var(--ease);
}
.modal.show {
    opacity: 1;
    pointer-events: auto;
}
.modal__card {
    background: white;
    border-radius: 22px;
    padding: 26px;
    width: min(100%, 360px);
    box-shadow: 0 28px 80px rgba(0,0,0,0.35);
    transform: scale(0.94);
    transition: transform .22s var(--ease);
}
.modal.show .modal__card { transform: scale(1); }
.modal__card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.modal__card > p { color: #6b7280; font-size: 0.9rem; line-height: 1.5; margin-bottom: 16px; }
.modal__breakdown {
    background: #f5f6f8;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
}
.modal__breakdown .row { display: flex; justify-content: space-between; gap: 12px; }
.modal__breakdown .row.total { border-top: 1px solid rgba(60, 60, 67, 0.16); padding-top: 8px; margin-top: 4px; font-weight: 700; font-size: 1rem; color: #1c1c1e; }
.modal__breakdown .row span { color: #6b7280; }
.modal__breakdown .row b { color: #1c1c1e; font-weight: 600; }
.modal__small { color: #8e8e93 !important; font-size: 0.78rem !important; margin-bottom: 18px !important; }
.modal__actions { display: flex; gap: 8px; }
.modal__actions button { flex: 1; }

/* ============================================================
   ===================== Responsive ===========================
   ============================================================ */
@media (min-width: 768px) {
    .app-shell { max-width: 460px; }
}
