/* truerun.app. One dark theme, the same one the App Store screenshots use: near-black, warm white, TrueRun orange. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0b0c0e;
  --bg-2: #111317;
  --card: #15171c;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f3f1ee;
  --muted: #a5a8af;
  --accent: #ff5722;
  --accent-text: #ff7a4d;
  --ink: #140a06;
  --gutter: 24px;
  --max: 1180px;
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
@media (max-width: 479px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 112%; line-height: 1.04; letter-spacing: -.012em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 104%; line-height: 1.25; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: var(--ink); }

.eyebrow { margin-bottom: 18px; color: var(--muted); font-size: .8125rem; font-weight: 700; font-stretch: 110%; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4; }
.eyebrow::before { content: ''; display: block; width: 28px; height: 3px; margin-bottom: 14px; border-radius: 2px; background: var(--accent); }

/* ------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 12, 14, .88); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px); padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 800; font-stretch: 112%; font-size: 1.1875rem; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 22.5%; }
.langs { position: relative; }
.langs summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; list-style: none; color: var(--text); font-size: .875rem; font-weight: 700; letter-spacing: .06em; user-select: none; -webkit-user-select: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .04); }
.ico { flex: none; }
.langs ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; border: 1px solid var(--line-2); border-radius: 16px; background: #17191e; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.langs a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; }
.langs a:hover { background: rgba(255, 255, 255, .06); }
.langs a[aria-current] { color: var(--accent-text); font-weight: 700; }
.langs a[aria-current]::after { content: ''; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--accent); }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: min(900px, 120vw); height: 900px; background: radial-gradient(closest-side, rgba(255, 87, 34, .22), rgba(255, 87, 34, 0)); pointer-events: none; }
.hero-in { position: relative; display: grid; gap: 40px; padding-top: clamp(40px, 7vw, 96px); }
.hero h1 { font-size: clamp(2.3rem, .9rem + 6vw, 5.2rem); font-stretch: 115%; line-height: .98; letter-spacing: -.02em; hyphens: manual; }
.swoosh { font-style: normal; padding-bottom: .1em; background: url(/img/swoosh.svg) left bottom / 100% .3em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { max-width: 34em; margin-top: 26px; color: #d3d4d8; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.badge { display: inline-block; flex: none; border-radius: 12px; line-height: 0; }
.badge img { height: 54px; width: auto; }
.note { color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.hero-art { justify-self: center; width: min(78vw, 330px); }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }
@media (max-width: 899px) {
  .hero-art { max-height: 500px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
}
@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 56px; padding-bottom: 80px; }
  .hero-art { width: 100%; max-width: 360px; justify-self: end; }
}

/* ------------------------------------------------------------ facts */
.facts { border-block: 1px solid var(--line); background: var(--bg-2); }
.facts-in { display: grid; }
.facts li { display: flex; align-items: center; gap: 20px; padding-block: 22px; }
.facts li + li { border-top: 1px solid var(--line); }
.facts strong { flex: none; min-width: 1.45em; color: var(--accent); font-size: clamp(3.2rem, 2rem + 4vw, 5.25rem); font-weight: 800; font-stretch: 125%; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.facts span { color: #d3d4d8; font-size: 1.0625rem; line-height: 1.35; max-width: 16em; }
@media (min-width: 760px) {
  .facts-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts li { flex-direction: column; align-items: flex-start; gap: 14px; padding: 40px 28px 40px 0; }
  .facts strong { min-width: 0; }
  .facts li + li { border-top: 0; border-left: 1px solid var(--line); padding-left: 28px; }
}

/* ------------------------------------------------------------ bands */
.band { padding-block: clamp(64px, 9vw, 120px); }
.band h2 { max-width: 18em; }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* screenshots: full-bleed row that scrolls sideways */
.shots { display: flex; gap: 16px; margin-top: 40px; padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2)) 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.shots:focus-visible { outline-offset: -3px; border-radius: 0; }
.shots li { flex: none; width: clamp(228px, 64vw, 286px); scroll-snap-align: start; }
.shots img { width: 100%; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.shots-nav { display: flex; gap: 10px; flex: none; }
.shots-nav[hidden] { display: none; }
.arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; }
.arrow:hover:not(:disabled) { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .32); }
.arrow:disabled { opacity: .35; cursor: default; }
@media (max-width: 759px) { .shots-nav { display: none; } }

