/* Dazzlee Software - site styles
   One stylesheet for every page. Neutral base, and each app page sets its own accent from its icon colours. */

:root {
    --bg: #fbfaf7;
    --surface: #ffffff;
    --surface-2: #f3f2ee;
    --text: #16181a;
    --muted: #5d6368;
    --border: #e5e3dc;
    --shadow: 0 1px 2px rgb(20 24 26 / 6%), 0 8px 24px rgb(20 24 26 / 8%);

    /* Dazzlee brand, a deep ink blue */
    --brand: #1f3a5f;
    --brand-tint: #e6ecf4;

    /* Per app accents, from the app icons */
    --meters: #557a3e;
    --meters-tint: #e7efdd;
    --meters-grad: linear-gradient(160deg, #c4d6ae, #a2ba8a);
    --vehicle: #3f6577;
    --vehicle-tint: #e2ebef;
    --vehicle-grad: linear-gradient(160deg, #5f8294, #2f4a57);
    --wurkit: #c1553d;
    --wurkit-tint: #f8e6df;

    --accent: var(--brand);
    --accent-tint: var(--brand-tint);

    --radius: 18px;
    --max: 1120px;

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1112;
        --surface: #171a1c;
        --surface-2: #1e2225;
        --text: #eceeef;
        --muted: #a2a9ae;
        --border: #2a2f33;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);

        --brand: #8fb0dc;
        --brand-tint: #1b2633;

        --meters: #a9c88f;
        --meters-tint: #1e2a19;
        --vehicle: #8fb4c6;
        --vehicle-tint: #1a252b;
        --wurkit: #e8907c;
        --wurkit-tint: #2e1a15;
    }
}

body.meters  { --accent: var(--meters);  --accent-tint: var(--meters-tint); }
body.vehicle { --accent: var(--vehicle); --accent-tint: var(--vehicle-tint); }

/* Base */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

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

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75em;
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 100; }

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 750;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.logo img { width: 30px; height: 30px; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
}

.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

@media (max-width: 640px) {
    .logo span { display: none; }
    .nav { flex-wrap: nowrap; }
    .nav a { padding: 6px 8px; font-size: 0.88rem; white-space: nowrap; }
}

/* Privacy is still in the footer, so it can go from the header on small phones */
@media (max-width: 420px) {
    .nav a[href="/privacy/"] { display: none; }
}

/* Sections */

section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.alt { background: var(--surface-2); }

.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Home hero */

.hero { padding: 88px 0 64px; }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 640px; }

.hero-apps { display: flex; gap: 14px; margin-top: 28px; }
.hero-apps img { width: 64px; height: 64px; border-radius: 15px; box-shadow: var(--shadow); }

/* App cards on the home page */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.card-art {
    position: relative;
    height: 260px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 28px;
}

.card-art.meters { background: var(--meters-grad); }
.card-art.vehicle { background: var(--vehicle-grad); }

.card-art img { width: 62%; max-width: 240px; border-radius: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / 25%); }

.card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }

.card-title { display: flex; align-items: center; gap: 14px; }
.card-title img { width: 52px; height: 52px; border-radius: 12px; }
.card-title h3 { margin: 0; }
.card-title p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card li { margin: 0.2em 0; }

.card .actions { margin-top: auto; }

/* Buttons and badge */

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

.badge img { height: 48px; width: auto; }

.button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 650;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--accent);
    background: var(--accent-tint);
}

.button:hover { filter: brightness(0.97); }

.card.meters { --accent: var(--meters); --accent-tint: var(--meters-tint); }
.card.vehicle { --accent: var(--vehicle); --accent-tint: var(--vehicle-tint); }

/* Coming soon */

.soon {
    --accent: var(--wurkit);
    --accent-tint: var(--wurkit-tint);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
    background: var(--wurkit-tint);
    border-radius: var(--radius);
    padding: 36px;
}

.soon { align-items: start; }

.soon-mark {
    width: 112px;
    height: 112px;
    border-radius: 25px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

.soon-list { margin: 0; padding-left: 1.2em; color: var(--muted); }
.soon-list li { margin-bottom: 0.3em; }
.soon-list li::marker { color: var(--wurkit); }

.soon h2 { margin-bottom: 0.3em; }
.soon p:last-child { margin-bottom: 0; }

.pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--accent);
    background: var(--surface);
    margin-bottom: 10px;
}

@media (max-width: 640px) {
    .soon { grid-template-columns: 1fr; padding: 28px; }
    .soon-mark { width: 80px; height: 80px; border-radius: 18px; }
}

/* Values row */

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.values h3 { margin-bottom: 0.35em; }
.values p { color: var(--muted); margin: 0; }

.icon-dot {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-tint);
    color: var(--accent);
    margin-bottom: 14px;
}

.icon-dot svg { width: 22px; height: 22px; }

/* App page hero */

.app-hero { padding: 64px 0 24px; overflow: hidden; }

.app-hero .wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.app-id img { width: 72px; height: 72px; border-radius: 17px; box-shadow: var(--shadow); }
.app-id strong { display: block; font-size: 1.1rem; }
.app-id span { color: var(--muted); font-size: 0.92rem; }

.app-hero .lede { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--muted); }

.app-hero .note { font-size: 0.88rem; color: var(--muted); margin-top: 14px; }

.hero-shot {
    justify-self: center;
    width: min(340px, 100%);
    border-radius: 28px;
    padding: 22px 22px 0;
    background: var(--accent-tint);
}

.hero-shot img { border-radius: 16px 16px 0 0; }

@media (max-width: 820px) {
    .app-hero .wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* Features */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

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

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.feature h3 { margin-bottom: 0.35em; }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* Screenshot rail */

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 260px);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 20px 20px;
    margin: 0 -20px;
    scrollbar-width: thin;
}

.rail figure { margin: 0; scroll-snap-align: start; }
.rail img { border-radius: 16px; box-shadow: var(--shadow); }
.rail figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Help content */

/* Keep help text a readable width, but lined up with the rest of the page */
.prose > * { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.3em 0; }

.prose code, .csv {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.88em;
}

.csv {
    display: block;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    overflow-x: auto;
    white-space: pre;
    margin: 0 0 1em;
}

.callout {
    background: var(--accent-tint);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 1.2em 0;
}

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

table.simple { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: 0.95rem; }
table.simple th, table.simple td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.simple th { font-weight: 650; }

/* FAQ */

.faq { max-width: 760px; }

.faq details {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 650;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3em; line-height: 1; }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Contact cards */

.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.contacts .feature a { font-weight: 650; }

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 36px 0 48px;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
