/* revlin.pt · Paddock (owner, 2026-11-09: direction A of the prototypes).
   The app's own look: near-black, signal yellow, slanted titles and cut
   shapes, the rev lights. One sheet for the site's pages and for the pages
   the API serves on revlin.pt (a shared link, the emails' way out). The
   fonts are served from here, never from Google. */

@font-face { font-family: 'Big Shoulders Display'; font-weight: 800; font-display: swap; src: url('/fonts/big-shoulders-display-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 900; font-display: swap; src: url('/fonts/big-shoulders-display-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-semi-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-semi-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #0B0B0B; --s1: #161616; --s2: #1F1F1F; --ln: #262626; --ln2: #4A4A4A;
  --tx: #FFFFFF; --t2: #DADADA; --t3: #A6A6A6;
  --ac: #FFD400; --red: #FF3B3B; --ok: #2FD17A; --slow: #FFB020; --maint: #3A8FD9;
  --f-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --f-label: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  --f-body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--tx); }
body { font-family: var(--f-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }

/* Both languages are in every page; one shows (lang.js). */
html[data-lang='pt'] body [lang='en'], html[data-lang='en'] body [lang='pt'] { display: none !important; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--ln); position: sticky; top: 0; background: rgba(11, 11, 11, 0.92); backdrop-filter: blur(8px); z-index: 2; }
.top .home { display: block; line-height: 0; }
.top .home img { height: 22px; width: auto; }
.top .right { display: flex; align-items: center; gap: 16px; }
.lang { font-family: var(--f-label); font-weight: 700; letter-spacing: 0.12em; font-size: 12px; color: var(--t3); background: none; border: 0; padding: 4px 0; cursor: pointer; text-transform: uppercase; }
.lang:hover { color: var(--tx); }
a.lang { text-decoration: none; }

