/* Rotta: dark like the app at night, with its cyan route colour. */
:root {
  color-scheme: dark;
  --night: #05080C;
  --panel: #0E141B;
  --card: #121A23;
  --ink: #EEF3F7;
  --muted: #95A3B1;
  --line: #1F2A36;
  --cyan: #00E1FF;
  --amber: #FFB020;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.7 Sora, system-ui, sans-serif;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.wrap { width: min(70rem, 100% - 32px); margin-inline: auto; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav a { color: var(--muted); font-size: 0.9375rem; text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Hero: the route line runs down behind the text, like the app's glowing route. */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20% -10% auto auto;
  width: 46rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 225 255 / 0.16), transparent);
}
.split { display: grid; grid-template-columns: 1fr minmax(0, 20rem); gap: 3rem; align-items: center; padding-block: 2.5rem 4.5rem; }
.hero h1 { font-size: clamp(3.5rem, 10vw, 6.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.hero .tag { color: var(--cyan); font-size: clamp(1.35rem, 3.4vw, 1.9rem); font-weight: 600; margin-block: 0.6rem 1.1rem; }
.hero .lead { max-width: 32rem; color: var(--muted); font-size: 1.125rem; }
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 1.75rem; }
.stores span {
  padding: 0.6rem 1.05rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

/* Real screenshots from the iPhone app, in a plain dark frame. */
.phone {
  width: 100%;
  border: 8px solid #1A222C;
  border-radius: 38px;
  background: #000;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.04);
}

section { padding-block: 4.5rem; }
section h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.25; }
section > .wrap > p.sub { max-width: 40rem; margin-block-start: 0.6rem; color: var(--muted); }

/* Weather along the route: the headline feature, text beside the picture. */
.weather { background: var(--panel); border-block: 1px solid var(--line); }
.weather .split { padding-block: 0; }
.weather ul { list-style: none; margin-block-start: 1.5rem; display: grid; gap: 0.9rem; }
.weather li { padding-inline-start: 1.1rem; border-inline-start: 3px solid var(--cyan); color: var(--muted); }
.weather li strong { display: block; color: var(--ink); font-weight: 600; }
.warn {
  display: inline-flex; gap: 0.5rem; align-items: center;
  margin-block-start: 1.5rem; padding: 0.5rem 0.9rem;
  font-size: 0.9375rem; color: var(--ink);
  border: 2px solid var(--amber); border-radius: 999px; background: var(--night);
}

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-block-start: 2rem; list-style: none; }
.grid li { padding: 1.5rem; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.grid h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
.grid p { margin-block-start: 0.35rem; color: var(--muted); font-size: 0.975rem; line-height: 1.6; }
.dot { display: block; width: 10px; height: 10px; margin-block-end: 0.9rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* Two screenshots side by side */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 42rem; margin: 2.5rem auto 0; }
.pair figcaption { margin-block-start: 0.9rem; color: var(--muted); font-size: 0.9375rem; text-align: center; }

.promise { border-block-start: 1px solid var(--line); }
.promise p { max-width: 40rem; margin-block: 0.75rem 1rem; color: var(--muted); }
.promise a { color: var(--cyan); font-weight: 600; }

footer { padding-block: 1.75rem; color: var(--muted); font-size: 0.9375rem; border-block-start: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* Privacy policy */
.policy { width: min(44rem, 100% - 32px); margin-inline: auto; padding-block: 1.5rem 4rem; }
.policy h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; line-height: 1.25; }
.policy .date { color: var(--muted); margin-block: 0.4rem 1.5rem; }
.policy h2 { color: var(--cyan); font-size: 1.25rem; font-weight: 600; margin-block: 2.25rem 0.5rem; }
.policy p + p { margin-block-start: 0.75rem; }
.policy ul { padding-inline-start: 1.25rem; }
.policy li + li { margin-block-start: 0.5rem; }
.policy a { color: var(--cyan); }
.short { padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 1.5rem 3rem; }
  .hero .split .phone, .weather .phone { max-width: 18rem; margin-inline: auto; }
  .grid { grid-template-columns: 1fr; }
  section { padding-block: 3rem; }
  .weather .split { padding-block: 0; }
}

@media (max-width: 480px) {
  .pair { gap: 1rem; }
  .phone { border-width: 5px; border-radius: 26px; }
}

/* Street map background: real streets of central Milan (© OpenStreetMap contributors) in Rotta's colours,
   fixed behind the page. A pseudo-element, because background-attachment: fixed doesn't work on iPhone. */
body { background: transparent; isolation: isolate; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("/Rotta/img/streets.svg") center / cover no-repeat, var(--night);
}
/* Darker behind the reading parts, so the streets never fight the text. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 28% 45%, rgb(5 8 12 / 0.72), rgb(5 8 12 / 0.12) 65%);
  pointer-events: none;
}
.weather { background: rgb(14 20 27 / 0.86); backdrop-filter: blur(2px); }
.grid li { background: rgb(18 26 35 / 0.9); }
.short { background: rgb(18 26 35 / 0.92); }
footer { background: rgb(5 8 12 / 0.85); }
