/* Landing page only (index.html). The legal pages keep style.css. Colours match the app's theme tokens. */
:root {
  color-scheme: light dark;
  --bg: #f1eefb;
  --surface: #ffffff;
  --ink: #20202a;
  --muted: #5f5f6b;
  --primary: #6c5ce7;
  --primary-dark: #5145cd;
  --lip: #d8d3ee;
  --yellow: #ffca3a;
  --yellow-lip: #e0a818;
  --green: #35b779;
  --green-lip: #23945e;
  --coral: #ff7a59;
  --tint-purple: #eae7ff;
  --tint-yellow: #fff4cc;
  --tint-green: #ddf7ea;
  --tint-coral: #ffe3da;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15151c;
    --surface: #1e1e28;
    --ink: #ececf3;
    --muted: #b0b0be;
    --lip: #0e0e14;
    --tint-purple: #2c2850;
    --tint-yellow: #3a3220;
    --tint-green: #1d3a2d;
    --tint-coral: #3d2620;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.6 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-wrap: break-word;
}

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

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-left));
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(140deg, #8a7bf5 0%, #6c5ce7 45%, #4a36c4 100%);
  padding: 1rem 0 3.5rem;
}

.top {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.5rem;
  font-weight: 800;
  font-size: 1.125rem;
}
.top img { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; }

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

/* Each word wraps as a unit, never mid-word. */
.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.875rem;
  margin: 0 0 1.25rem;
}
.tiles .word { display: flex; gap: 0.375rem; }
.tiles .word span {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.125rem;
  border-bottom: 4px solid #c9c2f5;
  animation: bob 4s ease-in-out infinite;
}
.tiles .word span:nth-child(2n) { animation-delay: -1s; }
.tiles .word span:nth-child(3n) { animation-delay: -2s; }
.tiles .word .y { background: var(--yellow); color: #20202a; border-bottom-color: var(--yellow-lip); }
.tiles .word .g { background: var(--green); color: #fff; border-bottom-color: var(--green-lip); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .tiles .word span { animation: none; }
  html { scroll-behavior: auto; }
}

.hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 1rem;
}
.hero p.sub {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  color: #ece9ff;
  max-width: 32rem;
  margin: 0 0 1.75rem;
}

/* Chunky "lip" button, like the app's buttons. */
.play {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  border-bottom: 5px solid #c9c2f5;
  transition: transform 0.08s ease, border-bottom-width 0.08s ease;
}
.play:hover { transform: translateY(-1px); }
.play:active { transform: translateY(3px); border-bottom-width: 2px; }
.play svg { flex: none; }
.play.dark { background: var(--primary); color: #fff; border-bottom-color: var(--primary-dark); }

.fine {
  margin: 0.875rem 0 0;
  font-size: 0.875rem;
  color: #d9d4ff;
  font-weight: 600;
}

.hero-shot {
  justify-self: center;
  width: min(15rem, 70vw);
  transform: rotate(3deg);
}
.hero-shot img {
  border-radius: 1.75rem;
  box-shadow: 0 30px 60px -20px rgba(20, 10, 80, 0.55);
}

@media (min-width: 56rem) {
  .hero { padding-bottom: 5rem; }
  .hero-inner { grid-template-columns: 1.2fr 1fr; margin-top: 2.5rem; }
  .hero-shot { width: 19rem; }
}

/* ------------------------------------------------------------- sections */
section { padding: 4rem 0 0; }

h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 0.5rem;
}
.lede { color: var(--muted); margin: 0 0 2rem; max-width: 36rem; font-size: 1.0625rem; }

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 1.25rem;
  border-bottom: 5px solid var(--lip);
}
.card h3 { margin: 0.875rem 0 0.25rem; font-size: 1.1875rem; font-weight: 800; }
.card p { margin: 0; color: var(--muted); }
.badge {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
}
.badge.purple { background: var(--tint-purple); color: var(--primary); }
.badge.yellow { background: var(--tint-yellow); color: #b78400; }
.badge.coral { background: var(--tint-coral); color: var(--coral); }
.badge.green { background: var(--tint-green); color: var(--green); }

/* Swipeable screenshot strip. */
.shots {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0.5rem 0 1.25rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.shots li { flex: 0 0 auto; width: min(14.5rem, 62vw); scroll-snap-align: start; }
.shots img { border-radius: 1.25rem; border-bottom: 5px solid var(--lip); }

.cta-band {
  margin: 4rem 0 0;
  padding: 2.5rem 1.5rem;
  border-radius: 1.75rem;
  text-align: center;
  background: var(--surface);
  border-bottom: 6px solid var(--lip);
}
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { color: var(--muted); margin: 0 0 1.5rem; }

footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--lip);
  color: var(--muted);
  font-size: 0.9375rem;
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--primary);
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}
@media (prefers-color-scheme: dark) {
  footer a { color: #b3aafa; }
}
