/* Soltra marketing site — brand tokens from the app design system */

:root {
  --midnight: #0C1322;
  --street: #16243C;
  --sheet: #18243A;
  --card: #22324C;
  --divider: #35496A;
  --gold: #F3BD12;
  --ember: #A85A0C;
  --pale-gold: #FCE38A;
  --white-hot: #FFF6E0;
  --text: #EEF3FA;
  --text-2: #A6B6CC;
  --text-3: #6B7E99;
  --link: #5AC8E0;
  --radius: 18px;
  --wrap: 1120px;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--midnight);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img, video { max-width: 100%; height: auto; display: block; }

h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 em { font-style: italic; color: var(--gold); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--midnight) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--divider) 40%, transparent);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 19px; letter-spacing: 0.02em;
}

.brand-hex { width: 24px; height: 24px; filter: drop-shadow(0 0 6px rgba(243, 189, 18, 0.55)); }

.nav-cta {
  color: var(--gold); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 16px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--gold); color: var(--midnight); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - 60px); /* 60px = sticky nav height, so hero fits in one screen */
  display: flex; align-items: center;
  padding: 28px 0;
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vh, 48px); align-items: center;
  width: 100%;
}

.eyebrow {
  color: var(--gold); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: clamp(10px, 2vh, 18px);
}

.hero h1 { font-size: clamp(34px, min(6vw, 6.5vh), 72px); margin-bottom: clamp(12px, 2vh, 22px); }

.lede { color: var(--text-2); font-size: clamp(16px, 1.6vw, 20px); max-width: 34em; }

.hero-copy .lede { margin-bottom: clamp(18px, 3vh, 34px); }

/* ---------- device frame ---------- */

