/* motoris.app, the eye-catching edition (assets/css/site.css). The same HTML
   runs on zadio.bg/motoris with zadio-bg.css; scripts/build-website.py copies
   each into its site. Black and the logo yellow, headlines in Jost Motoris. */

@font-face {
  font-family: "Jost Motoris";
  src: url("../fonts/jost-motoris-black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --card: #131313;
  --line: #262626;
  --fg: #fff;
  --text: #d6d6d6;
  --muted: #a0a0a0;
  --accent: #ffd10c;
  --accent-ink: #000;
  --radius: 20px;
  --wrap: 1120px;
  --display: "Jost Motoris", "Futura", "Century Gothic", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--body); }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--fg); line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { font-size: 0.92em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.small { font-size: 0.9rem; color: var(--muted); }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--fg); text-decoration: none; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name { font-family: var(--display); font-weight: 900; font-size: 1.45rem; letter-spacing: 0.01em; color: var(--fg); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); background: rgba(255, 255, 255, 0.09); }
.site-header__cta { flex: none; }
.site-header .pill { padding: 8px 14px; font-size: 0.82rem; }
@media (max-width: 1060px) { .site-header .site-header__cta { display: none; } }
@media (max-width: 780px) {
  .site-header { position: static; }
  .site-header__inner { flex-wrap: wrap; gap: 4px 16px; padding-block: 12px 8px; min-height: 0; }
  .site-nav { margin-left: -10px; width: calc(100% + 10px); }
  .site-nav ul { flex-wrap: wrap; }
  .site-nav a { padding: 5px 10px; font-size: 0.92rem; }
}

/* Buttons and the "coming soon" pill */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost { color: var(--fg); border-color: rgba(255, 255, 255, 0.3); }
.btn--ghost:hover { border-color: var(--accent); }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border: 1px solid rgba(255, 209, 12, 0.5); border-radius: 999px;
  background: rgba(255, 209, 12, 0.12); color: var(--accent);
  font-weight: 700; font-size: 0.95rem;
}
.pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 209, 12, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 209, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 209, 12, 0); }
}
.play-badge img { height: 58px; width: auto; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(255, 209, 12, 0.2), transparent 62%),
    radial-gradient(700px 400px at 0% 100%, rgba(255, 209, 12, 0.07), transparent 70%),
    #000;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 12, 0.6), transparent);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 18px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.hero h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem); line-height: 1.02; letter-spacing: -0.015em;
  margin-bottom: 22px; text-wrap: balance;
}
.hero h1 strong { color: var(--accent); white-space: nowrap; }
.lead { max-width: 38em; font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: #e8e8e8; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 28px 0 32px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.03); }
@media (max-width: 520px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts__label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts__value { font-size: 0.95rem; font-weight: 600; color: var(--fg); }
.hero__art { position: relative; }
.hero__svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(255, 209, 12, 0.18)); }
.hero-dash { animation: road 1.1s linear infinite; }
@keyframes road { to { stroke-dashoffset: 40; } }
.hero-glow { animation: glow 5s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: 0.55; } to { opacity: 1; } }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 440px; }
}

/* Sections */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section__intro { max-width: 40em; margin-bottom: 40px; font-size: 1.15rem; color: var(--muted); }
.section__note { margin: 0; }
.section--features { background: linear-gradient(180deg, #000 0%, #0a0a0a 100%); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.card {
  position: relative; overflow: hidden;
  padding: 30px 28px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, #181818, #0b0b0b);
  transition: transform 0.25s ease, border-color 0.25s ease, opacity 0.6s ease;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent); }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 209, 12, 0.5); }
