/* HalalFlix site styles.
   Layout rhythm: dark cinematic hero, alternating split sections, gradient band,
   light "get started" band, FAQ accordion. Brand colours from the go-to-market plan. */

:root {
  /* Brand */
  --teal: #0e6b62;
  --ink-brand: #15242a;
  --brass: #c8963a;
  --seaglass: #f4f6f5;

  /* Light theme tokens */
  --bg: #f4f6f5;
  --bg-hero: radial-gradient(ellipse at 50% 0%, #dcefeb 0%, #f4f6f5 70%);
  --bg-band: linear-gradient(135deg, #e6f1ee 25%, #d8ebe6 55%, #c3e1da);
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --ink: #15242a;
  --muted: #4d5f65;
  --line: #d3dedb;
  --accent: #0e6b62;          /* buttons, links */
  --accent-hover: #0b5850;
  --accent-ink: #ffffff;
  --accent-soft: #e2f0ed;
  --link: #0e6b62;
  --icon: #0e6b62;
  --brass-ink: #8a5f13;       /* brass text that passes contrast on light */
  --focus: #c8963a;
  --nav-bg: rgba(244, 246, 245, 0.92);
  --shadow: 0 10px 30px rgba(21, 36, 42, 0.12);
  color-scheme: light;

  --font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 4px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070d0f;
    --bg-hero: radial-gradient(ellipse at 50% 20%, #0e2a2d 0%, #070d0f 75%);
    --bg-band: linear-gradient(135deg, #061012 25%, #0a1d20 50%, #0e3f3a);
    --bg-alt: #000000;
    --surface: #111d21;
    --surface-2: #17262b;
    --ink: #f4f6f5;
    --muted: #a9bbb7;
    --line: #26383d;
    --accent: #13887c;
    --accent-hover: #17a193;
    --accent-ink: #ffffff;
    --accent-soft: #123630;
    --link: #6fd0c2;
    --icon: #5cc4b5;
    --brass-ink: #e2b867;
    --nav-bg: rgba(7, 13, 15, 0.9);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070d0f;
  --bg-hero: radial-gradient(ellipse at 50% 20%, #0e2a2d 0%, #070d0f 75%);
  --bg-band: linear-gradient(135deg, #061012 25%, #0a1d20 50%, #0e3f3a);
  --bg-alt: #000000;
  --surface: #111d21;
  --surface-2: #17262b;
  --ink: #f4f6f5;
  --muted: #a9bbb7;
  --line: #26383d;
  --accent: #13887c;
  --accent-hover: #17a193;
  --accent-ink: #ffffff;
  --accent-soft: #123630;
  --link: #6fd0c2;
  --icon: #5cc4b5;
  --brass-ink: #e2b867;
  --nav-bg: rgba(7, 13, 15, 0.9);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}
img, svg, video { max-width: 100%; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink) !important; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--ink) !important; text-decoration: none; font-size: 0.92rem; padding: 6px 8px; }
.nav-link:hover { text-decoration: underline; }
.theme-toggle {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  width: 34px; height: 34px; border-radius: var(--radius); cursor: pointer; display: grid; place-items: center;
}
.theme-toggle svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; letter-spacing: 0.05em;
  padding: 10px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
  min-height: 44px;
}
.btn-primary { background: var(--accent); color: var(--accent-ink) !important; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn-outline:hover { background: var(--surface-2); }
.btn-sm { font-size: 0.85rem; padding: 6px 12px; min-height: 36px; }
.btn-lg { font-size: 1.12rem; padding: 12px 34px; min-width: min(320px, 100%); }
.btn svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-hero); text-align: center; padding: 88px 0 72px; }
.hero h1 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 46ch; margin: 0 auto 28px; color: var(--muted); }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.cta-note a { color: inherit; }
.works-with { margin: 30px auto 0; font-size: 0.98rem; color: var(--muted); letter-spacing: 0.04em; }
.works-with strong { color: var(--ink); font-weight: 500; }

.video-frame {
  margin: 48px auto 0; max-width: 880px; aspect-ratio: 16 / 9;
  border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow); position: relative;
  display: grid; place-items: center;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-placeholder { padding: 24px; color: var(--muted); }
.play-badge { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin: 0 auto 14px; }
.play-badge svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }

/* ---------- Split sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
}
.split p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--brass-ink); margin-bottom: 10px; }

/* Filter-panel mock (our own UI) */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 18px; max-width: 420px; margin: 0 auto; width: 100%;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 600; }
.panel-head small { color: var(--muted); font-weight: 400; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line); }
.cat-list li:first-child { border-top: 0; }
.cat-name { font-weight: 500; }
.cat-desc { display: block; font-size: 0.85rem; color: var(--muted); }
.switch { width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.on { background: var(--accent); }
.switch.on::after { left: 21px; }
.toast {
  margin-top: 14px; display: flex; align-items: center; gap: 10px;
  background: var(--accent-soft); border-left: 3px solid var(--brass); border-radius: 6px; padding: 10px 12px; font-size: 0.92rem;
}

.service-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.service-list li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 500; background: var(--surface); }
.fine { font-size: 0.86rem; color: var(--muted); }

/* ---------- Gradient band: how it works ---------- */
.band { background: var(--bg-band); padding: 96px 0; text-align: center; }
.band h2 { margin-bottom: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 36px; } .band { padding: 64px 0; } }
.steps li { counter-increment: s; }
.steps svg { width: 64px; height: 64px; stroke: var(--icon); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.steps h3::before { content: counter(s) ". "; color: var(--brass-ink); }
.steps p { color: var(--muted); max-width: 30ch; margin: 0 auto; }

/* ---------- Covered titles ---------- */
.titles-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0; }
.titles-tools input {
  font: inherit; padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; flex: 1 1 260px; min-height: 44px;
}
.title-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.title-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.title-card strong { display: block; }
.title-card .meta { font-size: 0.85rem; color: var(--muted); }
.badge { display: inline-block; margin-top: 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: .04em; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }
.badge.partial { background: transparent; border: 1px solid var(--brass); }
.title-grid .empty-state { grid-column: 1 / -1; }
.empty-state { background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; padding: 22px; color: var(--muted); }

/* ---------- Get started band ---------- */
.start { background: var(--surface-2); padding: 80px 0; text-align: center; }
.start .btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0 8px; }
.waitlist { max-width: 520px; margin: 44px auto 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.waitlist h3 { margin-bottom: 4px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.field-row input[type=email] {
  flex: 1 1 220px; font: inherit; padding: 10px 14px; min-height: 44px;
  border-radius: var(--radius); border: 1px solid var(--muted); background: var(--bg); color: var(--ink);
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin-top: 12px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.form-status { margin: 12px 0 0; font-size: 0.92rem; min-height: 1.2em; }

/* ---------- FAQ ---------- */
.faq h2 { text-align: center; margin-bottom: 36px; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 4px; font-weight: 600; font-size: 1.08rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 4px 20px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 0.9rem; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--muted) !important; }
.disclaimer { flex-basis: 100%; font-size: 0.82rem; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal h3 { margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink); }
.legal li { margin: 6px 0; }
.legal a { color: var(--link); text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 12px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 8px; }
.legal th { background: var(--surface-2); }
.table-scroll { overflow-x: auto; }
.todo { background: rgba(200, 150, 58, 0.18); border-left: 3px solid var(--brass); padding: 2px 6px; border-radius: 3px; font-size: 0.92em; }
.updated { color: var(--muted); }