.device {
  position: relative;
  border-radius: clamp(38px, 5.2vw, 54px);
  padding: clamp(8px, 1vw, 11px);
  background: linear-gradient(160deg, #3a4356, #12192a 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 24px 70px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(243, 189, 18, 0.07);
}

.device img, .device video {
  border-radius: clamp(30px, 4.2vw, 44px);
  width: 100%; display: block;
}

.hero-shot { position: relative; max-width: min(360px, 36vh); justify-self: center; }

.hero-glow {
  position: absolute; inset: -18%; z-index: -1;
  background: radial-gradient(closest-side, rgba(243, 189, 18, 0.16), transparent 70%);
  pointer-events: none;
}

/* ---------- waitlist form ---------- */

.waitlist { max-width: 480px; }

.waitlist-row { display: flex; gap: 10px; flex-wrap: wrap; }

.waitlist input[type="email"] {
  flex: 1 1 220px;
  background: var(--sheet);
  border: 1px solid var(--divider);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist input[type="email"]::placeholder { color: var(--text-3); }
.waitlist input[type="email"]:focus { border-color: var(--gold); }

.waitlist button {
  flex: 0 0 auto;
  background: var(--gold);
  color: var(--midnight);
  border: 0; border-radius: 12px;
  font-size: 16px; font-weight: 700;
  padding: 13px 22px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
  box-shadow: 0 0 22px rgba(243, 189, 18, 0.28);
}
.waitlist button:hover { filter: brightness(1.07); }
.waitlist button:active { transform: scale(0.98); }
.waitlist button[disabled] { opacity: 0.6; cursor: default; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Turnstile renders interaction-only: reserve no space while it's invisible.
   On the rare load that needs an interactive challenge, the widget expands
   and pushes content down naturally. */
.turnstile-slot { min-height: 0; }
.turnstile-slot iframe { display: block; margin-top: 12px; }

.form-note { color: var(--text-3); font-size: 13.5px; margin-top: 10px; }
.form-note.ok { color: var(--pale-gold); }
.form-note.ok::before { content: "✓ "; color: #4ADE80; font-weight: 700; }
.form-note.err { color: #E8A878; }

/* ---------- teaser feature blocks ---------- */

.feature-block { padding: 72px 0; border-top: 1px solid color-mix(in srgb, var(--divider) 35%, transparent); }
.feature-block.alt { background: color-mix(in srgb, var(--sheet) 40%, transparent); }
.feature-block .kicker { text-align: center; }
.feature-block h2 { font-size: clamp(30px, 3.8vw, 46px); text-align: center; margin-bottom: 14px; }
.feature-block .blurb { color: var(--text-2); max-width: 44em; margin: 0 auto 40px; text-align: center; }

.premium-tag {
  display: inline-block; white-space: nowrap; /* wrap as one unit — never break the pill mid-label */
  color: var(--pale-gold);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-radius: 999px; padding: 2px 10px;
  font-size: 12px; letter-spacing: 0.08em;
}

.shot-row { display: grid; gap: 28px; justify-content: center; }
.shot-row.one { grid-template-columns: minmax(0, 280px); }
.shot-row.two { grid-template-columns: repeat(2, minmax(0, 280px)); }
.shot-row.three { grid-template-columns: repeat(3, minmax(0, 250px)); }
.shot-row figure { margin: 0; }
.shot-row figcaption { text-align: center; color: var(--text-3); font-size: 13.5px; margin-top: 12px; }
.shot-row.cards { grid-template-columns: repeat(3, minmax(0, 300px)); }
.shot-row.cards img { border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,0.5); }

/* Side-by-side copy + visual. DOM order is always copy-first (mobile stacks
   copy above images); .media-left flips the columns on desktop only, giving
   the alternating zig-zag rhythm down the page. */
.feature-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.feature-split .device { max-width: 300px; justify-self: center; }
.feature-split .kicker, .feature-split h2, .feature-split .blurb { text-align: left; margin-left: 0; }
.feature-split .blurb { margin-bottom: 0; }
@media (min-width: 901px) {
  .feature-split.media-left > .shot-row { order: 1; }
  .feature-split.media-left > .feature-copy { order: 2; }
}

/* ---------- theme/share-card carousel ---------- */

.carousel { position: relative; display: flex; align-items: center; gap: 10px; }

.carousel-track {
  display: flex; gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 14px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 calc((100% - 56px) / 3);
  scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.carousel-slide .device { max-width: 190px; }
.carousel-slide .card { max-width: 190px; margin: 0; }
.carousel-slide .card img { border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }

.carousel-caption { color: var(--text-3); font-size: 13.5px; text-align: center; }

.carousel-arrow {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--sheet); border: 1px solid var(--divider); color: var(--text);
  font-size: 20px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.carousel-arrow:hover { border-color: var(--gold); color: var(--gold); }
.carousel-arrow[hidden] { display: none; }

.carousel-dots { display: none; }

@media (max-width: 900px) {
  .carousel-track { gap: 16px; padding: 4px 4px 8px; }
  /* device + card side by side inside one slide; 82% width leaves the next
     slide peeking in — the scroll affordance */
  .carousel-slide {
    flex: 0 0 82%;
    flex-direction: row; flex-wrap: wrap;
    justify-content: center; align-items: center;
    gap: 12px;
  }
  .carousel-slide .device { max-width: none; flex: 1 1 0; min-width: 0; border-radius: 22px; padding: 4px; }
  .carousel-slide .device img { border-radius: 18px; }
  .carousel-slide .card { max-width: none; flex: 1 1 0; min-width: 0; }
  .carousel-caption { flex-basis: 100%; }
  .carousel-arrow { display: none; }

  .carousel-dots { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
  .carousel-dots button {
    width: 24px; height: 24px; /* 24px hit area around an 8px dot */
    background: transparent; border: 0; padding: 0; cursor: pointer;
    display: grid; place-items: center;
  }
  .carousel-dots button::after {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--divider); transition: background 0.2s, transform 0.2s;
  }
  .carousel-dots button[aria-current="true"]::after { background: var(--gold); transform: scale(1.3); }
}

.promise { padding: 32px 0 56px; text-align: center; }
.promise p {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--pale-gold); max-width: 30em; margin: 0 auto;
}
.promise strong { color: var(--gold); }

@media (max-width: 900px) {
  /* keep screenshot pairs side by side — stacking them single-file doubles page height */
  .shot-row { gap: 14px; }
  .shot-row.two, .shot-row.three, .shot-row.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-row .device { border-radius: 24px; padding: 5px; }
  .shot-row .device img { border-radius: 20px; }
  .feature-split { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- features ---------- */

.features { padding: 60px 0 20px; }

.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
  padding: 56px 0;
  border-top: 1px solid color-mix(in srgb, var(--divider) 35%, transparent);
}
.feature:first-child { border-top: 0; }

.feature-solo { grid-template-columns: 1fr; text-align: center; }
.feature-solo .feature-copy { max-width: 620px; margin: 0 auto; }
.feature-solo p:not(.kicker) { margin: 0 auto; }

.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-shot { order: 1; }

.kicker {
  color: var(--gold); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px;
}

.feature h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }

.feature p:not(.kicker) { color: var(--text-2); max-width: 32em; }

.feature-shot { max-width: 320px; justify-self: center; }

/* ---------- how it works ---------- */

.how { padding: 80px 0; }

.how-title { font-size: clamp(30px, 3.6vw, 44px); text-align: center; margin-bottom: 48px; }

.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px; list-style: none; counter-reset: step;
}

.steps li {
  background: var(--sheet);
  border: 1px solid color-mix(in srgb, var(--divider) 55%, transparent);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-n {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  color: var(--gold); font-weight: 800; font-size: 15px;
  margin-bottom: 16px;
}

.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--text-2); font-size: 15.5px; }

/* ---------- bottom CTA ---------- */

.cta {
  padding: 90px 0 100px;
  background:
    radial-gradient(60% 120% at 50% 100%, rgba(243, 189, 18, 0.10), transparent 70%),
    linear-gradient(var(--midnight), #0A1120);
}

.cta-inner { text-align: center; display: grid; justify-items: center; gap: 18px; }

.cta h2 { font-size: clamp(34px, 4.4vw, 54px); }

.cta .waitlist { margin-top: 10px; }
.cta .waitlist-row { justify-content: center; }
.cta .turnstile-slot { display: flex; justify-content: center; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid color-mix(in srgb, var(--divider) 40%, transparent); padding: 26px 0; }

.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  color: var(--text-3); font-size: 14.5px;
}

.footer a { color: var(--text-2); text-decoration: none; margin-left: 22px; }
.footer a:first-child { margin-left: 0; }
.footer a:hover { color: var(--gold); }

/* ---------- privacy page ---------- */

.doc { padding: 70px 0 90px; max-width: 720px; margin: 0 auto; }
.doc h1 { font-size: clamp(34px, 4.5vw, 48px); margin-bottom: 10px; }
.doc .updated { color: var(--text-3); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 24px; margin: 36px 0 12px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc a { color: var(--link); }

/* ---------- motion ---------- */

/* Scroll-reveal: .reveal is added by JS (no-JS visitors see everything static),
   and the hidden initial state only applies when motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.65s ease-out, transform 0.65s ease-out; }
  .reveal.in-view { opacity: 1; transform: none; }
}

/* Heat-line dividers: the section border "ignites" left-to-right on reveal */
.feature-block { position: relative; }
.feature-block::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--ember), var(--gold) 55%, var(--white-hot));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s ease-out 0.15s;
}
.feature-block.in-view::before { transform: scaleX(1); }

