/* ============================================
   RestReward — Consumer App Landing
   Restful teal / slate palette (matches the app)
   ============================================ */

:root {
    --purple-900: #041c2c;
    --purple-800: #082d44;
    --purple-700: #0c3e5c;
    --purple-600: #145374;
    --purple-500: #1e6e94;
    --purple-400: #2e86ab;
    --purple-300: #5ba3c4;
    --purple-200: #8ec4db;
    --purple-100: #c4e2f0;

    --yellow-500: #f5c518;
    --yellow-400: #ffd233;
    --yellow-300: #ffe066;
    --yellow-200: #ffec99;
    --yellow-100: #fff8d6;

    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #5a9070;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --nav-height: 72px;

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

/* ---- DARK THEME (default) ---- */
[data-theme="dark"], :root {
    /* Aligned to the mobile app's restful theme (src/theme.ts): soft slate-navy
       base, dimmed off-white text, soft sky-teal accent (off the old gold). */
    --bg-primary: #0f1a22;
    --bg-secondary: #18262f;
    --bg-tertiary: #22323c;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.08);

    --text-primary: #e6edf1;
    --text-secondary: rgba(230,237,241,0.7);
    --text-muted: rgba(230,237,241,0.56);

    --border: rgba(255,255,255,0.10);
    --border-subtle: rgba(255,255,255,0.07);
    --border-light: rgba(255,255,255,0.14);
    --border-accent: rgba(124,192,207,0.22);
    --border-accent-hover: rgba(124,192,207,0.34);

    --accent: #7cc0cf;
    --accent-text: #93cdd9;
    --accent-dim: rgba(124,192,207,0.10);
    --accent-glow: rgba(124,192,207,0.25);
    --accent-bg: rgba(124,192,207,0.10);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 60px rgba(124,192,207,0.18);

    --nav-bg: rgba(15,26,34,0.8);
    --nav-bg-scrolled: rgba(15,26,34,0.95);

    --selection-bg: #7cc0cf;
    --selection-fg: #0a141a;

    --grid-line: rgba(255,255,255,0.04);
    --glow-1: rgba(124,192,207,0.12);
    --glow-2: rgba(124,192,207,0.16);

    --form-input-bg: rgba(255,255,255,0.08);
    --form-input-border: rgba(255,255,255,0.15);

    --mobile-menu-bg: rgba(15,26,34,0.98);
    --phone-bg: #0a141a;
    --phone-screen-bg: #0f1a22;
}

/* ---- LIGHT THEME ---- */
[data-theme="light"] {
    --bg-primary: #f0f7fc;
    --bg-secondary: #e4eff7;
    --bg-tertiary: #d4e4f0;
    --bg-card: rgba(20,83,116,0.04);
    --bg-card-hover: rgba(20,83,116,0.08);

    --text-primary: #041c2c;
    --text-secondary: rgba(4,28,44,0.7);
    --text-muted: rgba(4,28,44,0.5);

    --border: rgba(20,83,116,0.15);
    --border-subtle: rgba(20,83,116,0.08);
    --border-light: rgba(20,83,116,0.15);
    --border-accent: rgba(20,83,116,0.2);
    --border-accent-hover: rgba(20,83,116,0.35);

    --accent: var(--purple-600);
    --accent-text: var(--purple-500);
    --accent-dim: rgba(20,83,116,0.08);
    --accent-glow: rgba(20,83,116,0.2);
    --accent-bg: rgba(20,83,116,0.08);

    --shadow-sm: 0 2px 8px rgba(20,83,116,0.08);
    --shadow-md: 0 4px 24px rgba(20,83,116,0.1);
    --shadow-lg: 0 8px 48px rgba(20,83,116,0.12);
    --shadow-glow: 0 0 60px rgba(20,83,116,0.15);

    --nav-bg: rgba(240,247,252,0.85);
    --nav-bg-scrolled: rgba(240,247,252,0.97);

    --selection-bg: var(--purple-600);
    --selection-fg: #ffffff;

    --grid-line: rgba(20,83,116,0.06);
    --glow-1: rgba(20,83,116,0.1);
    --glow-2: rgba(46,134,171,0.08);

    --form-input-bg: rgba(20,83,116,0.04);
    --form-input-border: rgba(20,83,116,0.15);

    --mobile-menu-bg: rgba(240,247,252,0.98);
    --phone-bg: #ffffff;
    --phone-screen-bg: #f0f7fc;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; transition: background 0.4s ease, color 0.4s ease; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--selection-bg); color: var(--selection-fg); }

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text { color: var(--accent); }
.reg-symbol { font-weight: 400; font-size: 0.4em; vertical-align: super; }
.reg-symbol-sm { font-weight: 400; font-size: 0.7em; vertical-align: super; }
.animate-in { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; font-size: 13px; letter-spacing: 0.01em;
    padding: 9px 18px; border-radius: var(--radius-sm);
    transition: var(--transition); white-space: nowrap;
}
.btn-primary {
    background: var(--yellow-500); color: var(--purple-900);
    box-shadow: 0 1px 4px var(--accent-glow);
    border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { background: var(--yellow-400); box-shadow: 0 2px 8px var(--accent-glow); transform: translateY(-1px); }
.btn-ghost {
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--border-light); }
.btn-lg { padding: 12px 24px; font-size: 14px; border-radius: var(--radius-sm); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* App store buttons */
.app-store-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px; border-radius: 12px;
    background: var(--bg-card); color: var(--text-primary);
    border: 1px solid var(--border);
    transition: var(--transition);
    min-width: 180px;
}
.app-store-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.app-store-btn-icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--text-primary); }
.app-store-btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.app-store-btn-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.app-store-btn-name { font-size: 16px; font-weight: 700; }

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}
.nav.scrolled { background: var(--nav-bg-scrolled); border-bottom-color: var(--border-light); }
.nav-container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100%; width: 100%; padding: 0 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.nav-logo-icon { width: 40px; height: auto; color: var(--accent); }
.nav-logo-text { color: var(--text-primary); }
.nav-logo-text-accent { color: var(--accent); }
.nav-links { display: flex; gap: 4px; justify-content: center; }
.nav-link { padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--text-muted); border-radius: var(--radius-sm); transition: var(--transition); }
.nav-link:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.nav-link.active { color: var(--text-primary); }

