/*
    Zamily — Premium Family Safety
    Full header bar with light/dark themes. Clean, trustworthy, organic glass aesthetic.
    Updated April 2026.
*/

:root {
    /* Light Theme */
    --bg-canvas: #f8f7f4;
    --bg-surface: #ffffff;
    --bg-surface2: #f1f0eb;
    --bg-glass: rgba(255, 255, 255, 0.82);
    
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --text-muted: #78716c;
    
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --accent-soft: rgba(13, 148, 136, 0.1);
    --accent-glow: rgba(13, 148, 136, 0.25);
    
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.14);
    
    --shadow-sm: 0 10px 15px -3px rgb(0 0 0 / 0.05);
    --shadow-md: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.12);
    
    --radius: 22px;
    --radius-pill: 9999px;
    
    --transition: all 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-canvas: #0a0a0a;
    --bg-surface: #111113;
    --bg-surface2: #1a1a1f;
    --bg-glass: rgba(17, 17, 19, 0.92);
    
    --text-primary: #f5f5f7;
    --text-secondary: #a3a3a8;
    --text-muted: #71717a;
    
    --accent: #14b8a6;
    --accent-hover: #0f9a8a;
    --accent-soft: rgba(20, 184, 166, 0.18);
    --accent-glow: rgba(20, 184, 166, 0.4);
    
    --border: rgba(163, 163, 168, 0.12);
    --border-strong: rgba(163, 163, 168, 0.22);
    
    --shadow-sm: 0 10px 15px -3px rgb(0 0 0 / 0.4);
    --shadow-md: 0 20px 25px -5px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.6);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul { margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-canvas);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 15.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.6s ease, color 0.6s ease;
}

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

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

/* Focus Visible (Accessibility) */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
}
h2 { 
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: -0.02em;
}
h3 { 
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    letter-spacing: -0.01em;
}
h4 { font-size: 1.1rem; }

/* Pills & Badges - Enhanced */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pill:hover::before {
    opacity: 1;
}

.pill--gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: none;
}

.pill--pulse {
    animation: pill-pulse 2s ease-in-out infinite;
}

.pill--limited {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.35);
}

.pill--limited-icon {
    flex-shrink: 0;
    display: block;
}

@keyframes pill-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #0ea5e9 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, #14b8a6 0%, #38bdf8 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.site-header {
    --site-header-h: 72px;
    position: sticky;
    top: 0;
    z-index: 1002;
    background: var(--bg-glass);
    background: color-mix(in srgb, var(--bg-glass) 92%, transparent);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: transform 0.28s ease, box-shadow 0.3s ease, background 0.35s ease;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        color-mix(in srgb, var(--accent) 45%, transparent) 25%,
        color-mix(in srgb, var(--accent) 45%, transparent) 75%,
        transparent 100%);
    opacity: 0.5;
    pointer-events: none;
}

.site-header--hidden {
    transform: translateY(-100%);
}

.site-header.menu-open {
    box-shadow: var(--shadow-lg);
}

.site-header__bar {
    position: relative;
    z-index: 1005;
}

.site-header__container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.75rem);
    min-height: var(--site-header-h);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem clamp(1rem, 4vw, 2rem);
}

.site-header__logo-link {
    display: flex;
    align-items: center;
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.site-header__logo-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.site-header__logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.site-header__nav {
    justify-self: center;
    min-width: 0;
}

.site-header__menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.35rem, 1.5vw, 1.75rem) clamp(0.75rem, 2vw, 1.5rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__nav a {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9125rem;
    padding: 0.35rem 0;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible {
    color: var(--text-primary);
}

.site-header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__nav a:hover::after,
.site-header__nav a:focus-visible::after {
    width: 100%;
}

.site-header__nav a.active {
    color: var(--accent);
    font-weight: 700;
}

.site-header__nav a.active::after {
    width: 100%;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.site-header__theme.theme-toggle {
    flex-shrink: 0;
}

.site-header__play.store-badge-btn {
    margin-top: 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
    border-radius: 10px;
    gap: 0.4rem;
}

.site-header__play {
    display: none;
}

@media (min-width: 1025px) {
    .site-header__play {
        display: inline-flex;
    }
}

@media (max-width: 1024px) {
    .site-header__container {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo actions";
    }

    .site-header__logo-link {
        grid-area: logo;
    }

    .site-header__nav {
        display: none;
    }

    .site-header__actions {
        grid-area: actions;
        justify-self: end;
    }
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-surface2);
    border-color: var(--accent);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle__icon {
    display: block;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-toggle:hover .theme-toggle__icon {
    transform: rotate(15deg) scale(1.1);
}

[data-theme="dark"] .theme-toggle__icon {
    animation: rotate-in 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes rotate-in {
    from { transform: rotate(-180deg) scale(0.5); }
    to { transform: rotate(0) scale(1); }
}

/* Buttons */
.button {
    padding: 13px 30px;
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.button:active::after {
    width: 300px;
    height: 300px;
}

.button--primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 
        0 4px 15px var(--accent-glow),
        0 0 0 1px rgba(255,255,255,0.1) inset;
    position: relative;
    overflow: hidden;
}

.button--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.2) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.button--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px var(--accent-glow),
        0 0 0 1px rgba(255,255,255,0.15) inset;
}

.button--primary:hover::before {
    left: 100%;
}

.button--primary:active {
    transform: translateY(-1px) scale(0.98);
}

.button--outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-strong);
}

.button--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.button--large {
    padding: 16px 36px;
    font-size: 16px;
}

.button--store {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    padding: 14px 28px;
}

.button--store:hover {
    background: var(--bg-surface2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Mobile nav toggle */
.site-header__mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: color-mix(in srgb, var(--bg-surface2) 90%, var(--accent));
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-header__mobile-toggle:hover {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

@media (max-width: 1024px) {
    .site-header__mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.hamburger {
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.site-header__mobile-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.site-header__mobile-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg); top: 0;
}
.site-header__mobile-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg); top: 0;
}

.site-header__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--bg-canvas) 55%, #0f172a);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.site-header__backdrop.is-open {
    opacity: 0.55;
    visibility: visible;
    pointer-events: auto;
}