/* features */
.features { display: grid; gap: 14px; margin-top: 44px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.features li { padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.features h3 { margin-bottom: 10px; }
.features p { color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* rules */
.rules-band { background: var(--bg-2); border-block: 1px solid var(--line); }
.rules { display: grid; gap: 0 56px; margin-top: 40px; counter-reset: rule; }
.rules li { position: relative; padding: 26px 0 28px 76px; border-top: 1px solid var(--line); counter-increment: rule; }
.rules li::before { content: counter(rule, decimal-leading-zero); position: absolute; left: 0; top: 22px; color: var(--accent); font-size: 2.25rem; font-weight: 800; font-stretch: 125%; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rules h3 { font-size: 1.375rem; margin-bottom: 8px; }
.rules p { color: var(--muted); }
@media (min-width: 820px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* faq */
.faq-wrap { display: grid; gap: 36px; }
.faq-more { margin-top: 20px; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding-block: 16px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover h3 { color: #fff; }
.faq h3 { font-size: 1.125rem; font-stretch: 102%; }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 40em; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* last call */
.end { background: var(--accent); color: var(--ink); }
.end-in { display: grid; justify-items: start; gap: 18px; padding-block: clamp(64px, 9vw, 112px); }
.end h2 { font-size: clamp(2.2rem, 1.1rem + 4.6vw, 4.6rem); font-stretch: 115%; letter-spacing: -.02em; max-width: 14em; }
.end p { font-size: 1.125rem; font-weight: 500; }
.end .badge { margin-top: 10px; }
.end .badge:focus-visible { outline-color: var(--ink); }

/* ------------------------------------------------------------ footer */
.foot { padding-block: 56px calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .9375rem; }
.foot-in { display: grid; gap: 28px; }
.foot-brand p { margin-top: 10px; max-width: 26em; }
.foot-nav, .foot-langs { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-nav a, .foot-langs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.foot-nav a:hover, .foot-langs a:hover { color: var(--accent-text); }
.foot-langs a { color: var(--muted); }
.foot-langs a[aria-current] { color: var(--text); font-weight: 700; }
.fine { font-size: .8125rem; line-height: 1.5; }
.fine + .fine { margin-top: -20px; }
@media (min-width: 900px) {
  .foot-in { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .foot-nav { justify-content: flex-end; }
  .foot-langs { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); }
  .fine { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ privacy */
.doc-in { max-width: calc(760px + 2 * var(--gutter)); padding-block: clamp(40px, 7vw, 88px) 72px; }
.doc h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.6rem); font-stretch: 115%; }
.doc-date { margin-top: 16px; color: var(--muted); }
.doc section { margin-top: 44px; }
.doc h2 { font-size: 1.5rem; font-stretch: 108%; margin-bottom: 14px; }
.doc p + p { margin-top: 14px; }
.doc ul { margin-top: 14px; display: grid; gap: 12px; }
.doc li { position: relative; padding-left: 22px; }
.doc li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 8px; height: 3px; border-radius: 2px; background: var(--accent); }
.doc strong { font-weight: 700; }
.doc section p, .doc li { color: #d3d4d8; }

/* ------------------------------------------------------------ language picker (/) and 404 */
.picker-page { display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; }
.picker { width: 100%; max-width: 420px; padding: 48px var(--gutter); text-align: center; }
.picker > img { margin: 0 auto 18px; border-radius: 22.5%; }
.picker h1 { font-size: 2.5rem; font-stretch: 115%; margin-bottom: 30px; }
.picker-list { display: grid; gap: 10px; text-align: left; }
.picker-list a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 16px; color: var(--text); text-decoration: none; }
.picker-list a:hover { border-color: var(--accent); }
.picker-name { font-weight: 700; font-size: 1.0625rem; }
.picker-sub { color: var(--muted); font-size: .875rem; }
.big-404 { color: var(--accent); font-size: 5rem; font-weight: 800; font-stretch: 125%; line-height: 1; margin-bottom: 12px; }
