/* Fonts served from this site (copied from the app, SIL Open Font License, see fonts/OFL-*.txt). No Google Fonts: visitors' IPs stay off third parties. */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* Dark only. Same tokens as the app's dark theme (the app's renderer/style.css), so the site looks like ArcRef. */
:root {
  color-scheme: dark;
  --bg: #15181c; --panel: #1c2026; --line: #2f353e;
  --fg: #e3e6ea; --muted: #8b949f; --accent: #f2b318; --accent-ink: #1b1600;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--font-body); }
a { color: inherit; }
h1, h2, h3, .brand { font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; line-height: 1.1; }
code, .mono { font-family: var(--font-mono); font-size: .9em; }
.muted { color: var(--muted); }

.top, main > section, .foot { max-width: 1160px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { font-size: 1.6rem; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; display: block; }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--fg); }

section { padding-top: 56px; padding-bottom: 56px; }
.hero { text-align: center; padding-top: 72px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 16px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; margin: 0 auto 28px; }
.intro { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: -8px 0 28px; }

.download-body { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.download-version { margin: 20px 0 8px; }
.download-hash { margin: 0 0 16px; font-size: .85em; overflow-wrap: anywhere; }
.download-body .ticks { margin: 0; }
@media (min-width: 800px) { .download-body { padding: 32px; } }
h2 { font-size: 2rem; margin: 0 0 20px; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font: 600 1.1rem var(--font-display);
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding: 12px 24px; border-radius: 6px; }
.btn:hover { filter: brightness(1.08); }
/* Greyed out and inert: an <a> with no href isn't a link (Pro and Studio before they go on sale). */
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover { background: var(--line); color: var(--muted); box-shadow: none;
  filter: none; cursor: not-allowed; }

/* Hero scene (scene.js): wireframe chapel with camera shots. Without JavaScript the still SVG shows instead. */
.scene { position: relative; margin: 48px 0 0; text-align: left; }   /* no box: the scene sits straight on the page */
.scene-stage { position: relative; aspect-ratio: 3 / 2; }
.scene-stage canvas, .scene-still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-still { object-fit: contain; }
.scene-stage canvas { touch-action: pan-y; cursor: grab; user-select: none; -webkit-tap-highlight-color: transparent; }
.scene-stage canvas.on-model { cursor: crosshair; }
.scene-stage canvas.on-cam { cursor: pointer; }
.scene-stage canvas.dragging { cursor: grabbing; }
.scene:not(.live) canvas, .scene:not(.live) .scene-hint, .scene:not(.live) .scene-results, .scene.live .scene-still { display: none; }
.scene-hint { position: absolute; top: 12px; left: 14px; margin: 0; font-size: .85rem; color: var(--muted); pointer-events: none;
  transition: opacity .6s; }
.scene-hint.done { opacity: 0; }
.scene-note { margin: 14px auto 0; max-width: 40em; font-size: .85rem; color: var(--muted); text-wrap: balance; }
.scene-results { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.scene-count { margin: 0 0 10px; font: 600 1.2rem/1.1 var(--font-display); letter-spacing: .01em; }
.scene-photos { list-style: none; margin: -2px; padding: 2px; display: flex; gap: 10px; overflow-x: auto; min-height: 112px; }
.scene-photos:empty { min-height: 0; }
.scene-count:has(+ .scene-photos:empty) { margin: 0; }
.scene-photos li { flex: 0 0 auto; width: 118px; animation: scene-in .35s ease-out both; }
.scene-photos li:nth-child(2) { animation-delay: .07s; }
.scene-photos li:nth-child(3) { animation-delay: .14s; }
.scene-photos li:nth-child(4) { animation-delay: .21s; }
.scene-photos li:nth-child(5) { animation-delay: .28s; }
.scene-photos canvas { display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.scene-photos li:hover canvas { box-shadow: 0 0 0 2px var(--accent); }
.scene-photos span { display: block; margin-top: 4px; font-size: .72rem; color: var(--muted); white-space: nowrap; }
@keyframes scene-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .scene-photos li { animation: none; } }
@media (min-width: 700px) {
  /* The results float over the bottom-left corner like a panel in the app */
  .scene-stage { aspect-ratio: 16 / 10; }
  .scene-results { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 12px 14px;
    background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
  .scene-photos li { width: 132px; }
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.grid article { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; position: relative; }
.grid h3 { font-size: 1.35rem; margin: 0 0 8px; }
.grid p { margin: 0; }
/* Pro badge sits in the card's top-right corner, so it never wraps under the title. */
.grid article .tag { position: absolute; top: 14px; right: 14px; }
.grid article:has(.tag) h3 { padding-right: 44px; }

.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { filter: none; box-shadow: inset 0 0 0 1px var(--muted); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 24px; }
.plan-pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan h3 { font-size: 1.5rem; margin: 0 0 4px; }
.price { font: 600 2.6rem/1 var(--font-display); margin: 0 0 16px; }
.price-note { font: 400 1rem var(--font-body); color: var(--muted); }
.plan-lead { margin: 0 0 8px; font-weight: 500; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
/* Same height under every button (room for 3 lines), so the buttons line up across the cards. */
.plan-small { font-size: .875rem; line-height: 1.5; margin: 12px 0 0; min-height: 4.5em; }
.donate { margin-top: 24px; }

nav a[aria-current="page"] { color: var(--fg); }
.tag { display: inline-block; vertical-align: .15em; font: 600 .75rem/1 var(--font-display); letter-spacing: .06em;
  text-transform: uppercase; color: var(--fg); border: 1px solid var(--accent); border-radius: 4px; padding: 3px 6px; }
.more { margin: 24px 0 0; }
.more a { font-weight: 500; }

/* Features page */
.page-head { padding-top: 64px; padding-bottom: 24px; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 0 12px; }
.page-head .lede { margin: 0; }
.feature { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
  padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.feature h2 { font-size: 1.8rem; margin: 0 0 12px; }
.feature p { margin: 0 0 12px; }
.feature p:last-child { margin-bottom: 0; }
.video-slot, .feature video { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; }
.video-slot { background: var(--panel); border: 1px dashed var(--line); display: grid; place-items: center;
  padding: 16px; text-align: center; color: var(--muted); font-size: .9rem; }
@media (min-width: 800px) {
  /* Text 5 parts, video 7 parts; odd rows put the video first, so their columns swap too and every video is the same size. */
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
  .feature:nth-of-type(odd) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature:nth-of-type(odd) .feature-text { order: 2; }
  .feature:has(> :only-child) { grid-template-columns: minmax(0, 40em); }
  .feature:has(> :only-child) .feature-text { order: 0; }
}
.cta { text-align: center; border-top: 1px solid var(--line); }

.foot { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 40px; text-align: center; }
.foot nav { justify-content: center; margin-bottom: 12px; }
.foot .legal { font-size: .9rem; gap: 16px; }

/* Privacy, terms, refunds and 404 */
.prose { padding-top: 0; }
.prose > * { max-width: 46em; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.not-found { padding-bottom: 96px; }
.not-found .lede { margin-bottom: 28px; }

/* Thank-you page (after Paddle checkout) */
.thanks { text-align: center; padding-top: 48px; padding-bottom: 96px; }
.thanks img { display: block; width: min(240px, 70vw); height: auto; margin: 0 auto 8px; }
.thanks h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 0 12px; }
.thanks .lede { margin-bottom: 12px; }
.thanks .muted { max-width: 34em; margin: 0 auto 28px; }

/* Add Studio seats (extra-seat.html, linked from the Studio key email) */
.extra-seat { padding-top: 48px; padding-bottom: 96px; }
.extra-seat > * { max-width: 46em; }
.extra-seat h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 0 12px; }
.extra-seat .lede { margin: 0 0 28px; }
.extra-seat .ticks { flex: none; }
.extra-seat .small { font-size: .875rem; margin: 12px 0 32px; }
.notice { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px;
  padding: 18px 22px; margin: 0 0 28px; }
.notice h2 { font-size: 1.35rem; margin: 0 0 8px; }
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin-bottom: 0; }

/* FAQ: native <details>, no script */
.faq details { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; font: 600 1.3rem/1.2 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font-body); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 0 16px; color: var(--muted); max-width: 40em; }
.faq details ol { margin: 0 0 16px; padding-left: 1.4em; color: var(--muted); max-width: 40em; }
.faq details li { margin-bottom: 6px; }
.faq details strong { color: var(--fg); font-weight: 500; }

/* What's new page */
.releases { padding-top: 0; }
.release { display: grid; grid-template-columns: 1fr; gap: 8px 40px; padding: 32px 0; border-top: 1px solid var(--line); }
.release-head h2 { font-size: 1.8rem; margin: 0 0 4px; }
.release-head h2 .mono { color: var(--accent); font-size: .8em; margin-right: 8px; }
.release-date { margin: 0; font-size: .9rem; }
.release-body > p { margin: 0 0 16px; }
.release-body h3 { font-size: 1.25rem; margin: 0 0 10px; }
.release-body .ticks { margin-bottom: 16px; }
/* Release notes list changes, not things included, so they get round amber bullets instead of ticks. */
.ticks.dots li::before { left: 7px; top: .6em; width: 6px; height: 6px; border: 0; border-radius: 50%;
  background: var(--accent); transform: none; }
@media (min-width: 800px) { .release { grid-template-columns: 260px 1fr; } }