[data-theme="dark"] .site-header__backdrop {
    background: rgba(0, 0, 0, 0.58);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100vw, 340px);
    height: 100vh;
    height: 100dvh;
    z-index: 1001;
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu.is-open {
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px -12px rgba(15, 23, 42, 0.2);
    padding: calc(var(--site-header-h) + 1rem) 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu__list a {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.65rem 0.35rem;
    color: var(--text-primary);
    display: block;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu__list a:hover,
.mobile-menu__list a:focus-visible {
    color: var(--accent);
    background: var(--accent-soft);
    padding-left: 0.65rem;
}

.mobile-menu__footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.mobile-menu__play.store-badge-btn {
    margin-top: 0;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

/* Hero (home) */
.hero--home {
    padding: clamp(5.5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 2rem) clamp(4rem, 8vh, 6rem);
    position: relative;
    overflow: hidden;
    min-height: min(100vh, 1080px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    isolation: isolate;
}

@media (max-width: 768px) {
    .hero--home {
        min-height: auto;
        padding-top: 5.25rem;
    }
}

.hero--home::before {
    content: '';
    position: absolute;
    inset: -20% -30% 0 -30%;
    height: 120%;
    background:
        radial-gradient(ellipse 55% 45% at 15% 25%, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 55%),
        radial-gradient(ellipse 45% 40% at 85% 20%, rgba(245, 158, 11, 0.09) 0%, transparent 50%),
        radial-gradient(ellipse 50% 35% at 70% 85%, rgba(139, 92, 246, 0.07) 0%, transparent 45%);
    z-index: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .hero--home::before {
        animation: hero-mesh-drift 28s ease-in-out infinite;
    }
}

@keyframes hero-mesh-drift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
    50% { transform: translate(2%, -1%) scale(1.02); opacity: 0.95; }
}

.hero--home::after {
    content: '';
    position: absolute;
    width: min(520px, 90vw);
    height: min(520px, 90vw);
    right: -8%;
    top: 10%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
    filter: blur(50px);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
}

.hero__container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
}

.hero__copy {
    max-width: 38rem;
}

@media (max-width: 1024px) {
    .hero__copy {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero__meta {
    margin-bottom: 1.25rem;
    animation: hero-fade-up 0.75s ease-out both;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--bg-surface2);
    background: color-mix(in srgb, var(--bg-surface) 88%, var(--accent-soft));
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.hero__eyebrow svg {
    color: var(--accent);
    flex-shrink: 0;
}

.hero__title {
    font-size: clamp(2.35rem, 5.2vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin: 0 0 1.25rem;
    animation: hero-fade-up 0.75s ease-out 0.06s both;
}

.hero__title-line {
    display: block;
}

.hero__title-line--accent {
    margin-top: 0.2em;
    padding-bottom: 0.05em;
}

.hero__lead {
    font-size: clamp(1.05rem, 1.35vw, 1.22rem);
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 1.75rem;
    animation: hero-fade-up 0.75s ease-out 0.12s both;
}

.hero__lead strong {
    color: var(--text-primary);
    font-weight: 700;
}

.hero__points {
    list-style: none;
    margin: 0 0 1.85rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    animation: hero-fade-up 0.75s ease-out 0.16s both;
}

.hero__points li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-secondary);
    text-align: left;
}

@media (max-width: 1024px) {
    .hero__points {
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__points li {
        text-align: left;
        justify-content: flex-start;
        align-items: flex-start;
    }
}

.hero__point-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
}

.hero__point-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}
.hero__point-link:hover,
.hero__point-link:focus {
    border-bottom-color: var(--accent);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1rem;
    margin-bottom: 1.1rem;
    animation: hero-fade-up 0.75s ease-out 0.2s both;
}

@media (max-width: 1024px) {
    .hero__actions {
        justify-content: center;
    }
}

.hero__btn-play.store-badge-btn {
    margin-top: 0;
    padding: 0.72rem 1.15rem;
    font-size: 0.9rem;
}

.hero__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero__btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.hero__fineprint {
    margin: 0 0 1.35rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-muted);
    animation: hero-fade-up 0.75s ease-out 0.22s both;
}

.hero__fineprint strong {
    color: var(--text-secondary);
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    animation: hero-fade-up 0.75s ease-out 0.26s both;
}

@media (max-width: 1024px) {
    .hero__trust {
        justify-content: center;
    }
}

.hero__trust li {
    display: inline-flex;
    align-items: center;
}

.hero__trust li:not(:last-child)::after {
    content: '·';
    margin-left: 0.65rem;
    opacity: 0.45;
    font-weight: 400;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: hero-fade-up 0.85s ease-out 0.18s both;
}

.hero__parallax {
    position: relative;
    will-change: transform;
}

.hero__device {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__device-glow {
    position: absolute;
    inset: -12% -8% -8% -8%;
    background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 62%);
    z-index: 0;
    pointer-events: none;
}

.hero__device .glass-device {
    position: relative;
    z-index: 1;
}

.hero__live-pill {
    position: absolute;
    top: 14%;
    right: 8%;
    z-index: 2;
    padding: 0.28rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 100px;
    box-shadow: 0 6px 20px -6px rgba(16, 185, 129, 0.55);
    pointer-events: none;
}

@media (max-width: 1024px) {
    .hero__live-pill {
        right: 12%;
    }
}

.hero__scroll-down {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin: 2.5rem auto 0;
    padding: 0.5rem 1rem;
    width: max-content;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.2s ease, transform 0.2s ease;
}

.hero__scroll-down:hover {
    color: var(--accent);
}

.hero__scroll-down-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: 0.1rem;
    animation: hero-nudge 2s ease-in-out infinite;
}

@keyframes hero-nudge {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.7; }
    50% { transform: rotate(45deg) translateY(4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__scroll-down-icon {
        animation: none;
    }

    .hero--home::before {
        animation: none;
    }
}

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* fade-up used by glass-device & sections */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass Device Mockup - Enhanced */
.glass-device {
    width: 280px;
    height: 580px;
    background: var(--bg-glass);
    border: 12px solid var(--bg-surface);
    border-radius: 48px;
    box-shadow: 
        var(--shadow-lg),
        inset 0 0 60px rgba(255,255,255,0.1),
        0 0 0 1px rgba(255,255,255,0.1) inset;
    overflow: hidden;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
    animation: fade-up 0.8s ease-out 0.3s backwards, float-device 6s ease-in-out infinite;
    backdrop-filter: blur(20px);
}

@media (max-width: 1024px) {
    .glass-device {
        margin: 0 auto;
        width: 240px;
        height: 480px;
    }
}

.glass-device:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) scale(1.02);
    box-shadow: 
        0 35px 60px -15px rgba(0,0,0,0.25),
        inset 0 0 60px rgba(255,255,255,0.15);
}

@keyframes float-device {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

[data-theme="dark"] .glass-device {
    border-color: var(--bg-surface2);
    box-shadow: 
        0 25px 50px -12px rgba(0,0,0,0.5),
        inset 0 0 60px rgba(255,255,255,0.03);
}

/* Screen reflection effect */
.glass-device::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, 
        rgba(255,255,255,0.15) 0%, 
        rgba(255,255,255,0.05) 40%,
        transparent 100%);
    border-radius: 36px 36px 0 0;
    pointer-events: none;
}

.glass-device__screen {
    height: 100%;
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-surface2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Real phone screenshot filling the hero glass device */
.glass-device__screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.glass-device__map {
    width: 86%;
    height: 86%;
    background: 
        linear-gradient(var(--accent) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent) 1px, transparent 1px);
    background-size: 32px 32px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 22px;
    position: relative;
    border: 3px solid rgba(255,255,255,0.75);
}

[data-theme="dark"] .glass-device__map {
    background-color: rgba(0,0,0,0.2);
}

.map-marker {
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border: 3.5px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 7px var(--accent-soft);
    animation: bounce 2s ease-in-out infinite;
}

