/* ---------- tokens ---------- */
:root {
  --ink: #0c0e1b;
  --ink-2: #101324;
  --surface: #151831;
  --surface-2: #1b1e3c;
  --marquee: #f0a83e;
  --marquee-2: #ffd18a;
  --velvet: #c24657;
  --velvet-2: #e0687a;
  --text: #f3efe6;
  --text-dim: #b9b8c9;
  --hairline: rgb(243 239 230 / 14%);
  --card-shadow: 0 30px 60px -20px rgb(0 0 0 / 60%);
  --focus: #ffd18a;
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Source Serif 4', georgia, 'Times New Roman', serif;
  --font-ui: 'Archivo', 'Helvetica Neue', arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --ink: #fbf3e4;
    --ink-2: #f5ead4;
    --surface: #fffaf0;
    --surface-2: #f1e6d0;
    --marquee: #c07a12;
    --marquee-2: #8f5a0c;
    --velvet: #a83349;
    --velvet-2: #7c2536;
    --text: #1c1a22;
    --text-dim: #514f5e;
    --hairline: rgb(28 26 34 / 14%);
    --card-shadow: 0 24px 48px -20px rgb(28 20 10 / 25%);
    --focus: #a83349;
  }
}

:root[data-theme='light'] {
  --ink: #fbf3e4;
  --ink-2: #f5ead4;
  --surface: #fffaf0;
  --surface-2: #f1e6d0;
  --marquee: #c07a12;
  --marquee-2: #8f5a0c;
  --velvet: #a83349;
  --velvet-2: #7c2536;
  --text: #1c1a22;
  --text-dim: #514f5e;
  --hairline: rgb(28 26 34 / 14%);
  --card-shadow: 0 24px 48px -20px rgb(28 20 10 / 25%);
  --focus: #a83349;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--marquee);
}

section {
  position: relative;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}
.wordmark .kernel {
  font-size: 1.3rem;
  line-height: 1;
}
nav.links {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
}
nav.links a {
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
nav.links a:hover {
  color: var(--marquee);
}

@media (width <= 560px) {
  nav.links {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.marquee-frame {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--card-shadow);
  border: 1px solid var(--hairline);
}
.bulbs {
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    var(--marquee) 2.5px,
    transparent 3px
  );
  background-size: 28px 28px;
  background-position: 0 0;
  background-repeat: repeat-x;
  background-origin: border-box;
  opacity: 0.55;
  mask-image: linear-gradient(
    180deg,
    black 0,
    black 3px,
    transparent 3px,
    transparent calc(100% - 3px),
    black calc(100% - 3px)
  );
}
.bulbs.bottom {
  top: auto;
}
.bulb-row {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 6px;
  display: flex;
  justify-content: space-between;
}
.bulb-row.top {
  top: 10px;
}
.bulb-row.bottom {
  bottom: 10px;
}
.bulb {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--marquee);
  box-shadow: 0 0 6px 1px color-mix(in srgb, var(--marquee) 70%, transparent);
  animation: twinkle 2.4s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bulb {
    animation: none;
    opacity: 0.8;
  }
}

.hero-copy {
  position: relative;
  text-align: center;
  padding: 0.75rem 0 0.25rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.02;
  color: var(--text);
}
.hero h1 .accent {
  color: var(--marquee);
}
.hero p.sub {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 42em;
  margin: 1.4rem auto 0;
}
.hero .eyebrow {
  display: block;
  margin-bottom: 1rem;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--ink) 60%, var(--surface));
  font-family: var(--font-ui);
  color: var(--text-dim);
}
.store-badge .label {
  text-align: left;
  line-height: 1.2;
}
.store-badge .label .small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.store-badge .label .big {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}
.cta-note {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---------- swipe demo ---------- */
/* ---------- real screenshot showcase ---------- */
.showcase {
  padding: clamp(2.5rem, 7vw, 4rem) 0 clamp(1rem, 3vw, 2rem);
}
.showcase-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.showcase .eyebrow {
  text-align: center;
}
.phone-frame {
  position: relative;
  width: min(78vw, 260px);
  border-radius: 32px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2d44, #0a0b16);
  box-shadow: var(--card-shadow), inset 0 0 0 1px rgb(255 255 255 / 6%);
}
.phone-frame .screen {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}
.phone-frame .screen img {
  width: 100%;
  display: block;
}
.phone-frame .notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 16px;
  background: #0a0b16;
  border-radius: 10px;
  z-index: 2;
}
.showcase-caption {
  color: var(--text-dim);
  font-size: 0.88rem;
  text-align: center;
  max-width: 26em;
}

.demo {
  padding: clamp(3rem, 8vw, 5rem) 0;
}
.demo-heading {
  text-align: center;
  max-width: 36em;
  margin: 0 auto 3rem;
}
.demo-heading h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-top: 0.6rem;
}
.demo-heading p {
  color: var(--text-dim);
  margin-top: 0.9rem;
  font-size: 1.02rem;
}

.shot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: start;
}