.nav-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 24px; margin-left: auto; }
.nav-toggle span { display: block; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* Theme Toggle */
.theme-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    color: var(--accent); cursor: pointer; transition: var(--transition);
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--bg-card-hover); border-color: var(--border-accent);
    transform: rotate(15deg);
}
.theme-toggle svg { width: 20px; height: 20px; transition: var(--transition); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 900px) {
    .nav-container { display: flex; justify-content: space-between; }
    .nav-logo-icon { width: 44px; height: 32px; }
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open, .nav-actions.open {
        display: flex; flex-direction: column;
        position: absolute; top: var(--nav-height); left: 0; right: 0;
        background: var(--mobile-menu-bg);
        backdrop-filter: blur(24px);
        padding: 16px 24px; gap: 4px;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-actions.open { top: calc(var(--nav-height) + 180px); padding-bottom: 24px; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    padding: calc(var(--nav-height) + 60px) 0 80px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.hero-bg-glow {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 30%, var(--glow-2), transparent 60%),
        radial-gradient(ellipse 50% 35% at 80% 70%, var(--glow-1), transparent 60%);
}

/* ============================================
   Serene background scene — rest & calm
   Six layers: ambient gradient, drifting aurora,
   stars, moon/sun, breathing pulse, horizon glow
   ============================================ */
.hero-bg-scene {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.hero-bg-scene::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 100% 70% at 50% 110%, var(--purple-800) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    opacity: 1;
}
[data-theme="light"] .hero-bg-scene::before {
    background:
        radial-gradient(ellipse 100% 70% at 50% 110%, rgba(255, 220, 160, 0.25) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Drifting aurora — cool moonlight in dark, warm dawn in light */
.hero-aurora {
    position: absolute; inset: -10% -10%;
    background:
        radial-gradient(ellipse 50% 30% at 25% 35%, rgba(180,200,235,0.28), transparent 55%),
        radial-gradient(ellipse 45% 25% at 75% 55%, rgba(200,215,240,0.20), transparent 60%),
        radial-gradient(ellipse 40% 20% at 50% 25%, rgba(220,225,245,0.18), transparent 65%);
    filter: blur(36px);
    animation: aurora-drift 28s ease-in-out infinite;
    will-change: transform, opacity;
}
[data-theme="light"] .hero-aurora {
    background:
        radial-gradient(ellipse 55% 30% at 25% 35%, rgba(255, 200, 100, 0.35), transparent 55%),
        radial-gradient(ellipse 50% 28% at 75% 55%, rgba(255, 180, 120, 0.28), transparent 60%),
        radial-gradient(ellipse 45% 22% at 50% 25%, rgba(200, 220, 255, 0.4), transparent 65%);
    opacity: 0.8;
}
@keyframes aurora-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
    50% { transform: translate3d(30px, -16px, 0) scale(1.06); opacity: 1; }
}

/* Twinkling stars (dark theme only)
   3 layered groups, each with its own duration & offset, so individual
   stars twinkle independently instead of pulsing in unison. */
.hero-stars { position: absolute; inset: 0; pointer-events: none; }
.hero-stars,
.hero-stars::before,
.hero-stars::after {
    background-repeat: no-repeat;
}
.hero-stars {
    background-image:
        radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,1), transparent 60%),
        radial-gradient(1.5px 1.5px at 41% 14%, rgba(255,255,255,0.95), transparent 60%),
        radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,0.9), transparent 60%),
        radial-gradient(1px 1px at 33% 42%, rgba(255,255,255,0.75), transparent 60%),
        radial-gradient(1px 1px at 67% 47%, rgba(255,255,255,0.9), transparent 60%),
        radial-gradient(2px 2px at 47% 32%, rgba(255,255,255,1), transparent 55%);
    animation: star-twinkle 3.5s ease-in-out infinite;
}
.hero-stars::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(1px 1px at 25% 9%, rgba(255,255,255,0.85), transparent 60%),
        radial-gradient(1px 1px at 60% 22%, rgba(255,255,255,0.8), transparent 60%),
        radial-gradient(1.5px 1.5px at 18% 50%, rgba(255,255,255,0.7), transparent 60%),
        radial-gradient(1px 1px at 92% 6%, rgba(255,255,255,0.85), transparent 60%),
        radial-gradient(1px 1px at 52% 8%, rgba(255,255,255,0.95), transparent 60%),
        radial-gradient(1.5px 1.5px at 7% 35%, rgba(255,255,255,0.9), transparent 60%);
    animation: star-twinkle 5s ease-in-out -1.7s infinite;
}
.hero-stars::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(1px 1px at 88% 28%, rgba(255,255,255,0.7), transparent 60%),
        radial-gradient(1px 1px at 95% 40%, rgba(255,255,255,0.65), transparent 60%),
        radial-gradient(1px 1px at 4% 22%, rgba(255,255,255,0.8), transparent 60%),
        radial-gradient(1.2px 1.2px at 22% 60%, rgba(255,255,255,0.75), transparent 60%),
        radial-gradient(1px 1px at 73% 33%, rgba(255,255,255,0.85), transparent 60%),
        radial-gradient(1.3px 1.3px at 58% 55%, rgba(255,255,255,0.8), transparent 60%);
    animation: star-twinkle 7s ease-in-out -3.2s infinite;
}
@keyframes star-twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}
[data-theme="light"] .hero-stars,
[data-theme="light"] .hero-stars::before,
[data-theme="light"] .hero-stars::after { display: none; }

/* Moon (dark, cool-white) / sun (light, warm gold) */
.hero-moon {
    position: absolute;
    top: 18%; right: 14%;
    width: 130px; height: 130px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.98), rgba(220, 230, 248, 0.55) 55%, transparent 80%);
    box-shadow:
        0 0 60px rgba(220, 232, 250, 0.45),
        0 0 140px rgba(200, 220, 245, 0.22),
        inset -8px -10px 24px rgba(60, 75, 110, 0.22);
    opacity: 0.95;
    animation: moon-breathe 9s ease-in-out infinite;
}
[data-theme="light"] .hero-moon {
    background: radial-gradient(circle at 35% 35%, rgba(255, 240, 180, 1), rgba(255, 195, 90, 0.7) 55%, transparent 85%);
    box-shadow:
        0 0 70px rgba(255, 180, 80, 0.5),
        0 0 180px rgba(255, 180, 80, 0.25);
    opacity: 1;
}
@keyframes moon-breathe {
    0%, 100% { transform: scale(1); opacity: 0.92; }
    50% { transform: scale(1.04); opacity: 1; }
}

