/* tripshots.app: the desktop app's tokens (desktop/src/app.css). Graphite chrome, the footage carries the colour,
   ember (the logo's setting sun) is the one accent. Timecode in mono is the signature. */
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fafafa;
  --deep: #f4f4f5;
  --card: #ffffff;
  --text: #171717;
  --text-2: #525252;
  --text-3: #6b6b6b;
  --line: rgba(23, 23, 23, 0.08);
  --line-strong: rgba(23, 23, 23, 0.14);
  --accent: #c2501f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(194, 80, 31, 0.1);
  --player: #0f0f10;
  --player-text: #ededed;
  --player-text-2: #a1a1a6;
  --shot: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.1);
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-ctl: 8px;
  --r-card: 12px;
  --r-panel: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141415;
    --deep: #0f0f10;
    --card: #19191b;
    --text: #ededed;
    --text-2: #a1a1a6;
    --text-3: #8e8e94;
    --line: rgba(237, 237, 237, 0.08);
    --line-strong: rgba(237, 237, 237, 0.14);
    --accent: #e8743f;
    --accent-ink: #160a04;
    --accent-soft: rgba(232, 116, 63, 0.14);
    --shot: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141415;
  --deep: #0f0f10;
  --card: #19191b;
  --text: #ededed;
  --text-2: #a1a1a6;
  --text-3: #8e8e94;
  --line: rgba(237, 237, 237, 0.08);
  --line-strong: rgba(237, 237, 237, 0.14);
  --accent: #e8743f;
  --accent-ink: #160a04;
  --accent-soft: rgba(232, 116, 63, 0.14);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.88em; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: var(--r-ctl); z-index: 10; }
.skip:focus { left: 16px; }
.tc { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.sub { color: var(--text-2); max-width: 62ch; margin-top: 12px; font-size: 1.0625rem; }
.fine { color: var(--text-3); font-size: 0.875rem; margin-top: 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-ctl);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  transition: filter 150ms var(--ease), transform 150ms var(--ease);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-big { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; opacity: 0.9; }
.btn-ghost:hover { filter: none; opacity: 1; background: rgba(255, 255, 255, 0.06); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--player) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: var(--player-text); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 650; font-size: 1.0625rem; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 0.9375rem; }
.top nav a:not(.btn) { color: var(--player-text-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color 150ms var(--ease); }
.top nav a:not(.btn):hover { color: var(--player-text); }
.top .btn { --accent: #e8743f; --accent-ink: #160a04; }
@media (max-width: 760px) {
  .top nav a:not(.btn):not(.gh) { display: none; }
  .top nav .gh span { display: none; }
}

/* hero: the player, always dark like the app's viewer */
.hero { background: var(--player); color: var(--player-text); padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px); }
.hero .btn:not(.btn-ghost) { --accent: #e8743f; --accent-ink: #160a04; }
.hero .tc { color: #e8743f; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem); font-weight: 650; letter-spacing: -0.03em; margin-top: 10px; }
.lede { color: var(--player-text-2); font-size: 1.125rem; margin-top: 20px; max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .fine { color: #8e8e94; }
.hero-reel .frame { border-radius: var(--r-panel); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.5); }
.hero-reel video { width: 100%; height: 100%; object-fit: cover; }
.hero-reel figcaption { margin-top: 14px; color: #8e8e94; font-size: 0.875rem; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-reel { order: -1; }
}

/* sections */
section { scroll-margin-top: 64px; }
.band { padding: clamp(64px, 9vw, 112px) 0; background: var(--deep); border-block: 1px solid var(--line); }
.app, .download, .cli { padding: clamp(64px, 9vw, 112px) 0; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.steps li { padding: 20px 24px 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.steps h3 { margin-top: 8px; }
.steps p { color: var(--text-2); margin-top: 8px; font-size: 0.9375rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-strong); padding-left: 20px; }
  .steps li { padding: 0; }
  .steps li::before { top: 6px; left: -25px; }
}

.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(48px, 7vw, 88px); }
.feature.flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.feature.flip img { order: 2; }
.feature img, .pair img { border-radius: var(--r-card); box-shadow: var(--shot), 0 0 0 1px var(--line); }
.feature p { color: var(--text-2); margin-top: 12px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(48px, 7vw, 88px); }
.pair figure { margin: 0; }
.pair figcaption { color: var(--text-2); margin-top: 14px; font-size: 0.9375rem; }
.pair strong { color: var(--text); font-weight: 600; }
@media (max-width: 820px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip img { order: 0; }
  .pair { grid-template-columns: 1fr; }
}

.grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.grid li { background: var(--card); padding: 24px; }
.grid p { color: var(--text-2); margin-top: 8px; font-size: 0.9375rem; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.cli-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.cli-in p { color: var(--text-2); margin-top: 12px; }
.term { margin: 0; background: var(--player); color: #ededed; border-radius: var(--r-card); padding: 22px 24px; overflow-x: auto; font: 400 0.875rem/1.7 var(--mono); box-shadow: 0 0 0 1px var(--line); }
.term code { font-size: inherit; }
.term .c { color: #8e8e94; }
@media (max-width: 820px) { .cli-in { grid-template-columns: 1fr; } }

.download { background: var(--deep); border-top: 1px solid var(--line); }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.platform { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.platform.mine { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.platform .req { color: var(--text-2); font-size: 0.9375rem; }
.platform .btn { margin-top: 6px; }
.platform:not(.mine) .btn { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.platform:not(.mine) .btn:hover { filter: none; background: var(--accent-soft); }
.platform .alt { font-size: 0.875rem; color: var(--text-3); }
.platform .note { color: var(--text-3); font-size: 0.8125rem; margin-top: auto; padding-top: 6px; }
.platform .warn { color: var(--text); background: var(--accent-soft); border-radius: var(--r-ctl); padding: 8px 10px; font-size: 0.875rem; }
@media (max-width: 820px) { .platforms { grid-template-columns: 1fr; } }

.foot { padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.875rem; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-in p { display: flex; align-items: center; gap: 10px; }
.foot-in p:last-child { gap: 20px; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--text); }
