/* HealVideo site. Same identity as the app: film-leader orange as the only accent,
   Archivo (condensed) for headings and figures, Source Sans 3 for reading.
   The page opens in the dark of an editing room and moves into daylight. */

@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-latin.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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"; src: url("/fonts/Archivo-latin-ext.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/SourceSans3-latin.woff2") format("woff2-variations");
  font-weight: 200 900; font-display: swap;
  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: "Source Sans 3"; src: url("/fonts/SourceSans3-latin-ext.woff2") format("woff2-variations");
  font-weight: 200 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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 {
  --paper: #f3f4f5;
  --ink: #17191c;
  --muted: #5b636b;
  --line: #d6dade;
  --accent: #f2620f;
  --accent-ink: #17191c;
  --accent-text: #b54708;
  --bad: #b42318;
  --room: #141619;           /* the dark editing room */
  --room-ink: #eceef0;
  --room-muted: #9aa3ab;
  --room-line: #2b3136;
  --film: #1b1d20;
  --film-cell: #2a2d31;
  --film-hatch: #3a3e43;
  --r: 6px;
  --wrap: 1180px;
  --gutter: max(24px, calc((100% - var(--wrap)) / 2));
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1d20;
    --ink: #eceef0;
    --muted: #a2abb3;
    --line: #2f353a;
    --accent: #ff7a30;
    --accent-ink: #1a0e05;
    --accent-text: #ff9152;
    --bad: #ff8b7b;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(56px, 8.4vw, 132px); line-height: .9; font-stretch: 70%; font-weight: 830; letter-spacing: -0.01em; }
h2 { font-size: clamp(38px, 5vw, 68px); line-height: .96; font-stretch: 74%; font-weight: 800; max-width: 18ch; }
h3 { font-size: 24px; font-stretch: 82%; font-weight: 740; }
p { margin: 0 0 16px; max-width: 62ch; }
.lede { font-size: clamp(19px, 1.6vw, 22px); color: var(--muted); margin-top: 22px; }
.fine { font-size: 15px; color: var(--muted); }
em { font-style: normal; font-weight: 700; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: var(--r);
  font: 650 17px/1 var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .08s, background-color .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 86%, white); }
