:root {
    --red: #E53935;
    --red-dark: #C62828;
    --dark: #1a1212;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --bg: #f7f4f3;
    --card: #fff;
    --border: #ebe4e2;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.hidden { display: none !important; }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header--hero {
    background: transparent;
    border-bottom: 1px solid transparent;
}
.site-header.is-solid {
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 12px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}
.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    color: var(--red);
    font-weight: 900;
    font-style: italic;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.site-header.is-solid .logo-mark {
    background: var(--red);
    color: #fff;
    box-shadow: none;
}
.logo-text {
    font-size: 1.35rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.03em;
    color: #fff;
    white-space: nowrap;
}
.site-header.is-solid .logo-text { color: var(--red); }
.nav-desktop { display: flex; align-items: center; gap: 6px 14px; }
.nav-desktop > a:not(.btn) {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 4px;
}
.site-header.is-solid .nav-desktop > a:not(.btn) { color: var(--text); }
.nav-desktop > a:not(.btn):hover { opacity: 0.85; }
.site-header.is-solid .nav-desktop > a:not(.btn):hover { color: var(--red); opacity: 1; }
.btn-header-app {
    border: 1.5px solid rgba(255,255,255,0.55);
    color: #fff;
    background: rgba(255,255,255,0.12);
    padding: 9px 16px;
}
.site-header.is-solid .btn-header-app {
    border-color: var(--red);
    color: var(--red);
    background: #fff;
}
.btn-header-login {
    background: #fff;
    color: var(--red-dark);
    padding: 9px 16px;
}
.site-header.is-solid .btn-header-login {
    background: var(--red);
    color: #fff;
}
.nav-toggle {
    display: none;
    border: none;
    background: rgba(255,255,255,0.15);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.site-header.is-solid .nav-toggle { background: #f3ebe9; }
.site-header.is-solid .nav-toggle span { background: var(--text); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
    display: flex;
    flex-direction: column;
    padding: 8px 20px 20px;
    gap: 4px;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.nav-mobile a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 14px 4px;
    border-bottom: 1px solid #f3f0ef;
}
.nav-mobile .btn { margin-top: 10px; width: 100%; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled,
.btn.is-loading { opacity: 0.75; cursor: wait; pointer-events: none; }
.btn-spinner {
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: btn-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(229, 57, 53, 0.28); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-outline { border: 1.5px solid var(--red); color: var(--red); background: #fff; }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-ghost:hover { color: var(--red); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-hero-ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-hero-ghost:hover { background: rgba(255,255,255,0.2); }

/* Hero — brand-first, full-bleed, responsive */
.hero {
    position: relative;
    color: #fff;
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 0 clamp(40px, 8vh, 72px);
    overflow: hidden;
}
.hero-plane {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 85% 15%, rgba(255,255,255,0.14), transparent 50%),
        linear-gradient(155deg, #E53935 0%, #C62828 45%, #7A1212 100%);
}
.hero-glow {
    position: absolute;
    width: 120%;
    height: 65%;
    left: -10%;
    top: -20%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.2), transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 72%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 72%);
    animation: heroGrid 22s linear infinite;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}
.hero-orb--a {
    width: min(42vw, 280px);
    height: min(42vw, 280px);
    right: -6%;
    top: 18%;
    background: rgba(255,255,255,0.08);
    animation: heroOrb 10s ease-in-out infinite alternate;
}
.hero-orb--b {
    width: min(28vw, 160px);
    height: min(28vw, 160px);
    left: 8%;
    top: 28%;
    background: rgba(255,200,180,0.1);
    animation: heroOrb 12s ease-in-out infinite alternate-reverse;
}
.hero-horizon {
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: 38%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}
.hero-inner {
    position: relative;
    z-index: 1;
    padding-top: calc(72px + env(safe-area-inset-top, 0px));
    width: 100%;
    max-width: 720px;
    animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    margin: 0 0 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
}
.hero-brand {
    margin: 0 0 12px;
    font-size: clamp(2.6rem, 11vw, 4.8rem);
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.045em;
    line-height: 0.92;
    text-shadow: 0 4px 28px rgba(0,0,0,0.18);
}
.hero-title {
    margin: 0 0 14px;
    font-size: clamp(1.2rem, 4.2vw, 1.75rem);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -0.02em;
    max-width: 14em;
    color: rgba(255,255,255,0.96);
}
.hero-lead {
    margin: 0 0 28px;
    font-size: clamp(0.95rem, 2.8vw, 1.08rem);
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255,255,255,0.82);
    max-width: 28em;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.btn-hero-primary {
    background: #fff;
    color: var(--red-dark);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.btn-hero-primary:hover { background: #fff8f7; }

@keyframes heroGlow {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(16px) scale(1.05); }
}
@keyframes heroGrid {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 48px, 48px 0; }
}
@keyframes heroOrb {
    from { transform: translate(0, 0); }
    to { transform: translate(-12px, 18px); }
}
@keyframes heroIn {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}
.section { padding: 80px 0; }
.section-alt { background: #fff; }
.section h2 {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}
.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 44px;
    font-size: 1.02rem;
    font-weight: 500;
}

.services-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 28px;
}
.service-item { text-align: left; }
.service-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--red);
    color: #fff;
    font-weight: 900;
    font-style: italic;
    font-size: 1.25rem;
    margin-bottom: 14px;
}
.service-item h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}
.service-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.partner-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 26px 20px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.partner-card:hover {
    border-color: var(--red);
    box-shadow: 0 10px 28px rgba(229, 57, 53, 0.12);
    transform: translateY(-2px);
}
.partner-card strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text);
}
.partner-card small { color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.partner-reassure {
    text-align: center;
    max-width: 520px;
    margin: 28px auto 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.45;
}
.modal-lead {
    margin: -6px 0 14px;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
    font-weight: 500;
}
.google-auth-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 4px 0 6px;
}
.google-btn-wrap {
    display: flex;
    justify-content: center;
    min-height: 44px;
}
.btn-google {
    width: 100%;
    background: #fff;
    color: #3c4043;
    border: 1.5px solid #dadce0;
    font-weight: 600;
    gap: 10px;
}
.btn-google:hover { background: #f8f9fa; border-color: #c6c6c6; }
.btn-link-auth {
    width: 100%;
    margin-top: 4px;
    padding: 10px;
    border: none;
    background: none;
    color: var(--red);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
}
.btn-link-auth:hover { text-decoration: underline; }

.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.65);
    padding: 36px 0;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.footer-brand strong {
    color: #fff;
    font-style: italic;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.footer-brand span { font-size: 0.85rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}
.footer-links a:hover { color: #fff; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.modal-panel { position: relative; background: #fff; border-radius: 20px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 28px 24px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-close { position: absolute; top: 12px; right: 16px; border: none; background: none; font-size: 1.8rem; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-panel h2 { margin: 0 0 16px; font-size: 1.25rem; color: var(--red); }

.steps-bar { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; background: #eee; color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.step-dot.active { background: var(--red); color: #fff; }
.step-dot.done { background: #c8e6c9; color: #2e7d32; }
.step-line { width: 40px; height: 2px; background: #eee; }
.step-label { text-align: center; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }

.form-step { display: none; }
.form-step.active { display: block; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; font-family: inherit; }
.tafuta-phone-row { display: flex; gap: 8px; align-items: stretch; }
.tafuta-phone-dial { flex: 0 0 auto; max-width: 48%; min-width: 130px; padding: 10px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: .9rem; background: #fff; font-family: inherit; }
.tafuta-phone-national { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; font-family: inherit; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.btn-gps { width: 100%; margin-bottom: 12px; }
.gps-status { font-size: .85rem; color: #2e7d32; margin: 0 0 12px; }
.gps-status.hidden { display: none; }
.field-caption { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input[type="file"] { padding: 8px; background: #fafafa; }

.upload-zone {
    position: relative;
    border: 2px dashed #d0d0d0;
    border-radius: 14px;
    background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
    padding: 16px;
    transition: border-color .15s, background .15s, box-shadow .15s;
    cursor: pointer;
    min-height: 140px;
}
.upload-zone:hover, .upload-zone.is-drag {
    border-color: var(--red);
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, .08);
}
.upload-zone.has-file { border-style: solid; border-color: #66bb6a; background: #fff; cursor: default; }
.upload-zone.is-valid { border-color: #43a047; }
.upload-zone.is-invalid { border-color: var(--red); background: #fff5f5; }
.upload-zone.is-checking {
    opacity: .95;
    pointer-events: none;
    border-color: #1565c0;
    background: #e3f2fd;
    animation: uploadPulse 1.2s ease-in-out infinite;
}
@keyframes uploadPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(21, 101, 192, 0.08); }
}
.upload-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0 !important;
}
.upload-zone-empty {
    pointer-events: none;
    text-align: center;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.upload-zone-empty.hidden, .upload-zone-preview.hidden { display: none !important; }
.upload-icon-svg { color: var(--red); display: flex; opacity: .9; }
.upload-zone-empty strong { font-size: .98rem; color: var(--text); }
.upload-hint { font-size: .8rem; color: var(--muted); max-width: 300px; line-height: 1.35; }
.upload-btn {
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--red);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
}
.upload-zone-preview { position: relative; z-index: 2; }
.upload-zone-preview img {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 10px;
    background: #eee;
    border: 1px solid var(--border);
}
.upload-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    border: none;
    border-radius: 999px;
    background: rgba(0,0,0,.75);
    color: #fff;
    padding: 7px 14px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}
.upload-status { margin: 10px 0 0; font-size: .84rem; min-height: 1.15em; text-align: center; }
.upload-status.status-ok { color: #2e7d32; font-weight: 600; }
.upload-status.status-err { color: var(--red); font-weight: 600; }
.upload-status.status-info { color: #1565c0; }
.upload-zone-vehicle { min-height: 160px; }

.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 16px 0; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.form-error { color: var(--red); font-size: .9rem; margin-top: 12px; text-align: center; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.login-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.login-mode-btn.active { border-color: var(--red); color: var(--red); background: #fff5f5; }
.login-step { display: none; }
.login-step.active { display: block; }
.dev-otp-box { background: #fff3e0; border: 1px dashed #ff9800; padding: 10px; border-radius: 8px; font-weight: 700; color: #e65100; text-align: center; margin: 8px 0 12px; }
.dev-otp-box.hidden { display: none; }
.google-btn-wrap { min-height: 40px; }
.success-icon { width: 64px; height: 64px; background: #e8f5e9; color: #2e7d32; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 16px; font-weight: 700; }
.success-box h3 { margin: 0 0 8px; }
.success-box p { color: var(--muted); margin-bottom: 20px; }

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-mobile.hidden { display: none !important; }
    .nav-mobile:not(.hidden) { display: flex; }
    .header-inner { height: 58px; }
    .logo-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 1.05rem; }
    .logo-text { font-size: 1.15rem; }
    .hero {
        min-height: 100svh;
        min-height: 100vh;
        padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
        align-items: flex-end;
    }
    .hero-inner { padding-top: 88px; max-width: 100%; }
    .hero-badge { font-size: 0.68rem; margin-bottom: 14px; }
    .hero-brand { font-size: clamp(2.4rem, 14vw, 3.4rem); margin-bottom: 10px; }
    .hero-title { font-size: clamp(1.15rem, 5vw, 1.4rem); margin-bottom: 10px; }
    .hero-lead { font-size: 0.95rem; margin-bottom: 22px; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-actions .btn { width: 100%; }
    .btn-lg { padding: 14px 18px; font-size: 0.98rem; }
    .section { padding: 56px 0; }
    .services-row,
    .partner-btns { grid-template-columns: 1fr; gap: 28px; }
    .field-row { grid-template-columns: 1fr; }
    .container { padding: 0 18px; }
}
@media (min-width: 900px) {
    .hero-inner { padding-bottom: 8px; }
}
