/* DramaHaus marketing site — "Cinematic Editorial", the same palette the apps use. */
:root {
  --ink: #0d0f12;
  --surface: #16191f;
  --surface-raised: #1f242c;
  --hairline: #2c333d;
  --text: #f2f0eb;
  --text-muted: #a8b0ba;
  --accent: #d8c08a;
  --accent-strong: #efdcac;
  --on-accent: #0d0f12;
  --danger: #e2857a;
  --max: 1120px;
  --measure: 68ch;
  --radius: 18px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; z-index: 100; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--text-muted); }
.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; font-weight: 600;
}

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 18, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--text-muted); font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav .cta { background: var(--accent); color: var(--on-accent); padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.nav .cta:hover { background: var(--accent-strong); color: var(--on-accent); }
@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav a:not(.cta) { font-size: 0.88rem; }
  .nav .hide-sm { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { position: relative; padding: clamp(64px, 12vw, 140px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(216, 192, 138, 0.16), transparent 60%),
    radial-gradient(40% 40% at 85% 30%, rgba(226, 133, 122, 0.10), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--text-muted); max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .note { font-size: 0.9rem; color: var(--text-muted); margin-top: 14px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Phone mock */
.phone {
  justify-self: center; width: min(300px, 80%); aspect-ratio: 9 / 19; border-radius: 40px;
  background: linear-gradient(160deg, #23292f, #101216); border: 1px solid var(--hairline);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 6px #0a0b0d;
  position: relative; overflow: hidden;
}
.phone .screen {
  position: absolute; inset: 10px; border-radius: 32px; overflow: hidden;
  background:
    linear-gradient(to top, rgba(13, 15, 18, 0.95) 0%, rgba(13, 15, 18, 0.2) 45%, transparent 70%),
    radial-gradient(80% 60% at 60% 30%, #5a4a3a, #1a1c22 70%);
}
.phone .title { position: absolute; left: 18px; right: 18px; bottom: 64px; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.phone .chip { position: absolute; left: 18px; bottom: 30px; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.phone .rail { position: absolute; right: 14px; bottom: 120px; display: grid; gap: 18px; }
.phone .rail span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); }
.phone .bar { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 3px; background: rgba(255, 255, 255, 0.18); border-radius: 2px; }
.phone .bar i { display: block; width: 62%; height: 100%; background: var(--accent); border-radius: 2px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section-head { max-width: 40rem; margin-bottom: 40px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: #3a424d; transform: translateY(-2px); }
.card .icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(216, 192, 138, 0.12); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 26px 26px 26px 26px; background: var(--surface-raised); border-radius: var(--radius); border: 1px solid var(--hairline); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2rem; color: var(--accent); display: block; margin-bottom: 8px;
}

/* Pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(216, 192, 138, 0.08), var(--surface) 60%); }
.plan .price { font-family: var(--font-display); font-size: 1.9rem; margin: 6px 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; color: var(--text-muted); }
.plan li { padding: 7px 0 7px 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 14px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .fine { font-size: 0.85rem; color: var(--text-muted); margin-top: auto; }

/* FAQ */
.faq details { border-top: 1px solid var(--hairline); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-muted); margin: 0 0 16px; max-width: var(--measure); }

/* Download */
.download { text-align: center; }
.download .badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px; border-radius: 14px;
  background: #000; border: 1px solid var(--hairline); color: #fff; text-align: left; line-height: 1.1;
}
.badge:hover { text-decoration: none; border-color: var(--text-muted); color: #fff; }
.badge svg { width: 28px; height: 28px; }
.badge small { display: block; font-size: 0.68rem; opacity: 0.8; margin-bottom: 3px; }
.badge strong { font-size: 1.05rem; font-weight: 600; }

/* Legal / prose pages */
.page-head { padding: clamp(48px, 8vw, 88px) 0 24px; border-bottom: 1px solid var(--hairline); }
.page-head .meta { color: var(--text-muted); font-size: 0.95rem; }
.prose { padding: 40px 0 80px; }
.prose h2 { font-size: 1.55rem; margin-top: 2.2em; scroll-margin-top: 80px; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; font-family: var(--font-body); font-weight: 600; }
.prose p, .prose li { max-width: var(--measure); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0 1.5em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.prose th { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.prose .callout { background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 20px; margin: 1.2em 0; max-width: var(--measure); }
.prose .callout p:last-child { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 8px; }
.toc strong { display: block; margin-bottom: 8px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; margin-bottom: 4px; font-size: 0.95rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0 48px; color: var(--text-muted); font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h4 { color: var(--text); margin: 0 0 10px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--hairline); padding-top: 20px; font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .card:hover, .btn:hover { transition: none; transform: none; }
}
