/* Autoriix landing page (main domain, moto + auto). Hand-written, no build step.
   Light theme only. One stylesheet for Darija (RTL) and French (LTR):
   logical properties only. Fonts are self-hosted (public/fonts/landing, OFL). */

@font-face {
    font-family: 'Cairo'; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url('/fonts/landing/cairo-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
    font-family: 'Cairo'; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url('/fonts/landing/cairo-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url('/fonts/landing/jakarta-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
    --bg: #ffffff;
    --bg-subtle: #f8fafc;
    --text: #09090b;
    --text-2: #52525b;
    --muted: #71717a;
    --red: #dc2626;
    --red-h: #b91c1c;
    --red-soft: rgba(220, 38, 38, 0.08);
    --red-ring: rgba(220, 38, 38, 0.18);
    --border: #e4e4e7;
    --border-2: #d4d4d8;
    --border-soft: #f4f4f5;
    --ok: #047857;
    --ok-soft: #ecfdf5;
    --wa: #25d366;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.05);
    --shadow-md: 0 6px 24px -6px rgba(9, 9, 11, 0.1);
    --shadow-lg: 0 24px 60px -20px rgba(9, 9, 11, 0.22);
    --shadow-red: 0 8px 22px -8px rgba(220, 38, 38, 0.55);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --hdr-h: 68px;
    color-scheme: light;
}

html[lang^="ar"] { --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif; }

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--hdr-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
.sprite { display: none; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
html[lang^="ar"] h1, html[lang^="ar"] h2, html[lang^="ar"] h3, html[lang^="ar"] h4 { letter-spacing: 0; line-height: 1.4; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

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

.ic { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
[dir="rtl"] .ic-dir { transform: scaleX(-1); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
@media (max-width: 380px) { .wrap { padding-inline: 16px; } }

.skip {
    position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100;
    background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--r-md);
    transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--red); font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
}
html[lang^="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.65rem); letter-spacing: -0.035em; line-height: 1.06; }
html[lang^="ar"] .h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); line-height: 1.35; }
.h2 { font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.6rem); }
.h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); }
.h4 { font-size: 1.075rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--text-2); max-width: 36em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 20px; border-radius: var(--r-md);
    font-weight: 700; font-size: 0.95rem; line-height: 1; white-space: nowrap;
    border: 1px solid transparent; cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.btn .ic { font-size: 1.05em; transition: transform 0.25s var(--ease); }
.btn:hover .ic-dir { transform: translateX(3px); }
[dir="rtl"] .btn:hover .ic-dir { transform: scaleX(-1) translateX(3px); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 0.875rem; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-h); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--text); }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.hdr {
    position: sticky; top: 0; z-index: 50; height: var(--hdr-h);
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.hdr.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(9, 9, 11, 0.25); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 122px; height: auto; }
.nav { display: none; gap: 4px; margin-inline-start: 12px; }
.nav a {
    padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 0.925rem;
    transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--text); background: var(--border-soft); }
.hdr-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.hdr-login { display: none; font-weight: 600; font-size: 0.925rem; color: var(--text-2); padding: 8px 4px; }
.hdr-login:hover { color: var(--text); }
.hdr-cta { display: none; }

.lang-switch { display: none; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.lang-switch a {
    padding: 5px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--muted);
    line-height: 1.3; transition: color 0.2s, background-color 0.2s;
}
.lang-switch a[lang="ar"] { font-family: 'Cairo', var(--font); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--text); color: #fff; }
.lang-switch-wide { display: flex; }
.lang-switch-wide a { flex: 1; text-align: center; padding: 10px 12px; font-size: 0.95rem; }

.menu-btn {
    width: 42px; height: 42px; display: inline-grid; place-items: center;
    border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; color: var(--text);
    font-size: 1.25rem; cursor: pointer;
}

@media (min-width: 560px) {
    .lang-switch { display: flex; }
    .hdr-cta { display: inline-flex; }
}
@media (min-width: 768px) { .hdr-login { display: inline-block; } }
@media (min-width: 1080px) {
    .nav { display: flex; }
    .hdr-actions .menu-btn { display: none; }
}
@media (min-width: 1080px) and (max-width: 1279.98px) { /* five links still fit on one line */
    .hdr-in { gap: 16px; }
    .nav { gap: 2px; margin-inline-start: 4px; }
    .nav a { padding-inline: 8px; white-space: nowrap; }
}

