/* Luminous by Needful — "Darkroom" theme */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); 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: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); 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: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); 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: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0E0F10;
  --surface: #16181A;
  --surface-2: #1D2023;
  --line: #2A2D30;
  --line-strong: #44494E;
  --text: #EDE9E3;
  --muted: #A39E96;
  --gold: #C9A55A;
  --focus: #6CB8BE;
  --danger: #E8836B;
  --ok: #9CCB8E;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 64px);
  --section: clamp(72px, 9vw, 120px);
  --radius: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; }
.icon { flex: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.mono { font-family: var(--mono); }
.mono-caps { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.display { font-size: clamp(44px, 6.4vw, 96px); line-height: .98; font-weight: 600; letter-spacing: -.035em; }
.display--sm { font-size: clamp(40px, 5vw, 72px); }
.h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
.h2--spaced { margin-bottom: clamp(40px, 5vw, 64px); max-width: 720px; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
.lead a { color: var(--text); }

/* ---------- Badges & buttons ---------- */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; background: var(--gold); color: #1A1508; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.badge--outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); height: 20px; padding: 0 6px; font-size: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #FFFFFF; color: var(--bg); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--bg); }
.btn--sm { min-height: 44px; padding: 0 18px; }
.btn--block { display: flex; width: 100%; min-height: 52px; }
.btn.is-disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); cursor: not-allowed; }

/* ---------- Beta bar ---------- */

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__home { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand__home:hover { color: var(--text); }
.brand__icon { width: 36px; height: 36px; border-radius: 9px; }
.brand__name { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.brand__by { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.brand__by:hover { color: var(--text); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 15px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { color: var(--text); }
.nav a:not(.btn)[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }

/* ---------- Home: hero + feature ---------- */
.hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: 56px; }
.hero__text { max-width: 620px; margin-top: 28px; }
.hero__text .lead { margin: 0; }

.feature { max-width: 1440px; margin: 0 auto; }
.feature__figure { position: relative; margin: 0; }
.feature__figure img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 40%; background: var(--surface); }
.tag { position: absolute; left: var(--gutter); bottom: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; background: rgba(14, 15, 16, .8); color: var(--text); padding: 6px 10px; border-radius: 4px; }
.feature__strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.feature__fx { display: inline-flex; align-items: center; gap: 14px; }
@media (max-width: 640px) { .feature__figure img { aspect-ratio: 4 / 3; } }

/* The page shows the picture cropped; a click shows all of it, full screen. */
.feature__open { display: block; position: relative; color: inherit; cursor: zoom-in; }
.feature__open:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
.feature__figure .tag { pointer-events: none; }
.feature__zoom { position: absolute; right: var(--gutter); bottom: 20px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; background: rgba(14, 15, 16, .8); color: var(--text); padding: 6px 10px; border-radius: 4px; opacity: .8; transition: opacity .15s linear; }
.feature__open:hover .feature__zoom, .feature__open:focus-visible .feature__zoom { opacity: 1; }
@media (max-width: 640px) { .feature__zoom { padding: 7px; } .feature__zoom span { display: none; } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: #000 no-repeat center / contain; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox__img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lightbox__caption { margin: 0; left: max(20px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom)); }
.lightbox__close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(14, 15, 16, .7); color: var(--text); cursor: pointer; }
.lightbox__close:hover { background: rgba(14, 15, 16, .95); }
.lightbox__close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
html.is-locked { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--line { border-top: 1px solid var(--line); }
.section--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 48px; }
.section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 64px; }
.section-head--split > div { flex: 1 1 520px; min-width: 0; }
.section-head--split > .lead { flex: 1 1 320px; max-width: 440px; }

/* ---------- Before / after ---------- */
/* The numbered list beside the image (effects) and beside the panel tour (tabs).
   Set tight, so the 19 effects are about as tall as the image and its text. */
.compare { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 48px; }
.fx-list { flex: 1 1 236px; max-width: 264px; min-width: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.fx { position: relative; display: flex; align-items: baseline; gap: 14px; width: 100%; min-height: 0; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 7px 0; font: inherit; line-height: 1.25; color: var(--muted); cursor: pointer; }
.fx:hover { color: var(--text); }
.fx[aria-pressed="true"], .fx[aria-selected="true"] { color: var(--text); }
.fx[aria-pressed="true"]::before, .fx[aria-selected="true"]::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--gold); }
.fx__no { font-family: var(--mono); font-size: 12px; color: var(--gold); flex: none; }
.fx__name { font-size: 16.5px; font-weight: 500; letter-spacing: -.005em; }
.fx__short { display: none; }

.compare__stage { flex: 999 1 560px; min-width: 0; }
.compare__info { margin-top: 20px; max-width: 640px; }
.compare__name { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.compare__desc { color: var(--muted); font-size: 16px; line-height: 1.55; }
.ba { --pos: 50%; position: relative; aspect-ratio: 1.86 / 1; overflow: hidden; border-radius: 4px; background: var(--surface); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__tag { position: absolute; top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; border-radius: 3px; pointer-events: none; }
/* Each label fades out as its side of the image gets small (--p = slider position 0–100). */
.ba__tag { transition: opacity .12s linear; }
.ba__tag--before { left: 16px; background: rgba(14, 15, 16, .8); color: var(--text); opacity: clamp(0, calc((var(--p, 50) - 10) / 18), 1); }
.ba__tag--after { right: 16px; background: var(--text); color: var(--bg); opacity: clamp(0, calc((90 - var(--p, 50)) / 18), 1); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--text); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text); display: flex; align-items: center; justify-content: center; color: var(--text); pointer-events: none; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.ba:focus-within .ba__knob { outline: 2px solid var(--focus); outline-offset: 3px; }
.compare__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 16px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.compare__current { color: var(--text); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 48px; }
.step { border-top: 1px solid var(--line); padding-top: 28px; }
.step .aperture { margin-bottom: 28px; }
.step__no { display: block; font-size: 12px; color: var(--gold); margin-bottom: 8px; }
.step h3 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- Download band ---------- */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__in { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; padding-block: 64px; }
.band__icon { width: 112px; height: 112px; border-radius: 26px; }
.band__text { flex: 1 1 360px; min-width: 0; }
.band__text .eyebrow { margin-bottom: 10px; }
.band__text .h3 { margin-bottom: 8px; }

/* ---------- Cards, notes, messages ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.note { display: flex; gap: 14px; align-items: flex-start; margin: 24px 0; padding: 16px 18px; border: 1px solid #5A4A26; background: #1C1A14; border-radius: var(--radius); color: var(--text); max-width: 560px; }
.note .icon { color: var(--gold); margin-top: 2px; }
.note p { color: var(--muted); }
.note strong { color: var(--text); font-weight: 600; }
.form-msg { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; }
.form-msg .icon { margin-top: 2px; }
.form-msg--error { background: #24140F; border: 1px solid #6B3426; color: #F2C4B7; }
.done { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; color: var(--text); }
.done .icon { color: var(--gold); }

/* ---------- Home: photo panel tour ---------- */
.tour__body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 48px; }
.tour__stage { flex: 999 1 560px; min-width: 0; }
.tour__panel { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 44px; }
.tour__panel[hidden] { display: none; }
.tour__shot { flex: 0 1 365px; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #040405; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.tour__shot img { display: block; width: 100%; height: auto; }
.tour__text { flex: 1 1 240px; min-width: 0; max-width: 420px; }
@media (min-width: 961px) { .tour__stage { min-height: 624px; } }
@media (max-width: 960px) { .tour__text { order: -1; } }
.modes { margin-top: clamp(64px, 8vw, 112px); }
.modes__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 64px; margin-bottom: 36px; }
.modes__head .lead { max-width: 520px; }
.modes__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 48px; }
.mode { border-top: 1px solid var(--line); padding-top: 28px; }
.mode img { display: block; width: 60px; height: auto; margin-bottom: 20px; }
.mode h4 { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.mode p { color: var(--muted); }
.modes__note { max-width: 720px; margin-top: 40px; padding-left: 18px; border-left: 2px solid var(--gold); color: var(--muted); font-size: 17px; line-height: 1.6; }
.modes__note strong { color: var(--text); font-weight: 600; }

/* ---------- Visitors (admin) ---------- */
.visits__range { margin-top: 28px; }
.visits { padding-bottom: var(--section); }
.visits__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 48px; }
.visits__h { margin: 40px 0 14px; }
.vt { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.vt th, .vt td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.vt th { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vt .n { text-align: right; width: 6rem; }
.vt__bar { width: 40%; padding-left: 28px; }
.vt__day { white-space: nowrap; }
.vt__bar span { display: block; height: 8px; min-width: 2px; border-radius: 2px; background: var(--gold); opacity: .75; }
.visits__foot { margin-top: 40px; display: grid; gap: 6px; }
.stat__label--dl { color: var(--gold); }
.stats + .form-msg { margin-top: 28px; }
/* Phones: the numbers keep their room, the day chart goes */
@media (max-width: 600px) {
  .vt .n { width: auto; padding-left: 10px; }
  .vt__bar { display: none; }
}

/* ---------- Download page ---------- */
.dl-hero { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; padding-top: clamp(56px, 8vw, 96px); padding-bottom: var(--section); }
.dl-hero__text { flex: 1 1 520px; min-width: 0; }
.dl-hero__text .display { margin-bottom: 28px; }
.dl-hero__text > .lead { max-width: 520px; margin-bottom: 18px; }
.dl-card { flex: 1 1 380px; max-width: 480px; min-width: 0; }
.dl-card__head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.dl-card__head img { width: 72px; height: 72px; border-radius: 17px; }
.dl-card__name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.spec { margin: 0 0 26px; display: grid; grid-template-columns: auto minmax(0, 1fr); font-size: 15px; border-bottom: 1px solid var(--line); }
.spec dt { padding: 12px 24px 12px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.dl-card__legal { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.dl-card__legal a { color: var(--text); }
.dl-card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 18px; font-size: 14px; }
.hash { flex-basis: 100%; overflow-wrap: anywhere; }

.split { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.split > div:first-child { flex: 1 1 420px; min-width: 0; }
.prose { flex: 1 1 420px; min-width: 0; max-width: 560px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.prose > * + * { margin-top: 20px; }
.prose a { color: var(--text); font-weight: 500; }
.prose .small { font-size: 14px; }
.prose ul { margin: 0; padding-left: 1.15em; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--text); font-weight: 600; }
.privacy-intro { max-width: 680px; }

/* ---------- Report form ---------- */
.page-head { padding-top: clamp(56px, 8vw, 96px); padding-bottom: 48px; }
.page-head .display { margin-bottom: 20px; }
.page-head .lead { max-width: 640px; }
.report { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 48px; padding-bottom: var(--section); }
.report__main { flex: 999 1 560px; min-width: 0; }
.report__aside { flex: 1 1 280px; min-width: 0; display: grid; gap: 20px; }
.aside-title { margin-bottom: 14px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--gold); margin-top: 4px; }
.report__aside .muted + .muted { margin-top: 10px; }

.form { display: grid; gap: 28px; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; }
.fieldset legend { padding: 0; margin-bottom: 18px; }
.field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.field label { font-weight: 500; }
.req, .opt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: 6px; font-weight: 400; }
.req { color: var(--gold); font-family: inherit; font-size: 15px; letter-spacing: 0; margin-left: 2px; }
.form__note { margin-bottom: 18px; }
.field input, .field select, .field textarea, .ticket__status select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #7D7871; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 14px; }
.field__hint { color: var(--muted); font-size: 14px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.field-row--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done-card { display: flex; gap: 18px; align-items: flex-start; }
.done-card > .icon { color: var(--gold); }
.done-card .h3 { margin-bottom: 10px; }
.done-card p + p { margin-top: 14px; }

/* ---------- Support (FAQ) ---------- */
/* Every question is listed; a click opens its answer (<details>). */
.faq-topics { margin-top: 28px; }
.faq { max-width: 880px; padding-bottom: var(--section); }
.faq__topic { scroll-margin-top: 24px; }
.faq__topic + .faq__topic { margin-top: 52px; }
.faq__title { color: var(--gold); margin-bottom: 14px; }
.faq__item { border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.faq__item:last-of-type { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; cursor: pointer; font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--text); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover .faq__mark { color: var(--text); }
.faq__item summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.faq__item summary strong { font-weight: inherit; }
.faq__mark { position: relative; flex: none; width: 14px; height: 14px; color: var(--muted); }
.faq__mark::before, .faq__mark::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .15s ease; }
.faq__mark::after { transform: rotate(90deg); }
.faq__item[open] .faq__mark { color: var(--gold); }
.faq__item[open] .faq__mark::after { transform: rotate(0deg); }
.faq__answer { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px 20px; margin: 0; padding: 2px 0 22px; }
.faq__answer dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.faq__answer dd { margin: 0; max-width: 620px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.faq__answer dd ul { margin: 8px 0 0; padding-left: 1.15em; }
.faq__answer dd li + li { margin-top: 6px; }
.faq__answer dd li::marker { color: var(--gold); }
.faq__answer strong { color: var(--text); font-weight: 600; }
.faq__answer a, .faq__more a { color: var(--text); font-weight: 500; }
.faq__more { margin-top: 64px; }
.faq__more .h3 { margin-bottom: 10px; }
.faq__more p { max-width: 560px; font-size: 17px; line-height: 1.6; }
@media (max-width: 640px) {
  .faq__answer { grid-template-columns: 1fr; gap: 4px; }
  .faq__answer dd + dt { margin-top: 10px; }
  .faq__item summary { font-size: 17px; }
}

/* ---------- Release notes ---------- */
.release { scroll-margin-top: 24px; }
.release__head .h3 { margin-bottom: 8px; }
.release__head p + p { margin-top: 12px; }
.prose .release__title { color: var(--gold); margin-top: 44px; }
.prose .release__title:first-child { margin-top: 0; }
.prose .release__title + ul { margin-top: 14px; }
/* Side by side, the version stays in view while its notes scroll past */
@media (min-width: 1040px) {
  .split > .release__head { position: sticky; top: 32px; align-self: flex-start; }
}
.release__body .btn { margin-top: 12px; }
.release__body .btn, .release__body .btn:hover { color: var(--bg); font-weight: 600; }

/* ---------- Inbox ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 32px; }
.stat { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 6px; }
.stat__num { font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.stat__num--sm { font-size: 24px; line-height: 40px; }
.inbox { padding-bottom: var(--section); display: grid; gap: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; }
.filters a[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.empty { padding: 32px 0; }
.ticket { display: grid; gap: 18px; }
.ticket--new { border-left: 3px solid var(--gold); }
.ticket--fixed, .ticket--closed { opacity: .75; }
.ticket__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.ticket__head .h3 { margin-top: 6px; font-size: 22px; }
.ticket__status { display: flex; gap: 8px; align-items: center; }
.ticket__status select { width: auto; min-height: 44px; padding: 8px 12px; }
.ticket__body h3 { margin: 4px 0 6px; }
.ticket__body .pre { white-space: pre-wrap; color: var(--text); margin-bottom: 14px; }
.ticket__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.ticket__meta div { display: flex; gap: 8px; }
.ticket__meta dt { text-transform: uppercase; letter-spacing: .08em; }
.ticket__meta dd { margin: 0; color: var(--text); }

.src { display: inline-flex; margin-left: 8px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.src--viewer { border-color: var(--gold); color: var(--gold); }
.ticket__files { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.file-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); }
.file-chip > span { display: grid; gap: 2px; }
.file-chip a { font-size: 14px; font-weight: 600; }
.file-chip--gone { color: var(--muted); border-style: dashed; background: none; }
.shot-thumb { display: block; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.shot-thumb img { width: 240px; height: 135px; object-fit: cover; }
.ticket__system summary, .keys summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.ticket__system .pre { white-space: pre-wrap; margin-top: 10px; color: var(--muted); max-height: 320px; overflow: auto; }

.ticket__resend { margin-top: -6px; }
.link-button { background: none; border: 0; padding: 0; min-height: 32px; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--gold); }
.form-msg a { color: inherit; font-weight: 600; }

.admin-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; padding-bottom: var(--section); align-items: start; }
.admin-panels .h3 { margin-bottom: 16px; }
.admin-panels form { margin-top: 16px; }
.kv { margin: 0; display: grid; gap: 6px; }
.kv div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv .key { user-select: all; }
.keys { margin-top: 16px; }
.keys .kv { margin-top: 10px; }
.log-title { margin: 22px 0 10px; }
.mail-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mail-log li { display: grid; grid-template-columns: 90px 110px minmax(0, 1fr); gap: 10px; color: var(--muted); }
.mail-log li.bad span:last-child { color: var(--danger); }
.mail-log li.ok span:last-child { color: var(--ok); }
@media (max-width: 520px) { .mail-log li { grid-template-columns: 1fr; gap: 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); } }

.field input[type="file"] { padding: 10px; min-height: 48px; color: var(--muted); }
.field input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 12px; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.field__hint code { color: var(--text); overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-top: 40px; padding-bottom: 20px; font-size: 14px; color: var(--muted); }
.site-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; flex: 1 1 420px; min-width: 0; }
.site-footer__logo img { width: 74px; height: 44px; }
.site-footer__legal { padding-bottom: 56px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.site-footer__legal p { max-width: 780px; }
.site-footer__legal p + p { margin-top: 6px; }
.site-footer__legal a { color: var(--muted); }
.site-footer__legal a:hover, .site-footer__legal a[aria-current] { color: var(--text); }

/* ---------- Small screens ---------- */
/* Effect picker becomes a row of chips when the list no longer sits beside the image */
@media (max-width: 960px) {
  .fx-list { flex: 1 1 100%; max-width: none; flex-direction: row; flex-wrap: wrap; gap: 8px; border: 0; }
  .fx { width: auto; min-height: 40px; padding: 0 14px; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
  .fx[aria-pressed="true"], .fx[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
  .fx[aria-pressed="true"]::before, .fx[aria-selected="true"]::before, .fx__no, .fx__name { display: none; }
  .fx__short { display: inline; font-size: 14px; font-weight: 500; }
  .compare { gap: 24px; }
}

@media (max-width: 640px) {
  .brand__by { display: none; }
  .nav { gap: 0 18px; }
  .ba__knob { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .ba__tag { top: 10px; font-size: 10px; }
  .ba__tag--before { left: 10px; }
  .ba__tag--after { right: 10px; }
}
