/* Screenplay X-Ray — marketing site styles
   Palette mirrors the app: deep navy + neon cyan X-ray glow.
   Single stylesheet, no framework, mobile-first. */

:root {
  --bg: #06101e;
  --bg-2: #0f1c30;
  --bg-3: #18283f;
  --line: #1d3252;
  --fg: #dfecff;
  --fg-dim: #7e92ad;
  --accent: #4ad0ff;
  --accent-2: #a8e5ff;
  --glow: rgba(74, 208, 255, 0.5);
  --glow-soft: rgba(74, 208, 255, 0.18);
  --max-width: 1080px;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse at top, #142238 0%, var(--bg) 60%),
    var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--accent-2); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navigation ─── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #cdebff;
  text-shadow:
    0 0 6px var(--glow),
    0 0 14px var(--glow-soft);
}
nav .brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}
nav .links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
nav .links a { color: var(--fg-dim); }
nav .links a:hover { color: var(--fg); }

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 80px 24px 120px;
  max-width: 880px;
  margin: 0 auto;
}
.hero .icon-large {
  width: 144px;
  height: 144px;
  border-radius: 32px;
  margin-bottom: 36px;
  filter: drop-shadow(0 0 24px var(--glow)) drop-shadow(0 12px 40px rgba(0, 0, 0, 0.6));
}

/* ─── Availability pill (top of hero) ─── */
.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  background: rgba(74, 208, 255, 0.08);
  border: 1px solid rgba(74, 208, 255, 0.35);
  border-radius: 999px;
  text-shadow: 0 0 8px var(--glow-soft);
}
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 16px var(--glow);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.75); }
}

/* ─── Hero screenshot / video ─── */
.hero-media {
  width: 100%;
  max-width: 860px;
  margin: 40px auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow:
    0 0 40px var(--glow-soft),
    0 24px 60px rgba(0, 0, 0, 0.6);
}
.hero-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

/* ─── Feature card screenshots ─── */
.feature-screenshot {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top left;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  margin: -32px -28px 24px;
  width: calc(100% + 56px);
  border-bottom: 1px solid var(--line);
}

.dim { color: var(--fg-dim); opacity: 0.75; }

/* ─── Apple App Store badge (placeholder) ─── */
.app-store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: #000;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.app-store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 24px var(--glow-soft);
}
.app-store-badge .badge-tag {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--accent);
  color: var(--bg);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.app-store-badge .badge-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-store-badge .badge-apple {
  font-size: 30px;
  line-height: 1;
}
.app-store-badge .badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.app-store-badge .badge-small { font-size: 10px; letter-spacing: 0.04em; opacity: 0.85; }
.app-store-badge .badge-large { font-size: 19px; font-weight: 600; letter-spacing: 0.01em; }
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 .accent {
  color: var(--accent-2);
  text-shadow:
    0 0 8px var(--glow),
    0 0 24px var(--glow-soft);
}
.hero .subhead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--fg-dim);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.hero .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.15s;
}
.cta-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 24px var(--glow), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.cta-primary:hover {
  background: var(--accent-2);
  color: var(--bg);
  transform: translateY(-1px);
}
.cta-secondary {
  border: 1px solid var(--line);
  color: var(--fg);
}
.cta-secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--glow-soft);
}
.requirements {
  margin-top: 24px;
  font-size: 13px;
  color: var(--fg-dim);
}

/* ─── Feature blocks ─── */
.features {
  padding: 60px 24px 100px;
}
.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.feature {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--glow-soft);
}
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.feature p {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── How it works ─── */
.how {
  padding: 80px 24px;
  background: linear-gradient(180deg, transparent, var(--bg-2) 50%, transparent);
}
.how h2,
.features h2,
.privacy-section h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 56px;
  letter-spacing: -0.01em;
}
.how .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.step {
  text-align: center;
  padding: 0 16px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
  box-shadow: 0 0 12px var(--glow-soft);
}
.step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.step p {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
}

/* ─── Privacy section ─── */
.privacy-section {
  padding: 80px 24px;
  text-align: center;
}
.privacy-section .panel {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
}
.privacy-section .panel p {
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.privacy-section .panel p:last-child { margin-bottom: 0; }
.privacy-section .panel strong { color: var(--fg); }

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px 60px;
  margin-top: 60px;
  text-align: center;
  color: var(--fg-dim);
  font-size: 13px;
}
footer .footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
}
footer .tagline {
  margin-bottom: 12px;
  font-style: italic;
}

/* ─── Doc pages (privacy, support) ─── */
.doc {
  max-width: 720px;
  margin: 60px auto 100px;
  padding: 0 24px;
}
.doc h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.doc .updated {
  color: var(--fg-dim);
  font-size: 14px;
  margin-bottom: 40px;
}
.doc h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--accent-2);
}
.doc h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
}
.doc p, .doc ul, .doc ol {
  color: var(--fg);
  margin-bottom: 16px;
  line-height: 1.7;
}
.doc ul, .doc ol { padding-left: 24px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: #fff; }
.doc code {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 14px;
}
.doc .back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--fg-dim);
}
.doc .back:hover { color: var(--accent); }

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .hero { padding: 40px 16px 80px; }
  .hero .icon-large { width: 112px; height: 112px; }
  nav { padding: 16px; }
  nav .links { gap: 18px; font-size: 13px; }
  .features, .how, .privacy-section { padding-left: 16px; padding-right: 16px; }
}