/* Slow breathing pulse — calm-breath cadence (~6/min) */
.hero-pulse {
    position: absolute;
    bottom: -35%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    animation: pulse-breath 10s ease-in-out infinite;
    will-change: transform, opacity;
}
@keyframes pulse-breath {
    0%, 100% { transform: translateX(-50%) scale(0.82); opacity: 0.35; }
    50% { transform: translateX(-50%) scale(1.08); opacity: 0.75; }
}

/* Soft horizon line at the base of the hero */
.hero-horizon {
    position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
    pointer-events: none;
}

/* Distant mountain / wave silhouette */
.hero-horizon-line {
    position: absolute; left: 0; right: 0; bottom: 14%;
    width: 100%;
    height: 100px;
    display: block;
    pointer-events: none;
    opacity: 0.25;
}
[data-theme="light"] .hero-horizon-line { opacity: 0.18; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-aurora, .hero-moon, .hero-pulse, .phone,
    .hero-stars, .hero-stars::before, .hero-stars::after,
    .sub-hero-stars, .sub-hero-stars::before, .sub-hero-stars::after { animation: none !important; }
}
.hero-container {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    flex: 1;
}
.hero-content { text-align: left; }
/* Hero right column */
.hero-right {
    display: flex; flex-direction: column; align-items: center;
}

/* Hero mode toggle */
.hero-mode-toggle {
    display: inline-flex; position: relative;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 100px; padding: 3px; margin-bottom: 20px;
}
.hero-mode-btn {
    position: relative; z-index: 1;
    padding: 8px 28px; border-radius: 100px;
    font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
    color: var(--text-muted);
    background: none; border: none; cursor: pointer;
    transition: color 0.3s ease;
}
.hero-mode-btn--active { color: var(--bg-primary); }
.hero-mode-slider {
    position: absolute; top: 3px; left: 3px;
    width: calc(50% - 3px); height: calc(100% - 6px);
    background: var(--accent); border-radius: 100px;
    transition: transform 0.3s ease;
}
.hero-mode-toggle[data-active="earn"] .hero-mode-slider {
    transform: translateX(100%);
}
.hero-copy {
    display: none;
    animation: heroCopyFade 0.4s ease;
}
.hero-copy--active { display: block; }
@keyframes heroCopyFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Hero search (Book mode) */
.hero-search-wrap {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; align-self: center;
    width: 100%;
    animation: heroCopyFade 0.4s ease;
}
.hero-search-card {
    width: 100%; max-width: 520px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px; padding: 28px;
    box-shadow: var(--shadow-lg);
}
.hero-search-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
}
.hero-search-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--accent-bg); border: 1px solid var(--border-accent);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); flex-shrink: 0;
}
.hero-search-resty { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.hero-search-sub { font-size: 12px; color: var(--text-muted); }

.hero-search-input-wrap {
    position: relative; margin-bottom: 14px;
}
.hero-search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted);
}
.hero-search-input {
    width: 100%; padding: 14px 40px 14px 42px;
    background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    border-radius: 14px; font-size: 15px; font-weight: 500;
    color: var(--text-primary); font-family: var(--font-sans);
    outline: none; transition: var(--transition);
}
.hero-search-input:focus { border-color: var(--border-accent); }
.hero-search-clear {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; padding: 2px; display: flex;
}
.hero-search-clear:hover { color: var(--text-primary); }
.hero-search-empty {
    text-align: center; padding: 18px 10px;
    font-size: 12px; color: var(--text-muted);
}

/* Search filters */
.hero-search-filters { margin-bottom: 14px; }
.hero-filter-toggle {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 100px;
    font-size: 12px; font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    cursor: pointer; transition: var(--transition);
    margin-bottom: 10px;
}
.hero-filter-toggle:hover { color: var(--text-primary); border-color: var(--border-accent); }
.hero-filter-toggle[aria-expanded="true"] { color: var(--accent); border-color: var(--border-accent); }
.hero-filter-toggle[aria-expanded="true"] .hero-filter-caret { transform: rotate(180deg); }
.hero-filter-caret { transition: transform 0.2s ease; }
.hero-filter-panel {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px; border-radius: 14px;
    background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    animation: heroCopyFade 0.25s ease;
}
.hero-filter-row { display: flex; gap: 12px; }
.hero-filter-group { flex: 1; }
.hero-filter-label {
    display: flex; align-items: center; gap: 4px;
    font-size: 10px; font-weight: 600; color: var(--text-muted);
    margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em;
}
.hero-filter-range { display: flex; align-items: center; gap: 4px; }
.hero-filter-sep { font-size: 11px; color: var(--text-muted); }
.hero-filter-input {
    width: 100%; padding: 7px 8px;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 8px; font-size: 12px; font-weight: 600;
    color: var(--text-primary); font-family: var(--font-sans);
    outline: none; transition: var(--transition);
    -moz-appearance: textfield;
}
.hero-filter-input::-webkit-inner-spin-button,
.hero-filter-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.hero-filter-input:focus { border-color: var(--border-accent); }
.hero-filter-input--full { width: 100%; }
@media (max-width: 500px) {
    .hero-filter-row { flex-direction: column; gap: 10px; }
}

.hero-search-results { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.hero-search-result {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border-radius: 14px;
    background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    cursor: pointer; transition: var(--transition);
}
.hero-search-result:hover { border-color: var(--border-accent); }
.hero-search-result-score {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 900; flex-shrink: 0;
}
.hero-search-result-score--great { background: rgba(46,213,115,0.12); color: #2ed573; }
.hero-search-result-score--good { background: rgba(var(--accent-rgb, 245,197,24),0.12); color: var(--accent); }
.hero-search-result-info { flex: 1; min-width: 0; }
.hero-search-result-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.hero-search-result-meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 10px; color: var(--text-muted); margin-top: 2px;
}
.hero-search-result-tag {
    padding: 1px 6px; border-radius: 4px;
    background: var(--accent-bg); color: var(--accent);
    font-weight: 600; font-size: 9px;
}
.hero-search-result-earn {
    font-size: 18px; font-weight: 900; color: var(--accent); flex-shrink: 0;
}
.hero-search-result-earn span { font-size: 10px; font-weight: 500; color: var(--text-muted); }

.hero-search-footer { text-align: center; }
.hero-search-powered { font-size: 10px; color: var(--text-muted); }

.hero-search-download {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-top: 20px;
}
.hero-search-download-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.hero-search-download-icons { display: flex; gap: 8px; }
.hero-search-store {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: var(--transition);
}
.hero-search-store:hover { border-color: var(--border-accent); color: var(--accent); }

@media (max-width: 900px) {
    .hero-search-card { max-width: 100%; }
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 100px;
    background: var(--accent-bg);
    border: 1px solid var(--border-accent);
    color: var(--accent-text); font-size: 12px; font-weight: 600;
    letter-spacing: 0.03em; margin-bottom: 24px;
}
.hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--yellow-500);
    animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
    font-size: clamp(34px, 5.2vw, 64px); font-weight: 900;
    line-height: 1.05; letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.hero-subtitle {
    max-width: 540px;
    font-size: 18px; line-height: 1.6; color: var(--text-secondary);
    margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    color: var(--text-muted); font-size: 13px;
}
.hero-trust-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust-item svg { color: var(--accent); }

