/* Vidstop site. Colors and type follow DESIGN.md: iOS semantic colors plus one signal-orange tint. */

:root {
  color-scheme: light dark;
  --tint: #d04a14;
  --bg: #f2f2f7;
  --card: #ffffff;
  --label: #000000;
  --secondary: rgba(60, 60, 67, 0.6);
  --secondary-strong: rgba(60, 60, 67, 0.85);
  --fill: rgba(118, 118, 128, 0.12);
  --separator: rgba(60, 60, 67, 0.18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tint: #ea6428;
    --bg: #000000;
    --card: #1c1c1e;
    --label: #ffffff;
    --secondary: rgba(235, 235, 245, 0.6);
    --secondary-strong: rgba(235, 235, 245, 0.8);
    --fill: rgba(118, 118, 128, 0.24);
    --separator: rgba(84, 84, 88, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* Header on inner pages */
.site-header { padding: 20px 0 4px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--label); font-weight: 700; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }

/* Home */
.home { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.home section { margin: 0 auto; }
.home h2 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 14px; }

.hero { padding: 28px 0 8px; }
.app-icon { width: 64px; height: 64px; border-radius: 14px; display: block; }
h1 { font-size: 34px; line-height: 1.15; font-weight: 700; margin: 16px 0 8px; letter-spacing: -0.01em; }
.lede { font-size: 17px; line-height: 1.45; color: var(--secondary-strong); margin: 0 0 20px; max-width: 34em; }
.get { margin: 0 0 28px; }
.hero-shot { margin: 0 auto; width: min(72vw, 300px); }

/* A screenshot shown as a phone screen: rounded corners, a thin dark rim, and a soft shadow. */
.screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13.5% / 6.2%;
  background: var(--card);
  box-shadow:
    0 0 0 5px #1c1c1e,
    0 0 0 6px rgba(0, 0, 0, 0.18),
    0 18px 40px -12px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: dark) {
  .screen {
    box-shadow:
      0 0 0 5px #2c2c2e,
      0 0 0 6px rgba(255, 255, 255, 0.14),
      0 18px 48px -10px rgba(234, 100, 40, 0.18);
  }
}
/* The shared video, shown as full-screen playback on a phone so it matches the portrait screenshots. */
.player {
  position: relative;
  aspect-ratio: 660 / 1434;
  background: #000;
  display: flex; align-items: center;
}
.player img { display: block; width: 100%; height: auto; }
.player-bar {
  position: absolute; left: 9%; right: 9%; bottom: 7%;
  display: flex; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, 0.9);
}
.player-bar svg { flex: none; width: 16px; height: 16px; }
.player-bar .track { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.player-bar .played { display: block; width: 96%; height: 100%; background: rgba(255, 255, 255, 0.9); }

.how { max-width: 680px; padding: 36px 0 8px; }

.gallery { padding: 36px 0 8px; }
.shots {
  list-style: none; margin: 0 -16px; padding: 6px 16px 20px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 240px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots li { scroll-snap-align: start; }
.shots figure { margin: 0; padding: 6px; }
.shots figcaption { margin-top: 18px; font-size: 15px; line-height: 1.35; color: var(--secondary); }
.shots figcaption strong { display: block; font-size: 17px; font-weight: 600; color: var(--label); margin-bottom: 2px; }

.cta { max-width: 680px; padding: 36px 0 8px; }
.cta .badge-note { font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 20px; overflow: hidden; }
.steps li { display: flex; gap: 12px; align-items: baseline; padding: 10px 16px; line-height: 1.35; }
.steps li + li { border-top: 0.5px solid var(--separator); margin-left: 56px; padding-left: 0; }
.steps li + li .num { margin-left: -40px; }
.num {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--fill); color: var(--secondary);
  font-size: 15px; font-weight: 600; line-height: 28px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.steps strong { display: block; font-weight: 600; }
.steps span.help { display: block; font-size: 13px; color: var(--secondary); }

.badge { display: inline-block; line-height: 0; }
.badge img { height: 48px; width: auto; }
.badge .on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .badge .on-light { display: none; }
  .badge .on-dark { display: inline; }
}
.badge-note { font-size: 13px; color: var(--secondary); margin: 8px 0 0; }

/* Document pages */
main.doc { padding: 8px 0 24px; }
.doc h1 { margin-top: 16px; }
.doc .meta { color: var(--secondary); font-size: 15px; margin: 0 0 20px; }
.doc section { background: var(--card); border-radius: 20px; padding: 4px 18px 6px; margin: 0 0 14px; }
.doc h2 { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 14px 0 6px; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 0 0 6px; }
.doc .summary { font-size: 19px; line-height: 1.45; margin: 0 0 20px; }

/* Footer */
.site-footer { padding: 8px 0 32px; font-size: 13px; color: var(--secondary); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 6px; font-size: 15px; }
.site-footer p { margin: 0; }
.home .site-footer { max-width: 680px; margin: 0 auto; padding-top: 40px; }

@media (min-width: 720px) {
  h1 { font-size: 44px; }
  .app-icon { width: 88px; height: 88px; border-radius: 20px; }
  .lede { font-size: 20px; line-height: 1.4; }
  .hero h1 { font-size: 52px; }
  .home { padding: 0 32px; }
  .home h2 { font-size: 30px; margin-bottom: 20px; }
  .how h2, .gallery h2, .cta, .home .site-footer { text-align: center; }
  .home .site-footer nav { justify-content: center; }
  .get .badge-note { max-width: 30em; }
  .shots {
    margin: 0; padding: 6px 0 0; overflow: visible;
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 250px)); grid-auto-columns: auto;
    justify-content: center; gap: 40px;
  }
}

@media (min-width: 900px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: center;
    min-height: min(100svh, 860px); padding: 40px 0;
  }
  .get { margin: 0; }
  .hero-shot { width: 100%; }
}
