/* Superscribe — Concept C (Loud spread)
   Bold editorial type · color-blocked feature panels · big list use cases */

:root {
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Light theme — warm-cool neutral */
  --bg: #f1efea;
  --bg-elev: #ffffff;
  --ink: #0c0c0e;
  --ink-2: #2b2b30;
  --muted: rgba(12, 12, 14, 0.55);
  --line: rgba(12, 12, 14, 0.12);
  --line-strong: rgba(12, 12, 14, 0.22);

  /* Icon-derived accent (blue → violet) */
  --accent: #2436ff;
  --accent-2: #6233ff;
  --accent-soft: #ffd6a3;

  /* Spacing — design's "regular" density, scaled 0.7 */
  --pad-section: 67px;
  --pad-hero-bottom: 56px;
  --hero-headline-fs: clamp(31px, 3.92vw, 56px);
}

/* Dark theme — applied via system preference unless the user chose light,
   or explicitly when the user picked dark. Keep the two blocks in sync. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c142b;
    --bg-elev: #16203f;
    --ink: #f4f3ee;
    --ink-2: #d6d4cc;
    --muted: rgba(244, 243, 238, 0.55);
    --line: rgba(244, 243, 238, 0.14);
    --line-strong: rgba(244, 243, 238, 0.26);
  }
}
:root[data-theme="dark"] {
  --bg: #0c142b;
  --bg-elev: #16203f;
  --ink: #f4f3ee;
  --ink-2: #d6d4cc;
  --muted: rgba(244, 243, 238, 0.55);
  --line: rgba(244, 243, 238, 0.14);
  --line-strong: rgba(244, 243, 238, 0.26);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.nav.is-scrolled .nav-brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.nav-brand img { width: 30px; height: 30px; border-radius: 7.5px; box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.signin {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.signin:hover { color: var(--ink); background: var(--line); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-appstore {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.nav-appstore.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 720px) {
  .nav-appstore { display: none; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bg);
  padding: 13px 22px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.10);
}
.btn-appstore:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.14), 0 14px 32px rgba(0,0,0,0.16); }
.btn-appstore svg { width: 24px; height: 28px; flex-shrink: 0; }
.btn-appstore .stack { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.btn-appstore .stack small { font-size: 10px; opacity: 0.8; letter-spacing: 0.04em; margin-bottom: 3px; font-weight: 400; }
.btn-appstore .stack strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

/* Compact variant for the nav */
.btn-appstore--compact {
  padding: 8px 14px;
  border-radius: 11px;
  gap: 10px;
}
.btn-appstore--compact svg { width: 18px; height: 21px; }
.btn-appstore--compact .stack small { font-size: 8px; margin-bottom: 1px; }
.btn-appstore--compact .stack strong { font-size: 13px; }

/* Light variant for the closing CTA on a dark bg */
.btn-appstore--light { background: #fff; color: #0c0c0e; }

/* ── Hero (split layout) ────────────────────────────────── */
.hero { padding: 56px 0 var(--pad-hero-bottom); position: relative; overflow: hidden; }
.hero > .container { max-width: 960px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-brand { justify-content: center; }
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-brand { display: flex; align-items: center; gap: 14px; }
.hero-brand img { width: 45px; height: 45px; border-radius: 10px; box-shadow: 0 6px 20px rgba(36, 54, 255, 0.18), 0 1px 3px rgba(0,0,0,0.1); }
.hero-brand-name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 22px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--hero-headline-fs);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
  white-space: pre-line;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
  text-wrap: pretty;
}
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-stat {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px;
}
.hero-stat .stars { color: var(--accent); letter-spacing: 0.06em; font-weight: 500; }
.hero-visual { display: flex; justify-content: center; }
.hero-phone-img { width: 100%; max-width: 252px; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.18)) drop-shadow(0 8px 16px rgba(0,0,0,0.10)); }