/* ---- Phone mockup ---- */
.hero-phone-wrap { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.phone {
    position: relative;
    width: 320px;
    height: auto;
    aspect-ratio: 9 / 19.5;
    border-radius: 44px;
    background: var(--phone-bg);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-lg), 0 0 80px var(--accent-glow);
    padding: 14px;
    overflow: hidden;
}
.phone::before {
    content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 26px; background: var(--phone-bg);
    border-radius: 0 0 18px 18px; z-index: 3;
}
.phone-screen {
    position: relative;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-radius: 32px;
    padding: 44px 18px 18px;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.phone-status {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; font-weight: 600; color: var(--text-primary);
    margin-bottom: 14px; padding: 0 4px;
}
.phone-status-icons { display: inline-flex; gap: 4px; align-items: center; }
.phone-app-logo {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 12px;
}
.phone-app-logo svg { width: 28px; height: auto; color: var(--accent); }
.phone-app-logo span { font-size: 13px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); }
.phone-greeting { font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.phone-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; color: var(--text-primary); }

.phone-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
}
.phone-card-title { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; font-weight: 600; }
.phone-balance { font-size: 28px; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; }
.phone-balance-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.phone-ring {
    position: relative;
    width: 100px; height: 100px; margin: 4px auto 6px;
}
.phone-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.phone-ring-bg { fill: none; stroke: var(--border-subtle); stroke-width: 3; }
.phone-ring-fill { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.phone-ring-label {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}
.phone-ring-value { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.phone-ring-sub { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.phone-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; border-top: 1px solid var(--border-subtle);
    font-size: 12px;
}
.phone-row:first-child { border-top: none; }
.phone-row-label { color: var(--text-secondary); display: inline-flex; align-items: center; gap: 6px; }
.phone-row-value { color: var(--text-primary); font-weight: 700; font-size: 12px; }
.phone-row-value--good { color: #84b89c; }

.phone-cta {
    margin-top: auto;
    background: var(--accent); color: #0a141a;
    font-weight: 700; font-size: 12px; text-align: center;
    padding: 12px; border-radius: 12px;
}

@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-content { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .phone { transform: scale(0.85); }
}

/* ============================================
   Phone Carousel (hero slideshow)
   ============================================ */
.phone-carousel {
    position: relative;
    width: 100%; height: 100%;
    overflow: hidden;
    border-radius: 32px;
}
.phone-slide {
    position: absolute; inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateX(30px);
}
.phone-slide--active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    position: relative;
}
.phone-dots {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 16px;
}
.phone-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-muted); opacity: 0.35;
    border: none; padding: 0; cursor: pointer;
    transition: var(--transition);
}
.phone-dot--active {
    opacity: 1; background: var(--accent);
    width: 20px; border-radius: 4px;
}

/* Property phone screen */
.phone-property-hero {
    height: 100px; border-radius: 12px;
    background: linear-gradient(135deg, #1a3a4a 0%, #0d2633 50%, #1a4a3a 100%);
    background-size: cover; background-position: center;
    margin-bottom: 10px; position: relative;
    display: flex; align-items: flex-end; padding: 8px;
    overflow: hidden;
}
.phone-property-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    z-index: 1;
}
.phone-property-hero > * { position: relative; z-index: 2; }
.phone-property-badge {
    font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    background: var(--accent); color: #fff;
    padding: 3px 8px; border-radius: 6px;
}
.phone-property-logo {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.phone-property-logo img,
.phone-property-logo svg { width: 100%; height: 100%; object-fit: contain; }
.phone-property-info { margin-bottom: 10px; }
.phone-property-type {
    font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-muted); margin-bottom: 2px;
}
.phone-property-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); }
.phone-property-location {
    display: flex; align-items: center; gap: 4px;
    font-size: 10px; color: var(--text-muted); margin-top: 3px;
}