@media (width <= 480px) {
  .shot-gallery {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }
}
.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.shot .phone-frame {
  width: 100%;
  max-width: 220px;
}
.shot-caption {
  color: var(--text-dim);
  font-size: 0.86rem;
  text-align: center;
}

/* ---------- how it works (filmstrip) ---------- */
.strip-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}
.strip-head {
  text-align: center;
  max-width: 32em;
  margin: 0 auto 3rem;
}
.strip-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-top: 0.6rem;
}

.filmstrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (width <= 760px) {
  .filmstrip {
    grid-template-columns: 1fr;
  }
}

.frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.6rem 1.4rem 1.5rem;
}
.frame::before,
.frame::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background-image: radial-gradient(circle, var(--ink) 3px, transparent 3.5px);
  background-size: 20px 14px;
  background-repeat: repeat-x;
  background-position: center;
}
.frame::before {
  top: -1px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.frame::after {
  bottom: -1px;
}
.frame-number {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--marquee);
  margin-bottom: 0.75rem;
  display: block;
}
.frame h3 {
  font-family: var(--font-ui);
  text-transform: none;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.55rem;
}
.frame p {
  color: var(--text-dim);
  font-size: 0.96rem;
}

/* ---------- features ---------- */
.features {
  padding: clamp(3rem, 8vw, 5rem) 0;
}
.features-head {
  text-align: center;
  max-width: 34em;
  margin: 0 auto 3rem;
}
.features-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-top: 0.6rem;
}

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.feature-row {
  display: grid;
  gap: 1.1rem;
}
.feature-row.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature-row.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.5rem;
}
.feature-card.pro {
  border-color: color-mix(in srgb, var(--velvet) 55%, var(--hairline));
}
.feature-card .tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--velvet);
  border: 1px solid var(--velvet);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}
.feature-card.inset-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.5rem 2rem;
}
.inset-card-body {
  max-width: 30em;
}
.inset-card .inset-shot {
  flex: 0 0 auto;
  width: 168px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  box-shadow: var(--card-shadow);
}

@media (width <= 560px) {
  .feature-card.inset-card {
    flex-direction: column;
    padding: 1.5rem;
  }
  .inset-card .inset-shot {
    width: 100%;
    max-width: 200px;
  }
}
.feature-card h3 {
  font-family: var(--font-ui);
  text-transform: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--text-dim);
  font-size: 0.94rem;
}

/* ---------- pricing ---------- */
.pricing {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 9vw, 6rem);
}
.pricing-head {
  text-align: center;
  max-width: 30em;
  margin: 0 auto 3rem;
}
.pricing-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-top: 0.6rem;
}

/* Three shared row tracks (header / divider / list) via subgrid, not just equal-height cards —
   Free's header is shorter than Pro's (no "Most popular" badge), so without this the divider
   line lands at a different height on every card and the row reads as inconsistent even though
   each individual card looks fine on its own. Subgrid makes row 1 size to the tallest header
   among all three cards, so every divider lines up and row 3 (the list) absorbs the rest. */
.tickets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  align-items: stretch;
}

@media (width <= 860px) {
  .tickets {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    max-width: 380px;
    margin-inline: auto;
  }
}

.ticket {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.9rem 1.6rem 2.1rem;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 1.1rem;
}

@media (width <= 860px) {
  .ticket {
    display: flex;
    flex-direction: column;
    grid-template-rows: none;
    grid-row: auto;
  }
}
.ticket.featured {
  border-color: var(--velvet);
  box-shadow: 0 0 0 1px var(--velvet), var(--card-shadow);
}
.ticket-header {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-self: start;
}
/* In-flow, not a fixed % down the card — sits right between the header block and the
     feature list regardless of how much each tier's copy/list actually take up, so it never
     cuts across text the way an absolutely-positioned line at a guessed offset would. */
.ticket .perforation {
  align-self: start;
  position: relative;
  height: 0;
  margin: 0 -1.6rem;
  border-top: 2px dashed var(--hairline);
}
.ticket .perforation::before,
.ticket .perforation::after {
  content: '';
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
}
.ticket .perforation::before {
  left: -9px;
}
.ticket .perforation::after {
  right: -9px;
}

.ticket .badge {
  align-self: flex-start;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--velvet);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.ticket .tier {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}
.ticket .price {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.9rem;
  font-variant-numeric: tabular-nums;
}
.ticket .price .period {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
}
.ticket .tagline {
  color: var(--text-dim);
  font-size: 0.92rem;
}
.ticket ul {
  align-self: start;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.ticket li {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
}
.ticket li .check {
  color: var(--marquee);
  font-weight: 700;
}
.ticket.featured li .check {
  color: var(--velvet);
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
  background: var(--ink-2);
}
.credits {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.credits .roll {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.credits .links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
.credits .links a {
  text-decoration: none;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.credits .links a:hover {
  color: var(--marquee);
  border-color: var(--marquee);
}
.credits .fine {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-dim);
  opacity: 0.8;
}