/* ── Color-blocked feature panels ───────────────────────── */
.feature-panels {
  display: flex; flex-direction: column;
  gap: 17px;
  max-width: 960px;
  margin: 0 auto;
  padding: 17px 48px;
}
.feature-panel {
  padding: 45px 39px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.feature-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 39px;
  align-items: center;
}
@media (max-width: 900px) {
  .feature-panels { padding: 11px 11px; gap: 11px; }
  .feature-panel { padding: 34px 20px; border-radius: 14px; }
  .feature-panel-inner { grid-template-columns: 1fr; gap: 25px; text-align: center; }
  .feature-panel.alt .feature-panel-inner { direction: ltr; }
  .feature-panel .poster { margin: 0 auto; }
}
.feature-panel.alt .feature-panel-inner { direction: rtl; }
.feature-panel.alt .feature-panel-inner > * { direction: ltr; }

.feature-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.78vw, 56px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}
.feature-panel h2 em { font-style: normal; }
.feature-panel p {
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.85;
  max-width: 440px;
  margin: 17px 0 0;
  text-wrap: pretty;
}
.feature-panel .poster-wrap { display: flex; justify-content: center; }
.feature-panel .poster {
  width: 100%;
  max-width: 182px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.30)) drop-shadow(0 8px 16px rgba(0,0,0,0.18));
}
/* Border on the black feature panel so it separates from a dark page bg */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .feature-panel.is-black {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
  }
}
:root[data-theme="dark"] .feature-panel.is-black {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}

/* ── Use cases (big type) ───────────────────────────────── */
.usecases {
  padding: var(--pad-section) 0;
  border-top: 1px solid var(--line-strong);
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.usecases-list {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 62px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.usecases-list .alt { color: var(--muted); }
.usecases-list .accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Closing CTA ────────────────────────────────────────── */
.cta {
  padding: 84px 0 98px;
  text-align: center;
  background: linear-gradient(160deg, #1a2dff 0%, #6233ff 100%);
  color: #fff;
  position: relative;
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.9vw, 73px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0 0 25px;
  color: #fff;
  text-wrap: balance;
}
.cta h2 em { font-style: normal; color: var(--accent-soft); }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 25px;
  background: var(--bg);
}
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-brand strong { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { font-size: 14px; color: var(--ink-2); transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px; margin-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Theme toggle in footer */
.theme-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elev);
}
.theme-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color .15s, background .15s;
}
.theme-toggle button:hover { color: var(--ink); }
.theme-toggle button.is-active {
  color: var(--ink);
  background: var(--bg);
}

/* ── Sub-page shell (Support, FAQ, etc.) ────────────────── */
.page {
  padding: 67px 0 84px;
  min-height: 60vh;
}
.page > .container { max-width: 960px; }
.page--faq > .container { max-width: 720px; }
.page-header {
  display: flex; flex-direction: column; gap: 11px;
  padding-bottom: 25px;
  margin-bottom: 39px;
  border-bottom: 1px solid var(--line);
}
.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 50px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.page-lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}
.page-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 720px;
  margin: 0 auto;
}
.page-body p { font-size: 12px; line-height: 1.65; margin: 0; color: var(--ink-2); }
.page-body a { color: var(--accent); border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); transition: border-color .15s; }
.page-body a:hover { border-bottom-color: var(--accent); }

.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--bg-elev);
  align-self: center;
  max-width: 100%;
}
.contact-card .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-card .email {
  font-family: var(--font-display);
  font-size: clamp(15px, 2.1vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: none;
}
.contact-card .email:hover { color: var(--accent); }
.contact-card .meta { font-size: 14px; color: var(--muted); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 17px;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.68vw, 18px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item .faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  transition: transform .2s ease, border-color .15s, color .15s;
  margin-top: 2px;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--ink); border-color: var(--ink); }
.faq-item .faq-answer {
  padding: 0 0 22px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}
.faq-item .faq-answer p { margin: 0 0 12px; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }
