/* Prinx & Chill website — Midnight Cinema (same palette as the app: app/src/theme/tokens.ts). */
:root {
  color-scheme: dark;
  --bg: #0e080b;
  --bg2: #140b0f;
  --glass: rgba(255, 228, 236, 0.05);
  --glass2: rgba(255, 228, 236, 0.09);
  --border: rgba(255, 205, 215, 0.12);
  --accent: #b43a4c;
  --accent2: #e0465a;
  --gold: #e3c48f;
  --text: #f3e9ec;
  --muted: #a8959b;
  --online: #5dba7d;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: Inter, 'Segoe UI', Roboto, system-ui, sans-serif;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 21px; }
p { margin: 0; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.eyebrow { color: var(--gold); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform 0.15s, filter 0.15s, background 0.15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(180, 58, 76, 0.35); }
.btn.ghost { background: var(--glass); border-color: var(--border); }
.btn.ghost:hover { background: var(--glass2); }
.btn small { display: block; font-weight: 500; font-size: 11px; opacity: 0.75; line-height: 1.1; }
.btn .two { line-height: 1.15; text-align: left; }
.btn svg { width: 20px; height: 20px; flex: none; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--glass2); color: var(--gold); vertical-align: middle; margin-left: 6px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(14, 8, 11, 0.72); border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 21px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
nav.links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
nav.links a { text-decoration: none; color: var(--muted); }
nav.links a:hover { color: var(--text); }
header.top .btn { padding: 10px 18px; font-size: 14px; }
.lang-pick { background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 8px 10px; font: inherit; font-size: 13px; cursor: pointer; max-width: 140px; }
.lang-pick option { background: #1a1014; color: #f4ece6; }
@media (max-width: 820px) { nav.links { display: none; } .lang-pick { margin-left: auto; } }
@media (max-width: 420px) { header.top .brand { font-size: 0; gap: 0; } .lang-pick { max-width: 96px; } }
[dir="rtl"] nav.links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .checks li, [dir="rtl"] .faq { text-align: right; }

/* Hero */
.hero { position: relative; padding: 72px 0 90px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; background: radial-gradient(circle, rgba(122, 22, 40, 0.55), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 20px 0 30px; max-width: 520px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 44px; } }

/* The screen mock in the hero: a movie with the Prinx bubble and chat rising from it. */
.screen { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background: radial-gradient(ellipse at 30% 30%, #6b2a3a, transparent 60%), radial-gradient(ellipse at 80% 80%, #1f3a5a, transparent 55%), linear-gradient(160deg, #2a1420, #0b0a14); }
.screen .scene { position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.55)); }
.screen .bar { position: absolute; left: 4%; right: 4%; bottom: 6%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.screen .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 42%; background: var(--accent2); border-radius: 2px; }
.screen .bubble { position: absolute; right: 5%; top: 52%; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #d4566a, #8e1f33 70%); box-shadow: 0 0 0 3px var(--online), 0 0 18px rgba(93, 186, 125, 0.55); display: flex; align-items: center; justify-content: center; }
.screen .bubble img { width: 32px; height: 32px; border-radius: 9px; }
.screen .chip { position: absolute; right: 13%; max-width: 62%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: rgba(20, 11, 15, 0.9); border: 1px solid var(--border); font-size: 13px; line-height: 1.3; top: 52%; animation: rise 7.5s linear infinite both; opacity: 0; }
.screen .chip b { display: block; color: var(--gold); font-size: 11px; }
.screen .chip:nth-of-type(2) { animation-delay: 2.5s; }
.screen .chip:nth-of-type(3) { animation-delay: 5s; }
.screen .heart { position: absolute; right: 7%; top: 50%; font-size: 26px; animation: heart 3.5s ease-out infinite; opacity: 0; }
.screen .pill { position: absolute; left: 4%; top: 6%; display: flex; gap: 8px; }
.screen .pill span { background: rgba(20, 11, 15, 0.85); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.screen .pill i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--online); margin-right: 6px; }
@keyframes rise { 0% { transform: translateY(60%) scale(0.6); opacity: 0; top: 52%; } 8% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { top: 6%; opacity: 0; } }
@keyframes heart { 0% { transform: translateY(0) scale(0.4); opacity: 0; } 15% { opacity: 1; transform: translateY(-10px) scale(1.2); } 100% { transform: translateY(-180px) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .screen .chip, .screen .heart { animation: none; opacity: 1; } .screen .chip:nth-of-type(2), .screen .chip:nth-of-type(3), .screen .heart { display: none; } .screen .chip { top: 30%; } }

/* Sections */
section { padding: 84px 0; }
section.alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.head { max-width: 680px; margin-bottom: 42px; }
.head p { color: var(--muted); margin-top: 12px; font-size: 18px; }
.center .head, .head.center { margin-left: auto; margin-right: auto; text-align: center; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .g3, .g2 { grid-template-columns: 1fr; } section { padding: 60px 0; } }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.card h3 { margin: 12px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(180, 58, 76, 0.18); border: 1px solid rgba(224, 70, 90, 0.35); display: flex; align-items: center; justify-content: center; font-size: 21px; }
.step-n { font-family: var(--serif); font-size: 44px; color: var(--accent2); line-height: 1; }

/* Services */
.services { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.svc { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--glass); border: 1px solid var(--border); font-weight: 600; }
.svc i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

/* Chrome section */
.chrome { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .chrome { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: '✓'; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(93, 186, 125, 0.16); color: var(--online); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; margin-top: 1px; }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: 15px; }
.installed { display: none; color: var(--online); font-weight: 600; }
html[data-prinx-extension] .installed { display: inline-flex; }
html[data-prinx-extension] .need-ext { display: none; }

/* Devices */
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .devices { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin-top: 12px; }

/* Final call + footer */
.final { text-align: center; }
.final .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Plain text pages (privacy, terms) */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 20px 90px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { color: #d9cdd1; }
.doc p { margin: 10px 0; }
.doc ul { padding-left: 22px; }
.doc .updated { color: var(--muted); font-size: 14px; }

/* Prinx+ plans */
.plans { max-width: 860px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; gap: 14px; }
.plan .price { font-size: 22px; font-weight: 700; color: var(--gold); }
.plan ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; color: var(--muted); }
.plan .btn { align-self: flex-start; }
.plan.plus { border-color: rgba(227, 196, 143, 0.5); box-shadow: 0 20px 60px rgba(227, 196, 143, 0.08); }
.plan .crown { display: inline-block; transform: rotate(-12deg); }
.plan .small { font-size: 13px; margin: 0; }
