/* ULO website. Colours: the logo's (yellow, magenta, black on charcoal) and the
   iRacing style's card fade and yellow labels (src/draw.rs). Fonts: the app's own. */

@font-face { font-family: "Exo 2"; src: url(fonts/Exo2-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "ULO Labels"; src: url(fonts/UloLabels-SemiBold.otf) format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chivo Mono"; src: url(fonts/ChivoMono-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #16171b;
  --bg-2: #1c1d22;
  --card-top: #3c3d46;
  --card-bottom: #20212b;
  --line: rgba(255, 255, 255, .09);
  --text: #f2f2f2;
  --muted: #a3a5ad;
  --label: #ffdd00;
  --brand-yellow: #fff232;
  --brand-magenta: #ec297b;
  --green: #3fd16f;
  --blue: #4a8cff;
  --radius: 6px;
  --head: "Exo 2", "Segoe UI", sans-serif;
  --body: "ULO Labels", "Segoe UI", system-ui, sans-serif;
  --mono: "Chivo Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 600 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 5vw, 60px); letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.label {
  color: var(--label);
  font-size: 14px;
  letter-spacing: .02em;
  margin-bottom: 10px;
}
.intro { color: var(--muted); max-width: 640px; margin-bottom: 40px; }
.fine { color: var(--muted); font-size: 14px; }

.card {
  background: linear-gradient(var(--card-top), var(--card-bottom));
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--brand-yellow);
  color: #111;
  font-family: var(--head);
  font-size: 17px;
  text-decoration: none;
  border: 1px solid var(--brand-yellow);
}
.btn:hover { background: #fff6a0; }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn-small { padding: 6px 14px; font-size: 15px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(22, 23, 27, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.banner { width: 92px; height: auto; display: block; }
.banner-word { font: 700 46px var(--head); fill: #fff; letter-spacing: 2px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero { padding: 88px 0 104px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.lead { font-size: 19px; color: #cfd0d6; max-width: 520px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-shots { position: relative; padding-bottom: 72px; }
.shot { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.shot-main { width: 100%; }
.shot-over { position: absolute; left: -48px; bottom: 0; width: 42%; outline: 1px solid var(--line); }

/* The logo's three-colour bar */
.stripe { display: flex; height: 6px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--brand-yellow); }
.stripe span:nth-child(2) { background: var(--brand-magenta); }
.stripe span:nth-child(3) { background: #000; }

/* Spec sheet: laid out like the fuel widget, yellow labels over white numbers */
.spec {
  display: grid; grid-template-columns: repeat(6, 1fr);
  padding: 22px 26px; margin: 36px 0 56px;
}
.spec div { padding: 0 12px; border-left: 1px solid var(--line); }
.spec div:first-child { border-left: 0; padding-left: 0; }
.k { display: block; color: var(--label); font-size: 14px; }
.v { display: block; font: 600 30px/1.2 var(--mono); white-space: nowrap; }
.v.w { font: 700 28px/1.25 var(--head); }
.v small { font-size: 16px; margin-left: 4px; color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cols p { color: var(--muted); }

/* Widgets */
.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.feature img { width: 100%; max-width: 620px; border-radius: var(--radius); }
.feature p { color: var(--muted); max-width: 440px; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
  margin-top: 32px;
}
.tile { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile.wide { grid-column: span 2; }
.pic {
  height: 180px; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: #101114;
}
.pic img { max-height: 148px; width: auto; }
.tile figcaption { padding: 14px 16px 16px; }
.tile figcaption span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.tag {
  font-style: normal; font-size: 12px; padding: 1px 7px; border-radius: 4px;
  border: 1px solid; vertical-align: 2px; margin-left: 6px; font-family: var(--body);
}
.tag.free { color: var(--green); }
.tag.std { color: var(--label); }
.tag.team { color: var(--brand-magenta); }
.more { color: var(--muted); margin-top: 32px; max-width: 760px; }
.more b { color: var(--text); }

/* Header and footer values */
.slots { padding: 32px 0; border-top: 1px solid var(--line); }
.slots > p { color: var(--muted); max-width: 560px; }
.slot-groups { display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; margin-top: 20px; }
.slot-groups ul { list-style: none; margin: 6px 0 0; padding: 0; }
.slot-groups li { font-size: 14px; color: #d6d7dc; padding: 2px 0; }

/* Settings and driver tags */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.settings-grid.big-pic { grid-template-columns: 3fr 2fr; }
.settings-grid > div > p:not(.label) { color: var(--muted); }
.settings-grid b { color: var(--text); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 10px 0 10px 18px; border-top: 1px solid var(--line); color: var(--muted); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; background: var(--label); border-radius: 2px; }
.label .tag { vertical-align: 0; }

.trial {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 26px; margin-bottom: 32px; border-left: 3px solid var(--brand-yellow);
}
.trial h3 { margin-bottom: 4px; }
.trial p { margin: 0; color: #cfd0d6; }

/* Pricing */
.periods { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; flex-wrap: wrap; }
.periods button {
  font: 600 14px var(--body); color: var(--muted); background: none; border: 0;
  padding: 9px 16px; cursor: pointer;
}
.periods button small { color: var(--green); margin-left: 4px; }
.periods button[aria-checked="true"] { background: rgba(255, 255, 255, .08); color: var(--text); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.plan { padding: 24px; border-top: 3px solid transparent; display: flex; flex-direction: column; }
.plan ul { flex: 1; }
.plan .btn { text-align: center; margin-top: 20px; }
.plan-best { border-top-color: var(--brand-magenta); }
.price { margin: 0 0 18px; min-height: 66px; }
.price .num { font: 600 34px var(--mono); }
.price .per { display: block; color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; color: #d6d7dc; }

/* Support */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.support-grid > div > p:not(.label) { color: var(--muted); max-width: 460px; }
.facts { padding: 8px 26px; }
.facts div { padding: 16px 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts p { margin: 2px 0 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot nav a:hover { color: var(--text); }
.foot p { color: #6f717a; font-size: 13px; margin: 0; flex-basis: 100%; }

/* Text pages (support and legal) */
.doc { max-width: 760px; padding: 64px 24px 96px; }
.doc h1 { font-size: 40px; }
.doc h2 { font-size: 24px; margin-top: 1.6em; }
.doc p, .doc li { color: #d6d7dc; }
.doc blockquote { margin: 0 0 1.5em; padding: 12px 16px; border-left: 3px solid var(--label); background: var(--bg-2); }
.doc blockquote p { margin: 0; }
.doc table { border-collapse: collapse; margin: 0 0 1.5em; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--label); }
.doc code { font: 14px Consolas, monospace; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 1100px) {
  .spec { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .spec div:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 960px) {
  .slot-groups { grid-template-columns: repeat(4, 1fr); }
  .hero-grid, .support-grid, .settings-grid { grid-template-columns: 1fr; }
  .shot-over { left: auto; right: -12px; }
  .cols { grid-template-columns: 1fr; gap: 8px; }
  .feature { grid-template-columns: 1fr; gap: 20px; }
  .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .nav a:not(.btn) { display: none; }
  .spec { grid-template-columns: 1fr 1fr; }
  .spec div { border-left: 0; padding-left: 0; }
  .v { font-size: 24px; white-space: normal; }
  .v.w { font-size: 22px; }
  .plans { grid-template-columns: 1fr; }
  .slot-groups { grid-template-columns: 1fr 1fr; }
  .trial { flex-direction: column; align-items: flex-start; }
  .shot-over { width: 55%; }
  .tile.wide { grid-column: auto; }
}
