/* Landing page styles. Scoped to index.html — the inner pages still use styles.css. */

@font-face {
  font-family: "Inter Local";
  src: url("assets/fonts/inter-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #1a1a1a;
  --panel: #1b1b1b;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.7);
  --faint: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.1);
  --lime: #d9ff42;
  --lime-hover: #eaffa0;
  --max: 1440px;
  --gutter: 20px;
  --font: "Inter Local", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: var(--lime);
  text-decoration: none;
}

a:hover {
  color: var(--lime-hover);
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

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

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
  background: rgba(26, 26, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  width: 144px;
  height: 26px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.primary-nav a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  height: 32px;
  padding: 0 11px;
  border-radius: 5px;
  background: var(--lime);
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--lime-hover);
  color: #1a1a1a;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-toggle span[aria-hidden] {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.menu-open .menu-toggle span[aria-hidden]:nth-child(2) {
  transform: translateY(5.5px) rotate(45deg);
}

body.menu-open .menu-toggle span[aria-hidden]:nth-child(3) {
  opacity: 0;
}

body.menu-open .menu-toggle span[aria-hidden]:nth-child(4) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 49;
  flex-direction: column;
  gap: 4px;
  padding: 16px var(--gutter) 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

body.menu-open .mobile-menu {
  display: flex;
}

.mobile-menu a {
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-menu a:hover {
  color: #fff;
}

/* ---------- Store badges ---------- */

.store-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-row a {
  display: block;
  flex: none;
}

.store-row img {
  height: 52px;
  width: auto;
}

/* Google Play's badge ships without the light keyline the App Store badge has,
   so it gets one here to keep the pair optically equal. */
.play-badge {
  display: block;
  border: 1px solid #fff;
  border-radius: 9px;
  background: #000;
  overflow: hidden;
  line-height: 0;
}

.play-badge img {
  height: 50px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  margin-top: 24px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 660px;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(26, 26, 26, 0.85) 42%,
    rgba(26, 26, 26, 0.35) 100%
  );
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  padding: 72px 56px;
}

.hero-copy {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 23px;
  white-space: nowrap;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid rgba(217, 255, 66, 0.45);
  color: var(--lime);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 26px;
}

.hero-badge span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  font-size: 68px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 24px;
  font-size: 22px;
  line-height: 32px;
  letter-spacing: -0.012em;
  color: rgba(255, 255, 255, 0.75);
  max-width: 530px;
  text-wrap: pretty;
}

.hero .store-row {
  margin-top: 36px;
}

.hero-note {
  margin-top: 20px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.hero-phone {
  display: flex;
  justify-content: center;
}

.phone-shell {
  position: relative;
  width: 300px;
  height: 650px;
  border-radius: 44px;
  background: #fff;
  border: 9px solid #262626;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.phone-shell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Who it's for ---------- */

.audience {
  padding-top: 210px;
}

.audience-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.audience-head h2 {
  font-size: 44px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.trades {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 640px;
  justify-content: flex-end;
}

.trades li {
  height: 28px;
  white-space: nowrap;
  padding: 0 12px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.trades li:last-child {
  background: rgba(217, 255, 66, 0.1);
  border-color: rgba(217, 255, 66, 0.4);
  color: var(--lime);
}

.marquee {
  position: relative;
  margin: 0 calc(var(--gutter) * -1);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee 130s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track li {
  width: 260px;
  height: 240px;
  flex: none;
  border-radius: 16px;
  overflow: hidden;
}

.marquee-track li.is-wide {
  width: 340px;
}

.marquee-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Stacking panels ---------- */

/* Each panel sticks to the top so the next one slides over it like a dealt card.
   home.js cross-fades them; without JS they simply stack. */
.panel {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -34px 70px rgba(0, 0, 0, 0.55);
  padding: 110px var(--gutter) 130px;
  margin: 0 calc(var(--gutter) * -1);
}

/* #flow and #memory stay in normal flow so they never overlap each other.
   The dealt-card stacking begins at #proof. */
#flow,
#memory {
  position: static;
  border-top: 0;
  border-radius: 0;
  box-shadow: none;
}

#proof {
  z-index: 13;
}

#included {
  z-index: 14;
}

#download {
  z-index: 15;
}

/* ---------- How it works ---------- */

.flow-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

.flow-copy h2 {
  font-size: 44px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.flow-lede {
  font-size: 20px;
  line-height: 31px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
}

.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 20px;
  align-items: start;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  opacity: 0.42;
  transition: opacity 0.35s ease;
}

.step[aria-selected="true"] {
  opacity: 1;
}

.step-rail {
  position: relative;
  width: 2px;
  height: 100%;
  min-height: 52px;
  margin-left: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1px;
}

.step[aria-selected="true"] .step-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  border-radius: 1px;
}

.step-num {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.step-title {
  display: block;
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
}

.step-desc {
  display: none;
  margin-top: 8px;
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.68);
  max-width: 420px;
}

.step[aria-selected="true"] .step-desc {
  display: block;
}

.flow-phone {
  position: sticky;
  top: 100px;
  display: flex;
  align-items: center;
  min-height: 100%;
}

/* The screens are whole-device renders with their own bezel on transparency,
   so the frame here is just a box to stack them in — no chrome of its own, and
   a drop-shadow that follows the phone's silhouette rather than the box. */
.flow-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 1955;
}

.flow-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.flow-screen [role="tabpanel"][hidden] {
  display: none;
}

/* ---------- Remembering by AI ---------- */

#memory {
  text-align: center;
}

#memory h2 {
  margin: 0 auto;
  max-width: 820px;
  font-size: 52px;
  line-height: 60px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

