/* Sessionography — marketing site
   One committed dark look (all app screenshots are dark-UI), matching the app's
   signature #0065FF glow over a near-black base. System SF font, no external deps. */

:root {
  color-scheme: dark;

  --bg:        #05070b;
  --bg-2:      #090d14;
  --surface:   #11151d;
  --surface-2: #171c26;
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #f3f5f8;
  --text-dim:  #9aa2ae;
  --text-dimmer: #6b7480;

  --accent:    #0065ff;
  --accent-lo: #3f88ff;
  --accent-glow: rgba(0, 101, 255, 0.55);

  --live:      #e8651a; /* the app's "Live" pill orange, used sparingly */

  --maxw: 1140px;
  --radius: 22px;
  --radius-lg: 30px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Helvetica Neue",
          system-ui, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The signature glow: a blurred blue wash concentrated up top, over the base.
   Fixed so it stays put while the page scrolls, echoing SignatureBackground. */
body::before {
  content: "";
  position: fixed;
  inset: -20% -20% auto -20%;
  height: 125vh;
  background:
    radial-gradient(135% 100% at 70% 0%, var(--accent-glow) 0%, rgba(0,101,255,0.24) 42%, transparent 78%),
    radial-gradient(100% 78% at 18% 6%, rgba(0,101,255,0.24) 0%, transparent 66%);
  filter: blur(30px) saturate(1.3);
  transform: rotate(-8deg);
  z-index: -2;
  pointer-events: none;
}
body::after { /* subtle vignette to sink the edges (softened so more blue carries down) */
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(150% 105% at 50% 0%, transparent 68%, rgba(0,0,0,0.42) 100%);
  z-index: -1;
  pointer-events: none;
}

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent-lo), var(--accent));
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 101, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,101,255,0.55), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-1px); }
.btn-sm { font-size: 14.5px; padding: 9px 18px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  background: rgba(5, 7, 11, 0.62);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,101,255,0.4); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 60px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-lo);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 20px;
}
.hero h1 .hl { color: var(--accent-lo); }
.hero .lede {
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--text-dim);
  max-width: 34ch;
  margin: 0 0 30px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--text-dimmer); }
.hero-note b { color: var(--text-dim); font-weight: 600; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .device {
  width: min(340px, 78%);
  filter: drop-shadow(0 40px 70px rgba(0,0,0,0.6));
  position: relative;
  z-index: 2;
}

/* ---------- Section scaffolding ---------- */
section { position: relative; }
section[id], #top { scroll-margin-top: 80px; } /* clear the sticky nav on anchor jumps */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 12px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 14px;
  font-weight: 700;
}
.section-head p { color: var(--text-dim); font-size: 18px; margin: 0; }

/* ---------- Alternating feature rows ---------- */
.features { padding: 60px 0 20px; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 46px 0;
}
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text .kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-lo); margin-bottom: 14px;
}
.feature-text h3 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 16px; font-weight: 700;
}
.feature-text p { color: var(--text-dim); font-size: 17.5px; margin: 0; max-width: 46ch; }
.feature-text .stat {
  margin-top: 20px; display: inline-flex; align-items: baseline; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(0,101,255,0.12); border: 1px solid rgba(0,101,255,0.28);
}
.feature-text .stat b { font-size: 20px; color: #fff; letter-spacing: -0.01em; }
.feature-text .stat span { font-size: 14px; color: var(--text-dim); }

.feature-visual { display: flex; justify-content: center; align-items: center; }
.feature-visual.device-shot img {
  width: min(320px, 82%);
  filter: drop-shadow(0 36px 60px rgba(0,0,0,0.6));
}
.feature-visual.card-shot img {
  width: 100%;
  border-radius: 16px;
  filter: drop-shadow(0 30px 55px rgba(0,0,0,0.55));
}

/* ---------- Details mosaic ---------- */
.details { padding: 60px 0; }
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.mosaic figure { margin: 0; }
.mosaic img {
  width: 100%;
  border-radius: 14px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
.mosaic figcaption {
  margin-top: 14px; color: var(--text-dim); font-size: 15.5px; text-align: center;
}
.mosaic figcaption b { color: var(--text); font-weight: 600; }

/* ---------- Covers strip ---------- */
.covers { padding: 30px 0 20px; overflow: hidden; }
.covers-track {
  display: flex; gap: 18px; width: max-content;
  animation: drift 46s linear infinite;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.covers-track img { width: 132px; height: 132px; border-radius: 12px; object-fit: cover; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Closing CTA ---------- */
.closer { padding: 40px 0 90px; }
.closer-card {
  position: relative;
  text-align: center;
  padding: 64px 32px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(0,101,255,0.28), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-2);
  overflow: hidden;
}
.closer-card h2 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 700; }
.closer-card p { color: var(--text-dim); font-size: 18px; margin: 0 auto 30px; max-width: 44ch; }

/* ---------- Tech / under the hood ---------- */
.tech { padding: 20px 0 70px; }
.tech .section-head { margin-bottom: 42px; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.spec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 22px;
}
.spec h3 {
  font-size: 15px; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 9px; color: var(--text);
}
.spec h3 .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-lo); flex: none; box-shadow: 0 0 10px var(--accent-glow); }
.spec ul { list-style: none; margin: 0; padding: 0; }
.spec li {
  font-size: 13.5px; color: var(--text-dim); line-height: 1.5;
  padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.055);
}
.spec li:first-child { border-top: 0; padding-top: 2px; }
.spec li b { color: var(--text); font-weight: 600; }              /* features / UI surfaces */
.spec li .api, .tech-note .api { color: var(--accent-lo); font-weight: 600; }  /* Apple frameworks & APIs */
.tech-note b { color: var(--text-dim); font-weight: 600; }
.tech-note { text-align: center; color: var(--text-dimmer); font-size: 13.5px; margin-top: 30px; }
@media (max-width: 900px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(255,255,255,0.07); padding: 44px 0 60px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer .brand { margin-bottom: 12px; }
.footer .fcol h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dimmer); margin: 0 0 12px; font-weight: 700; }
.footer .fcol a { display: block; color: var(--text-dim); font-size: 15px; margin-bottom: 9px; transition: color .15s ease; }
.footer .fcol a:hover { color: var(--text); }
.footer .fine { color: var(--text-dimmer); font-size: 13px; margin-top: 22px; line-height: 1.6; max-width: 62ch; }
.footer .fine a { color: var(--text-dim); text-decoration: underline; }

/* ---------- Scroll reveal (progressive enhancement) ----------
   Only hidden when JS is present (html.js). No-JS / static snapshots show everything. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 40px 0 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .hero .lede { max-width: none; margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual .device { width: min(300px, 66%); }

  .feature { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; text-align: center; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .feature-text p, .hero .lede { margin-left: auto; margin-right: auto; }
  .feature-text .stat { margin-left: auto; margin-right: auto; }
  .feature-visual.device-shot img { width: min(280px, 64%); }
  .feature-visual { order: -1; }

  .mosaic { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .brand span.full { display: none; }
  .nav-cta-text-long { display: none; }
  .btn { font-size: 15px; }
  .covers-track img { width: 104px; height: 104px; }
  .closer-card { padding: 46px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .covers-track { animation: none; }
  .js .reveal { transition: none; opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}
