/* Filmcase website. One dark, cosy look: the app's midnight ground, cream type, amber lamplight and the four logo stripes.
   Poppins (the logo's font) for headings, Inter for reading, Silkscreen (a pixel face) only for small labels. */
:root {
  color-scheme: dark;
  --ground: #110C1A; --surface: #1C1529; --raised: #271F37; --line: #352B48;
  --text: #FEF6DF; --muted: #B9B1C7; --faint: #8F889C;
  --amber: #F8931F; --teal: #29AAE1; --green: #8CC63E; --pink: #D3145A;
  --stripes: linear-gradient(90deg, #29AAE1 0 25%, #8CC63E 25% 50%, #F8931F 50% 75%, #D3145A 75% 100%);
  --f-serif: "Poppins", "Inter", system-ui, sans-serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-pixel: "Silkscreen", "Courier New", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 16px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(90% 50% at 50% -10%, rgba(248,147,31,.16), rgba(17,12,26,0) 70%), radial-gradient(70% 40% at 100% 105%, rgba(211,20,90,.08), rgba(17,12,26,0) 70%); }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #FFB25A; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ground); padding: 8px 12px; border-radius: 8px; font-weight: 700; z-index: 10; }
.skip:focus { left: 12px; }

/* header */
.top { padding-block: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 26px; width: auto; display: block; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.05); }

/* small pixel labels */
.eyebrow { font-family: var(--f-pixel); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--amber); margin: 0; }
h1, h2, h3 { font-family: var(--f-serif); font-weight: 600; line-height: 1.12; letter-spacing: -.6px; text-wrap: balance; margin: 0; }
.stripe { height: 6px; background: var(--stripes); border-radius: 3px; }

/* home: the banner */
.banner { position: relative; margin: 8px 0 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), 0 0 0 6px rgba(248,147,31,.04); background: #000; }
.banner { --bp: 50% 60%; }
.banner img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; object-position: var(--bp); }
.banner-fx { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--bp); pointer-events: none; }
.banner-fx.px { image-rendering: pixelated; }
.banner-fx.glow { mix-blend-mode: screen; }
@media (max-width: 640px) { .banner { --bp: 52% 60%; } .banner img { aspect-ratio: 4 / 3; } }
.banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 1px, rgba(0,0,0,0) 1px 3px); mix-blend-mode: multiply; }
.banner + .stripe { margin: 14px 18px 0; }
.hero { padding-block: 36px 24px; display: grid; gap: 18px; max-width: 720px; }
.hero h1 { font-size: clamp(40px, 7vw, 64px); }
.lead { font-size: clamp(17px, 2.2vw, 19px); color: var(--muted); margin: 0; max-width: 62ch; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: transparent; }
.btn.primary { background: var(--amber); color: #110C1A; border-color: var(--amber); }
.btn:hover { border-color: var(--muted); color: var(--text); }
.btn.primary:hover { background: #FFA43A; color: #110C1A; }
.soon { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.soon i { width: 8px; height: 8px; border-radius: 2px; background: var(--green); box-shadow: 0 0 10px rgba(140,198,62,.7); }

/* home: features */
section.block { padding-block: 44px; }
.block > h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.block > .sub { color: var(--muted); margin: 0 0 26px; max-width: 60ch; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { border-radius: 18px; padding: 20px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012) 60%), var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feature svg { width: 48px; height: 48px; image-rendering: pixelated; shape-rendering: crispEdges; margin-bottom: 4px; }
.feature h3 { font-size: 21px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.den { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center; }
@media (max-width: 760px) { .den { grid-template-columns: minmax(0, 1fr); } }
.den figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.den figure img { width: 100%; height: auto; image-rendering: pixelated; }
.den h2 { font-size: clamp(26px, 3.6vw, 34px); margin-bottom: 10px; }
.den p { color: var(--muted); margin: 0 0 12px; }
.note { font-size: 13px; color: var(--faint); }

/* documents: support, privacy, terms, deletion */
.doc { max-width: 760px; padding-block: 28px 40px; }
.doc h1 { font-size: clamp(34px, 6vw, 48px); margin: 8px 0 6px; }
.doc .updated { color: var(--faint); font-size: 14px; margin: 0 0 22px; }
.doc h2 { font-size: 25px; margin: 38px 0 10px; scroll-margin-top: 16px; }
.doc h3 { font-size: 19px; margin: 24px 0 6px; }
.doc p, .doc li { color: #E9E2D2; max-width: 68ch; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--text); }
.toc { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 16px 20px; }
.toc ol { margin: 6px 0 0; columns: 2; column-gap: 28px; font-size: 15px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.tablewrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--raised); font-weight: 600; color: var(--text); }
tr:last-child td { border-bottom: 0; }
td { color: #E9E2D2; }
.card { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; margin: 16px 0; }
.card h2, .card h3 { margin-top: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 52px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; border-radius: 7px; background: var(--amber); color: #110C1A; font: 700 14px/26px var(--f-sans); text-align: center; }
details.faq { border-top: 1px solid var(--line); padding: 4px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 600; padding: 12px 28px 12px 0; position: relative; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 9px; font: 600 20px var(--f-sans); color: var(--amber); }
details.faq[open] summary::after { content: "\2212"; }
details.faq p, details.faq ul { margin-top: 0; }
.mail { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 15px; background: var(--raised); border: 1px solid var(--line); padding: 2px 8px; border-radius: 8px; user-select: all; }

/* placeholders to fill in before launch, and the draft notice */
.todo { background: rgba(248,147,31,.14); border-bottom: 2px dashed var(--amber); border-radius: 4px; padding: 0 4px; color: var(--text); }
.draftnote { display: none; }
html.draft .draftnote { display: block; border-radius: 14px; border: 1px dashed var(--amber); background: rgba(248,147,31,.08); padding: 12px 16px; font-size: 14px; color: var(--text); margin: 0 0 18px; }

/* footer */
footer { margin-top: 30px; border-top: 1px solid var(--line); }
footer .stripe { border-radius: 0; height: 4px; }
.foot { padding-block: 26px 40px; display: grid; gap: 14px; }
.foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.foot nav a:hover { color: var(--text); }
.foot p { margin: 0; color: var(--faint); font-size: 13px; max-width: 80ch; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
