/* 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 */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 28px 16px 20px; }
.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; }

.result-card {
  background: var(--card);
  border-radius: 20px;
  padding: 14px 18px 16px;
  margin: 0 0 14px;
}
.result-card .caption { font-size: 13px; color: var(--secondary); margin: 0; }
.result-time {
  font-family: var(--font-rounded);
  font-size: 64px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin: 2px 0 6px;
}
.result-time .unit { font-size: 28px; color: var(--secondary); margin-left: 4px; }
.marks { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--secondary); font-variant-numeric: tabular-nums; }
.mark { display: inline-flex; align-items: center; gap: 6px; }
.mark svg { width: 22px; height: 22px; padding: 4px; border-radius: 6px; background: var(--tint); color: #fff; }

.steps { list-style: none; margin: 0 0 24px; 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; }
.hero .site-footer { padding-top: 28px; padding-bottom: 0; }

@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; }
}
