/* Auto Care Plus site styles. The date in the file name is the version:
   rename the file when it changes, so browsers can cache it for a year. */

:root {
    --brand: #125a96;
    --brand-dark: #0a3d69;
    --accent: #125a96;
    --ink: #0f2a40;
    --text: #2c3e50;
    --muted: #4d5b69;
    --page: #ffffff;
    --surface: #ffffff;
    --hero-bg: #eaf2f9;
    --section-bg: #f4f8fb;
    --card-border: #c9d6e2;
    --divider: #dbe4ec;
    --check: #147a3c;
    --link: #125a96;
    --button: #125a96;
    --button-border: #125a96;
    --button-text: #ffffff;
    --star: #b45309;
    --frame: #101820;
    --frame-edge: transparent;
    --footer-bg: #0a3d69;
    --footer-text: rgba(255, 255, 255, 0.88);
    --shadow: 0 24px 56px rgba(10, 61, 105, 0.22), 0 4px 12px rgba(10, 61, 105, 0.12);
    --shadow-card: 0 8px 24px rgba(10, 61, 105, 0.08);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #6db4ea;
        --ink: #f2f6fa;
        --text: #e8eff6;
        --muted: #a9b8c6;
        --page: #0b1620;
        --surface: #122130;
        --hero-bg: #0f2336;
        --section-bg: #0e1c2a;
        --card-border: #33495f;
        --divider: #24384c;
        --check: #4cc07a;
        --link: #6db4ea;
        --button: #1f6fb2;
        --button-border: #6db4ea;
        --star: #f0b34a;
        --frame-edge: #33495f;
        --footer-bg: #0a1a28;
        --shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35);
        --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
}

@media (min-width: 768px) {
    body {
        font-size: 18px;
    }
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
    margin: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 1.55rem + 3vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 1.45rem + 2.4vw, 3rem);
}

h3 {
    font-size: 1.25rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--link);
}

:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: clamp(20px, 5.5vw, 80px);
    padding-right: clamp(20px, 5.5vw, 80px);
}

.section {
    padding-top: clamp(52px, 8vw, 96px);
    padding-bottom: clamp(52px, 8vw, 96px);
}

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

.section-head {
    max-width: 760px;
    margin: 0 auto clamp(32px, 5vw, 56px);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eyebrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
}

.lead {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
}

.muted {
    color: var(--muted);
}

.icon {
    width: 24px;
    height: 24px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--accent);
}

/* Skip link */
.skip-link {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 100;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--button);
    border: 1px solid var(--button-border);
    color: var(--button-text);
    font-weight: 600;
    text-decoration: none;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    border: 2px solid var(--link);
    background: transparent;
    color: var(--link);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(1.12);
}

.btn-primary {
    background: var(--button);
    border: 1px solid var(--button-border);
    color: var(--button-text);
}

.btn-large {
    min-height: 56px;
    padding: 0 24px;
    border-radius: 14px;
}

.badge-link {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    border-radius: 10px;
}

.badge-link img {
    display: block;
    height: 56px;
    width: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--divider);
}

.site-header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.brand img {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

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

.nav-links {
    display: none;
    list-style: none;
    padding: 0;
    gap: 4px;
}

.nav-links a,
.nav-menu-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
}

.nav-links a:hover,
.nav-menu-list a:hover {
    color: var(--link);
}

.site-nav .btn {
    min-height: 44px;
    padding: 0 18px;
}

.nav-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    cursor: pointer;
    list-style: none;
}

.nav-menu summary::-webkit-details-marker {
    display: none;
}

.nav-menu summary .icon {
    color: var(--ink);
}

.nav-menu-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 8px clamp(20px, 5.5vw, 80px) 16px;
    list-style: none;
    background: var(--surface);
    border-bottom: 1px solid var(--divider);
    box-shadow: var(--shadow-card);
}

.nav-menu-list a {
    padding: 0 6px;
    min-height: 48px;
    border-bottom: 1px solid var(--divider);
}

.nav-menu-list li:last-child a {
    border-bottom: 0;
}

