/* Torqline: an instrument cluster, not a landing page. Colours come from the
   app's own theme so the site and the app feel like one product. */
:root {
  color-scheme: dark;
  --graphite: #0f1317;
  --panel: #171c22;
  --line: #262e37;
  --ink: #e8ecf1;
  --muted: #8b96a3;
  --revs: #ff7a1a;
  --redline: #ff4d4f;
  --ok: #3ddc84;
  --gauge: "DIN Alternate", "DIN Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--graphite); }

body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--revs); text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--revs); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* top bar */
.bar { display: flex; align-items: center; gap: 0.75rem; padding: 1.25rem 0; }
.bar img { width: 40px; height: 40px; border-radius: 10px; }
.bar a { color: var(--ink); text-decoration: none; font: 600 1.35rem/1 var(--gauge); letter-spacing: 0.02em; }

/* hero: the gauge is the memorable thing, everything else stays quiet */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}
.hero h1 {
  margin: 0 0 1rem;
  font: 700 clamp(2.6rem, 6.5vw, 4.6rem)/0.98 var(--gauge);
  letter-spacing: -0.01em;
  max-width: 18ch;
  text-wrap: balance;
}
.hero p { margin: 0 0 1.5rem; color: var(--muted); font-size: 1.15rem; max-width: 36ch; }
.status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--ink); }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }

.cluster { position: relative; justify-self: center; width: min(100%, 26rem); aspect-ratio: 1; }
.cluster svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cluster .phone {
  position: absolute; left: 50%; top: 56%;
  width: 42%; height: auto; transform: translate(-50%, -50%);
  border-radius: 1.4rem; border: 6px solid #05070a;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.needle { transform-origin: 512px 560px; transform: rotate(-185deg); animation: rev 1.6s cubic-bezier(.2,.8,.2,1) .3s forwards; }
.revs { stroke-dasharray: 1100; stroke-dashoffset: 1100; animation: fill 1.6s cubic-bezier(.2,.8,.2,1) .3s forwards; }
@keyframes rev { to { transform: rotate(0deg); } }
@keyframes fill { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .needle { animation: none; transform: none; }
  .revs { animation: none; stroke-dashoffset: 0; }
}

/* sections */
section { padding: 3.5rem 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 1.5rem; font: 700 2rem/1.1 var(--gauge); }
.lede { color: var(--muted); max-width: 60ch; margin: -0.75rem 0 2rem; }

/* what it does: readouts, like the app's tiles */
.readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.readouts div { background: var(--panel); padding: 1.4rem 1.4rem 1.6rem; }
.readouts h3 { margin: 0 0 0.4rem; font: 700 1.25rem/1.2 var(--gauge); color: var(--ink); }
.readouts p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* screenshot strip */
.strip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
.strip figure { margin: 0; flex: 0 0 auto; width: 13.5rem; scroll-snap-align: start; }
.strip img { width: 100%; height: auto; border-radius: 1.2rem; border: 1px solid var(--line); display: block; }
.strip figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.9rem; }

/* three steps of a viewing: screenshot beside the text, alternating */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; }
.steps li { display: grid; grid-template-columns: 13.5rem 1fr; gap: 2.5rem; align-items: center; }
.steps li:nth-child(even) { grid-template-columns: 1fr 13.5rem; }
.steps li:nth-child(even) figure { order: 2; }
.steps figure { margin: 0; }
.steps img { width: 100%; height: auto; border-radius: 1.2rem; border: 1px solid var(--line); display: block; }
.steps h3 { margin: 0.5rem 0 0.5rem; font: 700 1.7rem/1.1 var(--gauge); }
.steps p { margin: 0; color: var(--muted); max-width: 46ch; }
.num {
  display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 2px solid var(--revs); color: var(--revs); font: 700 1.1rem/1 var(--gauge);
}

/* adapter table */
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
td:first-child { font-weight: 600; white-space: nowrap; }
.yes, .no { white-space: nowrap; font-weight: 600; }
.yes { color: var(--ok); }
.no { color: var(--redline); }
.adapters td:last-child { color: var(--muted); }
.adapters td:nth-child(2) { white-space: nowrap; }
.kinds { margin-top: 2rem; }
.kinds td:first-child { white-space: normal; font-weight: 500; }
.kinds .yes, .kinds .no { white-space: normal; }
.tag {
  display: inline-block; margin-right: 0.4rem; padding: 0.05rem 0.55rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); font-size: 0.8rem; font-weight: 600;
}
.tag.best { border-color: var(--revs); color: var(--revs); }

/* help */
.help { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.help p { margin: 0 0 0.9rem; color: var(--muted); }
.help strong { color: var(--ink); font-weight: 600; }

footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

/* privacy page */
.doc { max-width: 40rem; padding: 2rem 0 4rem; }
.doc h1 { font: 700 clamp(2.4rem, 6vw, 3.4rem)/1 var(--gauge); margin: 1rem 0 1.5rem; }
.doc p { color: #c9d1da; }
.doc .badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font-size: 0.95rem; margin-bottom: 1rem; }
.doc .badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.meta { color: var(--muted); font-size: 0.9rem; margin-top: 2.5rem; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 1rem; }
  .cluster { width: min(100%, 22rem); }
  .help, .readouts { grid-template-columns: 1fr; }
  .steps li, .steps li:nth-child(even) { grid-template-columns: 1fr; gap: 1.25rem; }
  .steps li:nth-child(even) figure { order: 0; }
  .steps figure { width: min(70%, 15rem); }
  td:first-child { white-space: normal; }
}