.map-marker--green { border-color: var(--accent); animation-delay: 0s; }
.map-marker--blue { border-color: #3b82f6; animation-delay: 0.3s; }
.map-marker--purple { border-color: #8b5cf6; animation-delay: 0.6s; }

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

.map-marker__pulse {
    position: absolute;
    width: 52px;
    height: 52px;
    background: var(--accent-glow);
    border-radius: 50%;
    animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
    transform: translate(-17px, -17px);
}

@keyframes ping {
    75%, 100% {
        transform: translate(-17px, -17px) scale(2.4);
        opacity: 0;
    }
}

/* Sections - Enhanced */
section {
    padding: 7.5rem 2rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    section {
        padding: 5rem 1.5rem;
    }
}

/* Aurora background effect */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-soft) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 20% 100%, rgba(245, 158, 11, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

section > * {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header .pill {
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    max-width: 100%;
}

/* Section title underline accent */
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 2px;
    opacity: 0.5;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* How it works */
.how-it-works {
    position: relative;
    padding: clamp(3.5rem, 7vw, 6rem) 1.25rem;
    background:
        radial-gradient(120% 80% at 50% 0%, var(--accent-soft) 0%, transparent 55%),
        var(--bg-surface);
}

.how-it-works__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.how-it-works__header {
    margin-bottom: 1.75rem;
}

.how-it-works__header.section-header {
    margin-bottom: 1.75rem;
}

.how-it-works__intro {
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.65;
    overflow: visible;
}

/* Billing — always full-width readable copy (no clipped fine print) */
.how-billing-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    margin: 0 0 2.25rem;
    padding: 1.15rem 1.35rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(13, 148, 136, 0.35);
    background: linear-gradient(135deg, var(--bg-canvas) 0%, var(--accent-soft) 100%);
    box-shadow: 0 8px 32px rgba(13, 148, 136, 0.08);
    overflow: visible;
}

.how-billing-note__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
}

.how-billing-note__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    margin-top: 2px;
}

.how-billing-note__copy {
    flex: 1;
    min-width: 0;
}

.how-billing-note__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    line-height: 1.4;
}

.how-billing-note__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Two-column main: setup | app map */
.how-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(1.75rem, 4vw, 2.75rem);
    align-items: start;
}

@media (max-width: 900px) {
    .how-main-grid {
        grid-template-columns: 1fr;
    }
}

.how-main-grid__setup {
    padding: 1.35rem 1.25rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-canvas);
    box-shadow: var(--shadow-sm);
}

.how-main-grid__setup .how-steps__item:first-child {
    padding-top: 0;
}

.how-main-grid__app {
    padding: 1.35rem 1.25rem 1.45rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-canvas);
    box-shadow: var(--shadow-sm);
}

.how-main-grid__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.how-main-grid__hint {
    margin: -0.35rem 0 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Numbered steps — list, not card grid */
.how-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.how-steps__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.1rem;
    align-items: flex-start;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    isolation: isolate;
    transition: var(--transition);
}

.how-steps__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.how-steps__num {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(145deg, var(--accent), var(--accent-hover));
    box-shadow: 0 4px 14px var(--accent-soft);
}

.how-steps__title {
    display: block;
    font-weight: 700;
    font-size: 1.08rem;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.how-steps__detail {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.how-step-card {
    border-radius: 0;
    overflow: visible;
}

.how-step-card::after {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.how-step-card:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
}

.how-steps__body {
    position: relative;
    z-index: 1;
    min-width: 0;
}

/* Faux app tab bar */
.how-fake-tabbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.35rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: var(--bg-canvas);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.how-fake-tabbar__item {
    flex: 1;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.45rem 0.25rem;
    border-radius: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 480px) {
    .how-fake-tabbar__item {
        font-size: 0.72rem;
        padding: 0.5rem 0.35rem;
    }
}

.how-fake-tabbar__item--active {
    background: var(--accent-soft);
    color: var(--accent);
}

/* Tab copy board: 2×2 */
.how-tab-board {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (max-width: 520px) {
    .how-tab-board {
        grid-template-columns: 1fr;
    }
}

.how-tab-pill {
    margin: 0;
    padding: 1rem 1rem 1.05rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-canvas);
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.how-tab-pill:hover {
    border-color: var(--accent-soft);
    box-shadow: var(--shadow-md);
}

.how-tab-pill--settings {
    border-color: rgba(13, 148, 136, 0.25);
    background: linear-gradient(180deg, var(--bg-canvas) 0%, var(--accent-soft) 100%);
}

.how-tab-pill__name {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.45rem;
}

.how-tab-pill__desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.how-tab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.how-tab-card:hover::before {
    transform: scaleX(1);
}

.how-tab-card::after {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.how-tab-card:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.85;
}

.how-tab-pill .how-tab-pill__name,
.how-tab-pill .how-tab-pill__desc {
    position: relative;
    z-index: 1;
}

.how-it-works__footnote {
    margin: 2rem 0 0;
    padding: 1.15rem 0 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* Features — bento layout */
.features {
    position: relative;
    padding: clamp(3.5rem, 7vw, 6rem) 1.25rem;
    background: var(--bg-canvas);
}

.features::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 55% at 100% 0%, var(--accent-soft) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.85;
}

.features__wrap {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
}

.features__header.section-header {
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.features__lede {
    max-width: 38rem;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.65;
}

/* 2×2 — equal columns, tiles respect grid tracks */
.features__bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
    justify-items: stretch;
    width: 100%;
}

@media (max-width: 640px) {
    .features__bento {
        grid-template-columns: 1fr;
    }
}

.feature-tile {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.35rem 1.25rem 1.4rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-tile--hero {
    padding: 1.75rem 1.6rem 1.85rem;
    min-height: 0;
    border-color: rgba(13, 148, 136, 0.28);
    background:
        linear-gradient(165deg, var(--accent-soft) 0%, var(--bg-surface) 48%, var(--bg-surface) 100%);
    box-shadow: 0 8px 28px rgba(13, 148, 136, 0.08);
}

.feature-tile__heading-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.feature-tile__heading-row .feature-tile__icon {
    flex-shrink: 0;
}

.feature-tile--sos {
    border-color: rgba(217, 119, 6, 0.35);
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(254, 243, 199, 0.35) 100%);
}

.feature-tile--places {
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(254, 243, 199, 0.25) 100%);
}

[data-theme="dark"] .feature-tile--places {
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(120, 53, 15, 0.15) 100%);
}

.feature-tile--trips {
    border-color: rgba(59, 130, 246, 0.25);
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(219, 234, 254, 0.3) 100%);
}

[data-theme="dark"] .feature-tile--trips {
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(30, 64, 175, 0.15) 100%);
}

.feature-tile__meta {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.feature-tile--hero .feature-tile__meta {
    color: var(--accent);
}

.feature-tile__title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: clamp(1.05rem, 1.85vw, 1.28rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.28;
    text-align: left;
}

.feature-tile__body {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.58;
    flex: 1;
}

/* icon sits in .feature-tile__heading-row — no vertical margin */
.feature-tile .feature-tile__icon {
    margin-bottom: 0;
}

.feature-card.feature-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.feature-card.feature-tile:hover::before {
    opacity: 0.45;
}

.feature-card.feature-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-soft);
}

.feature-card.feature-tile .feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--accent-soft) 0%, transparent 120%);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
    color: var(--accent);
}

.feature-card.feature-tile .feature-card__icon svg {
    stroke: var(--accent);
    transition: stroke 0.35s ease;
}