.lab { font-family: var(--f-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--ac); }
.disp { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.005em; transform: skewX(-8deg); transform-origin: left; margin: 0; text-wrap: balance; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; background: var(--ac); color: #0B0B0B; font-family: var(--f-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; border: 0; cursor: pointer; text-decoration: none; transform: skewX(-12deg); }
.btn > span { transform: skewX(12deg); display: inline-block; }
.btn:hover { filter: brightness(1.08); }
.btn.out { background: transparent; color: var(--tx); box-shadow: inset 0 0 0 2px var(--ln2); }
.btn.out:hover { box-shadow: inset 0 0 0 2px var(--t3); }

/* The rev lights: they come on one by one, as on a dashboard. */
.lights { display: flex; gap: 6px; }
.lights i { width: 22px; height: 10px; background: var(--s2); transform: skewX(-12deg); display: block; }
.lights.on i { background: var(--ac); }
.lights.on i:last-child { background: var(--red); }
.lights.stop i { background: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .lights.boot i { animation: lit 1.6s steps(1) infinite; }
  .lights.boot i:nth-child(2) { animation-delay: 0.15s; }
  .lights.boot i:nth-child(3) { animation-delay: 0.3s; }
  .lights.boot i:nth-child(4) { animation-delay: 0.45s; }
  .lights.boot i:nth-child(5) { animation-delay: 0.6s; }
}
@keyframes lit { 0% { background: var(--s2); } 30% { background: var(--ac); } 100% { background: var(--ac); } }

/* Home: «Fluxo» (owner, 2026-11-09). The symbol, the slogan and the app,
   with the streaks drifting slowly behind (a canvas, src/fluxo.ts). */
.fluxo { position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; min-height: 560px; padding: 56px 20px 72px; }
.fluxo .streaks { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; }
.fluxo-in { display: grid; justify-items: center; gap: 26px; text-align: center; }
.fluxo-mark { width: clamp(120px, 17vw, 210px); height: auto; filter: drop-shadow(0 0 36px rgba(255, 212, 0, 0.22)); }
.fluxo .disp { font-size: clamp(36px, 5.4vw, 68px); transform-origin: center; max-width: 15ch; }
/* The one discreet line (owner: «uma linha discreta»), what the search
   engines read besides the slogan. */
.fluxo-cta { font-size: 15px; padding: 15px 28px; }
.fluxo-line { margin: 0; max-width: 34ch; color: var(--t3); font-size: 14px; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .fluxo-in > * { animation: arrive 1.4s cubic-bezier(0.16, 0.9, 0.2, 1) both; }
  .fluxo-in > :nth-child(2) { animation-delay: 0.25s; }
  .fluxo-in > :nth-child(3) { animation-delay: 0.45s; }
  .fluxo-in > :nth-child(4) { animation-delay: 0.65s; }
  .fluxo-in > :nth-child(5) { animation-delay: 0.8s; }
}
@keyframes arrive { from { opacity: 0; translate: 36px 0; } }

/* The stores (owner, 2026-11-09): the official badges, side by side. The
   App Store is not there yet: its badge opens «Em breve» (#app-store), a
   page target and no script, as the API's pages run none. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.store { display: block; line-height: 0; transition: transform 0.15s ease-out; }
.store img { display: block; height: 48px; width: auto; }
.store:hover { transform: translateY(-2px); }
.card .stores, .plain .stores { justify-content: flex-start; padding-top: 2px; }
.card.profile .stores { justify-content: center; }
.soon { display: none; position: fixed; inset: 0; z-index: 50; place-items: center; padding: 20px; }
.soon:target { display: grid; }
.soon-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.soon-box { position: relative; width: min(380px, 100%); background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln), 0 30px 80px rgba(0, 0, 0, 0.6); padding: 30px 24px 26px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.soon-box img { width: 44px; height: auto; }
.soon-box .disp { font-size: 34px; transform-origin: center; }
.soon-box p { margin: 0; color: var(--t2); }
.soon-box .btn { min-width: 140px; margin-top: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .soon:target .soon-box { animation: pop 0.25s ease-out; }
}
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }

.foot { padding: 26px 20px 34px; display: grid; gap: 14px; color: var(--t3); font-size: 13px; border-top: 1px solid var(--ln); }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--t2); text-decoration: underline; text-underline-offset: 3px; }

/* A shared link (the API's pages): the post, the profile, the vehicle. */
.card { display: grid; }
.card .who { display: flex; align-items: center; gap: 10px; padding: 14px 20px; }
.av { width: 34px; height: 34px; overflow: hidden; transform: skewX(-12deg); background: var(--s2); flex: none; }
.av img { width: 100%; height: 100%; object-fit: cover; transform: skewX(12deg) scale(1.25); }
.card .media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--s1); }
.card .media.wide img { aspect-ratio: 4 / 3; }
.card .body { padding: 20px; display: grid; gap: 14px; }
.card .body .disp { font-size: 36px; }
.card .body p { margin: 0; color: var(--t2); }
.card .acts, .plain .acts { display: grid; gap: 12px; padding: 0 6px; }
/* A profile: the face as the app draws it, a slanted square, not a poster. */
.card.profile { justify-items: center; text-align: center; padding-top: 40px; }
.card.profile .face { width: 128px; height: 128px; overflow: hidden; transform: skewX(-12deg); background: var(--s2); box-shadow: 0 0 0 3px var(--ac); display: grid; place-items: center; }
.card.profile .face img { width: 100%; height: 100%; object-fit: cover; transform: skewX(12deg) scale(1.25); display: block; }
.card.profile .face span { transform: skewX(12deg); font-family: var(--f-display); font-weight: 900; font-size: 64px; line-height: 1; color: var(--t3); text-transform: uppercase; }
.card.profile .body { justify-items: center; width: 100%; max-width: 520px; }
.card.profile .body .disp { transform-origin: center; }
.card.profile .acts { width: 100%; }
.plain { min-height: 70vh; display: grid; align-content: center; gap: 18px; padding: 40px 20px; }
.plain .disp { font-size: 64px; }
.plain p { margin: 0; color: var(--t2); }

/* A page of a few words: the emails' way out. */
.sheetpage { padding: 34px 20px; display: grid; gap: 16px; }
.sheetpage .disp { font-size: 40px; }
.sheetpage p { margin: 0; color: var(--t2); max-width: 46ch; }
.sheetpage form { padding-left: 6px; margin: 0; }

/* 404: off the track. */
.nf { min-height: 70vh; display: grid; align-content: center; gap: 18px; padding: 30px 20px; }
.nf .disp { font-size: 74px; }
.nf p { margin: 0; color: var(--t2); }
.nf .acts { padding-left: 6px; }

/* The legal texts. */
.legal { max-width: 760px; margin: 0 auto; padding: 34px 20px 40px; }
.legal .disp { font-size: 44px; margin: 10px 0 8px; }
.legal .updated { color: var(--t3); margin: 0 0 26px; }
.legal h2 { font-family: var(--f-label); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; margin: 30px 0 10px; color: var(--tx); }
.legal p, .legal li { color: var(--t2); }
.legal b { color: var(--tx); }
.legal ul { padding-left: 20px; }
/* What changed in this version (owner, 2026-11-11). */
.legal .changed { border-left: 3px solid var(--ac); background: var(--s1); padding: 14px 18px; margin: 0 0 26px; }
.legal .changed h2 { margin: 0 0 6px; font-size: 16px; color: var(--ac); }
.legal .changed p { margin: 6px 0 0; }

