:root {
    --bg: #ffffff;
    --bg-alt: #f3f3f6;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #ff7a1a;
    --primary-dark: #e46405;
    --radius-lg: 18px;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.10);
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: radial-gradient(circle at top left, #ffe2c8 0, transparent 55%), var(--bg);
    color: var(--text);
}

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

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

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: rgba(255,255,255,0.88);
    border-bottom: 1px solid rgba(229,231,235,0.8);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.75rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.logo-text span {
    color: var(--primary);
}

.main-nav {
    display: flex;
    gap: 0.9rem;
    font-size: 0.93rem;
    color: #4b5563;
}

.main-nav a {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
}

.main-nav a.active,
.main-nav a:hover {
    background: rgba(255,122,26,0.12);
    color: #111827;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.header-search {
    display: flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 0.25rem 0.6rem;
    background: #f9fafb;
}

.header-search input[type="search"] {
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 0.85rem;
    min-width: 150px;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary,
.btn-primary-small {
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.btn-primary {
    padding: 0.6rem 1.1rem;
    font-size: 0.95rem;
}

.btn-primary-small {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
}

.btn-ghost,
.btn-ghost-small {
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    background: transparent;
    color: #374151;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.btn-ghost {
    padding: 0.6rem 1.1rem;
    font-size: 0.93rem;
}

.btn-ghost-small {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.18rem;
    background: none;
    border: none;
    padding: 0.25rem;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

/* Hero */

main {
    padding-bottom: 3rem;
}

.hero {
    padding: 1.8rem 0 1.2rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
    margin-bottom: 0.6rem;
}

.hero-content p {
    font-size: 0.98rem;
    color: var(--muted);
    max-width: 32rem;
    margin-bottom: 1rem;
}

.hero-search {
    display: flex;
    gap: 0.5rem;
    background: #fff;
    padding: 0.35rem;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 0.75rem;
}

.hero-search input[type="text"],
.hero-search input[type="search"] {
    flex: 1;
    border-radius: 999px;
    border: none;
    padding: 0.5rem 0.9rem;
    font: inherit;
    outline: none;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: var(--muted);
    align-items: center;
}

.hero-tags button {
    border-radius: 999px;
    border: none;
    background: #fff;
    padding: 0.3rem 0.7rem;
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(15,23,42,0.1);
}

.hero-image {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    background: #111827;
    color: #f9fafb;
    border-radius: 24px;
    padding: 1.4rem 1.3rem;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 22px 40px rgba(15,23,42,0.45);
}

.hero-card h3 {
    margin: 0.45rem 0 0.3rem;
    font-size: 1.05rem;
}

.hero-card p {
    font-size: 0.85rem;
    color: #e5e7eb;
}

/* Sections */

.section {
    padding: 2.5rem 0 0.5rem;
}

.section-alt {
    background: var(--bg-alt);
}

.section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
}

/* Grid */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(15,23,42,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
}

.service-card-body h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.service-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.service-rating {
    font-size: 0.82rem;
    color: #111827;
}

.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

/* How it works */

.how-it-works .how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.how-step {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.22);
}

.how-step h3 {
    margin-top: 0.4rem;
    margin-bottom: 0.25rem;
    font-size: 0.98rem;
}

.how-step p {
    font-size: 0.85rem;
    color: var(--muted);
}

.step-number {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 122, 26, 0.12);
    color: var(--primary-dark);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* CTA provider */

.cta-provider {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: center;
}

.provider-card {
    background: #111827;
    color: #e5e7eb;
    border-radius: 24px;
    padding: 1.4rem 1.3rem;
    box-shadow: 0 22px 40px rgba(15,23,42,0.5);
    font-size: 0.9rem;
}

.provider-card span {
    display: block;
    margin-top: 0.7rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Two column */

.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.city-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

.city-list a {
    font-size: 0.9rem;
    color: #374151;
}

/* Guarantee */

.guarantee {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: center;
}

.family-card {
    background: #fff;
    border-radius: 24px;
    padding: 1.4rem 1.3rem;
    box-shadow: 0 18px 40px rgba(15,23,42,0.08);
    font-size: 0.9rem;
    color: var(--muted);
}

/* App promo */

.app-promo {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: center;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.store-badge {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    font-size: 0.82rem;
    background: #fff;
}

.phone-frame {
    width: 180px;
    border-radius: 32px;
    padding: 0.9rem 0.6rem;
    border: 2px solid #111827;
    margin-left: auto;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.5rem;
}

.phone-top,
.phone-bottom {
    height: 6px;
    border-radius: 999px;
    background: #111827;
    opacity: 0.8;
}

.phone-screen {
    border-radius: 20px;
    background: #111827;
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    background: #0b1120;
    color: #e5e7eb;
    padding: 2rem 0 1.4rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    font-size: 0.86rem;
}

.footer-logo {
    margin-bottom: 0.6rem;
}

.site-footer h4 {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.25rem;
}

.site-footer a {
    color: #9ca3af;
    font-size: 0.86rem;
}

.site-footer a:hover {
    color: #f9fafb;
}

.footer-bottom {
    border-top: 1px solid rgba(148,163,184,0.3);
    margin-top: 1.5rem;
    padding-top: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #9ca3af;
    gap: 0.6rem;
}

.footer-links {
    display: flex;
    gap: 0.6rem;
}

/* Simple page layout */

.page {
    padding: 2.5rem 0 0.5rem;
}

.page h1 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.page p {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 44rem;
}

/* Responsive */

@media (max-width: 960px) {
    .main-nav,
    .header-actions {
        display: none;
    }
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }
    .site-header.open .main-nav,
    .site-header.open .header-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding-top: 0.75rem;
    }
    .site-header.open .header-inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .header-search input[type="search"] {
        min-width: 0;
    }
    .hero-inner,
    .cta-provider,
    .guarantee,
    .app-promo {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-image {
        order: -1;
        justify-content: flex-start;
    }
    .hero-card {
        max-width: 100%;
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 1.2rem;
    }
    .hero-search {
        flex-direction: column;
        box-shadow: 0 14px 30px rgba(15,23,42,0.15);
    }
    .hero-search button {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

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