.feature-card.feature-tile:hover .feature-card__icon {
    transform: scale(1.06) rotate(-4deg);
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 10px 28px var(--accent-glow);
}

.feature-card.feature-tile:hover .feature-card__icon svg {
    stroke: #fff;
}

.feature-tile--hero:hover .feature-card__icon {
    transform: scale(1.08) rotate(-3deg);
}

.feature-tile--sos:hover {
    border-color: rgba(217, 119, 6, 0.5);
}

[data-theme="dark"] .feature-tile--sos {
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(120, 53, 15, 0.22) 100%);
}

/* Pricing / Founding program */
.pricing {
    position: relative;
    padding: clamp(4rem, 8vw, 6.5rem) 2rem;
    background: var(--bg-canvas);
    overflow: hidden;
}

.pricing__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(75% 55% at 50% -10%, rgba(13, 148, 136, 0.18) 0%, transparent 55%),
        radial-gradient(60% 45% at 100% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 45%),
        radial-gradient(50% 40% at 0% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 40%);
    pointer-events: none;
    opacity: 1;
}

[data-theme="dark"] .pricing__bg {
    opacity: 0.5;
}

.pricing__container {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.pricing__header.section-header {
    max-width: 38rem;
    margin-bottom: clamp(1.25rem, 2.5vw, 1.85rem);
}

.pricing__lede {
    max-width: 34rem;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
}

.pricing__payment-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 auto 2rem;
    max-width: 40rem;
    padding: 0.95rem 1.2rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.pricing__payment-icon {
    flex-shrink: 0;
    margin-top: 0.15em;
    color: var(--accent);
    opacity: 0.9;
}

.pricing__payment-text {
    margin: 0;
}

.pricing__single {
    max-width: 580px;
    margin: 0 auto;
}

.price-tier {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.75rem 1.75rem;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-surface);
}

.price-tier--premium {
    border: 2px solid transparent;
    padding: 2.25rem 1.85rem 1.9rem;
    background: transparent;
    box-shadow:
        0 24px 48px -20px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(13, 148, 136, 0.12);
    z-index: 1;
}

.price-tier--premium::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        125deg,
        var(--accent) 0%,
        #f59e0b 22%,
        #8b5cf6 55%,
        #0ea5e9 78%,
        var(--accent) 100%
    );
    background-size: 280% 280%;
    border-radius: 22px;
    z-index: -2;
    animation: pricing-border-shift 8s ease-in-out infinite;
}

.price-tier--premium::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-surface2) 100%);
    z-index: -1;
}

@keyframes pricing-border-shift {
    0%, 100% { background-position: 0% 40%; }
    50% { background-position: 100% 60%; }
}

@media (prefers-reduced-motion: reduce) {
    .price-tier--premium::before {
        animation: none;
        background-position: 30% 40%;
    }
}

.price-tier--premium > * {
    position: relative;
    z-index: 1;
}

.price-tier--premium:hover {
    transform: translateY(-6px);
    box-shadow:
        0 32px 64px -24px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(13, 148, 136, 0.2),
        0 0 72px rgba(13, 148, 136, 0.12);
}

.price-tier__badge-row {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.price-tier__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.price-tier__pill-icon {
    display: block;
    flex-shrink: 0;
}

.price-tier__title {
    text-align: center;
    font-size: clamp(1.35rem, 3vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 1.35rem;
    color: var(--text-primary);
}

.price-tier__price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.15rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(13, 148, 136, 0.06) 100%);
    border: 1px solid rgba(13, 148, 136, 0.22);
}

.price-tier__amount {
    font-size: clamp(3rem, 10vw, 3.75rem);
    font-weight: 800;
    margin: 0;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.04em;
}

.price-tier__price-side {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.35;
}

.price-tier__price-kicker {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.price-tier__price-strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-tier__deal {
    margin-bottom: 1.35rem;
}

.price-tier__deal-lead {
    margin: 0;
    padding: 1.05rem 1.1rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-secondary);
    background: var(--bg-surface2);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.price-tier__features {
    margin: 0 0 1.5rem;
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.price-tier__features li {
    padding: 0.65rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.45;
}

.price-tier__features li:first-child {
    border-top: none;
    padding-top: 0;
}

.price-tier__features li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 0.05em;
}

.price-tier__cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.price-tier__cta-icon {
    flex-shrink: 0;
}

.price-tier__timeline {
    margin-top: 1.5rem;
    padding: 1.1rem 1rem 1rem;
    border-radius: 12px;
    background: var(--bg-canvas);
    border: 1px solid var(--border);
}

.price-tier__timeline-track {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.price-tier__timeline-step {
    flex: 1;
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.price-tier__timeline-phase {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.price-tier__timeline-detail {
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--text-muted);
}

.price-tier__timeline-hint {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
}

.price-tier__timeline-arrow {
    display: flex;
    align-items: center;
    color: var(--border-strong);
    flex-shrink: 0;
    opacity: 0.85;
}

.price-tier__timeline-arrow svg {
    display: block;
}

.price-tier__timeline-foot {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    justify-content: center;
    text-align: center;
}

.price-tier__timeline-foot-icon {
    flex-shrink: 0;
    margin-top: 0.12em;
    color: var(--accent);
    opacity: 0.8;
}

@media (max-width: 520px) {
    .price-tier__timeline-track {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.75rem;
    }

    .price-tier__timeline-arrow {
        display: none;
    }

    .price-tier__timeline-step {
        flex: 1 1 28%;
        min-width: 5.5rem;
    }
}

.pricing-after {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
}

.pricing-after__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.pricing-after__lede {
    margin: 0 auto 1.5rem;
    max-width: 36rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.pricing-after__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

@media (max-width: 600px) {
    .pricing-after__grid {
        grid-template-columns: 1fr;
    }
}

.pricing-after__card {
    padding: 1.35rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pricing-after__card:hover {
    border-color: var(--accent-soft);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.pricing-after__card--free {
    border-color: rgba(13, 148, 136, 0.25);
    background: linear-gradient(165deg, rgba(13, 148, 136, 0.06) 0%, var(--bg-surface) 100%);
}

.pricing-after__card--premium {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(165deg, rgba(254, 243, 199, 0.35) 0%, var(--bg-surface) 100%);
}

.pricing-after__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    color: var(--accent);
    background: var(--accent-soft);
}

.pricing-after__card--premium .pricing-after__icon {
    color: #b45309;
    background: rgba(254, 243, 199, 0.6);
}

.pricing-after__card-title {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-after__card-desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* Legacy grid (if used elsewhere) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Compare (Zamily vs competitors) */
.compare {
    position: relative;
    padding: clamp(4rem, 8vw, 6.5rem) 2rem;
    background: var(--bg-surface);
}
.compare__container {
    max-width: 1100px;
    margin: 0 auto;
}
.compare__header.section-header {
    margin-bottom: 3rem;
}
.compare__lede {
    max-width: 780px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.7;
}
.compare__lede a {
    color: var(--accent, #0d9488);
    text-decoration: underline;
}
.compare__table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    background: var(--bg-surface2);
    border: 1px solid var(--border, rgba(120, 120, 120, 0.18));
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.25);
}
.compare__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 640px;
}
.compare__table thead th {
    padding: 1.25rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border, rgba(120, 120, 120, 0.18));
    background: transparent;
}
.compare__col--us {
    color: #0d9488 !important;
}
.compare__col--them {
    color: var(--text-muted);
}
.compare__table tbody th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    width: 32%;
    vertical-align: top;
}
.compare__table td {
    padding: 1rem 1.25rem;
    vertical-align: top;
    color: var(--text-secondary);
    line-height: 1.55;
}
.compare__table tbody tr {
    border-top: 1px solid var(--border, rgba(120, 120, 120, 0.12));
}
.compare__yes {
    color: var(--text-primary) !important;
    font-weight: 500;
    background: rgba(13, 148, 136, 0.06);
}
.compare__no {
    color: var(--text-primary) !important;
}
.compare__neu {
    color: var(--text-secondary);
}
.compare__footnote {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}
@media (max-width: 640px) {
    .compare__table {
        font-size: 0.88rem;
    }
    .compare__table thead th,
    .compare__table tbody th,
    .compare__table td {
        padding: 0.85rem 0.9rem;
    }
}

/* Mobile: turn the comparison table into a stack of cards instead of horizontal scroll */
@media (max-width: 720px) {
    .compare {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .compare__table-wrap {
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
        border-radius: 0;
    }
    .compare__table,
    .compare__table thead,
    .compare__table tbody,
    .compare__table tr,
    .compare__table th,
    .compare__table td {
        display: block;
        width: auto;
        min-width: 0;
    }
    .compare__table thead {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }
    .compare__table tbody tr {
        background: var(--bg-surface2);
        border: 1px solid var(--border, rgba(120, 120, 120, 0.18));
        border-radius: 14px;
        padding: 0.85rem 1rem 0.35rem;
        margin-bottom: 0.9rem;
        box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.25);
    }
    .compare__table tbody th {
        width: auto;
        padding: 0 0 0.65rem;
        margin: 0 0 0.65rem;
        border-bottom: 1px solid var(--border, rgba(120, 120, 120, 0.12));
        font-size: 0.95rem;
        color: var(--text-primary);
    }
    .compare__table td {
        padding: 0.55rem 0;
        border: 0;
        position: relative;
        padding-left: 6rem;
        font-size: 0.9rem;
        line-height: 1.5;
        background: transparent;
    }
    .compare__table td::before {
        position: absolute;
        left: 0;
        top: 0.6rem;
        font-weight: 600;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        line-height: 1;
    }
    .compare__table td.compare__yes::before {
        content: "Zamily";
        color: #0d9488;
    }
    .compare__table td.compare__neu::before {
        content: "Competitors";
        color: var(--text-muted);
    }
    .compare__table td.compare__no::before {
        content: "Competitors";
        color: var(--text-muted);
    }
    .compare__table td.compare__yes {
        background: rgba(13, 148, 136, 0.08);
        border-radius: 8px;
        padding: 0.7rem 0.75rem 0.7rem 6rem;
        margin: 0.3rem 0;
    }
}

/* Testimonials */
.testimonials {
    position: relative;
    padding: clamp(4rem, 8vw, 6.5rem) 2rem;
    background: var(--bg-surface2);
    overflow: hidden;
}

.testimonials__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 50% at 50% 0%, var(--accent-soft) 0%, transparent 50%),
        radial-gradient(60% 40% at 100% 100%, rgba(254, 243, 199, 0.25) 0%, transparent 45%);
    pointer-events: none;
    opacity: 0.85;
}