/* Mobile menu sheet (<dialog>) */
.sheet {
    margin: 0; margin-inline-start: auto; height: 100%; max-height: 100%;
    width: min(360px, 88vw); max-width: none; padding: 20px;
    border: 0; border-inline-start: 1px solid var(--border);
    background: #fff; color: var(--text);
    display: none; flex-direction: column; gap: 20px;
}
.sheet[open] { display: flex; animation: sheet-in 0.35s var(--ease); }
.sheet::backdrop { background: rgba(9, 9, 11, 0.32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet[open]::backdrop { animation: fade-in 0.3s ease; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-nav { display: flex; flex-direction: column; }
.sheet-nav a { padding: 14px 4px; font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid var(--border-soft); }
.sheet-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
@keyframes sheet-in { from { transform: translateX(100%); } to { transform: none; } }
[dir="rtl"] .sheet[open] { animation-name: sheet-in-rtl; }
@keyframes sheet-in-rtl { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(64px, 8vw, 112px); }
/* Sections below the hero are laid out and painted only when they come near
   the screen: the first render of this long page drops to the hero alone.
   "auto" keeps each section's real height once it has been seen. */
main > .sec { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.sec-subtle { background: var(--bg-subtle); border-block: 1px solid var(--border-soft); }
.sec-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; display: grid; gap: 14px; justify-items: center; }
.sec-head-start { text-align: start; justify-items: start; margin-inline: 0; }
.sec-sub { color: var(--text-2); font-size: 1.075rem; }

.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(600px 380px at 85% 10%, rgba(220, 38, 38, 0.09), transparent 70%),
        radial-gradient(520px 320px at 5% 90%, rgba(9, 9, 11, 0.035), transparent 70%),
        linear-gradient(to right, rgba(9, 9, 11, 0.045) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(to bottom, rgba(9, 9, 11, 0.045) 1px, transparent 1px) 0 0 / 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
}
[dir="rtl"] .hero-bg { transform: scaleX(-1); }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: 0.925rem; font-weight: 600; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .ic { color: var(--red); font-size: 1.1rem; }

.hero-visual { position: relative; padding-bottom: 8%; padding-inline-start: 7%; }
.device { margin: 0; background: #fff; overflow: hidden; position: relative; }
.device-web { border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); }
.device-bar { display: flex; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--border-soft); background: #fafafa; direction: ltr; }
.device-bar span { width: 9px; height: 9px; border-radius: 50%; background: #d4d4d8; }
.device-web img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }
.device-phone { border: 7px solid #18181b; border-radius: 30px; box-shadow: var(--shadow-lg); background: #18181b; }
.device-phone img { width: 100%; aspect-ratio: 780 / 1688; object-fit: cover; object-position: top; border-radius: 22px; }

.hero-visual .device-web { transform: translate3d(0, var(--py, 0px), 0); }
.hero-visual .device-phone {
    position: absolute; bottom: 0; inset-inline-start: 0; width: 27%; min-width: 108px;
    transform: translate3d(0, var(--py, 0px), 0);
}
.scanline {
    position: absolute; inset-inline: 10%; top: 34%; height: 2px; border-radius: 2px;
    background: var(--red); box-shadow: 0 0 12px 2px rgba(220, 38, 38, 0.55);
    opacity: 0;
}
.hero-visual.is-in .scanline { animation: scan 1.6s var(--ease) 1.1s 2 both; }
@keyframes scan {
    0% { opacity: 0; transform: translateY(0); }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; transform: translateY(90px); }
}

@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
}

/* ---------- Pain points ---------- */
.pain-grid { display: grid; gap: 16px; }
.pain { padding: 26px; display: grid; gap: 12px; align-content: start; }
.pain p { color: var(--text-2); font-size: 0.95rem; }
.pain-ic, .more-ic {
    width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center;
    background: var(--red-soft); color: var(--red); font-size: 1.2rem;
}
.pain:hover, .more:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
@media (min-width: 640px) { .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .pain-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Feature tour ---------- */
.tour { display: grid; gap: 40px; }
.tour-media { display: none; }
.tour-steps { display: grid; gap: 56px; }
.tour-step { display: grid; gap: 12px; }
.tour-step > p:not(.tour-label) { color: var(--text-2); font-size: 1.05rem; max-width: 34em; }
.tour-label {
    display: inline-flex; align-items: center; gap: 8px; justify-self: start;
    font-weight: 700; font-size: 0.85rem; color: var(--red);
    background: var(--red-soft); padding: 6px 12px; border-radius: 999px;
}
.tour-inline { margin: 12px 0 0; }
.tour-inline-phone .device-phone { width: 210px; margin-inline: auto; }

@media (min-width: 1024px) {
    .tour { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 64px; align-items: start; }
    .tour-media { display: block; position: sticky; top: calc(var(--hdr-h) + 32px); }
    .tour-frame {
        position: relative; aspect-ratio: 16 / 11; border-radius: var(--r-xl);
        background: linear-gradient(160deg, #f8fafc, #f1f5f9 60%, #fef2f2);
        border: 1px solid var(--border);
        overflow: hidden;
    }
    .tour-shot {
        position: absolute; inset: 32px; display: grid; place-items: center;
        opacity: 0; transform: translateY(16px) scale(0.985);
        transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
        pointer-events: none;
    }
    .tour-shot.is-active { opacity: 1; transform: none; }
    .tour-shot .device-web { width: 100%; }
    .tour-shot-phone .device-phone { height: 100%; width: auto; aspect-ratio: auto; }
    .tour-shot-phone .device-phone img { height: 100%; width: auto; }
    .tour-steps { gap: 0; }
    .tour-step {
        min-height: 62vh; align-content: center;
        padding-inline-start: 24px; border-inline-start: 2px solid var(--border);
        opacity: 0.38; transition: opacity 0.4s ease, border-color 0.4s ease;
    }
    .tour-step.is-active { opacity: 1; border-inline-start-color: var(--red); }
    .tour-inline { display: none; }
}

.more-title { text-align: center; font-size: 1.25rem; margin: clamp(56px, 7vw, 96px) 0 24px; }
.more-grid { display: grid; gap: 16px; }
.more { padding: 24px; display: grid; gap: 10px; align-content: start; }
.more p { color: var(--text-2); font-size: 0.95rem; }
.more .h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag {
    font-size: 0.72rem; font-weight: 700; color: var(--text-2); background: var(--border-soft);
    border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; letter-spacing: 0;
}
@media (min-width: 640px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; gap: 36px; max-width: 1040px; margin-inline: auto; }
.steps-line { display: none; }
/* Phone: one connector per step, from its number down to the next one. */
.step:not(:last-child)::before, .step:not(:last-child)::after {
    content: ''; position: absolute; inset-inline-start: 27px; top: 56px; bottom: -36px; width: 2px; background: var(--border);
}
.step:not(:last-child)::after {
    background: var(--red); transform: scaleY(0); transform-origin: top;
    transition: transform 0.5s var(--ease) calc(0.35s + var(--d, 0) * 0.4s);
}
.steps.is-in .step::after { transform: scaleY(1); }
.step { position: relative; padding-inline-start: 80px; display: grid; gap: 8px; min-height: 56px; }
.step p { color: var(--text-2); }
.step-num {
    position: absolute; inset-inline-start: 0; top: 0; z-index: 1;
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; border: 2px solid var(--border); font-weight: 800; font-size: 1.15rem; color: var(--muted);
    transition: border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
    transition-delay: calc(0.25s + var(--d, 0) * 0.4s);
    font-family: 'Plus Jakarta Sans', var(--font);
}
.steps.is-in .step-num { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 6px var(--red-soft); }
@media (min-width: 768px) {
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
    .step:not(:last-child)::before, .step:not(:last-child)::after { display: none; }
    .steps-line { display: block; position: absolute; inset-inline: 16.66%; top: 27px; height: 2px; background: var(--border); }
    .steps-line span {
        position: absolute; inset: 0; background: var(--red);
        transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) 0.2s;
    }
    [dir="rtl"] .steps-line span { transform-origin: right; }
    .steps.is-in .steps-line span { transform: scaleX(1); }
    .step { padding-inline-start: 0; padding-top: 80px; text-align: center; justify-items: center; }
    .step-num { inset-inline-start: 50%; transform: translateX(-50%); }
    [dir="rtl"] .step-num { transform: translateX(50%); }
    .step p { max-width: 22em; }
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 20px; max-width: 1080px; margin-inline: auto; align-items: stretch; }
.price { position: relative; padding: 32px 28px 28px; display: flex; flex-direction: column; }
.price.is-popular { border: 2px solid var(--red); box-shadow: 0 24px 50px -28px rgba(220, 38, 38, 0.45); }
.price:hover { box-shadow: var(--shadow-md); }
.price.is-popular:hover { box-shadow: 0 28px 56px -26px rgba(220, 38, 38, 0.5); }
.price-pill {
    position: absolute; top: -13px; inset-inline-start: 24px;
    background: var(--red); color: #fff; font-size: 0.75rem; font-weight: 800;
    padding: 4px 12px; border-radius: 999px; letter-spacing: 0.02em;
}
.price-name { font-size: 1.15rem; font-weight: 800; }
.price-amounts { margin: 14px 0 24px; min-height: 4.6rem; }
.price-amount[hidden] { display: none; }
.price-amount.is-swap { animation: price-in 0.45s var(--ease) both; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price-equiv { margin-top: 8px; color: var(--text-2); font-size: 0.92rem; font-weight: 600; }
.price-save {
    align-self: center; background: var(--ok-soft); color: var(--ok); font-size: 0.78rem; font-weight: 800;
    padding: 3px 9px; border-radius: 999px; direction: ltr; unicode-bidi: isolate;
}
.price-na { color: var(--muted); font-weight: 600; padding-top: 12px; }
@keyframes price-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Period switch: 3 months / 6 months / 1 year above the cards. */
.period-switch {
    position: relative; display: flex; width: max-content; max-width: 100%; margin: -8px auto 36px;
    padding: 5px; gap: 2px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 999px;
}
.period-thumb {
    position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px;
    background: var(--bg); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border);
    transform: translateX(var(--x, 0)); width: var(--w, 0); opacity: 0;
}
.period-switch.is-ready .period-thumb { opacity: 1; }
.period-switch.is-moving .period-thumb { transition: transform 0.4s var(--ease), width 0.4s var(--ease); }
.period-btn {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none; cursor: pointer;
    font: inherit; font-weight: 700; font-size: 0.95rem; color: var(--text-2); transition: color 0.25s;
}
.period-btn:hover { color: var(--text); }
.period-btn[aria-checked="true"] { color: var(--text); }
.period-switch:not(.is-ready) .period-btn[aria-checked="true"] { background: var(--bg); box-shadow: var(--shadow-sm); }
.period-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.period-save {
    background: var(--ok-soft); color: var(--ok); font-size: 0.72rem; font-weight: 800;
    padding: 2px 7px; border-radius: 999px; direction: ltr; unicode-bidi: isolate;
}
@media (max-width: 480px) {
    .period-switch { width: 100%; margin-bottom: 28px; }
    .period-btn { flex: 1 1 0; justify-content: center; padding: 0 8px; font-size: 0.9rem; gap: 5px; }
    .period-save { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .price-amount.is-swap { animation: none; }
    .period-switch.is-moving .period-thumb { transition: none; }
}
.price-value { font-size: clamp(2.3rem, 2rem + 1vw, 2.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; font-family: 'Plus Jakarta Sans', var(--font); }
.price-per { color: var(--muted); font-weight: 600; }
.price-list { display: grid; gap: 12px; margin-bottom: 28px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.price-list .ic { color: var(--red); font-size: 1.15rem; margin-top: 2px; }
.price-list li.is-off { color: var(--muted); }
.price-list li.is-off .ic { color: #a1a1aa; }
.price .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--text-2); margin-top: 32px; font-size: 0.95rem; }
.price-empty { text-align: center; color: var(--text-2); }
.price-empty a { color: var(--red); font-weight: 700; text-decoration: underline; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(auto-fit, minmax(0, 340px)); justify-content: center; } } /* 2 or 3 packs, centred */

/* ---------- Demo request ---------- */
.demo-grid { display: grid; gap: 40px; align-items: start; }
.demo-copy { display: grid; gap: 16px; justify-items: start; }
.demo-points { display: grid; gap: 14px; margin: 8px 0 6px; }
.demo-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.demo-dot {
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background: var(--red-soft); color: var(--red); font-size: 0.95rem;
}
.wa-inline {
    display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff;
    font-weight: 700; font-size: 0.925rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.wa-inline .ic { color: #1faa53; font-size: 1.2rem; }
.wa-inline bdi { color: var(--muted); font-weight: 600; }
.wa-inline:hover { border-color: #1faa53; box-shadow: var(--shadow-sm); }

.demo-card { padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-lg); border-radius: var(--r-xl); }
.demo-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field input, .field select {
    width: 100%; height: 50px; padding: 0 14px; font: inherit; font-size: 1rem; color: var(--text);
    background: #fff; border: 1px solid var(--border-2); border-radius: var(--r-md);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #a1a1aa; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:hover, .field select:hover { border-color: #a1a1aa; }
.field input:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-ring); }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.field-error { color: var(--red-h); font-size: 0.85rem; font-weight: 600; }
.field-error:empty { display: none; }
.select { position: relative; }
.select select { padding-inline-end: 40px; cursor: pointer; }
.select select:invalid { color: #a1a1aa; }
.select .ic { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pack-chip {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 10px 10px 14px; border-radius: var(--r-md); background: var(--red-soft); color: var(--text);
    font-size: 0.925rem; animation: pop 0.35s var(--ease);
}
[dir="rtl"] .pack-chip { padding: 10px 14px 10px 10px; }
.pack-chip button {
    width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px;
    background: transparent; color: var(--text-2); cursor: pointer;
}
.pack-chip button:hover { background: rgba(220, 38, 38, 0.12); color: var(--text); }
.form-error { color: var(--red-h); font-weight: 600; font-size: 0.925rem; padding: 10px 14px; background: var(--red-soft); border-radius: var(--r-md); }
.form-note { color: var(--muted); font-size: 0.825rem; text-align: center; }
.demo-success { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 32px 8px; outline: none; }
.demo-success p { color: var(--text-2); }
.success-ic {
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: var(--ok-soft); color: var(--ok); font-size: 1.9rem; animation: pop 0.5s var(--ease);
}
@keyframes pop { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 960px) {
    .demo-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 64px; }
    .demo-copy { position: sticky; top: calc(var(--hdr-h) + 40px); }
}

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 8px; }
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 2px; font-weight: 700; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { color: var(--muted); font-size: 1rem; transition: transform 0.35s var(--ease); }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item summary:hover span { color: var(--red); }
.faq-a { overflow: hidden; }
.faq-a p { color: var(--text-2); padding: 0 2px 22px; max-width: 46em; }
@media (min-width: 1024px) {
    .faq-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
}

/* ---------- Footer ---------- */
.ftr { background: var(--bg-subtle); border-top: 1px solid var(--border); padding-top: 56px; }
.ftr-grid { display: grid; gap: 32px; padding-bottom: 40px; }
.ftr-tag { color: var(--text-2); margin-top: 14px; max-width: 26em; font-size: 0.95rem; }
.ftr-title { font-weight: 800; font-size: 0.875rem; margin-bottom: 12px; }
.ftr ul { display: grid; gap: 8px; }
.ftr ul a { color: var(--text-2); font-size: 0.925rem; }
.ftr ul a:hover { color: var(--red); }
.ftr-bottom { border-top: 1px solid var(--border); padding-block: 20px 28px; color: var(--muted); font-size: 0.85rem; }
@media (min-width: 640px) { .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ftr-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- Floating WhatsApp (bottom right in both languages) ---------- */
.wa-float {
    position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    display: flex; align-items: center; gap: 10px; direction: ltr;
    animation: wa-in 0.6s var(--ease) 1.2s both;
}
.wa-float-btn {
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: var(--wa); color: #fff; font-size: 1.75rem;
    box-shadow: 0 10px 28px -8px rgba(37, 211, 102, 0.65), 0 2px 6px rgba(9, 9, 11, 0.12);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.wa-float-label {
    display: none; padding: 9px 14px; border-radius: 999px; background: #fff; color: var(--text);
    border: 1px solid var(--border); box-shadow: var(--shadow-md); font-weight: 700; font-size: 0.875rem;
    opacity: 0; transform: translateX(8px); transition: opacity 0.25s, transform 0.3s var(--ease);
    white-space: nowrap;
}
html[lang^="ar"] .wa-float-label { direction: rtl; }
.wa-float:hover .wa-float-btn, .wa-float:focus-visible .wa-float-btn { transform: scale(1.06); }
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-float-btn { outline: 3px solid var(--text); outline-offset: 3px; }
@media (min-width: 768px) {
    .wa-float-label { display: block; }
    .wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { opacity: 1; transform: none; }
}
@media (max-width: 380px) { .wa-float { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } .wa-float-btn { width: 52px; height: 52px; } }
@keyframes wa-in { from { opacity: 0; transform: translateY(16px) scale(0.9); } to { opacity: 1; transform: none; } }

/* ---------- Intro video: dark band, fading grid, dashboard thumbnail ---------- */
.sec-video {
    position: relative; isolation: isolate; overflow: hidden; /* overflow also keeps the glows from widening phone layouts */
    padding-block: clamp(56px, 7vw, 104px);
    background: #09090b; color: #fafafa;
}
.sec-video::before { /* grid, solid in the middle, fading to nothing at the edges */
    content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 44px 44px; background-position: center;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 10%, rgba(0, 0, 0, 0.35) 45%, transparent 78%);
            mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 10%, rgba(0, 0, 0, 0.35) 45%, transparent 78%);
}
.sec-video::after { /* soft light from the top so the band does not look flat */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%);
}
.sec-video .eyebrow { color: #f87171; }
.sec-video .h2 { color: #fafafa; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
.sec-video .sec-sub { color: #a1a1aa; max-width: 34em; }

.video-grid { display: grid; gap: clamp(36px, 5vw, 80px); align-items: center; }
.video-copy { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 560px; margin-inline: auto; }
.video-copy .btn { margin-top: 8px; }
.video-stage { position: relative; isolation: isolate; width: min(100%, 400px); margin-inline: auto; }
.video-stage::before {
    content: ""; position: absolute; inset: -14% -24%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(220, 38, 38, 0.32), rgba(220, 38, 38, 0) 75%);
}
.vid {
    position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden;
    background: #18181b; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r-xl);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 6px rgba(255, 255, 255, 0.03);
}
.vid-media { display: block; width: 100%; height: 100%; object-fit: cover; background: #fff; }

/* The whole frame is the play button; it holds the thumbnail. */
.vid-play {
    position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 0; border: 0;
    color: #fff; font: inherit; cursor: pointer; background: transparent;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.vid-play[hidden] { display: none; }
.vid-play:focus-visible { outline: 3px solid #f87171; outline-offset: -3px; border-radius: var(--r-xl); }
.vid.is-playing .vid-play { opacity: 0; visibility: hidden; pointer-events: none; }

.vid-thumb { /* composition is identical in both languages */
    position: absolute; inset: 0; overflow: hidden;
    background: radial-gradient(120% 75% at 50% 0%, #27272a 0%, #111113 55%, #09090b 100%);
}
.vid-thumb::before { /* small grid inside the frame too */
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
            mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.vid-thumb::after { /* scrim: the play button and the badge stay readable */
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(9, 9, 11, 0.35), transparent 45%),
        linear-gradient(to top, rgba(9, 9, 11, 0.8), rgba(9, 9, 11, 0) 38%);
}
.vid-thumb img { display: block; width: 100%; height: auto; }
.vid-thumb-web {
    position: absolute; top: 12%; left: 9%; width: 150%;
    border-radius: 10px; overflow: hidden; background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.8);
    transition: transform 0.6s var(--ease);
}
.vid-thumb-web .device-bar { background: #f4f4f5; }
.vid-thumb-phone {
    position: absolute; right: 7%; top: 60%; width: 36%;
    border: 5px solid #27272a; border-radius: 24px; overflow: hidden; background: #27272a;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.6s var(--ease);
}
.vid-play:hover .vid-thumb-web { transform: translateY(-4px); }
.vid-play:hover .vid-thumb-phone { transform: translateY(-8px); }

/* Play button with two soft rings rolling out of it. */
.vid-cta { position: relative; display: grid; place-items: center; width: 84px; height: 84px; }
.vid-ring {
    position: absolute; inset: 0; border-radius: 50%;
    background: rgba(239, 68, 68, 0.45);
    animation: vid-ring 2.8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
.vid-ring + .vid-ring { animation-delay: 1.4s; }
.vid-play-btn {
    position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f05252, var(--red) 60%, var(--red-h));
    box-shadow: 0 14px 34px -8px rgba(220, 38, 38, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    animation: vid-breathe 2.8s ease-in-out infinite;
    transition: transform 0.35s var(--ease);
}
.vid-play-btn .ic { width: 30px; height: 30px; margin-left: 5px; } /* optical centre; the play glyph never flips */
.vid-play:hover .vid-play-btn, .vid-play:focus-visible .vid-play-btn { animation: none; transform: scale(1.1); }
@keyframes vid-ring {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.1); opacity: 0; }
}
@keyframes vid-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.vid-time {
    position: absolute; right: 14px; bottom: 14px;
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
    background: rgba(9, 9, 11, 0.7); border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums;
}

@media (min-width: 960px) {
    .video-grid { grid-template-columns: minmax(0, 1fr) 420px; max-width: 1060px; }
    .video-copy { justify-items: start; text-align: start; margin-inline: 0; }
    .video-stage { width: 100%; }
}
@media (max-width: 380px) {
    .vid-cta { width: 70px; height: 70px; }
    .vid-play-btn .ic { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { /* no movement: one ring that only fades in and out */
    .vid-ring { transform: scale(1.4); animation: vid-glow 3s ease-in-out infinite !important; }
    .vid-ring + .vid-ring { display: none; }
}
@keyframes vid-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.55; }
}

/* ---------- Trade picker (moto / auto) ----------
   html[data-edition] is set before first paint (inline script in <head>).
   Without JS there is no data-edition: both trades show, one after the other. */
html[data-edition="moto"] [data-only="auto"],
html[data-edition="auto"] [data-only="moto"] { display: none !important; }
/* With JS the trade switch says which trade is shown; the title stays for screen readers (h2 > h3 > h4). */
html.js .price-group-title {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
html:not(.js) .trade-switch, html:not(.js) .trade-card-cta, html:not(.js) .trade-card-on { display: none; }

.trade-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.trade-pick-label { font-weight: 700; color: var(--text-2); font-size: 0.95rem; }
.trade-switch {
    position: relative; display: inline-flex; padding: 5px; gap: 2px;
    background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 999px;
}
.trade-thumb {
    position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px;
    background: var(--text); box-shadow: var(--shadow-sm);
    transform: translateX(var(--x, 0)); width: var(--w, 0); opacity: 0;
}
.trade-switch.is-ready .trade-thumb { opacity: 1; }
.trade-switch.is-moving .trade-thumb { transition: transform 0.4s var(--ease), width 0.4s var(--ease); }
.trade-btn {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none; cursor: pointer;
    font: inherit; font-weight: 700; font-size: 0.975rem; color: var(--text-2); transition: color 0.25s;
}
.trade-btn .ic { font-size: 1.15rem; }
.trade-btn:hover { color: var(--text); }
.trade-btn[aria-checked="true"] { color: #fff; }
.trade-switch:not(.is-ready) .trade-btn[aria-checked="true"] { background: var(--text); }
.trade-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 480px) {
    .trade-pick:not(.trade-pick-compact) { width: 100%; }
    .trade-pick:not(.trade-pick-compact) .trade-switch { width: 100%; }
    .trade-pick:not(.trade-pick-compact) .trade-btn { flex: 1 1 0; justify-content: center; }
}

/* Hero: one set of visuals per trade; it fades in when the trade changes
   (never from 0: the screenshot is the LCP element on large screens). */
.hero-set { position: relative; }
html.js .hero-set { animation: hero-set-in 0.45s ease both; }
@keyframes hero-set-in { from { opacity: 0.2; } to { opacity: 1; } }
.hero-vmock {
    position: absolute; bottom: 0; inset-inline-start: 0; width: min(64%, 300px);
    transform: translate3d(0, var(--py, 0px), 0);
}
.hero-vmock .vmock { box-shadow: var(--shadow-lg); }
@media (max-width: 1023.98px) { /* taller than the screenshot: under it, not over the copy */
    .hero-vmock { position: relative; bottom: auto; width: min(90%, 360px); margin-top: -64px; margin-inline-start: auto; }
}

/* Search by vehicle, drawn in HTML (car edition). */
.vmock {
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 16px; display: grid; gap: 12px; font-size: 0.875rem;
}
.vmock-title { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.vmock-title .ic { color: var(--red); font-size: 1.15rem; }
.vmock-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vmock-select {
    display: grid; gap: 2px; padding: 7px 10px; border: 1px solid var(--border-2); border-radius: 10px;
    background: var(--bg-subtle); min-width: 0;
}
.vmock-select span { color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.vmock-select strong { font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vmock-sub { color: var(--text-2); font-weight: 700; font-size: 0.8rem; }
.vmock-parts { display: grid; gap: 6px; }
.vmock-parts li {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; border-radius: 10px; background: var(--bg-subtle); font-weight: 600;
}
.vmock-parts em {
    display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-style: normal;
    font-size: 0.72rem; font-weight: 800; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px;
}

/* Trade cards: both always visible; the chosen one is outlined. */
.trade-grid { display: grid; gap: 20px; max-width: 1080px; margin-inline: auto; }
.trade-card { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.trade-card-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.trade-card-ic {
    width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center;
    background: var(--red-soft); color: var(--red); font-size: 1.6rem;
}
.trade-card-lead { color: var(--text-2); margin-top: 4px; }
.trade-card-on {
    grid-column: 1 / -1; justify-self: start; display: none; align-items: center; gap: 6px;
    font-size: 0.8rem; font-weight: 800; color: var(--red); background: var(--red-soft); padding: 4px 10px; border-radius: 999px;
}
.trade-points { display: grid; gap: 12px; }
.trade-points li { display: flex; gap: 10px; align-items: flex-start; }
.trade-points .ic { color: var(--red); font-size: 1.15rem; margin-top: 4px; }
.trade-points .tag { margin-inline-start: 6px; vertical-align: 1px; }
.trade-card-visual { margin-top: auto; border-radius: var(--r-md); background: linear-gradient(160deg, #f8fafc, #fef2f2); padding: 16px; }
.trade-card-visual .device-web { box-shadow: var(--shadow-md); }
html[data-edition="moto"] .trade-card[data-card="moto"],
html[data-edition="auto"] .trade-card[data-card="auto"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 24px 50px -28px rgba(220, 38, 38, 0.45); }
html[data-picked="moto"] .trade-card[data-card="moto"] .trade-card-on,
html[data-picked="auto"] .trade-card[data-card="auto"] .trade-card-on { display: inline-flex; animation: pop 0.35s var(--ease); }
.trade-card:hover { transform: translateY(-3px); }
@media (min-width: 768px) { .trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Workshop: the steps beside a drawn job card. */
.workshop-grid { display: grid; gap: 40px; align-items: center; }
.workshop-grid .sec-head { margin-bottom: 28px; }
.workshop-list { display: grid; gap: 22px; }
.workshop-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.workshop-list p { color: var(--text-2); font-size: 0.95rem; margin-top: 4px; }
.job {
    width: min(100%, 420px); margin-inline: auto; background: #fff; border: 1px solid var(--border);
    border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-lg); display: grid; gap: 16px;
}
.job-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.job-ic { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--text); color: #fff; font-size: 1.2rem; }
.job-no { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.job-type { font-weight: 800; }
.job-status { font-size: 0.75rem; font-weight: 800; color: #b45309; background: #fffbeb; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.job-mech { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; font-size: 0.9rem; }
.job-mech .ic { color: var(--red); }
.job-lines { display: grid; gap: 8px; }
.job-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--bg-subtle); border-radius: 10px; font-size: 0.925rem; }
.job-lines bdi { color: var(--muted); font-weight: 700; }
.job-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px dashed var(--border-2); font-weight: 700; }
.job-total strong { font-size: 1.35rem; font-family: 'Plus Jakarta Sans', var(--font); }
.job-bar { height: 8px; border-radius: 999px; background: var(--border-soft); overflow: hidden; }
.job-bar span {
    display: block; height: 100%; width: 60%; border-radius: inherit; background: linear-gradient(90deg, var(--ok), #10b981);
    transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) 0.4s;
}
[dir="rtl"] .job-bar span { transform-origin: right; }
.job.is-in .job-bar span, html:not(.js) .job-bar span { transform: scaleX(1); }
@media (min-width: 960px) { .workshop-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; } }

/* Your day: a timeline that draws itself (vertical on phones and tablets). */
.day { position: relative; display: grid; gap: 28px; max-width: 1080px; margin-inline: auto; }
.day-line { display: none; }
.day-item { position: relative; padding-inline-start: 72px; display: grid; gap: 6px; min-height: 52px; }
.day-item p { color: var(--text-2); }
.day-item:not(:last-child)::before {
    content: ''; position: absolute; inset-inline-start: 25px; top: 52px; bottom: -28px; width: 2px; background: var(--border);
}
.day-ic {
    position: absolute; inset-inline-start: 0; top: 0; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; border: 2px solid var(--border); color: var(--muted); font-size: 1.25rem;
    transition: border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease; transition-delay: calc(0.2s + var(--d, 0) * 0.3s);
}
.day.is-in .day-ic { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 6px var(--red-soft); }
@media (min-width: 1024px) {
    .day { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .day-item { padding-inline-start: 0; padding-top: 72px; text-align: center; justify-items: center; }
    .day-item:not(:last-child)::before { display: none; }
    .day-ic { inset-inline-start: 50%; transform: translateX(-50%); }
    [dir="rtl"] .day-ic { transform: translateX(50%); }
    .day-line { display: block; position: absolute; inset-inline: 12.5%; top: 25px; height: 2px; background: var(--border); }
    .day-line span { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) 0.2s; }
    [dir="rtl"] .day-line span { transform-origin: right; }
    .day.is-in .day-line span { transform: scaleX(1); }
}

/* Pricing: trade switch and period switch side by side; one group per trade. */
.pricing-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; margin: -8px auto 36px; }
.pricing-controls .period-switch { margin: 0; }
.price-group + .price-group { margin-top: 40px; }
.price-group-title { text-align: center; font-size: 1.25rem; margin-bottom: 20px; }
html.js .price-group .price { animation: price-in 0.45s var(--ease) both; }
@media (max-width: 480px) {
    .pricing-controls .trade-pick, .pricing-controls .trade-switch { width: 100%; }
    .pricing-controls .trade-btn { flex: 1 1 0; justify-content: center; }
}

/* Demo form: the trade as two big radio cards. */
.trade-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.trade-field legend { font-weight: 700; font-size: 0.9rem; padding: 0; margin-bottom: 7px; }
.trade-radios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trade-radio { position: relative; cursor: pointer; }
.trade-radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.trade-radio-box {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 12px;
    border: 1px solid var(--border-2); border-radius: var(--r-md); background: #fff; font-weight: 700;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.trade-radio-box .ic { font-size: 1.25rem; color: var(--muted); transition: color 0.2s; }
.trade-radio:hover .trade-radio-box { border-color: #a1a1aa; }
.trade-radio input:checked + .trade-radio-box { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); background: var(--red-soft); }
.trade-radio input:checked + .trade-radio-box .ic { color: var(--red); }
.trade-radio input:focus-visible + .trade-radio-box { box-shadow: 0 0 0 4px var(--red-ring); }
.trade-field.has-error .trade-radio-box { border-color: var(--red); }

.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.ftr-langs { display: flex; gap: 8px; }
.ftr-langs a:hover { color: var(--red); }

/* Tutorials teaser (under the steps): thumbnails, copy and a link to /tutorials. */
.teaser {
    display: grid; gap: 20px; align-items: center; margin: clamp(48px, 6vw, 72px) auto 0; max-width: 1040px;
    padding: 20px; border-radius: var(--r-xl);
}
.teaser:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.teaser-thumbs { position: relative; display: flex; gap: 8px; justify-content: center; direction: ltr; }
.teaser-thumbs img { width: 64px; height: 114px; object-fit: cover; border-radius: 12px; background: var(--border-soft); box-shadow: var(--shadow-sm); }
.teaser-thumbs img:nth-child(2) { transform: translateY(-8px); }
.teaser-play {
    position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: var(--red); color: #fff; box-shadow: var(--shadow-red); font-size: 1.1rem;
}
.teaser-play .ic { margin-left: 3px; }
.teaser-body { display: grid; gap: 6px; }
.teaser-title { font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.teaser-text { color: var(--text-2); }
.teaser-cta { justify-self: start; }
@media (min-width: 768px) {
    .teaser { grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; padding: 22px 28px; }
    .teaser-cta { justify-self: end; }
}

/* ---------- Scroll reveal (only with JS; content stays visible without it) ---------- */
html.js [data-anim]:not(.is-in) { opacity: 0; }
html.js [data-anim].is-in { animation: reveal 0.75s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 90ms); }
html.js [data-anim="rise"].is-in { animation-name: reveal-rise; animation-duration: 0.95s; }
/* The hero is on screen at load and holds the LCP element: it animates from
   the first paint, without waiting for the deferred script and its .is-in,
   and never starts fully transparent (Chrome only counts the LCP of an
   element faded in from opacity 0 once the fade ends). */
html.js .hero [data-anim] { opacity: 1; animation: hero-in 0.7s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 60ms); }
html.js .hero [data-anim="rise"] { animation-name: hero-rise; animation-duration: 0.9s; }
@keyframes hero-in { from { opacity: 0.2; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes hero-rise { from { opacity: 0.2; transform: translate3d(0, 32px, 0) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes reveal-rise { from { opacity: 0; transform: translate3d(0, 36px, 0) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
    html.js [data-anim]:not(.is-in) { opacity: 1; }
    .scanline { display: none; }
    .hero-visual .device-web, .hero-visual .device-phone, .hero-vmock { transform: none; }
}

/* ---------- /connexion: which workspace? ---------- */
.login-page {
    min-height: calc(100svh - var(--hdr-h));
    display: grid; align-items: center;
    padding-block: clamp(32px, 6vw, 72px);
    background: var(--bg-subtle);
}
.login-card { max-width: 460px; margin-inline: auto; padding: clamp(24px, 4vw, 36px); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); display: grid; gap: 22px; }
.login-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem); font-weight: 800; line-height: 1.25; }
.login-intro { color: var(--text-2); margin-top: -12px; }
.login-form { display: grid; gap: 18px; }
.login-field {
    display: flex; align-items: stretch; height: 50px; overflow: hidden;
    background: #fff; border: 1px solid var(--border-2); border-radius: var(--r-md);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-field:hover { border-color: #a1a1aa; }
.login-field:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-ring); }
.field.has-error .login-field { border-color: var(--red); }
.field .login-field input { flex: 1; min-width: 0; height: auto; border: 0; border-radius: 0; box-shadow: none; text-align: left; }
.field .login-field input:focus { box-shadow: none; }
.login-suffix {
    display: flex; align-items: center; padding-inline: 12px; max-width: 55%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--muted); background: var(--bg-subtle); border-inline-start: 1px solid var(--border);
    font-size: 0.95rem;
}
.login-hint { color: var(--muted); font-size: 0.85rem; }
.login-links { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--border-soft); font-size: 0.925rem; }
.login-links a { color: var(--text-2); font-weight: 600; text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.login-links a:hover { color: var(--red-h); text-decoration-color: currentColor; }
