/* amacar.ae prototype v0.1 - "Spec Sheet at night". One theme (dark), one accent (plate red), sharp corners. */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Kufi"; src: url("/fonts/kufi-ar.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

@font-face { font-family: "SofiaXC"; src: url("/fonts/sofia-xc-cyr.woff2") format("woff2"); font-weight: 1 1000; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "SofiaXC"; src: url("/fonts/sofia-xc-lat.woff2") format("woff2"); font-weight: 1 1000; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Sofia"; src: url("/fonts/sofia-cyr.woff2") format("woff2"); font-weight: 1 1000; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia"; src: url("/fonts/sofia-lat.woff2") format("woff2"); font-weight: 1 1000; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --ink: #0a0a0b;
  --ink-2: #131315;
  --paper: #f1eee8;
  --mute: #a19e97;
  --line: rgb(241 238 232 / .16);
  --red: #d7261e;
  --red-press: #b81f18;
  --pad: clamp(1rem, 3.2vw, 3.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* layers: 10 nav */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 1rem/1.55 "Archivo", "Kufi", system-ui, sans-serif; touch-action: manipulation; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

/* Display type: condensed heavy Latin, Kufi for Arabic (no uppercase, no tracking on Arabic) */
.display { font-family: "Archivo", "Kufi", sans-serif; font-stretch: 62%; font-weight: 800; line-height: .88; text-transform: uppercase; letter-spacing: -.01em; }
[dir="rtl"] body { font-family: "Kufi", "Archivo", system-ui, sans-serif; line-height: 1.8; }
[dir="rtl"] .display { font-family: "Kufi", "Archivo", sans-serif; font-stretch: 100%; line-height: 1.3; letter-spacing: 0; text-transform: none; }
/* Russian: one family with Cyrillic. Chinese: system faces, no condensing. */
html[lang="ru"] body { font-family: "Sofia", system-ui, sans-serif; font-size: 1.06rem; }
html[lang="ru"] .display { font-family: "SofiaXC", "Sofia", sans-serif; font-stretch: 100%; font-weight: 800; line-height: .92; letter-spacing: 0; }
html[lang="zh"] body { font-family: "Archivo", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; line-height: 1.75; }
html[lang="zh"] .display { font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Archivo", sans-serif; font-stretch: 100%; font-weight: 800; line-height: 1.2; letter-spacing: 0; font-size-adjust: none; }
html[lang="zh"] .hero h1, html[lang="zh"] .sec-head h2, html[lang="zh"] .close h2, html[lang="zh"] .step h3, html[lang="zh"] .docs h2 { font-size: clamp(2.6rem, 7.4vw, 8rem); }
.num { font-family: "Archivo", sans-serif; font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 3.25rem; padding: 0 1.4rem; font-weight: 600; font-size: 1rem; white-space: nowrap; transition: background-color .25s var(--ease), transform .15s var(--ease), border-color .25s var(--ease); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-press); }
.btn-line { border: 1px solid rgb(241 238 232 / .55); background: rgb(10 10 11 / .45); }
.btn-line:hover { border-color: var(--paper); background: rgb(10 10 11 / .7); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; height: 68px; display: flex; align-items: center; gap: 1rem; padding-inline: var(--pad); transition: background-color .3s var(--ease); }
.nav.solid { background: rgb(10 10 11 / .94); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: .55rem; margin-inline-end: auto; }
.brand b { font-stretch: 62%; font-weight: 900; font-size: 1.9rem; letter-spacing: .02em; line-height: 1; }
.brand b i { font-style: normal; color: var(--red); }
.brand span { font-size: .85rem; color: var(--mute); }
.nav-links { display: none; gap: 1.75rem; font-size: .95rem; }
.nav-links a { padding-block: .5rem; border-bottom: 1px solid transparent; transition: border-color .25s var(--ease); }
.nav-links a:hover { border-color: var(--paper); }
.lang { position: relative; display: flex; align-items: center; }
.lang select { appearance: none; -webkit-appearance: none; background: transparent; color: var(--paper); border: 1px solid rgb(241 238 232 / .4); border-radius: 0; height: 2.75rem; padding-inline: .8rem 2rem; font: 500 16px/1 "Archivo", "Kufi", "Sofia", system-ui, sans-serif; cursor: pointer; }
.lang select option { color: #111; }
.lang svg { position: absolute; inset-inline-end: .6rem; width: .9rem; height: .9rem; pointer-events: none; }
.nav .btn { min-height: 2.75rem; padding: 0 1rem; }
@media (min-width: 1000px) { .nav-links { display: flex; } }
@media (max-width: 420px) { .brand span { display: none; } .nav { gap: .6rem; } }

/* Hero */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero picture img { object-fit: cover; object-position: 62% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(10 10 11 / .96) 0%, rgb(10 10 11 / .55) 38%, rgb(10 10 11 / .1) 70%, rgb(10 10 11 / .55) 100%); }
.hero-in { width: 100%; padding: 6rem var(--pad) clamp(1.75rem, 5vh, 3.5rem); }
.hero h1 { font-size: clamp(3.6rem, 11.4vw, 13rem); }
[dir="rtl"] .hero h1 { font-size: clamp(2.9rem, 9vw, 9.5rem); }
.hero p { max-width: 34ch; margin-top: 1.25rem; font-size: clamp(1.05rem, 1.35vw, 1.3rem); color: #dcd9d2; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Sections */
.sec { padding: clamp(4.5rem, 11vw, 10rem) 0 0; }
.sec-head { padding-inline: var(--pad); }
.sec-head h2 { font-size: clamp(3rem, 9vw, 9.5rem); }
[dir="rtl"] .sec-head h2 { font-size: clamp(2.5rem, 7vw, 7rem); }
.sec-head p { margin-top: 1rem; max-width: 46ch; color: var(--mute); font-size: 1.1rem; }

/* Fleet: a rack of covers */
.garage { margin-top: clamp(2rem, 4vw, 3.5rem); display: grid; grid-auto-flow: column; grid-auto-columns: 82vw; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.garage::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .garage { grid-auto-columns: 44vw; } }
@media (min-width: 1100px) { .garage { grid-auto-columns: calc((100% - 6px) / 4); } }
.cover { scroll-snap-align: start; container-type: inline-size; background: var(--ink-2); display: flex; flex-direction: column; }
.cover-img { position: relative; overflow: hidden; aspect-ratio: 818 / 1096; }
.cover-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cover:hover .cover-img img { transform: scale(1.035); }
.cover-img::before { content: ""; position: absolute; inset: 0 0 45% 0; z-index: 1; background: linear-gradient(to bottom, rgb(10 10 11 / .82), rgb(10 10 11 / 0)); }
.cover-title { position: absolute; z-index: 2; inset: 5cqi 5cqi auto 5cqi; }
.cover-title .make { display: block; font-size: max(.9rem, 3.4cqi); color: #e4e1da; }
.cover-title h3 { font-size: 21cqi; margin-top: 1cqi; }
[dir="rtl"] .cover-title h3 { font-size: 14cqi; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); padding: 5cqi 5cqi 0; gap: 3cqi; }
.spec dt { order: 2; font-size: .85rem; color: var(--mute); }
.spec dd { margin: 0; font-stretch: 62%; font-weight: 700; font-size: max(1.6rem, 8cqi); line-height: 1; }
[dir="rtl"] .spec dd { font-stretch: 100%; font-size: max(1.2rem, 5.6cqi); line-height: 1.5; }
.spec > div { display: flex; flex-direction: column; gap: .3rem; }
.cover-line { margin: 4cqi 5cqi 0; min-height: 3.2em; font-size: max(1rem, 3.9cqi); line-height: 1.4; color: #dcd9d2; }
.cover-go { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: auto 5cqi 0; padding: 1.1rem 0 1.3rem; border-top: 1px solid var(--line); font-weight: 600; transition: color .25s var(--ease); }
.cover-go svg { width: 1.25rem; height: 1.25rem; transition: transform .35s var(--ease); }
.cover-go:hover { color: #fff; }
.cover-go:hover svg { transform: translate(3px, -3px); }
[dir="rtl"] .cover-go svg { transform: scaleX(-1); }
[dir="rtl"] .cover-go:hover svg { transform: scaleX(-1) translate(3px, -3px); }

/* Statement + promises */
.say { padding-inline: var(--pad); }
.say > p { max-width: 24ch; font-size: clamp(1.9rem, 4.6vw, 5rem); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; }
[dir="rtl"] .say > p, html[lang="zh"] .say > p { line-height: 1.5; letter-spacing: 0; font-size: clamp(1.6rem, 3.8vw, 4rem); }
html[lang="ru"] .say > p, html[lang="de"] .say > p { max-width: 26ch; font-size: clamp(1.7rem, 4vw, 4.4rem); }
.vows { display: grid; gap: 2rem; margin-top: clamp(3rem, 6vw, 6rem); }
.vows > div { border-top: 1px solid rgb(241 238 232 / .45); padding-top: 1.1rem; }
.vows h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-weight: 600; line-height: 1.3; }
.vows p { margin-top: .6rem; max-width: 34ch; color: var(--mute); font-size: 1.05rem; }
@media (min-width: 900px) { .vows { grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; } }

/* Drives: a table of four roads, numerals first */
.drives { margin-top: clamp(2rem, 4vw, 3.5rem); display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.drive { background: var(--ink); padding: clamp(1.75rem, 3.4vw, 3.5rem) var(--pad); display: flex; flex-direction: column; gap: .35rem; }
.drive .km { display: flex; align-items: baseline; gap: .6rem; color: var(--mute); font-size: 1rem; }
.drive .km b { color: var(--paper); font-family: "Archivo", sans-serif; font-stretch: 62%; font-weight: 800; font-size: clamp(4.5rem, 10vw, 10.5rem); line-height: .85; letter-spacing: -.01em; }
.drive h3 { margin-top: 1.25rem; font-size: clamp(1.5rem, 2.3vw, 2.3rem); font-weight: 600; line-height: 1.2; }
.drive .tag { color: var(--red); font-weight: 600; filter: brightness(1.35); }
.drive p.txt { margin-top: .6rem; max-width: 40ch; color: #dcd9d2; font-size: 1.08rem; }
.drive a { margin-top: 1.4rem; align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; padding-bottom: .2rem; border-bottom: 1px solid rgb(241 238 232 / .5); font-weight: 600; transition: border-color .25s var(--ease); }
.drive a:hover { border-color: var(--paper); }
.drive a svg { width: 1.1rem; height: 1.1rem; }
[dir="rtl"] .drive a svg { transform: scaleX(-1); }
@media (min-width: 800px) { .drives { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { padding-inline: var(--pad); display: grid; gap: 2rem; }
.faq h2 { font-size: clamp(2.8rem, 6.4vw, 7rem); }
[dir="rtl"] .faq h2, html[lang="zh"] .faq h2 { font-size: clamp(2.3rem, 5vw, 5.2rem); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.3rem; cursor: pointer; list-style: none; font-size: clamp(1.2rem, 1.9vw, 1.8rem); font-weight: 500; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 1.4rem; height: 1.4rem; transition: transform .35s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.5rem; max-width: 60ch; color: #dcd9d2; font-size: 1.08rem; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; } }

.foot-langs { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.foot-langs a:hover { color: var(--paper); }

/* How it works: three big verbs */
.steps { margin-top: clamp(2rem, 4vw, 3.5rem); padding-inline: var(--pad); }
.step { display: grid; gap: .5rem; padding-block: clamp(1.5rem, 3vw, 2.75rem); }
.step + .step { border-top: 1px solid var(--line); }
.step h3 { font-size: clamp(3.2rem, 10vw, 10rem); }
[dir="rtl"] .step h3 { font-size: clamp(2.6rem, 7.5vw, 7.5rem); }
.step p { max-width: 34ch; font-size: clamp(1.1rem, 1.7vw, 1.75rem); line-height: 1.4; color: #dcd9d2; }
@media (min-width: 900px) { .step { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; } .step p { padding-bottom: 1.1rem; } }

/* Documents */
.docs { display: grid; gap: 2.5rem; padding-inline: var(--pad); }
.docs h2 { font-size: clamp(2.8rem, 6.4vw, 7rem); }
[dir="rtl"] .docs h2 { font-size: clamp(2.3rem, 5vw, 5.2rem); }
.switch { display: inline-grid; grid-auto-flow: column; margin-top: 1.75rem; border: 1px solid rgb(241 238 232 / .55); }
.switch button { min-height: 3rem; padding: 0 1.5rem; font-weight: 600; font-size: 1rem; transition: background-color .25s var(--ease), color .25s var(--ease); }
.switch button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.doc-list li { padding-block: 1.15rem; font-size: clamp(1.3rem, 2.3vw, 2.2rem); font-weight: 500; line-height: 1.25; }
[dir="rtl"] .doc-list li { line-height: 1.6; }
.doc-list li + li { border-top: 1px solid var(--line); }
.doc-list[hidden] { display: none; }
@media (min-width: 900px) { .docs { grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; } }

/* Closing band */
.close { position: relative; margin-top: clamp(4.5rem, 11vw, 10rem); min-height: 92dvh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.close picture, .close picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.close picture img { object-fit: cover; object-position: 78% 50%; }
.close::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(10 10 11 / .92) 0%, rgb(10 10 11 / .25) 55%, rgb(10 10 11 / .7) 100%); }
.close-in { width: 100%; padding: 4rem var(--pad) clamp(2rem, 6vh, 4rem); }
.close h2 { font-size: clamp(3.2rem, 10vw, 11rem); }
[dir="rtl"] .close h2 { font-size: clamp(2.6rem, 8vw, 8.5rem); }
.close p { margin: 1rem 0 1.75rem; max-width: 36ch; font-size: clamp(1.05rem, 1.35vw, 1.3rem); color: #dcd9d2; }

/* Phones: the night photo sits above the text so the whole car stays in frame */
@media (max-width: 699px) {
  .close { display: block; min-height: 0; }
  .close picture { position: relative; display: block; aspect-ratio: 1 / 1; }
  .close picture img { position: absolute; object-position: 50% 50%; }
  .close::after { display: none; }
  .close-in { padding-top: 1.75rem; }
}

.foot { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; padding: 1.75rem var(--pad); font-size: .9rem; color: var(--mute); border-top: 1px solid var(--line); }

/* Motion: hero settles on load, blocks rise once when they enter view */
@media (prefers-reduced-motion: no-preference) {
  .hero picture img { animation: settle 2.6s var(--ease) both; }
  .hero h1, .hero p, .hero .cta { animation: rise 1s var(--ease) both; }
  .hero p { animation-delay: .12s; }
  .hero .cta { animation-delay: .22s; }
  .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .rv.in { opacity: 1; transform: none; }
}
@keyframes settle { from { transform: scale(1.07); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cover-img img, .btn { transition: none; } }

html[lang="ru"] .step h3, html[lang="fr"] .step h3, html[lang="de"] .step h3 { font-size: clamp(2.9rem, 9vw, 9rem); }
html[lang="ru"] .cover-title h3 { font-size: 24cqi; }
html[lang="zh"] .cover-title h3 { font-family: "Archivo", sans-serif; font-stretch: 62%; font-size: 21cqi; line-height: .88; }
html[lang="zh"] .spec dd { font-size: max(1.3rem, 6.4cqi); line-height: 1.3; }