[data-theme="dark"] .testimonials__bg {
    opacity: 0.45;
}

.testimonials__container {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
}

.testimonials__header.section-header {
    max-width: 40rem;
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.testimonials__lede {
    max-width: 36rem;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
}

.testimonials__callout {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
    padding: 0.85rem 1.15rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.testimonials__callout-icon {
    flex-shrink: 0;
    margin-top: 0.1em;
    color: var(--accent);
    opacity: 0.85;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

@media (max-width: 960px) {
    .testimonials__grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }
}

.testimonial {
    position: relative;
    border-radius: 18px;
    padding: 1px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    min-width: 0;
}

.testimonial--location {
    background: linear-gradient(145deg, rgba(13, 148, 136, 0.45) 0%, var(--border) 50%, var(--border) 100%);
}

.testimonial--driving {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.35) 0%, var(--border) 45%, var(--border) 100%);
}

.testimonial--calm {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.35) 0%, var(--border) 45%, var(--border) 100%);
}

.testimonial__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border-radius: 17px;
    padding: 1.5rem 1.4rem 1.45rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .testimonial__inner {
    border-color: var(--border);
}

.testimonial:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px -20px rgba(0, 0, 0, 0.18);
}

.testimonial::after {
    content: '“';
    position: absolute;
    top: 0.85rem;
    right: 1.1rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3.25rem;
    line-height: 1;
    color: var(--accent-soft);
    opacity: 0.65;
    pointer-events: none;
}

.testimonial__top {
    margin-bottom: 0.75rem;
}

.testimonial__stars {
    display: flex;
    gap: 0.15rem;
    color: #fbbf24;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    line-height: 1;
}

.testimonial__star {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.testimonial__quote {
    margin: 0 0 1.35rem;
    padding: 0;
    border: none;
    flex: 1;
}

.testimonial__quote p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.68;
}

.testimonial__quote em {
    font-style: italic;
    color: var(--text-primary);
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.testimonial__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    border: 2px solid var(--bg-surface);
    box-shadow: 0 0 0 1px var(--border);
}

.testimonial__avatar--sm {
    background: linear-gradient(145deg, var(--accent-soft) 0%, var(--bg-surface2) 100%);
    color: var(--accent);
}

.testimonial__avatar--dr {
    background: linear-gradient(145deg, rgba(219, 234, 254, 0.9) 0%, var(--bg-surface2) 100%);
    color: #2563eb;
}

.testimonial__avatar--ec {
    background: linear-gradient(145deg, rgba(254, 243, 199, 0.95) 0%, var(--bg-surface2) 100%);
    color: #b45309;
}

.testimonial__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.testimonial__name {
    font-style: normal;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.94rem;
}

.testimonial__role {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Download (limited spots / CTA) */
.download {
    position: relative;
    text-align: center;
    background: var(--bg-surface2);
    padding: clamp(4rem, 8vw, 6.5rem) 2rem;
    overflow: hidden;
}

.download__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70% 50% at 50% 0%, rgba(245, 158, 11, 0.14) 0%, transparent 52%),
        radial-gradient(55% 45% at 0% 100%, rgba(13, 148, 136, 0.1) 0%, transparent 45%),
        radial-gradient(50% 40% at 100% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 42%);
    pointer-events: none;
    opacity: 1;
}

[data-theme="dark"] .download__bg {
    opacity: 0.45;
}

.download__container {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
}

.download__header.section-header {
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.download__lede {
    max-width: 34rem;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.download__payment-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 auto 1.75rem;
    padding: 0.95rem 1.15rem;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
}

.download__payment-icon {
    flex-shrink: 0;
    margin-top: 0.12em;
    color: var(--accent);
    opacity: 0.9;
}

.download__payment-text {
    margin: 0;
}

.download__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.download__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    box-shadow: 0 12px 32px rgba(217, 119, 6, 0.35);
    font-weight: 600;
}