/* The directory (owner, 2026-11-11): /places, /place/…, /makes, /make/…, served by the API. */
.dir { max-width: 1080px; margin: 0 auto; padding: 34px 20px 40px; }
.dir-head { display: grid; gap: 10px; margin-bottom: 28px; }
.dir-head .disp { font-size: 48px; }
.dir-head .lab a { color: inherit; text-decoration: none; }
.dir-head p { margin: 0; color: var(--t2); max-width: 640px; }
.dir-head .where { color: var(--t2); font-size: 16px; }
.dir-head .count { font-family: var(--f-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t3); font-size: 13px; }
.dir section { margin-top: 30px; }
.dir h2 { font-family: var(--f-label); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; margin: 0 0 14px; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--ln); border: 1px solid var(--ln); }
.links a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--bg); text-decoration: none; }
.links a:hover { background: var(--s1); }
.links b { font-weight: 600; color: var(--tx); }
.links span { color: var(--t3); white-space: nowrap; font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.tile { position: relative; display: block; aspect-ratio: 1; background: var(--s1); overflow: hidden; text-decoration: none; }
.tile img, .tile .blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); display: grid; font-size: 12px; line-height: 1.3; }
.tile .cap b { font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .cap i { font-style: normal; color: #ddd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-app { margin-top: 40px; padding: 24px 20px; border: 1px solid var(--ln); display: grid; gap: 14px; justify-items: center; text-align: center; }
.dir-app p { margin: 0; color: var(--t2); }
/* The forms (owner, 2026-11-11): /delete-account and /report. */
.sheetform { display: grid; gap: 16px; max-width: 560px; }
.sheetform label { display: grid; gap: 6px; font-family: var(--f-label); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; color: var(--t3); }
.sheetform input, .sheetform select, .sheetform textarea { font: inherit; font-size: 16px; text-transform: none; letter-spacing: normal; color: var(--tx); background: var(--s1); border: 1px solid var(--ln2); padding: 12px 14px; border-radius: 0; }
.sheetform textarea { min-height: 130px; resize: vertical; }
.sheetform input:focus, .sheetform select:focus, .sheetform textarea:focus { outline: 2px solid var(--ac); outline-offset: 0; border-color: var(--ac); }
.sheetform .check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: normal; font-family: var(--f-body); font-weight: 400; font-size: 14px; color: var(--t2); }
.sheetform .check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ac); }
.sheetform .hint { margin: -8px 0 0; font-size: 13px; color: var(--t3); text-transform: none; letter-spacing: normal; font-family: var(--f-body); font-weight: 400; }
.sheetform .btn { justify-self: start; }
.btn.danger { background: var(--red); color: #fff; }
/* /delete-account, two-step on: one form per method (owner, 2026-11-11). */
.choices { display: grid; gap: 18px; margin-top: 4px; }
.choices .sheetform { gap: 6px; }
.choices .hint { margin: 0; }
.notice { border-left: 3px solid var(--ac); background: var(--s1); padding: 14px 18px; color: var(--t2); }
.notice.bad { border-left-color: var(--red); }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }

@media (min-width: 720px) {
  .top { padding: 18px 48px; }
  .foot { padding: 30px 48px; grid-template-columns: 1fr auto; align-items: center; }
  .card { grid-template-columns: 1.1fr 1fr; align-items: center; max-width: 1080px; margin: 30px auto; border: 1px solid var(--ln); }
  .card .who { grid-column: 1 / -1; border-bottom: 1px solid var(--ln); }
  .card .body { padding: 40px; }
  .card .body .disp { font-size: 54px; }
  .card.profile { grid-template-columns: 1fr; max-width: 640px; border: 0; padding-top: 70px; }
  .card.profile .face { width: 160px; height: 160px; }
  .plain, .sheetpage, .nf { padding-inline: 80px; }
  .legal { padding: 60px 48px 70px; }
  .legal .disp { font-size: 64px; }
  .dir { padding: 60px 48px 70px; }
  .dir-head .disp { font-size: 72px; }
  .tiles { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .links { grid-template-columns: 1fr 1fr; }
}