@media (min-width: 860px) {
    .site-header-inner {
        min-height: 72px;
    }

    .brand {
        gap: 12px;
        font-size: 1.15rem;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .nav-links {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .site-nav .btn {
        margin-left: 12px;
        padding: 0 22px;
    }
}

/* Device frames */
.frame-iphone,
.frame-ipad,
.frame-mac {
    display: block;
    background: var(--frame);
    box-shadow: var(--shadow);
    outline: 1px solid var(--frame-edge);
}

.frame-iphone {
    border: 8px solid var(--frame);
    border-radius: 40px;
}

.frame-ipad {
    border: 8px solid var(--frame);
    border-radius: 26px;
}

.frame-mac {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    outline: 0;
}

/* Hero */
.hero {
    background: var(--hero-bg);
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 32px;
    padding-bottom: 48px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fade-up 0.7s ease-out both;
}

.hero-copy .lead {
    max-width: 34em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--muted);
}

.hero-proof .star {
    width: 18px;
    height: 18px;
    flex: none;
    fill: var(--star);
}

.montage {
    position: relative;
    width: 100%;
    max-width: 342px;
    height: 470px;
    margin: 0 auto;
    animation: fade-up 0.7s ease-out 0.15s both;
}

.montage img {
    position: absolute;
}

.montage .frame-mac {
    display: none;
}

.montage .frame-ipad {
    left: 0;
    bottom: 0;
    width: 210px;
    border-width: 6px;
    border-radius: 20px;
}

.montage .frame-iphone {
    right: 0;
    top: 0;
    width: 190px;
    border-width: 6px;
    border-radius: 30px;
}

@media (min-width: 768px) {
    .hero-inner {
        padding-top: 56px;
        padding-bottom: 72px;
        gap: 48px;
    }

    .montage {
        max-width: 640px;
        height: 620px;
    }

    .montage .frame-mac {
        display: block;
        top: 40px;
        right: 0;
        width: 600px;
    }

    .montage .frame-ipad {
        width: 262px;
        border-width: 8px;
        border-radius: 26px;
    }

    .montage .frame-iphone {
        top: auto;
        bottom: 0;
        right: 24px;
        width: 246px;
        border-width: 8px;
        border-radius: 40px;
    }
}

@media (min-width: 1200px) {
    .hero-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 720px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hero-copy {
        flex: 0 1 560px;
        gap: 24px;
    }

    .montage {
        flex: none;
        width: 640px;
        margin: 0;
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Steps */
.steps {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 20px;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 20px;
}

.steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--button);
    border: 1px solid var(--button-border);
    color: var(--button-text);
    font-weight: 700;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Feature rows */
.feature-row {
    display: grid;
    gap: 32px;
    align-items: center;
}

.feature-row + .feature-row {
    margin-top: clamp(56px, 8vw, 104px);
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-text h2 {
    font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
}

.feature-shot {
    display: flex;
    justify-content: center;
}

.feature-shot .frame-iphone {
    width: 260px;
}

.fact-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fact-list .icon {
    margin-top: 2px;
    color: var(--check);
    stroke-width: 2.4;
}

.feature-panel {
    width: 100%;
    max-width: 440px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-panel > .icon {
    width: 40px;
    height: 40px;
}

@media (min-width: 860px) {
    .feature-row {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }

    .feature-row.flip .feature-text {
        order: 2;
    }

    .feature-text {
        max-width: 520px;
    }

    .feature-row:not(.flip) .feature-text {
        justify-self: end;
    }
}

/* Privacy strip */
.facts {
    display: grid;
    gap: 20px;
}

.fact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fact .icon {
    width: 32px;
    height: 32px;
}

@media (min-width: 768px) {
    .facts {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

/* All devices */
.device-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 12px 4px 44px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
}

.device-row figure {
    flex: 0 0 62%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
}

.device-row img {
    width: 100%;
}

.device-row .frame-iphone {
    border-radius: 32px;
    border-width: 6px;
}

.device-row figcaption {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.device-notes {
    display: grid;
    gap: 16px;
    max-width: 900px;
    margin: 8px auto 0;
}

@media (min-width: 860px) {
    .device-row {
        overflow: visible;
        scroll-snap-type: none;
        justify-content: center;
        align-items: flex-end;
        gap: 40px;
    }

    .device-row figure {
        flex: 0 1 auto;
    }

    .device-row .shot-mac {
        width: 520px;
    }

    .device-row .shot-ipad {
        width: 280px;
    }

    .device-row .shot-iphone {
        width: 200px;
    }

    .device-notes {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Card grid */
.card-grid,
.steps,
.facts {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.card-grid {
    display: grid;
    gap: 20px;
}

.card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card > .icon {
    width: 28px;
    height: 28px;
}

.card ul {
    padding-left: 1.1em;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95em;
    color: var(--muted);
}

@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pricing cards */
.plans {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 28px;
    padding-top: 12px;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.plan-best {
    order: -1;
    border: 3px solid var(--button);
    box-shadow: var(--shadow);
}

.plan-tag {
    position: absolute;
    top: -17px;
    left: 32px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--button);
    border: 1px solid var(--button-border);
    color: var(--button-text);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.plan h3 {
    font-size: 1.3rem;
}

.plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    color: var(--muted);
}

.plan-price strong {
    font-size: clamp(2.75rem, 2.3rem + 1.6vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.plan .fact-list {
    padding-top: 20px;
    border-top: 1px solid var(--divider);
}

.plan .btn {
    margin-top: auto;
    min-height: 52px;
    border-radius: 14px;
}

.plans-note {
    margin-top: 32px;
    text-align: center;
    color: var(--muted);
    font-size: 0.95em;
}

@media (min-width: 900px) {
    .plans {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .plan-best {
        order: 0;
    }
}

/* FAQ */
.faq {
    max-width: 860px;
    margin: 0 auto;
}

.faq-group + .faq-group {
    margin-top: 40px;
}

.faq-group > h3 {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 1.05rem;
    letter-spacing: 0;
}

.faq-group details {
    border-bottom: 1px solid var(--divider);
}

.faq-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 12px 0;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-group summary::-webkit-details-marker {
    display: none;
}

.faq-group summary::after {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.faq-group details[open] summary::after {
    transform: rotate(-135deg);
}

.faq-group details p {
    padding: 0 0 18px;
    max-width: 46em;
}

/* Guides */
.guide-card {
    text-decoration: none;
    color: var(--text);
}

.guide-card h3 {
    color: var(--link);
}

.guide-card:hover {
    border-color: var(--link);
}

.guide-more {
    margin-top: 28px;
    text-align: center;
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
}

/* Closing download */
.closing {
    background: var(--hero-bg);
    text-align: center;
}

.closing .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Inner pages */
.page-hero {
    background: var(--hero-bg);
    padding: clamp(40px, 6vw, 72px) 0;
}

.page-hero .wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 960px;
}

.crumbs {
    max-width: 960px;
    margin: 0 auto;
    padding-top: 12px;
    font-size: 0.95rem;
    color: var(--muted);
}

.crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.prose {
    max-width: 960px;
    margin: 0 auto;
    padding-top: 8px;
    padding-bottom: clamp(52px, 8vw, 96px);
}

.prose > p,
.prose > ul {
    max-width: 44em;
    margin-bottom: 16px;
}

.prose h2 {
    font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
    margin: 44px 0 12px;
}

.prose ul {
    padding-left: 1.2em;
}

.prose li {
    margin-bottom: 6px;
}

.toc {
    margin: 8px 0 8px;
    padding: 20px 24px;
    background: var(--section-bg);
    border: 1px solid var(--divider);
    border-radius: 16px;
}

.toc h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    letter-spacing: 0;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

.toc li {
    margin: 0;
}

.toc a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.shots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin: 28px 0 8px;
}

.shots figure {
    width: 250px;
    max-width: 100%;
    text-align: center;
}

.shots img {
    display: block;
    width: 100%;
    border: 1px solid var(--card-border);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
}

.shots figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--muted);
}

.cta {
    margin-top: 44px;
    padding: 28px;
    background: var(--section-bg);
    border: 1px solid var(--divider);
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Contact form */
.form-card {
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 40px);
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-card h2 {
    font-size: 1.5rem;
}

.form-card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: var(--ink);
}

.form-group input,
.form-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--muted);
    border-radius: 12px;
    background: var(--page);
    color: var(--text);
    font: inherit;
}

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

/* Not found */
.notfound {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.link-row {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 20px;
}

.link-row a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: 1px solid var(--divider);
    padding: 40px 0;
    text-align: center;
    font-size: 0.95rem;
}

.site-footer .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.site-footer .footer-name {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
}

.site-footer .link-row a {
    color: var(--footer-text);
    text-decoration: none;
}

.site-footer .link-row a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.prose .plans {
    margin: 28px 0 8px;
}

.prose .plans-note {
    margin-top: 20px;
}

.hero-proof > span {
    flex: 1;
    min-width: 0;
}

.brand {
    min-width: 0;
}

/* Narrow phones: keep the icon, the name, Download and the menu on one line */
@media (max-width: 379px) {
    .site-header-inner {
        padding-left: 12px;
        padding-right: 12px;
        gap: 6px;
    }

    .brand {
        gap: 6px;
        font-size: 0.95rem;
    }

    .brand img {
        width: 32px;
        height: 32px;
    }

    .site-nav {
        gap: 6px;
    }

    .site-nav .btn {
        padding: 0 10px;
        font-size: 0.95rem;
    }
}
