/* Cine website. No web fonts, no scripts, no third-party requests. */

:root {
  --bg: #0b0b0d;
  --bg-raised: #151518;
  --bg-card: #1b1b1f;
  --line: #2a2a30;
  --text: #f4f4f5;
  --text-muted: #a8a8b0;
  --accent: #ff8a1f;      /* AccentPrimary in CineDesignSystem */
  --accent-strong: #ffa94b;
  --accent-ink: #1a0d00;   /* text on accent fills */
  --radius: 22px;
  --max: 1120px;
  --gutter: 16px;
  color-scheme: dark;
}

@media (prefers-contrast: more) {
  :root { --text-muted: #d4d4d8; --line: #55555e; }
}

* { 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: 400 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(11,11,13,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 600; text-decoration: none; font-size: 1rem; line-height: 1.2; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { color: var(--accent-strong); background: rgba(255,138,31,.12); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: rgba(255,138,31,.22); color: #ffc58a; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 24px; }
.hero::before { content: ""; position: absolute; inset: -200px 0 auto; height: 760px; background: radial-gradient(60% 55% at 70% 40%, rgba(255,138,31,.22), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 96px 0 40px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 800; }
h1 .accent { color: var(--accent); }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--text-muted); max-width: 34em; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.platforms { margin-top: 22px; color: var(--text-muted); font-size: .9rem; }

/* ---------- phone frame ---------- */
.phone { position: relative; width: min(300px, 78vw); margin: 0 auto; border-radius: 46px; padding: 10px; background: linear-gradient(160deg, #3a3a40, #121214); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px #2c2c31 inset; }
.phone img { border-radius: 37px; width: 100%; }
.hero-phones { position: relative; display: flex; justify-content: center; }
.hero-phones .phone.back { position: absolute; transform: translate(42%, 6%) rotate(6deg) scale(.86); opacity: .9; display: none; }
@media (min-width: 900px) { .hero-phones .phone.back { display: block; } .hero-phones .phone.front { transform: translateX(-18%); } }

/* ---------- sections ---------- */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.section-head { max-width: 680px; margin-bottom: 44px; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 800; }
h3 { font-size: 1.2rem; margin: 0 0 8px; letter-spacing: -.01em; }
.muted { color: var(--text-muted); }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { margin: 0; color: var(--text-muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,138,31,.14); color: var(--accent); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }

/* split feature rows */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.flip > :first-child { order: 2; } }
.split ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.split li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-muted); }
.split li strong { color: var(--text); font-weight: 600; }
.split li svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

.band { background: var(--bg-raised); border-block: 1px solid var(--line); }

/* screenshot gallery: scrolls sideways inside itself, never the page */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 66vw); gap: 20px; overflow-x: auto; padding: 8px var(--gutter) 24px; scroll-snap-type: x mandatory; max-width: var(--max); margin: 0 auto; }
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery .phone { width: 100%; border-radius: 38px; padding: 8px; }
.gallery .phone img { border-radius: 31px; }
.gallery figcaption { text-align: center; color: var(--text-muted); font-size: .9rem; margin-top: 14px; }

/* premium */
.plans { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--bg-card); }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan .price { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.plan .per { color: var(--text-muted); font-size: .95rem; }
.badge { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .75rem; padding: 3px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.fine { font-size: .875rem; color: var(--text-muted); margin-top: 18px; }

/* privacy promise */
.promise { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .promise { grid-template-columns: repeat(2, 1fr); } }
.promise li { padding: 18px 20px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--line); }
.promise strong { display: block; margin-bottom: 4px; }
.promise span { color: var(--text-muted); font-size: .95rem; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--text-muted); margin: 12px 0 0; }

/* final cta */
.final { text-align: center; }
.final img { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 22px; }
.final .cta-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--text-muted); font-size: .9rem; }
.site-footer .wrap { display: grid; gap: 22px; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer p { margin: 0 0 6px; }

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.legal h2 { font-size: 1.5rem; margin: 48px 0 12px; letter-spacing: -.015em; }
.legal h3 { margin-top: 28px; }
.legal p, .legal li { color: #d6d6db; }
.legal ul { padding-left: 1.3em; }
.legal li { margin: 6px 0; }
.legal .meta { color: var(--text-muted); margin-bottom: 32px; }
.summary-box { background: var(--bg-card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 20px 24px; margin: 28px 0; }
.summary-box p:last-child, .summary-box ul:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--text); font-weight: 600; background: var(--bg-raised); }
td { color: #d6d6db; }
.toc { columns: 1; padding-left: 1.2em; }
@media (min-width: 640px) { .toc { columns: 2; } }
.caps { text-transform: none; font-weight: 600; }

/* utilities (the CSP forbids inline style attributes) */
.fg { color: var(--text); }
.narrow { max-width: 820px; }
.gap-below { margin-bottom: 28px; }

/* offline section: Send to iPad */
.callout { display: grid; grid-template-columns: 44px 1fr; gap: 16px; margin-top: 28px; padding: 22px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.callout .icon { margin: 0; }
.callout h3 { margin-top: 2px; }
.callout p { margin: 0; color: var(--text-muted); }
.callout p strong { color: var(--text); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 1px; }

/* hero with a single phone: no offset for the (absent) back phone */
.hero-phones .phone.front:only-child { transform: none; }
