/* TwinDash website. The app's palette (deep navy, amber accent), mobile first, no external fonts or scripts. */
:root {
    --bg: #0b1a26;
    --bg-2: #0f2230;
    --surface: #132b3d;
    --surface-2: #1a3a52;
    --line: #24445c;
    --line-soft: rgba(143, 166, 182, 0.16);
    --text: #eef3f7;
    --muted: #93a9b9;
    --accent: #f2a541;
    --accent-2: #ffbe5c;
    --accent-ink: #1a1206;
    --blue: #6f95c1;
    --green: #3ccf8e;
    --danger-bg: rgba(226, 92, 92, 0.14);
    --danger-line: rgba(226, 92, 92, 0.45);
    --ok-bg: rgba(60, 207, 142, 0.12);
    --radius: 22px;
    --radius-sm: 14px;
    --header: 64px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(242, 165, 65, 0.16), transparent 60%),
        radial-gradient(800px 500px at -10% 10%, rgba(111, 149, 193, 0.18), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.015em; }
p { margin: 0 0 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 20;
    height: var(--header);
    display: flex; align-items: center; gap: 12px;
    padding: 0 max(16px, calc((100% - 1080px) / 2));
    background: rgba(11, 26, 38, 0.78);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.site-nav { margin-left: auto; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(19, 43, 61, 0.7); border: 1px solid var(--line-soft); }
.site-nav a {
    color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700;
    padding: 7px 12px; border-radius: 999px; white-space: nowrap;
    transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--accent-ink); background: var(--accent); }
@media (max-width: 440px) {
    .brand span { display: none; }
    .site-nav a { padding: 7px 10px; font-size: 13px; }
}

main { max-width: 1080px; margin: 0 auto; padding: 0 16px 24px; }