.card__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); }
.card__icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.3rem; }
.card p { margin: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* Screens: the app's store screenshots */
.section--screens { background: #0a0a0a; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 18px; background: #000; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin: 0; padding: 0; list-style: none; }
.step { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px;
  font-family: var(--display); font-weight: 900; font-size: 3.2rem; line-height: 1; color: var(--accent);
}
.step p { margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Privacy: the yellow band */
.section--privacy { background: var(--accent); color: #111; }
.section--privacy h2 { color: #000; }
.section--privacy .section__intro, .section--privacy .section__note { color: #2a2a2a; }
.section--privacy a { color: #000; font-weight: 700; }
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 0 0 32px; padding: 0; list-style: none; }
.point { padding: 28px; border-radius: var(--radius); background: #000; color: var(--text); }
.point h3 { font-family: var(--display); font-weight: 900; font-size: 1.55rem; }
.point p { margin: 0; }
.point a { color: var(--accent); font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }

/* Price */
.price {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 44px; align-items: center;
  padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(520px 240px at 0% 50%, rgba(255, 209, 12, 0.15), transparent 70%), #0b0b0b;
}
.price__headline { grid-row: span 2; margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(3.6rem, 9vw, 6.2rem); line-height: 1; color: var(--accent); }
.price__text { margin: 0; font-size: 1.12rem; color: #e8e8e8; }
.price__note { margin: 0; }
@media (max-width: 700px) { .price { grid-template-columns: 1fr; } .price__headline { grid-row: auto; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq__item { border: 1px solid var(--line); border-radius: 16px; background: #0b0b0b; }
.faq__item[open] { border-color: rgba(255, 209, 12, 0.5); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.08rem; color: var(--fg);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: rgba(255, 209, 12, 0.14); color: var(--accent);
  font-size: 1.3rem; line-height: 1; transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 22px 18px; }
.faq__answer p { margin: 0; }

/* The closing call */
.section--cta {
  text-align: center; border-top: 1px solid var(--line);
  background: radial-gradient(700px 360px at 50% 100%, rgba(255, 209, 12, 0.22), transparent 70%), #000;
}
.section--cta h2 { font-size: clamp(2.6rem, 7vw, 5rem); }
.section--cta h2 strong { color: var(--accent); }
.section--cta p { font-size: 1.15rem; color: var(--muted); }
.section--cta .play-badge { display: inline-block; }

/* Support, AI overview, legal pages and 404 */
.page { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); }
.prose { max-width: 760px; }
.prose h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 24px; }
.prose h2 { margin: 44px 0 10px; font-family: var(--body); font-weight: 700; font-size: 1.45rem; letter-spacing: 0; color: var(--accent); }
.prose h3 { margin: 28px 0 6px; font-size: 1.12rem; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--fg); }
.prose em { font-style: normal; font-size: 0.9rem; color: var(--muted); }
.prose hr { margin: 40px 0 16px; border: 0; border-top: 1px solid var(--line); }
.prose table { width: 100%; margin: 8px 0 16px; border-collapse: collapse; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { width: 34%; font-weight: 600; color: var(--muted); }
.language-switch { display: flex; gap: 16px; margin-bottom: 8px; font-size: 0.95rem; }
.language-switch [aria-current] { color: var(--muted); text-decoration: none; pointer-events: none; }

/* Footer */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: #050505; font-size: 0.95rem; }
.site-footer__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 28px; }
.site-footer__title { margin-bottom: 10px; font-weight: 700; color: var(--fg); }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .small a { color: var(--accent); }
.site-footer__brand .brand { margin-bottom: 10px; }
@media (max-width: 860px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__cols { grid-template-columns: 1fr; } }

/* Fade-in on scroll: site.js adds .js and .is-visible */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* The shared-route page (r/) */
.route-page {
  display: grid; place-items: center; min-height: 100vh; margin: 0; padding: 24px;
  background: radial-gradient(600px 400px at 50% 0%, rgba(255, 209, 12, 0.16), transparent 70%), #000;
}
.route-card { width: 100%; max-width: 480px; padding: 32px 28px; border-radius: 16px; background: #161616; text-align: center; }
.route-card .brand__mark { width: 72px; height: 72px; margin: 0 auto; }
.route-card .brand__name { display: block; margin: 14px 0 0; font-size: 2rem; color: var(--fg); }
.route-card .brand__tagline { margin: 2px 0 0; font-size: 1rem; color: var(--muted); }
.route-card h1 { margin: 24px 0 8px; font-size: 1.25rem; font-weight: 600; }
.route-card p { font-size: 0.95rem; color: var(--muted); }
.route-card__actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
.route-card .btn[hidden] { display: none; }
.route-card .small { margin: 24px 0 0; font-size: 0.8rem; }
.route-card .small a { color: var(--muted); }

/* Moving to another page of the site fades instead of flashing. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