.phone-subscores {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.phone-subscore {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: var(--text-secondary);
}
.phone-subscore-label { flex: 1; }
.phone-subscore-value {
    font-weight: 800; font-size: 13px; min-width: 22px; text-align: right;
}
.phone-subscore--good { color: var(--accent); }
.phone-subscore--great { color: #2ed573; }
.phone-subscore--fair { color: var(--warning, #f0a500); }
.phone-subscore--poor { color: var(--error, #e74c3c); }

/* Rewards phone screen */
.phone-rewards-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px;
}
.phone-reward-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 4px;
    background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    border-radius: 10px; font-size: 9px; font-weight: 600;
    color: var(--text-secondary);
}
.phone-reward-icon { font-size: 18px; }

/* Social leaderboard screen */
.phone-loc-tabs {
    display: flex; gap: 4px; margin-bottom: 10px;
    overflow: hidden; flex-wrap: wrap;
}
.phone-loc-tab {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 5px 10px; border-radius: 100px;
    font-size: 9px; font-weight: 600; white-space: nowrap;
    color: var(--text-muted);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    cursor: pointer; transition: var(--transition);
}
.phone-loc-tab--active {
    color: var(--accent); background: var(--accent-bg);
    border-color: var(--border-accent);
}

.phone-podium {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 6px; margin-bottom: 10px;
}
.phone-podium-slot {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    width: 72px;
}
.phone-podium-crown { line-height: 1; margin-bottom: -2px; }
.phone-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; color: #fff;
    object-fit: cover;
}
.phone-avatar--gold { box-shadow: 0 0 0 2px var(--accent); }
.phone-avatar--sm { width: 24px; height: 24px; font-size: 10px; flex-shrink: 0; }
.phone-podium-name { font-size: 9px; font-weight: 600; color: var(--text-primary); }
.phone-podium-earned { font-size: 11px; font-weight: 800; color: var(--text-secondary); }
.phone-podium-bar {
    width: 100%; text-align: center;
    font-size: 10px; font-weight: 800; color: #fff;
    border-radius: 6px 6px 0 0;
}
.phone-podium-bar--1 { height: 40px; background: var(--accent); line-height: 40px; }
.phone-podium-bar--2 { height: 28px; background: #3498db; line-height: 28px; }
.phone-podium-bar--3 { height: 20px; background: #cd7f32; line-height: 20px; }

.phone-lb-list {
    display: flex; flex-direction: column; gap: 4px;
    overflow-y: auto; flex: 1;
}
.phone-lb-row {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 8px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
}
.phone-lb-row--you { border-color: var(--border-accent); background: var(--accent-bg); }
.phone-lb-pos {
    font-size: 10px; font-weight: 800; color: var(--text-muted);
    width: 14px; text-align: center; flex-shrink: 0;
}
.phone-lb-info { flex: 1; min-width: 0; }
.phone-lb-name { font-size: 11px; font-weight: 700; color: var(--text-primary); }
.phone-lb-loc { font-size: 8px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-lb-stats { text-align: right; flex-shrink: 0; }
.phone-lb-earned { font-size: 12px; font-weight: 800; color: var(--accent); }
.phone-lb-streak { font-size: 8px; color: var(--accent); display: inline-flex; align-items: center; gap: 2px; }
.phone-lb-coin { width: 10px; height: auto; color: var(--accent); }

/* Rest stats & rankings screen */
.phone-orbs-row {
    display: flex; justify-content: space-between; gap: 4px;
    margin-bottom: 10px;
}
.phone-orb {
    position: relative; width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
}
.phone-orb-ring { width: 100%; height: 100%; }
.phone-orb-label {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.phone-orb-value { font-size: 14px; font-weight: 800; line-height: 1; }
.phone-orb-cat { font-size: 7px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }

.phone-heatmap { display: flex; flex-direction: column; gap: 3px; }
.phone-heatmap-row { display: flex; align-items: center; gap: 3px; }
.phone-heatmap-label {
    width: 20px; font-size: 7px; color: var(--text-muted);
    text-align: right; flex-shrink: 0; font-weight: 500;
}
.phone-heatmap-cell {
    flex: 1; height: 14px; border-radius: 3px;
    background: var(--accent);
}
.phone-heatmap-days {
    display: flex; gap: 3px;
    font-size: 7px; color: var(--text-muted); font-weight: 500;
    margin-top: 2px;
}
.phone-heatmap-days span { flex: 1; text-align: center; }
.phone-heatmap-days span:first-child { width: 20px; flex: none; }

.phone-ranking-list { display: flex; flex-direction: column; gap: 6px; }
.phone-rank {
    display: flex; align-items: center; gap: 6px;
}
.phone-rank-pos {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    display: flex; align-items: center; justify-content: center;
    font-size: 8px; font-weight: 800; color: var(--text-muted);
    flex-shrink: 0;
}
.phone-rank-pos--gold { background: rgba(245,197,24,0.2); color: #f5c518; border-color: rgba(245,197,24,0.4); }
.phone-rank-pos--silver { background: rgba(192,192,192,0.2); color: #c0c0c0; border-color: rgba(192,192,192,0.4); }
.phone-rank-pos--bronze { background: rgba(205,127,50,0.2); color: #cd7f32; border-color: rgba(205,127,50,0.4); }
.phone-rank-info { flex: 1; min-width: 0; }
.phone-rank-name { font-size: 10px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.phone-rank-bars { display: flex; gap: 2px; height: 4px; }
.phone-rank-bar { height: 100%; border-radius: 2px; }
.phone-rank-score {
    font-size: 14px; font-weight: 900; color: var(--accent);
    flex-shrink: 0; min-width: 24px; text-align: right;
}

/* Wallet transactions screen */
.phone-wallet-actions {
    display: flex; gap: 6px; margin-bottom: 12px;
}
.phone-wallet-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 4px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    color: var(--text-secondary); font-size: 9px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
}
.phone-wallet-btn:hover { border-color: var(--border-accent); color: var(--accent); }

.phone-tx-list {
    display: flex; flex-direction: column; gap: 4px;
    overflow-y: auto; flex: 1;
}
.phone-tx {
    display: flex; align-items: center; gap: 8px;
    padding: 8px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
}
.phone-tx-icon {
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.phone-tx-icon--hotel { background: rgba(136,188,207,0.15); color: #88bccf; }
.phone-tx-icon--apt { background: rgba(136,188,181,0.15); color: #88bcb5; }
.phone-tx-icon--bonus { background: rgba(245,197,24,0.15); color: var(--accent); }
.phone-tx-icon--coliving { background: rgba(104,142,138,0.15); color: #688e8a; }
.phone-tx-icon--spend { background: rgba(231,76,60,0.12); color: #e74c3c; }
.phone-tx-info { flex: 1; min-width: 0; }
.phone-tx-name { font-size: 11px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-tx-meta { font-size: 9px; color: var(--text-muted); margin-top: 1px; }
.phone-tx-amount { font-size: 12px; font-weight: 800; color: var(--accent); flex-shrink: 0; }
.phone-tx-amount--spend { color: var(--text-muted); }

/* Rest Passport screen */
.phone-passport-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px;
}
.phone-passport-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--accent);
    flex-shrink: 0;
}
.phone-passport-id { flex: 1; }
.phone-passport-name { font-size: 14px; font-weight: 800; color: var(--text-primary); }
.phone-passport-tier {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 9px; font-weight: 700; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.phone-passport-badge {
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(46,213,115,0.12);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.phone-passport-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.phone-passport-stat {
    text-align: center; padding: 6px 0;
    background: var(--bg-secondary); border-radius: 8px;
}
.phone-passport-stat-val { font-size: 14px; font-weight: 900; color: var(--text-primary); }
.phone-passport-stat-lbl { font-size: 8px; color: var(--text-muted); font-weight: 600; }
.phone-passport-prefs {
    display: flex; flex-wrap: wrap; gap: 4px;
}
.phone-passport-pref {
    padding: 4px 8px; border-radius: 6px;
    background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    font-size: 9px; font-weight: 600; color: var(--text-secondary);
    white-space: nowrap;
}
.phone-passport-lock {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(46,213,115,0.12);
    display: flex; align-items: center; justify-content: center;
}

/* Passport timeline */
.phone-passport-timeline {
    display: flex; flex-direction: column; gap: 0;
    position: relative;
    padding-left: 12px;
}
.phone-passport-timeline::before {
    content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px;
    width: 2px; background: var(--border-subtle); border-radius: 1px;
}
.phone-passport-stay {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 0; position: relative;
}
.phone-passport-stay-dot {
    width: 10px; height: 10px; border-radius: 50%;
    flex-shrink: 0; position: absolute; left: -12px;
    z-index: 1;
}
.phone-passport-stay-dot--great { background: #2ed573; }
.phone-passport-stay-dot--good { background: var(--accent); }
.phone-passport-stay-dot--fair { background: #e74c3c; }
.phone-passport-stay-info { flex: 1; min-width: 0; }
.phone-passport-stay-name { font-size: 11px; font-weight: 700; color: var(--text-primary); }
.phone-passport-stay-detail { font-size: 9px; color: var(--text-muted); }
.phone-passport-stay-date { font-size: 9px; color: var(--text-muted); font-weight: 600; flex-shrink: 0; }

/* Passport patterns */
.phone-passport-patterns { display: flex; flex-direction: column; gap: 6px; }
.phone-passport-pattern {
    display: flex; align-items: center; gap: 6px;
    font-size: 10px; color: var(--text-secondary); line-height: 1.3;
}
.phone-passport-pattern svg { flex-shrink: 0; }

/* QR Scanner mini widget */
.phone-scan-mini {
    margin-bottom: 8px;
}
.phone-scan-mini-feed {
    position: relative; height: 80px;
    border-radius: 10px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: #111;
}
.phone-scan-mini-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    filter: blur(2px) brightness(0.3);
}
.phone-scan-mini-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(0,0,0,0.5) 70%);
    z-index: 1;
}
.phone-scan-mini-corners {
    position: absolute; z-index: 2;
    width: 52px; height: 52px;
}
.phone-scan-corner {
    position: absolute; width: 12px; height: 12px;
}
.phone-scan-corner--tl { top: 0; left: 0; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); border-radius: 3px 0 0 0; }
.phone-scan-corner--tr { top: 0; right: 0; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); border-radius: 0 3px 0 0; }
.phone-scan-corner--bl { bottom: 0; left: 0; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); border-radius: 0 0 0 3px; }
.phone-scan-corner--br { bottom: 0; right: 0; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); border-radius: 0 0 3px 0; }
.phone-scan-mini-qr {
    position: relative; z-index: 2;
    width: 40px; height: 40px;
    background: #fff; border-radius: 4px; padding: 3px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.4);
    transform: rotate(-2deg);
}
.phone-scan-mini-qr svg { width: 100%; height: 100%; display: block; }
.phone-scan-mini-laser {
    position: absolute; z-index: 3;
    left: 24%; right: 24%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 6px var(--accent);
    animation: scanMiniLaser 2.5s ease-in-out infinite;
}
@keyframes scanMiniLaser {
    0%, 100% { top: 20%; opacity: 0.5; }
    50% { top: 70%; opacity: 1; }
}
.phone-scan-mini-label {
    display: flex; align-items: center; gap: 4px; justify-content: center;
    font-size: 9px; font-weight: 600; color: var(--text-muted);
    margin-top: 6px;
}

/* Verify method toggle */
.phone-verify-toggle {
    display: flex; gap: 4px;
    background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    border-radius: 8px; padding: 3px;
    margin-bottom: 8px;
}
.phone-verify-opt {
    all: unset; cursor: pointer;
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
    font-size: 9px; font-weight: 700; color: var(--text-muted);
    padding: 5px 0; border-radius: 6px;
    transition: var(--transition);
}
.phone-verify-opt:hover { color: var(--text-secondary); }
.phone-verify-opt--active {
    background: var(--accent); color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.phone-verify-opt--active svg { stroke: #fff; }

/* Bottom tab bar */
.phone-tabbar {
    display: flex; justify-content: space-around; align-items: center;
    padding: 6px 0 2px; margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    background: var(--phone-bg);
    flex-shrink: 0;
}
.phone-tabbar-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 8px; font-weight: 600; color: var(--text-muted);
    text-decoration: none; cursor: default;
    padding: 2px 6px;
}
.phone-tabbar-item--active { color: var(--accent); }
.phone-tabbar-item svg { width: 16px; height: 16px; }

/* Wearable connection screen */
.phone-wearable-list {
    display: flex; flex-direction: column; gap: 6px;
    overflow-y: auto; flex: 1;
}
.phone-wearable {
    display: flex; align-items: center; gap: 10px;
    padding: 10px;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 12px; cursor: pointer;
    transition: var(--transition);
}
.phone-wearable:hover { border-color: var(--border-accent); }
.phone-wearable--connected { border-color: var(--border-accent); background: var(--accent-bg); }
.phone-wearable-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-primary); flex-shrink: 0;
}
.phone-wearable-icon svg { width: 18px; height: 18px; }
.phone-wearable-icon--whoop {
    font-size: 14px; font-weight: 900; letter-spacing: -0.05em;
}
.phone-wearable-icon--oura svg { width: 16px; height: 16px; }
.phone-wearable-info { flex: 1; min-width: 0; }
.phone-wearable-name { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.phone-wearable-status { font-size: 9px; color: var(--text-muted); margin-top: 1px; }
.phone-wearable-status--on { color: #2ed573; font-weight: 600; }
.phone-wearable-check {
    width: 22px; height: 22px; border-radius: 50%;
    background: #2ed573; color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.phone-wearable-arrow { color: var(--text-muted); flex-shrink: 0; }

/* ============================================
   Section base
   ============================================ */
.section { padding: 100px 0; position: relative; }
.section--dark { background: var(--bg-secondary); }
.section-label {
    display: inline-block; font-size: 11px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 16px;
    padding: 4px 12px; border-radius: 100px;
    background: var(--accent-bg); border: 1px solid var(--border-accent);
}
.section-title {
    font-size: clamp(28px, 3.8vw, 44px); font-weight: 800;
    line-height: 1.15; letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section-title--center { text-align: center; }
.section-subtitle {
    font-size: 17px; line-height: 1.7; color: var(--text-secondary);
    max-width: 720px; margin: 0 auto 60px; text-align: center;
}
.section-head { text-align: center; margin-bottom: 60px; }

/* ============================================
   How it works (numbered steps)
   ============================================ */
.step-number {
    font-family: var(--font-mono);
    font-size: 13px; font-weight: 700; color: var(--accent);
    letter-spacing: 0.08em; margin-bottom: 8px;
}

/* Tabbed steps layout */
.steps-tabbed {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center;
}
.steps-tabs { display: flex; flex-direction: column; gap: 0; }
.steps-tab {
    all: unset; cursor: pointer;
    display: block; text-align: left;
    padding: 20px 24px;
    border-left: 3px solid var(--border-subtle);
    transition: var(--transition);
}
.steps-tab:hover { border-left-color: var(--accent-bg); background: var(--bg-card); }
.steps-tab h3 {
    font-size: 18px; font-weight: 700; line-height: 1.3;
    margin-bottom: 6px; color: var(--text-primary);
    transition: var(--transition);
}
.steps-tab p {
    font-size: 13px; color: var(--text-muted); line-height: 1.6;
    margin-bottom: 0; max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, margin-bottom 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}
.steps-tab .step-points {
    display: flex; flex-direction: column; gap: 6px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease;
    margin-top: 0;
}
.step-point {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-secondary); font-weight: 500;
}
.step-point svg { color: var(--accent); flex-shrink: 0; }

/* Active tab */
.steps-tab--active {
    border-left-color: var(--accent);
    background: var(--bg-card);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.steps-tab--active h3 { color: var(--accent); }
.steps-tab--active p {
    max-height: 120px; margin-bottom: 10px; opacity: 1;
}
.steps-tab--active .step-points {
    max-height: 120px; opacity: 1; margin-top: 10px;
}

/* Phone column */
.steps-phone-wrap {
    display: flex; justify-content: center; align-items: center;
    position: sticky; top: 100px;
}
.steps-phone-wrap .phone {
    position: relative;
    width: 280px;
    height: auto;
    aspect-ratio: 9 / 19.5;
}
.steps-screen {
    position: absolute; inset: 0;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.steps-screen--active {
    opacity: 1; pointer-events: auto;
}

@media (max-width: 768px) {
    .steps-tabbed { grid-template-columns: 1fr; gap: 32px; }
    .steps-phone-wrap { position: static; order: -1; }
    .steps-phone-wrap .phone { width: 240px; }
}

/* ============================================
   Rewards grid
   ============================================ */
.rewards-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.reward-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    transition: var(--transition);
    text-align: center;
}
.reward-card:hover {
    border-color: var(--border-accent-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}
.reward-logo {
    height: 36px; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-primary);
    font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
}
.reward-logo svg { width: 36px; height: 36px; }
.reward-name { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.reward-value { font-size: 12px; color: var(--accent); font-weight: 600; }

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

/* ============================================
   Features (alt rows with imagery)
   ============================================ */
.feature-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
    align-items: center;
    margin-bottom: 100px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }

.feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--accent-bg); border: 1px solid var(--border-accent);
    color: var(--accent); margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; }

.step-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--accent-bg); border: 1px solid var(--border-accent);
    color: var(--accent); margin-bottom: 20px;
}
.step-icon svg { width: 26px; height: 26px; }
.feature-row h3 { font-size: 28px; font-weight: 800; line-height: 1.2; margin-bottom: 14px; letter-spacing: -0.02em; }
.feature-row p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.feature-points { display: flex; flex-direction: column; gap: 10px; }
.feature-point { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.feature-point svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.feature-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
}
.feature-visual::before {
    content: ''; position: absolute; inset: -50%;
    background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.4; z-index: 0;
}
.feature-visual-inner { position: relative; z-index: 1; }

/* Wearable / chart mock */
.mini-chart {
    display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 14px 0;
}
.mini-chart-bar {
    flex: 1; background: var(--accent); border-radius: 4px 4px 0 0;
    opacity: 0.85; transition: opacity var(--transition);
}
.mini-chart-bar.dim { background: var(--border-light); opacity: 0.5; }
.mini-chart-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); letter-spacing: 0.05em; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.kpi {
    background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    border-radius: 12px; padding: 12px; text-align: center;
}
.kpi-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-value { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.kpi-value--accent { color: var(--accent); }

@media (max-width: 900px) {
    .feature-row { grid-template-columns: 1fr; gap: 40px; margin-bottom: 60px; }
    .feature-row--reverse { direction: ltr; }
}

/* ============================================
   Stats band
   ============================================ */
.stats-band {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 60px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.stat-block { text-align: center; }
.stat-value {
    font-size: 44px; font-weight: 900; letter-spacing: -0.03em;
    color: var(--accent); line-height: 1;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

@media (max-width: 700px) {
    .stats-band { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--border-light); }
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 18px 22px;
    font-size: 15px; font-weight: 600; color: var(--text-primary);
    text-align: left;
}
.faq-question svg { color: var(--accent); transition: transform var(--transition); }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--text-secondary); font-size: 14px; line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 22px 20px; }

/* ============================================
   CTA Block
   ============================================ */
.cta {
    padding: 100px 0;
    position: relative; overflow: hidden;
}
.cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
    position: relative; overflow: hidden;
}
.cta-card::before {
    content: ''; position: absolute; inset: -50%;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 50%);
    z-index: 0;
}
.cta-inner { position: relative; z-index: 1; }
.cta-title {
    font-size: clamp(28px, 4vw, 44px); font-weight: 900;
    line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px;
}
.cta-sub { font-size: 17px; color: var(--text-secondary); margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 60px 0 32px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-brand-text { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin-top: 14px; max-width: 360px; }
.footer-links-title {
    font-size: 12px; font-weight: 700; color: var(--text-primary);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.footer-link {
    display: block; padding: 6px 0; font-size: 13px;
    color: var(--text-secondary); transition: var(--transition);
}
.footer-link:hover { color: var(--accent); }
.footer-bottom {
    padding-top: 24px; border-top: 1px solid var(--border-subtle);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--text-muted);
    flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: var(--text-muted); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--text-primary); }

@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Sub-page hero (smaller) — softer serene scene
   ============================================ */
.sub-hero {
    padding: calc(var(--nav-height) + 80px) 0 80px;
    text-align: center;
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}
.sub-hero-glow {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, var(--glow-1), transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(46,134,171,0.18), transparent 60%),
        radial-gradient(ellipse 45% 35% at 80% 90%, var(--accent-glow), transparent 60%);
}
.sub-hero-stars {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        radial-gradient(1px 1px at 8% 20%, rgba(255,255,255,0.95), transparent 60%),
        radial-gradient(1.5px 1.5px at 38% 30%, rgba(255,255,255,1), transparent 60%),
        radial-gradient(1px 1px at 72% 24%, rgba(255,255,255,0.9), transparent 60%);
    animation: star-twinkle 4s ease-in-out infinite;
}
.sub-hero-stars::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(1px 1px at 22% 60%, rgba(255,255,255,0.7), transparent 60%),
        radial-gradient(1px 1px at 55% 70%, rgba(255,255,255,0.75), transparent 60%),
        radial-gradient(1.5px 1.5px at 95% 18%, rgba(255,255,255,0.85), transparent 60%);
    animation: star-twinkle 5.5s ease-in-out -1.8s infinite;
}
.sub-hero-stars::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(1px 1px at 88% 56%, rgba(255,255,255,0.7), transparent 60%),
        radial-gradient(1px 1px at 14% 78%, rgba(255,255,255,0.8), transparent 60%),
        radial-gradient(1.2px 1.2px at 65% 14%, rgba(255,255,255,0.75), transparent 60%);
    animation: star-twinkle 7.5s ease-in-out -3.3s infinite;
}
[data-theme="light"] .sub-hero-stars,
[data-theme="light"] .sub-hero-stars::before,
[data-theme="light"] .sub-hero-stars::after { display: none; }
.sub-hero-pulse {
    position: absolute;
    bottom: -60%; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    animation: pulse-breath 10s ease-in-out infinite;
    pointer-events: none; z-index: 0;
    opacity: 0.5;
}
.sub-hero-content { position: relative; z-index: 1; }
.sub-hero h1 {
    font-size: clamp(32px, 4.4vw, 52px); font-weight: 900;
    line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 14px;
    position: relative; z-index: 1;
}
.sub-hero p {
    max-width: 640px; margin: 0 auto;
    font-size: 17px; color: var(--text-secondary);
    position: relative; z-index: 1;
}

/* ============================================
   Rewards page — partner detail grid
   ============================================ */
.partner-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.partner-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
}
.partner-card:hover { border-color: var(--border-accent-hover); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.partner-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.partner-card-logo {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--accent-bg); border: 1px solid var(--border-accent);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-weight: 800; font-size: 14px;
    flex-shrink: 0;
}
.partner-card-name { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.partner-card-cat { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.partner-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.partner-card-rates {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 14px; border-top: 1px solid var(--border-subtle);
}
.partner-card-rate {
    font-size: 14px; font-weight: 700; color: var(--accent);
}
.partner-card-rate-label { font-size: 11px; color: var(--text-muted); }

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

/* ============================================
   How-it-works detailed flow
   ============================================ */
.flow {
    display: flex; flex-direction: column; gap: 0;
    max-width: 860px; margin: 0 auto;
}
.flow-step {
    display: grid; grid-template-columns: 80px 1fr; gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.flow-step:last-child { border-bottom: none; }
.flow-step-num {
    width: 64px; height: 64px; border-radius: 16px;
    background: var(--accent-bg); border: 1px solid var(--border-accent);
    color: var(--accent); display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 900; letter-spacing: -0.02em;
    font-family: var(--font-mono);
}
.flow-step-body h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.flow-step-body p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ============================================
   Blog
   ============================================ */
.blog-filters {
    display: flex; gap: 8px; margin-bottom: 40px;
    flex-wrap: wrap;
}
.blog-filter {
    padding: 8px 20px; border-radius: 100px;
    font-size: 13px; font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    cursor: pointer; transition: var(--transition);
}
.blog-filter:hover { color: var(--text-primary); border-color: var(--border-accent); }
.blog-filter--active {
    color: var(--accent); background: var(--accent-bg);
    border-color: var(--border-accent);
}

.blog-featured {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
    align-items: center;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 40px;
    margin-bottom: 40px;
}
.blog-featured-content {}
.blog-featured-title {
    font-size: clamp(22px, 2.8vw, 32px); font-weight: 800;
    line-height: 1.2; letter-spacing: -0.02em;
    margin-bottom: 14px; color: var(--text-primary);
}
.blog-featured-excerpt {
    font-size: 15px; line-height: 1.7;
    color: var(--text-secondary); margin-bottom: 12px;
}
.blog-featured-visual {
    display: flex; flex-direction: column; gap: 14px;
}
.blog-featured-stat {
    background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md); padding: 16px 20px;
}
.blog-featured-stat-value {
    font-size: 28px; font-weight: 900; color: var(--accent);
    letter-spacing: -0.02em; line-height: 1;
}
.blog-featured-stat-label {
    font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.4;
}

.blog-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.blog-card {
    display: flex; flex-direction: column;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 28px 24px;
    transition: var(--transition); text-decoration: none;
}
.blog-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.blog-card-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--accent-bg); border: 1px solid var(--border-accent);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); margin-bottom: 16px;
}
.blog-card-icon svg { width: 22px; height: 22px; }
.blog-card-cat {
    display: inline-block; font-size: 10px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 10px;
}
.blog-card-title {
    font-size: 17px; font-weight: 700; line-height: 1.35;
    color: var(--text-primary); margin-bottom: 10px;
}
.blog-card-excerpt {
    font-size: 13px; line-height: 1.65;
    color: var(--text-secondary); margin-bottom: 16px; flex: 1;
}
.blog-card-meta {
    display: flex; gap: 14px;
    font-size: 11px; color: var(--text-muted); font-weight: 500;
}

@media (max-width: 900px) {
    .blog-featured { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* Article pages */
.article-meta {
    display: flex; gap: 16px; margin-bottom: 32px;
    font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.article-body {
    max-width: 760px; margin: 0 auto;
    font-size: 17px; line-height: 1.8; color: var(--text-secondary);
}
.article-body h2 {
    font-size: 24px; font-weight: 800; color: var(--text-primary);
    margin: 48px 0 16px; line-height: 1.3;
}
.article-body h3 {
    font-size: 19px; font-weight: 700; color: var(--text-primary);
    margin: 36px 0 12px; line-height: 1.35;
}
.article-body p { margin-bottom: 20px; }
.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px; margin: 28px 0;
    background: var(--accent-bg); border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 16px; font-style: italic; color: var(--text-primary);
}
.article-body ul, .article-body ol {
    margin: 16px 0 20px; padding-left: 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text-primary); }
.article-cta {
    display: flex; gap: 12px; justify-content: center;
    margin-top: 60px; padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

/* ============================================
   Animations
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.phone { animation: float 6s ease-in-out infinite; }