/* Buttons */
.button, button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    margin-top: 14px; padding: 15px 22px;
    font: inherit; font-size: 18px; font-weight: 800; text-align: center; text-decoration: none;
    color: var(--accent-ink);
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    border: 0; border-radius: var(--radius-sm); cursor: pointer;
    box-shadow: 0 8px 24px rgba(242, 165, 65, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.button:hover, button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.button:active, button:active { transform: translateY(0); }
.button.secondary, button.secondary {
    color: var(--text); background: rgba(26, 58, 82, 0.6);
    border: 1px solid var(--line); box-shadow: none;
}
.button.ghost { color: var(--muted); background: transparent; border: 1px dashed var(--line); box-shadow: none; font-size: 15px; font-weight: 700; padding: 11px; }
.button[aria-disabled="true"] { opacity: .55; pointer-events: none; filter: grayscale(.4); }
.button .meta { display: block; font-size: 13px; font-weight: 600; opacity: .75; }
.button-stack { display: flex; flex-direction: column; }

/* Hero */
.hero { display: grid; gap: 36px; align-items: center; padding: 48px 0 28px; }
.hero h1 { font-size: clamp(34px, 8vw, 58px); font-weight: 850; }
.hero h1 .accent { background: linear-gradient(90deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 540px; }
.hero-actions { display: grid; gap: 12px; margin-top: 22px; }
.hero-actions .button { margin-top: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.badges li {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 700;
    background: rgba(19, 43, 61, 0.8); border: 1px solid var(--line-soft); color: var(--text);
}
.badges .icon { width: 16px; height: 16px; color: var(--green); stroke-width: 2.6; }

/* CarPlay / Android Auto icons, as the app's home cards show them */
.pf-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; overflow: hidden; flex: none; }
.pf-icon img { width: 100%; height: 100%; display: block; }
.pf-icon.android-auto { background: #fff; padding: 4px; } /* its logo reaches the image edges: inset on a white tile */
.works { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; font-size: 15px; font-weight: 700; }
.platform { display: inline-flex; align-items: center; gap: 8px; }
.pf-pair { display: inline-flex; gap: 6px; flex: none; align-self: flex-start; }
.pf-pair .pf-icon { width: 34px; height: 34px; border-radius: 9px; }

/* A head unit showing TwinDash home: not a screenshot, just the idea at a glance */
.unit { position: relative; max-width: 520px; margin: 0 auto; width: 100%; }
.unit::before { content: ""; position: absolute; inset: 12% 8% -6%; background: radial-gradient(closest-side, rgba(242, 165, 65, .28), transparent); filter: blur(30px); z-index: 0; }
.unit-frame {
    position: relative; z-index: 1;
    padding: 12px; border-radius: 26px;
    background: linear-gradient(160deg, #24384a, #0d1822);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.unit-screen { border-radius: 16px; overflow: hidden; background: #0f2230; padding: 14px; aspect-ratio: 16 / 9.5; display: flex; flex-direction: column; }
.unit-bar { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); font-weight: 700; }
.unit-bar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 10px var(--green); }
.unit-tiles { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.tile { border-radius: 14px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: clamp(13px, 3.4vw, 17px); }
.tile .pf-icon { width: clamp(42px, 12vw, 64px); height: clamp(42px, 12vw, 64px); border-radius: 22%; }
.tile .pf-icon.android-auto { padding: 8px; }
.tile.cp { background: linear-gradient(160deg, #2a4766, #1c3248); border: 1px solid rgba(111, 149, 193, .45); }
.tile.aa { background: linear-gradient(160deg, #1f4636, #15302a); border: 2px solid var(--accent); box-shadow: 0 0 24px rgba(242, 165, 65, .25); }

/* Sections */
.section {
    position: relative;
    background: linear-gradient(180deg, rgba(19, 43, 61, 0.92), rgba(15, 34, 48, 0.92));
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 26px 20px;
    margin-top: 22px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.section-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.section-icon {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none;
    color: var(--accent); background: rgba(242, 165, 65, 0.12); border: 1px solid rgba(242, 165, 65, 0.3);
}
.section-icon .icon { width: 24px; height: 24px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 2px; }
.section h2 { font-size: clamp(24px, 5vw, 32px); margin: 0; }
.lead { color: var(--muted); }

/* Download */
.app-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius-sm); background: rgba(11, 26, 38, 0.55); border: 1px solid var(--line-soft); }
.app-card img { width: 56px; height: 56px; border-radius: 14px; }
.app-card strong { display: block; font-size: 18px; }
.app-card small { color: var(--muted); }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.steps li {
    counter-increment: step; position: relative;
    padding: 14px 14px 14px 58px; border-radius: var(--radius-sm);
    background: rgba(11, 26, 38, 0.45); border: 1px solid var(--line-soft);
}
.steps li::before {
    content: counter(step);
    position: absolute; left: 14px; top: 13px;
    width: 30px; height: 30px; border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(242, 165, 65, 0.14); color: var(--accent); font-weight: 800;
}

.steps.vertical { grid-template-columns: 1fr !important; margin-top: 10px; }
.steps li.done { opacity: .55; }
.steps li.done::before { content: "✓"; background: rgba(60, 207, 142, .16); color: var(--green); }
.steps li.now { border-color: var(--accent); background: rgba(242, 165, 65, .08); }

/* Activation, step by step: buying on the phone, then the head unit */
.how-title { margin: 28px 0 4px; }
.how { display: grid; gap: 18px; }
.how-group { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--accent); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.how-group .icon { width: 18px; height: 18px; }
.buy-card { padding: 18px; border-radius: var(--radius-sm); background: rgba(11, 26, 38, .45); border: 1px solid var(--line-soft); }

/* Licence progress */
.progress { display: flex; align-items: center; gap: 8px; margin: 4px 0 20px; padding: 0; list-style: none; font-size: 13px; font-weight: 700; color: var(--muted); }
.progress li { display: flex; align-items: center; gap: 8px; }
.progress li + li::before { content: ""; width: 22px; height: 2px; background: var(--line); border-radius: 2px; }
.progress .n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); font-size: 12px; }
.progress .done .n { background: var(--green); border-color: var(--green); color: #062a1a; }
.progress .n .icon { width: 14px; height: 14px; stroke-width: 3; }
@media (max-width: 440px) { .progress li:not(.now) .label { display: none; } } /* small screens: only the current step is named */
.progress .now { color: var(--text); }
.progress .now .n { border-color: var(--accent); color: var(--accent); }

.device-ticket {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; border-radius: var(--radius-sm);
    background: rgba(11, 26, 38, 0.6); border: 1.5px dashed rgba(242, 165, 65, 0.55);
}
.device-ticket .icon { color: var(--accent); width: 28px; height: 28px; }
.device-label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.device { font: 800 24px/1.2 ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; white-space: nowrap; margin: 2px 0 0; } /* a code split over two lines gets misread */

/* Forms */
label { display: block; margin: 18px 0 8px; font-weight: 700; font-size: 15px; }
.field { position: relative; }
.field .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field input { padding-left: 46px; }
input, textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: rgba(11, 26, 38, 0.75);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px;
    transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #5f7a8d; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 165, 65, 0.18); }
textarea, .code { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; }
.code { word-break: break-all; }

.error { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--danger-bg); border: 1px solid var(--danger-line); }
.muted { color: var(--muted); }

details.manual { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
details.manual summary { cursor: pointer; color: var(--muted); font-weight: 700; }

/* About */
.features { display: grid; gap: 12px; margin: 18px 0; }
.feature { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius-sm); background: rgba(11, 26, 38, 0.45); border: 1px solid var(--line-soft); }
.feature .section-icon { width: 42px; height: 42px; border-radius: 12px; }
.feature strong { display: block; margin-bottom: 2px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.faq { margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
    list-style: none; cursor: pointer; padding: 16px 36px 16px 0; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

.contact { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 12px; }
.contact .button { margin-top: 0; font-size: 16px; }
.button.tg { background: linear-gradient(180deg, #3bb6f0, #229ed9); color: #fff; box-shadow: 0 8px 24px rgba(34, 158, 217, .25); }
.button.wa { background: linear-gradient(180deg, #3fdc7a, #25b860); color: #04210f; box-shadow: 0 8px 24px rgba(37, 184, 96, .22); }
.legal { margin: 22px 0 0; font-size: 13px; color: var(--muted); }

/* Order / result pages */
.status-hero { text-align: center; padding: 36px 0 6px; }
.status-hero .badge-ok { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--green); border: 1px solid rgba(60, 207, 142, .4); }
.status-hero .badge-ok .icon { width: 36px; height: 36px; stroke-width: 2.4; }
.status-hero h1 { margin-top: 16px; font-size: clamp(26px, 6vw, 36px); }
.message { white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; padding: 14px; border-radius: var(--radius-sm); background: rgba(11, 26, 38, 0.7); border: 1px solid var(--line-soft); font-size: 15px; }
.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }

/* Admin */
.order { padding: 6px 16px 16px; margin: 12px 0; border-radius: var(--radius-sm); background: rgba(11, 26, 38, 0.5); border: 1px solid var(--line-soft); }
.order.just { outline: 3px solid var(--accent); }

/* Footer */
.site-footer { max-width: 1080px; margin: 28px auto 0; padding: 28px 16px 44px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line-soft); }
.site-footer .brand { font-size: 16px; }
.site-footer .brand img { width: 28px; height: 28px; }

@media (min-width: 760px) {
    .hero { grid-template-columns: 1.05fr 1fr; padding: 72px 0 40px; gap: 48px; }
    .hero-actions { grid-template-columns: auto auto; justify-content: start; }
    .hero-actions .button { width: auto; padding: 15px 26px; }
    .section { padding: 36px; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .features { grid-template-columns: 1fr 1fr; }
    .how { grid-template-columns: 1fr 1fr; gap: 28px; }
    .buy-card { max-width: 560px; padding: 24px; }
    .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
    .download-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
    .download-row .button { width: auto; min-width: 260px; margin-top: 0; }
}