.download__play:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(217, 119, 6, 0.4);
    color: #fff;
}

.download__play:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.download__play-icon {
    flex-shrink: 0;
}

.download__journey {
    margin: 0 auto 1.5rem;
    padding: 1.25rem 1.15rem 1.15rem;
    max-width: 500px;
    text-align: left;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.download__journey-track {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.download__journey-step {
    flex: 1;
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.download__journey-phase {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.download__journey-detail {
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--text-muted);
}

.download__journey-hint {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

.download__journey-arrow {
    display: flex;
    align-items: center;
    color: var(--border-strong);
    opacity: 0.85;
    flex-shrink: 0;
}

.download__journey-arrow svg {
    display: block;
}

.download__journey-note {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.download__journey-fine {
    margin: 0.85rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .download__journey-track {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.65rem;
    }

    .download__journey-arrow {
        display: none;
    }

    .download__journey-step {
        flex: 1 1 28%;
        min-width: 5rem;
    }
}

.download__ios {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.65rem;
    max-width: 100%;
    margin: 0 auto 1rem;
    padding: 0.9rem 1.15rem;
    text-align: left;
    background: var(--bg-canvas);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.download__ios-icon {
    flex-shrink: 0;
    margin-top: 0.1em;
    color: var(--accent);
}

.download__ios-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.download__ios-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.download__ios-link:hover {
    color: var(--accent-hover);
}

.download__trust {
    margin: 2rem auto 0;
    max-width: 28rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    text-align: left;
}

.download__trust-icon {
    flex-shrink: 0;
    margin-top: 0.1em;
    color: #f59e0b;
}

@media (max-width: 480px) {
    .download__trust {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .download__trust-icon {
        margin-top: 0;
    }
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, var(--bg-surface2) 0%, var(--bg-canvas) 100%);
    padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2rem) 0;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent) 20%,
        var(--accent) 80%,
        transparent 100%);
    opacity: 0.45;
}

.site-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: clamp(1.75rem, 4vw, 3rem);
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.site-footer__brand {
    padding-right: 0.5rem;
}

.site-footer__logo-wrap {
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer__logo-wrap:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.site-footer__tagline {
    max-width: 22rem;
    margin-top: 1.1rem;
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.site-footer__tagline strong {
    color: var(--text-primary);
    font-weight: 700;
}

.store-badge-btn,
.site-footer__store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.65rem 1.1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px -4px rgba(217, 119, 6, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.store-badge-btn:hover,
.site-footer__store-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 8px 22px -6px rgba(217, 119, 6, 0.55);
    transform: translateY(-1px);
}

.store-badge-btn::after,
.site-footer__store-btn::after {
    display: none;
}

.site-footer__logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.site-footer__col h3 {
    color: var(--text-primary);
    margin: 0 0 1.1rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.site-footer__col > ul:first-of-type {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.94rem;
}

.site-footer__col > ul:first-of-type a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.site-footer__col > ul:first-of-type a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transition: width 0.25s ease;
}

.site-footer__col > ul:first-of-type a:hover {
    color: var(--accent);
}

.site-footer__col > ul:first-of-type a:hover::after {
    width: 100%;
}

.site-footer__contacts-label {
    margin: 1.35rem 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.site-footer__contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.88rem;
}

.site-footer__contacts li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.site-footer__contacts a {
    color: var(--accent);
    font-weight: 600;
    word-break: break-all;
}

.site-footer__contacts a::after {
    display: none;
}

.site-footer__contacts a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer__contact-role {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.site-footer__company {
    text-align: center;
    padding: 1.35rem 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.site-footer__company strong {
    color: var(--text-secondary);
    font-weight: 700;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.5rem 0 0.25rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.site-footer__copy {
    margin: 0;
    line-height: 1.5;
}

.site-footer__mini {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
}

.site-footer__mini a {
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-footer__mini a:hover {
    color: var(--accent);
}

.site-footer__mini a::after {
    display: none;
}

.site-footer__sep {
    color: var(--border-strong);
    user-select: none;
}

@media (max-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }

    .site-footer__tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .site-footer__store-btn {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .site-footer__col > ul:first-of-type a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .site-footer__col > ul:first-of-type a:hover::after {
        width: min(100%, 140px);
    }

    .site-footer__contacts li {
        justify-content: center;
        flex-direction: column;
        gap: 0.15rem;
    }

    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .site-footer__mini {
        justify-content: center;
    }
}

/* Page Content (Inner Pages) */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.page-content h1 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.page-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.page-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-content a:hover {
    color: var(--accent-hover);
}

/* Links styled as buttons must not inherit .page-content a (accent + underline). */
.page-content a.button {
    text-decoration: none;
}

.page-content a.button--primary {
    color: #ffffff;
}

.page-content a.button--primary:hover {
    color: #ffffff;
}

.page-content a.button--outline {
    color: var(--text-primary);
}

.page-content a.button--outline:hover {
    color: var(--accent);
}

.page-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.page-content ul li {
    margin-bottom: 0.5rem;
}

/* Page-content modifiers */
.page-content--centered {
    text-align: center;
    max-width: 600px;
}

.page-content--narrow {
    max-width: 600px;
}

/* Tables inside page-content */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.page-content table th,
.page-content table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid var(--border);
}

.page-content table thead tr {
    background: var(--bg-surface2);
}

.page-content table th {
    font-weight: 700;
    color: var(--text-primary);
}

@media (max-width: 640px) {
    .page-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Policy / legal page callouts */
.policy-callout {
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.policy-callout h2,
.policy-callout h3 {
    margin-top: 0;
}

.policy-callout p:last-child {
    margin-bottom: 0;
}

.policy-callout--green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-left: 4px solid #10b981;
}

.policy-callout--green h2,
.policy-callout--green h3 {
    color: #059669;
}

[data-theme="dark"] .policy-callout--green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.08) 100%);
    border-left-color: #34d399;
}

[data-theme="dark"] .policy-callout--green h2,
[data-theme="dark"] .policy-callout--green h3 {
    color: #34d399;
}

.policy-callout--amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-left: 4px solid #f59e0b;
}

.policy-callout--amber h3 {
    color: #d97706;
}

[data-theme="dark"] .policy-callout--amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 100%);
    border-left-color: #fbbf24;
}

[data-theme="dark"] .policy-callout--amber h3 {
    color: #fbbf24;
}

/* Policy card grid */
.policy-cards {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.policy-card {
    background: var(--bg-surface);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.policy-card h3 {
    margin-top: 0;
    color: var(--accent);
}

.policy-card p:last-child {
    margin-bottom: 0;
}

/* Info box (contact info, encryption, etc.) */
.info-box {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 1rem 0;
}

.info-box p:first-child {
    margin-top: 0;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box ul {
    margin: 0;
}

/* Legal page footer disclaimer */
.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.legal-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Pill color variants for legal pages */
.pill--green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.pill__icon {
    vertical-align: middle;
    margin-right: 6px;
}

/* Alert component (unsubscribe + general) */
.alert {
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.alert--success {
    background: color-mix(in srgb, #d1fae5 85%, var(--bg-surface));
    border: 1px solid #10b981;
}

.alert--error {
    background: color-mix(in srgb, #fee2e2 88%, var(--bg-surface));
    border: 1px solid #ef4444;
}

[data-theme="dark"] .alert--success {
    background: rgba(6, 95, 70, 0.35);
    border-color: #34d399;
}

[data-theme="dark"] .alert--error {
    background: rgba(127, 29, 29, 0.4);
    border-color: #f87171;
}

.alert__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.alert__icon--success {
    background: #10b981;
}

.alert__icon--error {
    background: #ef4444;
}

[data-theme="dark"] .alert__icon--success {
    background: #34d399;
}

[data-theme="dark"] .alert__icon--error {
    background: #f87171;
}

.alert__title {
    margin-bottom: 0.5rem;
}

.alert__text--success {
    color: #065f46;
    margin: 0;
}

.alert__text--error {
    color: #991b1b;
    margin: 0;
}

[data-theme="dark"] .alert__text--success {
    color: #a7f3d0;
}

[data-theme="dark"] .alert__text--error {
    color: #fecaca;
}

/* Unsubscribe form */
.unsub-form {
    max-width: 400px;
    margin: 0 auto;
}

.unsub-actions {
    margin-top: 3rem;
}

/* Full-width button modifier */
.button--full {
    width: 100%;
}

/* Utility: muted text */
.text-muted {
    color: var(--text-muted);
}

.text-muted a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.text-muted a:hover {
    color: var(--accent-hover);
}

.form-hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-privacy-line {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1.5rem 0 0;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    background: var(--bg-surface2);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.form-privacy-line svg {
    flex-shrink: 0;
    margin-top: 0.1em;
    color: var(--accent);
    opacity: 0.85;
}

.form-input.form-input--invalid,
.form-textarea.form-input--invalid {
    border-color: #ef4444;
}

[data-theme="dark"] .form-input.form-input--invalid,
[data-theme="dark"] .form-textarea.form-input--invalid {
    border-color: #f87171;
}

/* Form feedback (support + contact) */
.form-feedback {
    padding: 1.15rem 1.2rem;
    border-radius: 12px;
    margin: 0 0 1.75rem;
    border: 1px solid transparent;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-feedback__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-feedback__icon {
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.form-feedback__body strong {
    display: block;
    margin-bottom: 0.25rem;
}

.form-feedback__message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-feedback.success {
    background: color-mix(in srgb, #d1fae5 85%, var(--bg-surface));
    border-color: #10b981;
    color: #065f46;
}

.form-feedback.error {
    background: color-mix(in srgb, #fee2e2 88%, var(--bg-surface));
    border-color: #ef4444;
    color: #991b1b;
}

[data-theme="dark"] .form-feedback.success {
    background: rgba(6, 95, 70, 0.35);
    border-color: #34d399;
    color: #a7f3d0;
}

[data-theme="dark"] .form-feedback.error {
    background: rgba(127, 29, 29, 0.4);
    border-color: #f87171;
    color: #fecaca;
}

/* 404 Page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.error-page__content {
    max-width: 500px;
}

.error-page__code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-page h1 {
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.error-page__actions .button svg {
    vertical-align: middle;
    margin-right: 0.5rem;
}

.error-page__hint {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.error-page__hint a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.error-page__hint a:hover {
    color: var(--accent-hover);
}

.error-page__suggestions {
    margin-top: 2.5rem;
    text-align: left;
    display: inline-block;
}

.error-page__suggestions h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.error-page__suggestions ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.error-page__suggestions a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.error-page__suggestions a:hover {
    color: var(--accent-hover);
}

.error-page__visual {
    margin-top: 3rem;
}

@media (max-width: 640px) {
    .error-page {
        flex-direction: column;
    }

    .error-page__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
    max-width: 600px;
    width: calc(100% - 2rem);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.cookie-consent.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cookie-consent p {
    flex-grow: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-consent a {
    color: var(--accent);
    text-decoration: underline;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-surface2) 0%,
        var(--bg-surface) 50%,
        var(--bg-surface2) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Page Load Animation — kept brief so content is immediately readable */
.page-wrapper {
    opacity: 0;
    animation: page-fade-in 0.25s ease-out forwards;
}

@keyframes page-fade-in {
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .page-wrapper {
        opacity: 1;
        animation: none;
    }
}

/* Noise texture for dark mode */
[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* Selection color */
::selection {
    background: var(--accent-soft);
    color: var(--accent);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface2);
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--border-strong);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Text Reveal Animation — snappier (was 0.8s, felt sluggish) */
.text-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.text-reveal.text-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .text-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Split text animation ready state */
.split-line {
    overflow: hidden;
    display: block;
}

.split-line-inner {
    display: block;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.split-line.revealed .split-line-inner {
    transform: translateY(0);
}

/* Feature card enhanced hover state */
.feature-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Glass morphism enhancement */
.glass-morphism {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glow effect for important elements */
.glow-accent {
    box-shadow: 0 0 40px var(--accent-glow);
}

/* Gradient border animation */
@keyframes border-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-border {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius);
    z-index: 1;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, var(--accent), #f59e0b, #8b5cf6, var(--accent));
    background-size: 300% 300%;
    border-radius: calc(var(--radius) + 2px);
    z-index: -1;
    animation: border-gradient 4s ease infinite;
}

/* Floating animation variants */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* Pulse ring animation */
.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Shimmer loading effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer-sweep 2s infinite;
}

@keyframes shimmer-sweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

[data-theme="dark"] .shimmer::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}

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

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .theme-toggle,
    .button,
    .cookie-consent {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        opacity: 0.7;
    }
}

/* Responsive */
@media (max-width: 640px) {
    section:not(.hero--home) { padding: 4rem 1.25rem; }
    .hero.hero--home {
        padding-top: 5.25rem;
        padding-bottom: 3rem;
    }
    
    .button--store,
    .download__play {
        width: 100%;
        justify-content: center;
    }
    
    .download__actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .screenshots__layout {
        gap: 2rem;
        margin-top: 2.25rem;
    }

    .screenshots-device__frame {
        width: 240px;
        height: 490px;
        border-radius: 36px;
    }

    .screenshots-nav__btn {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .screenshots-nav__thumb {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }
}

/* Screenshots Section */
.screenshots {
    position: relative;
    padding: clamp(4rem, 8vw, 6.5rem) 2rem;
    background: var(--bg-canvas);
    overflow: hidden;
}

.screenshots__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(90% 60% at 15% 20%, var(--accent-soft) 0%, transparent 55%),
        radial-gradient(70% 50% at 90% 80%, rgba(254, 243, 199, 0.35) 0%, transparent 45%);
    pointer-events: none;
    opacity: 0.9;
}

[data-theme="dark"] .screenshots__bg {
    opacity: 0.55;
}

.screenshots__container {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
}

.screenshots__header.section-header {
    max-width: 42rem;
    margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.screenshots__lede {
    max-width: 38rem;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
}

.screenshots__layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.screenshots__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    justify-self: center;
}

.screenshots-device {
    position: relative;
}

.screenshots-device__frame {
    position: relative;
    width: 288px;
    height: 584px;
    background: linear-gradient(165deg, var(--bg-surface) 0%, var(--bg-surface2) 100%);
    border-radius: 42px;
    padding: 12px;
    box-shadow:
        0 0 0 1px var(--border),
        0 0 0 4px rgba(0, 0, 0, 0.04),
        0 32px 64px -24px rgba(0, 0, 0, 0.28),
        0 16px 32px -16px rgba(0, 0, 0, 0.12);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.screenshots-device__frame:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px var(--accent-soft),
        0 0 0 4px var(--accent-soft),
        0 40px 80px -28px rgba(13, 148, 136, 0.25),
        0 20px 40px -16px rgba(0, 0, 0, 0.15);
}

.screenshots-device__notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 112px;
    height: 26px;
    background: var(--bg-surface);
    border-radius: 0 0 18px 18px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.screenshots-device__screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-surface2);
    border-radius: 32px;
    overflow: hidden;
}

.screenshot-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.screenshot-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Real phone screenshots (replace the placeholder divs) */
.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: var(--bg-surface2);
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
}

.screenshot-placeholder__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1.5rem 1rem;
    text-align: center;
}

.screenshot-placeholder__icon {
    color: var(--text-muted);
    opacity: 0.55;
    margin-bottom: 0.75rem;
}

.screenshot-placeholder__mock {
    position: absolute;
    inset: 12% 10% auto 10%;
    height: 38%;
    border-radius: 12px;
    opacity: 0.35;
    pointer-events: none;
}

.screenshot-placeholder__mock--map {
    background: linear-gradient(180deg, rgba(13, 148, 136, 0.35) 0%, rgba(13, 148, 136, 0.08) 100%);
    border: 1px solid rgba(13, 148, 136, 0.25);
}

.screenshot-placeholder__mock--family {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(254, 243, 199, 0.35) 100%);
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.screenshot-placeholder__mock--trips {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(219, 234, 254, 0.45) 100%);
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.screenshot-placeholder__mock--sos {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(254, 215, 170, 0.4) 100%);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.screenshot-placeholder__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.screenshot-placeholder__hint {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.screenshot-placeholder--map {
    background: linear-gradient(165deg, var(--accent-soft) 0%, var(--bg-surface2) 55%, var(--bg-surface2) 100%);
}

.screenshot-placeholder--family {
    background: linear-gradient(165deg, rgba(254, 243, 199, 0.65) 0%, var(--bg-surface2) 55%, var(--bg-surface2) 100%);
}

.screenshot-placeholder--trips {
    background: linear-gradient(165deg, rgba(219, 234, 254, 0.7) 0%, var(--bg-surface2) 55%, var(--bg-surface2) 100%);
}

.screenshot-placeholder--sos {
    background: linear-gradient(165deg, rgba(254, 215, 170, 0.45) 0%, var(--bg-surface2) 55%, var(--bg-surface2) 100%);
}

.screenshots__dots {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.screenshots__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--border-strong);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, width 0.25s ease;
}

.screenshots__dot:hover {
    background: var(--text-muted);
}

.screenshots__dot.active {
    width: 22px;
    border-radius: 999px;
    background: var(--accent);
}

.screenshots-nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.screenshots-nav__btn {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 1rem 1.1rem;
    text-align: left;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.screenshots-nav__btn:hover {
    border-color: var(--accent-soft);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.screenshots-nav__btn.active {
    border-color: rgba(13, 148, 136, 0.45);
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-surface) 100%);
    box-shadow: 0 10px 28px rgba(13, 148, 136, 0.12);
}

.screenshots-nav__thumb {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background-size: cover;
    background-position: center;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.screenshots-nav__btn.active .screenshots-nav__thumb {
    border-color: var(--accent);
    transform: scale(1.02);
}

.screenshots-nav__thumb--map {
    background: linear-gradient(145deg, var(--accent-soft) 0%, var(--bg-surface2) 100%);
}

.screenshots-nav__thumb--family {
    background: linear-gradient(145deg, rgba(254, 243, 199, 0.9) 0%, var(--bg-surface2) 100%);
}

.screenshots-nav__thumb--trips {
    background: linear-gradient(145deg, rgba(219, 234, 254, 0.95) 0%, var(--bg-surface2) 100%);
}

.screenshots-nav__thumb--sos {
    background: linear-gradient(145deg, rgba(254, 215, 170, 0.75) 0%, var(--bg-surface2) 100%);
}

.screenshots-nav__text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.screenshots-nav__kicker {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--accent);
}

.screenshots-nav__btn:nth-child(2) .screenshots-nav__kicker,
.screenshots-nav__btn:nth-child(4) .screenshots-nav__kicker {
    color: var(--text-muted);
}

.screenshots-nav__btn.active .screenshots-nav__kicker {
    color: var(--accent);
}

.screenshots-nav__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.screenshots-nav__desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.screenshots__note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    max-width: 36rem;
    margin: 2.5rem auto 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}

.screenshots__note-icon {
    flex-shrink: 0;
    margin-top: 0.15em;
    opacity: 0.75;
}

@media (max-width: 900px) {
    .screenshots__layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .screenshots__visual {
        order: -1;
    }

    .screenshots-nav {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .screenshots__dots {
        display: flex;
    }
}

@media (max-width: 480px) {
    .screenshots-nav__btn {
        flex-wrap: wrap;
        padding: 0.9rem 0.95rem;
    }

    .screenshots-nav__thumb {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
}

/* iOS Notification Modal */
.ios-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ios-modal.active {
    opacity: 1;
    visibility: visible;
}

.ios-modal__content {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.ios-modal.active .ios-modal__content {
    transform: scale(1) translateY(0);
}

.ios-modal__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ios-modal__header svg {
    color: var(--accent);
}

.ios-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
    transition: var(--transition-fast);
}

.ios-modal__close:hover {
    color: var(--text-primary);
}

/* Scroll Reveal Animation — snappier (was 0.6s, felt sluggish) */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect user preference: no motion = no reveal staging */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Form Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.form-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-checkbox span {
    line-height: 1.5;
}

/* 404 Page Lost Map Animation */
.lost-map {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.map-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--border-strong) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-strong) 1px, transparent 1px);
    background-size: 40px 40px;
    border-radius: var(--radius);
    opacity: 0.5;
}

.lost-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent);
    animation: bounce 2s ease-in-out infinite;
}

.lost-marker svg {
    filter: drop-shadow(0 4px 6px var(--accent-glow));
}

.lost-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: var(--accent-soft);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s ease-out infinite;
}

.lost-question {
    position: absolute;
    top: 30%;
    right: 25%;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
    animation: fade-in-out 3s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes fade-in-out {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* Spin animation for loading states */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Admin page styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.admin-stat-card h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--bg-surface2);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background: var(--bg-surface2);
}

.admin-table td {
    color: var(--text-primary);
}

.admin-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.admin-badge.ios {
    background: #dbeafe;
    color: #1e40af;
}

.admin-badge.android {
    background: #d1fae5;
    color: #065f46;
}

.admin-badge.newsletter {
    background: #fef3c7;
    color: #92400e;
}

.admin-login {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.admin-login h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.admin-login input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--bg-surface2);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.admin-login button {
    width: 100%;
}
