/* CardSpark marketing site (static). Brand tokens copied from app CSS. */
:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-title: "Cinzel", "Segoe UI", serif;

  --cs-accent: #f97316;
  --cs-accent-soft: #fbbf24;
  --cs-accent-deep: #ea580c;
  --cs-text-1: #e5e7eb;
  --cs-text-2: #f9fafb;
  --cs-text-3: #d1d5db;
  --cs-text-muted: #9ca3af;
  --cs-bg-base: #050910;
  --cs-bg-deep: #020617;
  --cs-surface-1: rgba(15, 23, 42, 0.78);
  --cs-border-1: rgba(148, 163, 184, 0.2);
  --cs-border-3: rgba(148, 163, 184, 0.3);
  --cs-spark-35: rgba(249, 115, 22, 0.35);
  --cs-spark-55: rgba(249, 115, 22, 0.55);

  --container: 1240px;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--cs-text-1);
  background: var(--cs-bg-base);
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% -10%, rgba(249, 115, 22, 0.28), transparent 36%),
    radial-gradient(circle at 80% 0%, rgba(251, 191, 36, 0.17), transparent 32%),
    radial-gradient(circle at 50% 0%, #0d1b2a 0%, #0a1623 38%, var(--cs-bg-base) 82%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 760px; margin-bottom: 2.1rem; }

.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--cs-text-muted);
  font-size: 0.78rem;
}

h1, h2, h3 { margin: 0; color: var(--cs-text-2); line-height: 1.1; }
h1 { font-size: clamp(2rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.1rem; }
p { margin: 0; color: var(--cs-text-3); }

.card-surface {
  background: linear-gradient(165deg, rgba(17, 29, 52, 0.78), var(--cs-surface-1));
  border: 1px solid var(--cs-border-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.74));
  border-bottom: 1px solid var(--cs-border-1);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.wordmark {
  font-family: var(--font-title);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--cs-text-2);
  text-shadow: none;
}

.wordmark span { color: var(--cs-accent); text-shadow: none; }

.nav-links { display: none; gap: 1rem; color: var(--cs-text-3); font-size: 0.94rem; }
.nav-links a:hover { color: var(--cs-text-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1;
  padding: 0.78rem 1.15rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(115deg, var(--cs-accent-deep), var(--cs-accent), var(--cs-accent-soft));
  color: #1a1208;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
}

.btn-secondary {
  border-color: var(--cs-border-3);
  color: var(--cs-text-2);
  background: rgba(15, 23, 42, 0.45);
}

.btn:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.35);
  outline-offset: 2px;
}

.hero { padding: 0; }
.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px 72px;
  box-sizing: border-box;
}
.hero-grid { display: grid; gap: 1.4rem; }
.hero-media {
  min-width: 0;
}
.hero-copy { padding: 0.4rem 0.1rem; }
.hero-wordmark {
  display: inline-block;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 1px solid var(--cs-border-3);
  padding: 0.34rem 0.74rem;
  color: var(--cs-text-2);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.82));
  font-size: 0.82rem;
}

.lead {
  margin-top: 1rem;
  max-width: 62ch;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }

.cred-chips {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cred-chips li {
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--cs-border-1);
  background: rgba(2, 6, 23, 0.45);
  color: var(--cs-text-3);
  font-size: 0.84rem;
}

.hero-shot {
  padding: 0.8rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.hero .hero-shot {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.5);
}

.hero-shot img {
  width: 100%;
  border-radius: 15px;
  border: 1px solid var(--cs-border-1);
}

.hero-shot p { margin-top: 0.72rem; font-size: 0.9rem; }

/* Big scroll product-first sections */
.big-scroll { padding-top: 2.4rem; }

.scroll-section {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.scroll-copy p { margin-top: 0.8rem; }

.scroll-copy ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
}

.scroll-copy li {
  margin-top: 0.45rem;
  color: var(--cs-text-3);
}

.scroll-media {
  padding: 0.75rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.scroll-media img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--cs-border-1);
}

.zoomable-image {
  cursor: zoom-in;
}

.zoomable-image:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.4);
  outline-offset: 3px;
}

.media-crop {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.media-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-zoom-links img {
  transform: scale(1.16);
  object-position: 50% 80%;
}

/* Gallery (fewer, bigger tiles) */
.shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.shot {
  margin: 0;
  padding: 0.9rem;
  border-radius: var(--radius-lg);
}

.shot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--cs-border-1);
  transition: transform 0.35s ease;
}

.shot:hover img { transform: scale(1.015); }
.shot figcaption { margin-top: 0.7rem; font-size: 0.9rem; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(2, 6, 23, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1200px, 96vw);
  max-height: 86vh;
  border-radius: 14px;
  border: 1px solid var(--cs-border-3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  border-radius: 999px;
  border: 1px solid var(--cs-border-3);
  background: rgba(15, 23, 42, 0.9);
  color: var(--cs-text-2);
  padding: 0.5rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.alpha-callout {
  padding: 1.5rem;
  border: 1px solid var(--cs-border-3);
  box-shadow: var(--shadow-soft);
}

.alpha-callout p,
.alpha-callout li { margin-top: 0.6rem; }

.alpha-callout ul { margin: 0.9rem 0 0; padding-left: 1.2rem; color: var(--cs-text-3); }

.fine-print { margin-top: 0.85rem; font-size: 0.84rem; color: var(--cs-text-muted); }

.waitlist-wrap { padding: 1.3rem; display: grid; gap: 1.4rem; }

.waitlist-form { display: grid; gap: 0.5rem; }

.waitlist-form label { font-size: 0.85rem; color: var(--cs-text-3); }

.waitlist-form input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--cs-border-3);
  padding: 0.72rem 0.78rem;
  font: inherit;
  color: var(--cs-text-2);
  background: rgba(2, 6, 23, 0.55);
}

.waitlist-form .btn { margin-top: 0.45rem; }

.faq-list { display: grid; gap: 0.8rem; }

.faq { padding: 1.1rem; border-radius: var(--radius-md); }
.faq p { margin-top: 0.5rem; }

.footer {
  border-top: 1px solid var(--cs-border-1);
  padding: 2.2rem 0 1.6rem;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.7));
}

.footer-grid { display: grid; gap: 1rem; }
.footer-links { display: flex; gap: 1rem; color: var(--cs-text-3); }
.footer-links a:hover,
.footer p a:hover { color: var(--cs-text-2); }

.footer-meta {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--cs-border-1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  color: var(--cs-text-muted);
}

/* Legal pages */
.legal-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.legal-main { padding: 3rem 0; }
.legal-card { padding: 1.25rem; }
.legal-card h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.4rem; }
.legal-card h2 { margin-top: 1.5rem; font-size: 1.2rem; }
.legal-card p,
.legal-card li { margin-top: 0.58rem; }
.legal-card ul { padding-left: 1.15rem; }

@media (max-width: 759px) {
  .hero-inner {
    padding: 72px 20px 56px;
  }

  .hero .hero-shot {
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .nav-links { display: flex; }
  .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
  }

  .scroll-section {
    grid-template-columns: 0.42fr 0.58fr;
    align-items: center;
    margin-bottom: 2.8rem;
  }

  .scroll-section.reverse .scroll-copy { order: 2; }
  .scroll-section.reverse .scroll-media { order: 1; }
  .collection-glance .scroll-copy { order: 1; }
  .collection-glance .scroll-media { order: 2; }

  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
  .waitlist-wrap { grid-template-columns: 1fr 1fr; align-items: center; }
  .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
}

@media (min-width: 1200px) {
  .scroll-section { grid-template-columns: 0.38fr 0.62fr; }
}

.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
