/* TreadPilot — treadpilot.app
   SPDX-License-Identifier: GPL-3.0-or-later
   Copyright (C) 2026 Backlog Fejlesztő Kft.

   The page deliberately wears a single, light identity (the Signal direction),
   so there is no separate dark palette — every colour is painted explicitly. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #0E0E0C; outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ============================================================
   REAL DEVICE FRAMES. The aspect ratio comes from the actual screenshot
   proportions (iPhone 386:840, Apple Watch Ultra 422:514), so the mockup
   does not distort.
   ============================================================ */
.dev { flex: none; background: #000; border: 1px solid #FFFFFF2E; box-shadow: 0 30px 70px -32px #000000C7; }
.dev .screen { position: relative; overflow: hidden; background: #030303; }
.dev .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; }
.dev-phone { width: 252px; padding: 7px; border-radius: 36px; }
.dev-phone .screen { aspect-ratio: 386 / 840; border-radius: 30px; }
.dev-watch { width: 152px; padding: 6px; border-radius: 38px; }
.dev-watch .screen { aspect-ratio: 422 / 514; border-radius: 33px; }
/* A single still image (the guide, the safety section) */
.dev.still .screen img { opacity: 1; position: static; height: auto; }
.dev.still .screen { aspect-ratio: auto; }

/* Four phone screens chained one after another, on an 18 s loop */
.seq-4 img { animation: seqFade 18s infinite; }
.seq-4 img:nth-child(1) { animation-delay: 0s; }
.seq-4 img:nth-child(2) { animation-delay: 4.5s; }
.seq-4 img:nth-child(3) { animation-delay: 9s; }
.seq-4 img:nth-child(4) { animation-delay: 13.5s; }
/* Three watch screens, at their own pace */
.seq-3 img { animation: seqFade3 10.5s infinite; }
.seq-3 img:nth-child(1) { animation-delay: 0s; }
.seq-3 img:nth-child(2) { animation-delay: 3.5s; }
.seq-3 img:nth-child(3) { animation-delay: 7s; }
/* The images cross-fade: each stays visible until the next one floats in on
   top of it. With no gap — otherwise there is a black flash. */
@keyframes seqFade  { 0% {opacity:0} 2% {opacity:1} 25% {opacity:1} 28% {opacity:0} 100% {opacity:0} }
@keyframes seqFade3 { 0% {opacity:0} 3% {opacity:1} 33% {opacity:1} 37% {opacity:0} 100% {opacity:0} }
@media (prefers-reduced-motion: reduce) {
  .seq-4 img, .seq-3 img { animation: none; opacity: 0; }
  .seq-4 img:first-child, .seq-3 img:first-child { opacity: 1; }
}
/* Safety section: the real confirmation screen next to the text */
.safetyrow { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: center; margin-top: 52px; }
.safetyrow .warn { margin-top: 0; }
@media (max-width: 900px) { .safetyrow { grid-template-columns: 1fr; justify-items: center; } }

/* The screenshot row in the guide. In the dark section a black screen would
   blend into the background, so the device frame is lighter here — that way the
   phone reads as an object against the background, without a yellow panel. */
.gshot .dev-phone { width: 100%; max-width: 250px; }
.guide .dev {
  background: #1B1C20;
  border-color: #FFFFFF3D;
  box-shadow: 0 26px 54px -26px #000000E6, inset 0 1px 0 #FFFFFF14;
}
.guide .dev .screen { box-shadow: inset 0 0 0 1px #0000008C; }


/* ============================================================
   C — SIGNAL. Poster-like, large typography, yellow panels.
   A consumer tone, close to the App Store.
   ============================================================ */
:root {
  --paper: #FAFAF7; --ink: #0E0E0C; --mid: #56564F;
  --acc: #FFE500; --rule: #0E0E0C1F;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", system-ui, sans-serif;
}
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 26px; }
h1, h2, h3 { margin: 0; font-family: "Bricolage Grotesque", sans-serif; text-wrap: balance; letter-spacing: -.028em; }
p { margin: 0; }
.nav { display: flex; align-items: center; gap: 24px; padding: 22px 0; }
/* The wordmark is the brand lockup: Space Grotesk, all caps, yellow dot.
   On a light background it sits in a dark panel so the yellow dot does not
   wash out. */
.mark {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: .01em; margin-right: auto; color: #FAFAF7;
  background: var(--ink); border-radius: 6px; padding: 8px 13px;
}
.mark i { color: #FFEB3B; font-style: normal; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { text-decoration: underline; }
.nav .pill { background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: 100px; font-size: 13px; }
.hero { padding: 34px 0 0; }
.hero h1 { font-size: clamp(44px, 6.2vw, 90px); font-weight: 800; line-height: .95; }
.hero h1 mark { background: var(--acc); color: var(--ink); padding: 0 .1em; }
.herotext { margin-top: 26px; }
.hero .lede { font-size: 18px; line-height: 1.58; color: var(--mid); max-width: 44ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { font-size: 14px; font-weight: 600; text-decoration: none; padding: 15px 26px; border-radius: 100px; display: inline-block; }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.ghost { border: 1.5px solid var(--rule); color: var(--ink); }
.btn:hover { transform: translateY(-1px); }
.stage {
  background: var(--acc); border-radius: 20px; padding: 34px 26px;
  display: flex; gap: 18px; justify-content: center; align-items: flex-end; min-height: 300px;
}
/* Desktop layout: the hero sits in two columns. The left column stacks the
   headline and the copy; the devices fill the right column top to bottom. This
   avoids leaving several hundred pixels of emptiness between the headline and
   the paragraph, and avoids tricks with negative margins. */
@media (min-width: 901px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 476px;
    column-gap: 48px;
    align-items: center;
  }
  .hero h1  { grid-column: 1; grid-row: 1; align-self: end; }
  .herotext { grid-column: 1; grid-row: 2; align-self: start; }
  .stage    { grid-column: 2; grid-row: 1 / span 2; }
}
.trust {
  list-style: none; padding: 0; margin: 30px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
}
.trust li {
  font-size: 13.5px; font-weight: 500; color: var(--mid);
  display: flex; align-items: center; gap: 8px;
}
.trust li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 0 1px #0E0E0C1A; flex: none;
}
/* Marquee. The content appears three times in the DOM and the strip shifts by
   exactly one third — so the loop does not break even on an ultra-wide display.
   The second copy is aria-hidden so a screen reader does not read it twice. */
.marquee {
  background: var(--ink); color: var(--paper); margin-top: 46px;
  padding: 15px 0; overflow: hidden;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; white-space: nowrap; }
.marquee span {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600;
  font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  display: inline-block; padding-right: 18px;
}
.marquee i { color: var(--acc); font-style: normal; padding-right: 18px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { padding-left: 26px; }
}
.sec { padding: 76px 0; }
.sec h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.02; }
.sec .sub { color: var(--mid); font-size: 17px; line-height: 1.6; max-width: 52ch; margin-top: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.card { border: 1.5px solid var(--rule); border-radius: 16px; padding: 26px 24px; background: #fff; }
.card.fill { background: var(--acc); border-color: var(--acc); }
.card .n { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -.04em; }
.card h3 { font-size: 19px; font-weight: 600; margin: 12px 0 10px; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--mid); }
.card.fill p { color: #0E0E0CB3; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.warn { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 34px 34px; margin-top: 52px; }
.warn h3 { font-size: 22px; font-weight: 700; color: var(--acc); margin-bottom: 12px; }
.warn p { font-size: 15px; line-height: 1.65; color: #FAFAF7C4; max-width: 72ch; }
pre {
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px; line-height: 1.8;
  background: var(--ink); color: #E4E4DE; border-radius: 14px;
  padding: 24px; overflow-x: auto; margin: 0;
}
pre .c { color: #85857C; }
pre .y { color: var(--acc); }
.kv { list-style: none; padding: 0; margin: 24px 0 0; }
.kv li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.kv .k { font-weight: 600; width: 150px; flex: none; }
.kv .v { color: var(--mid); line-height: 1.55; }
/* The guide: step by step, with screenshots */
.guide { background: var(--ink); color: #FAFAF7; padding: 84px 0; }
.guide h2 { color: #FAFAF7; }
.guide .sub { color: #FAFAF7A6; }
.guide .eyebrow { font-family: "Space Grotesk", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.steps6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; margin-top: 52px; }
.gstep { display: flex; flex-direction: column; }
.gshot { display: flex; justify-content: center; margin-bottom: 20px; }
.gnum {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 15px;
  background: var(--acc); color: var(--ink); width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.gstep h3 { font-size: 20px; font-weight: 600; color: #FAFAF7; margin-bottom: 9px; }
.gstep p { font-size: 14.5px; line-height: 1.62; color: #FAFAF7A6; }
.gstep .tip {
  font-size: 13px; line-height: 1.6; color: var(--acc); margin-top: 10px;
  padding-left: 12px; border-left: 2px solid #FFE50059;
}

footer { background: var(--ink); color: #FAFAF7; padding: 56px 0 64px; margin-top: 0; border-top: 1px solid #FAFAF71F; }
/* On a dark background the wordmark stands bare (as it does in the app) — the
   navigation's dark chip would be invisible here, so we remove the background
   explicitly. */
footer .mark {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 16px;
  color: #FAFAF7; display: inline-block; margin-bottom: 14px;
  background: none; padding: 0; border-radius: 0;
}
footer .mark i { color: #FFEB3B; font-style: normal; }
footer .in { display: flex; flex-wrap: wrap; gap: 24px; }
footer p { font-size: 14px; color: #FAFAF7A6; line-height: 1.7; max-width: 58ch; }
footer a { color: var(--acc); }
footer .right { margin-left: auto; font-size: 12px; color: #FAFAF780; }


@media (max-width: 900px) {
  #va .hero, #vb .hero, #va .devgrid, #vb .two, .split { grid-template-columns: 1fr; }
  #va .steps, .cards, #va .feats { grid-template-columns: 1fr; }
  #va .devices, #vb .devices, .stage { flex-wrap: wrap; }
  .steps6 { grid-template-columns: 1fr; gap: 46px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .steps6 { grid-template-columns: repeat(2, 1fr); }
}

/* Footer social row */
footer .social {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
}
footer .social a {
  font-size: 14px; font-weight: 500; color: #FAFAF7;
  text-decoration: none; border-bottom: 1px solid #FFE50066; padding-bottom: 2px;
}
footer .social a:hover { border-bottom-color: var(--acc); color: var(--acc); }

/* ============================================================
   Document page (privacy policy). A narrow column with a readable line
   length; it uses the main page's palette and typefaces.
   ============================================================ */
.doc { max-width: 68ch; margin: 26px auto 90px; }
.doc-back { margin: 0 0 30px; font-size: 14px; }
.doc-back a { color: var(--mid); text-decoration: none; border-bottom: 1px solid var(--rule); }
.doc-back a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.doc h1 {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: clamp(36px, 5.6vw, 60px); line-height: 1.0;
  letter-spacing: -.03em; margin: 0;
}
.doc-meta {
  font-size: 14px; color: var(--mid); margin: 14px 0 0;
}
.doc-tldr {
  background: var(--acc); border-radius: 16px;
  padding: 24px 26px; margin: 32px 0 8px;
}
.doc-tldr p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.doc h2 {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600;
  font-size: 24px; letter-spacing: -.02em; margin: 44px 0 14px;
}
.doc p { font-size: 16.5px; line-height: 1.68; color: #2C2C28; margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { font-size: 16.5px; line-height: 1.62; color: #2C2C28; margin-bottom: 8px; }
.doc strong { font-weight: 600; color: var(--ink); }
.doc a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--acc); }
.doc a:hover { background: var(--acc); }
/* Here the navigation wordmark is a clickable link */
a.mark { text-decoration: none; }
/* In the navigation the wordmark is also a link — otherwise the `.nav a` rule
   would give it the dark ink colour, which is unreadable on the dark chip. */
.nav a.mark { color: #FAFAF7; text-decoration: none; }
.nav a.mark:hover { color: #FAFAF7; }
.nav a.mark i { color: #FFEB3B; }