.btn.ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.btn.ghost:hover { border-color: currentColor; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* top bar sits on the dark room */
.bar { position: absolute; inset: 0 0 auto 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px var(--gutter); color: var(--room-ink); }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 830 23px/1 var(--display); font-stretch: 72%; }
.mark { display: flex; gap: 2px; padding: 3px; background: #000; border-radius: 3px; }
.mark i { width: 6px; height: 15px; border-radius: 1px; background: #e8742a; }
.mark i.cut { background: repeating-linear-gradient(135deg, var(--film-cell) 0 2px, var(--film-hatch) 2px 3px); }
.bar nav { display: flex; gap: 26px; font-size: 16px; }
.bar nav a { text-decoration: none; color: var(--room-muted); }
.bar nav a:hover { color: var(--room-ink); }

/* 1. hero */
.hero { background: var(--room); color: var(--room-ink); display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center;
  padding: 150px var(--gutter) 110px; min-height: min(100dvh, 980px); }
.hero .lede { color: var(--room-muted); }
.hero .fine { color: var(--room-muted); margin-top: 18px; }
.monitor { margin: 0; }
.screen { position: relative; background: #000; border-radius: 8px; padding: 10px; box-shadow: 0 0 0 1px var(--room-line), 0 40px 80px -30px rgba(242, 98, 15, .28); }
.screen canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 2px; background: #0b0c0d; }
.hud { position: absolute; inset: auto 22px 20px 22px; display: flex; justify-content: space-between; align-items: center;
  font: 650 15px/1 var(--display); font-stretch: 85%; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); pointer-events: none; }
.hud #hud-state { padding: 5px 9px; border-radius: 3px; background: rgba(0,0,0,.55); }
.hud #hud-state.ok { background: var(--accent); color: var(--accent-ink); text-shadow: none; }
.tc { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.monitor figcaption { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 16px;
  color: var(--room-muted); font-size: 15px; }
.replay { appearance: none; background: none; border: 0; color: var(--room-ink); font: 650 15px/1 var(--body); cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); padding: 8px 0; white-space: nowrap; }

/* 2. diagnosis */
.plain { padding: 130px 0 110px; }
.rows { list-style: none; margin: 46px 0 22px; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 220px 110px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.js .rows li { opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; transition-delay: calc(var(--i, 0) * 110ms); }
.js .in .rows li { opacity: 1; transform: none; }
.rows .file { font-weight: 700; }
.rows .size { font: 650 18px/1 var(--display); font-stretch: 85%; color: var(--muted); font-variant-numeric: tabular-nums; }
.rows .say { color: var(--ink); }

/* 3. the four steps on a strip of film */
.how { padding: 40px 0 120px; }
.how h2 { margin-bottom: 44px; }
.strip { list-style: none; margin: 0; padding: 26px var(--gutter); background: var(--film); color: var(--room-ink);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.strip::before, .strip::after { content: ""; position: absolute; left: 0; right: 0; height: 9px;
  background: linear-gradient(90deg, var(--film-hatch) 0 12px, transparent 12px 26px) 6px 0 / 26px 9px repeat-x; }
.strip::before { top: 8px; } .strip::after { bottom: 8px; }
.frame-card { padding: 10px 0 8px; }
.still { border-radius: 2px; overflow: hidden; background: var(--film-cell);
  background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--film-hatch) 5px 6px); aspect-ratio: 960 / 616; }
.js .still img { opacity: 0; filter: grayscale(1) brightness(.35) contrast(1.2); transition: opacity .6s, filter 1.2s ease-out;
  transition-delay: calc(var(--i, 0) * 260ms); }
.js .in .still img { opacity: 1; filter: none; }
.frame-card h3 { margin: 18px 0 8px; display: flex; gap: 10px; align-items: baseline; }
.frame-card .n { color: #ff9152; font-variant-numeric: tabular-nums; }
.frame-card p { color: var(--room-muted); font-size: 16px; margin: 0; }

/* 4. memory card pieces */
.card { padding: 110px 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { margin-bottom: 26px; }
.pieces { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; padding: 14px; background: var(--film); border-radius: 8px; }
.piece { aspect-ratio: 1; border-radius: 2px; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.piece.a { background: #f2620f; } .piece.b { background: #f7a26b; } .piece.c { background: #8a3a0c; }
.piece.free { background: var(--film-cell); background-image: repeating-linear-gradient(135deg, transparent 0 3px, var(--film-hatch) 3px 4px); }

/* 5. camera profiles */
.cameras { padding: 120px 0; background: color-mix(in srgb, var(--accent) 8%, var(--paper)); }
.cameras .split { align-items: start; }
.maker { background: var(--paper); border-radius: 8px; padding: 22px; box-shadow: 0 0 0 1px var(--line); }
.drop { display: grid; place-content: center; justify-items: center; gap: 6px; min-height: 230px; text-align: center; cursor: pointer;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: var(--r); padding: 24px; transition: border-color .15s, background-color .15s; }
.drop strong { font: 760 28px/1.05 var(--display); font-stretch: 80%; }
.drop span { color: var(--muted); font-size: 16px; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 0 0 16px; }
.facts div { display: grid; }
.facts dt { font-size: 14px; color: var(--muted); order: 2; }
.facts dd { margin: 0; font: 720 22px/1.15 var(--display); font-stretch: 82%; overflow-wrap: anywhere; }
.status { font-size: 16px; }
.status.ok { color: var(--accent-text); }
.status.bad { color: var(--bad); }
.status:focus { outline: none; }
.json-label { display: block; font-size: 14px; color: var(--muted); margin: 18px 0 6px; }
.maker textarea { width: 100%; font: 13px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 4%, transparent); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; resize: vertical; }
.maker .cta { margin-top: 18px; }

/* 6. downloads */
.download { padding: 120px 0 100px; }
.files { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.files li { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.files .os { font: 760 24px/1.1 var(--display); font-stretch: 80%; }
.files .what { color: var(--muted); }
.files a { font-weight: 650; color: var(--accent-text); text-underline-offset: 4px; overflow-wrap: anywhere; }
.files .size { font: 650 18px/1 var(--display); font-stretch: 85%; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.files li.mine .os::after { content: "Your computer"; display: block; margin-top: 4px; font: 650 14px/1 var(--body); color: var(--accent-text); }
.first-open { margin-top: 56px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.first-open h3 { font-size: 28px; }

.foot { padding: 30px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; gap: 44px; min-height: 0; }
  .split, .first-open { grid-template-columns: 1fr; gap: 36px; }
  .strip { grid-template-columns: repeat(4, 78vw); overflow-x: auto; scroll-snap-type: x mandatory; }
  .frame-card { scroll-snap-align: center; }
  .rows li { grid-template-columns: 1fr auto; }
  .rows .say { grid-column: 1 / -1; }
  .files li { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .files .what { order: 3; } .files a { order: 4; grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bar nav a:not(.keep) { display: none; }
  .bar nav { gap: 18px; }
  .plain, .card, .cameras, .download { padding: 80px 0; }
  .monitor figcaption { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rows li, .still img, .piece { transition: none !important; }
}

/* 404 */
.hero.lost { grid-template-columns: 1fr; min-height: 100dvh; }

/* guide pages */
.page-head { background: var(--room); color: var(--room-ink); padding: 140px var(--gutter) 72px; }
.page-head h1 { font-size: clamp(44px, 6vw, 88px); line-height: .95; max-width: 15ch; }
.page-head .lede { color: var(--room-muted); }
.crumbs { font-size: 15px; color: var(--room-muted); margin-bottom: 24px; }
.crumbs a { color: var(--room-muted); text-decoration: none; }
.crumbs a:hover { color: var(--room-ink); }
.article { padding-top: 40px; padding-bottom: 90px; }
.article > * { max-width: 70ch; }
.article h2 { font-size: clamp(28px, 3vw, 40px); margin: 56px 0 16px; max-width: 24ch; }
.article p, .article li { font-size: 19px; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article a { color: var(--accent-text); text-underline-offset: 3px; }
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
ol.steps li::before { content: counter(s); font: 760 26px/1.1 var(--display); font-stretch: 80%; color: var(--accent-text); }
.works { margin: 0; border-top: 1px solid var(--line); }
.works div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.works dt { font-weight: 700; }
.works dd { margin: 0; color: var(--muted); }
.get { margin-top: 64px; padding: 30px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 9%, var(--paper)); }
.get h2 { margin-top: 0; }
.get .cta { margin-top: 18px; }
.related, .guide-list { list-style: none; padding: 0 !important; margin: 0; border-top: 1px solid var(--line); }
.related li, .guide-list li { margin: 0; border-bottom: 1px solid var(--line); }
.related a { display: block; padding: 14px 0; font-weight: 650; }
.guide-list a { display: grid; gap: 4px; padding: 22px 0; text-decoration: none; color: inherit; }
.guide-list strong { font: 760 26px/1.1 var(--display); font-stretch: 80%; color: var(--ink); }
.guide-list span { color: var(--muted); font-size: 17px; }
.guide-list a:hover strong { color: var(--accent-text); }
.guide-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 24px; }
.guide-links a { color: var(--ink); text-decoration: none; }
.guide-links a:hover { color: var(--accent-text); }
@media (max-width: 640px) { .works div { grid-template-columns: 1fr; gap: 4px; } .page-head { padding-top: 110px; } }

/* home: problems and questions */
.problems { padding: 0 0 110px; }
.problems h2 { margin-bottom: 30px; }
.faq { padding: 0 0 110px; }
.faq h2 { margin-bottom: 30px; }
.faq details { border-top: 1px solid var(--line); max-width: 80ch; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font: 720 23px/1.2 var(--display); font-stretch: 84%; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-weight: 600; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }
.faq details a { color: var(--accent-text); }