#memory .panel-lede {
  margin: 20px auto 0;
  max-width: 520px;
  font-size: 20px;
  line-height: 31px;
  color: var(--muted);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 56px;
}

.memory-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 44px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: border-color 0.25s ease;
}

.memory-card:hover {
  border-color: rgba(217, 255, 66, 0.35);
}

.memory-card h3 {
  font-size: 27px;
  line-height: 34px;
  font-weight: 700;
}

.memory-card p {
  font-size: 18px;
  line-height: 27px;
  color: var(--muted);
  max-width: 240px;
}

/* ---------- Outcome + review ---------- */

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.proof-copy h2 {
  font-size: 52px;
  line-height: 60px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.proof-copy p {
  margin-top: 20px;
  font-size: 20px;
  line-height: 31px;
  color: var(--muted);
  max-width: 440px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stars {
  display: flex;
  gap: 3px;
}

.rating span {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.62);
}

.review {
  border-radius: 24px;
  background: #fff;
  color: #1a1a1a;
  padding: 44px 40px;
}

.review .stars {
  margin-bottom: 24px;
}

.review blockquote {
  margin: 0;
  font-size: 28px;
  line-height: 40px;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e6e6e6;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f0f0f0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.review-who {
  flex: 1;
  min-width: 0;
}

.review-name {
  font-size: 17px;
  font-weight: 600;
}

.review-role {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.55);
}

.review-tag {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 6px 12px;
  flex: none;
}

/* ---------- One app ---------- */

.included-panel {
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: center;
}

.included-panel h2 {
  font-size: 44px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.included-panel > div > p {
  margin-top: 20px;
  font-size: 20px;
  line-height: 31px;
  color: var(--muted);
  max-width: 460px;
}

.included-list {
  margin-top: 32px;
}

.included-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
}

.included-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.included-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(217, 255, 66, 0.1);
  border: 1px solid rgba(217, 255, 66, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.included-list h3 {
  font-size: 23px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.included-list p {
  margin-top: 5px;
  font-size: 17px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.62);
}

.included-media {
  display: flex;
  justify-content: center;
}

.included-media img {
  width: 100%;
  /* The width/height attributes land as presentational hints, so height has to
     be released explicitly or it wins over aspect-ratio. */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 42% center;
  border-radius: 24px;
}

/* ---------- Download ---------- */

.download-card {
  border-radius: 24px;
  background: var(--lime);
  color: #1a1a1a;
  padding: 80px 56px;
  text-align: center;
}

.download-card h2 {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.download-card p {
  margin-top: 18px;
  font-size: 20px;
  line-height: 31px;
  color: rgba(0, 0, 0, 0.7);
}

.download-card .store-row {
  justify-content: center;
  margin-top: 36px;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 16;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 48px 0 56px;
  margin-top: 64px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-mark,
.footer-by {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-by {
  gap: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.45);
}

.footer-by strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--faint);
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

/* ---------- Motion ---------- */

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-badge span {
    animation: none;
    opacity: 1;
  }

  /* No auto-scroll: the strip becomes a plain row the reader drags themselves. */
  .marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .marquee-track {
    animation: none;
  }

  .step {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1150px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 32px;
    gap: 36px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .flow-grid,
  .included-panel {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .included-panel {
    padding: 44px 32px;
  }

  .flow-phone {
    position: static;
    min-height: 0;
  }

  .flow-screen {
    max-width: 320px;
    margin: 0 auto;
  }

  /* Moved in among the steps by home.js: the screen takes over the divider
     from the step above it so the pair reads as one block. */
  .steps > .flow-phone {
    padding: 8px 0 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .steps > .step[aria-selected="true"] {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .audience-head h2,
  .flow-copy h2,
  .included-panel h2 {
    font-size: 36px;
    line-height: 44px;
  }

  #memory h2,
  .proof-copy h2 {
    font-size: 38px;
    line-height: 46px;
  }

  .download-card h2 {
    font-size: 42px;
    line-height: 50px;
  }

  .included-media img {
    max-width: 420px;
    margin: 0 auto;
  }

  .memory-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 860px) {
  .primary-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    padding: 40px 20px;
    gap: 32px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .phone-shell {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 300 / 650;
  }

  .audience {
    padding-top: 96px;
  }

  .trades {
    justify-content: flex-start;
  }

  /* The stacking effect needs viewport-height panels to read; below this the
     panels are taller than the screen, so they run as ordinary sections. */
  .panel {
    position: static;
    opacity: 1 !important;
    padding: 72px 20px;
    box-shadow: none;
    border-radius: 0;
  }

  .audience-head h2,
  .flow-copy h2,
  .included-panel h2,
  #memory h2,
  .proof-copy h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .download-card {
    padding: 48px 22px;
  }

  .download-card h2 {
    font-size: 34px;
    line-height: 42px;
  }

  .included-panel {
    padding: 32px 22px;
    gap: 32px;
  }

  .review {
    padding: 32px 24px;
  }

  .review blockquote {
    font-size: 22px;
    line-height: 33px;
  }

  /* The review badge can't shrink, so let it drop to its own line instead of
     pushing the card past the viewport. */
  .review figcaption {
    flex-wrap: wrap;
  }

  .review-who {
    flex: 1 1 140px;
  }

  .marquee-track li,
  .marquee-track li.is-wide {
    width: 220px;
    height: 190px;
  }

  .included-media img {
    max-width: 360px;
  }

  .flow-screen {
    max-width: 280px;
  }

  p {
    text-wrap: pretty;
  }
}