/* Glow pulses: living-map breathing behind the hero, gentle pull on the CTA.
   (The global reduced-motion rule cancels these.) */
.hero-glow { animation: breathe 7s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.05); }
}
.waitlist button { animation: cta-pulse 4.5s ease-in-out infinite; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 22px rgba(243, 189, 18, 0.28); }
  50%      { box-shadow: 0 0 36px rgba(243, 189, 18, 0.46); }
}

/* Cursor heat trail (desktop only; dots are created by JS behind the same gate) */
.heat-dot {
  position: fixed; z-index: 40; /* under the sticky nav (50) */
  pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 227, 138, 0.5), rgba(243, 189, 18, 0.22) 60%, transparent 75%);
  opacity: 0; will-change: transform, opacity;
}
.heat-dot.fade { transition: opacity 0.8s ease-out, transform 0.8s ease-out; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  /* stacked layout can't fit one screen without illegible text, so let it scroll naturally */
  .hero { min-height: 0; display: block; padding: 20px 0 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-shot { max-width: 300px; }
  .hero h1 { font-size: clamp(34px, 9vw, 56px); }

  /* tighter vertical rhythm — desktop-scale padding reads as dead space on a phone */
  .feature-block { padding: 44px 0; }
  .feature-block .blurb { margin-bottom: 24px; }
  .promise { padding: 12px 0 36px; text-align: left; }
  .promise p { margin: 0; }
  .cta { padding: 64px 0 72px; }

  /* left-align section copy (headings included); centered long-form reads poorly on narrow columns */
  .feature-block .kicker, .feature-block h2, .feature-block .blurb { text-align: left; }
  .kicker { font-size: 12px; letter-spacing: 0.10em; }

  /* tap targets: 44px nav pill, full-width submit when the button wraps */
  .nav-cta { padding: 11px 18px; }
  .waitlist button { flex: 1 1 auto; }

  .feature { grid-template-columns: 1fr; gap: 32px; padding: 44px 0; }
  .feature.flip .feature-copy { order: 1; }
  .feature.flip .feature-shot { order: 2; }
  .feature-shot { max-width: 280px; }
  .steps { grid-template-columns: 1fr; }
}
