/* Yami Tara landing page. "Mulberry Night" colours shared with the app (frontend/src/app/globals.css). */
:root {
  --bg: #1c0e16;
  --bg-2: #24131c;
  --card: #321b27;
  --line: #4a2d3c;
  --field: #2c1823;
  --accent: #8e3b5c;
  --accent-strong: #a24a6c;
  --ink: #f3e6ea;
  --muted: #cdb3be;
  --amber: #e3b98f;
  --seen: #53bdeb;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: var(--amber);
  text-underline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 999px;
}
.skip:focus {
  top: 1rem;
}

/* Buttons and forms ------------------------------------------------------------------------ */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: 700 1rem/1 var(--sans);
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  padding: 1rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgb(162 74 108 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.18);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 36px -10px rgb(162 74 108 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.22);
}
.btn:active {
  transform: translateY(0);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.btn-small {
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
}

.waitlist {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  display: grid;
  gap: 0.85rem;
  text-align: left;
}
.field-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem;
  background: rgb(28 14 22 / 0.72);
  border: 1px solid rgb(227 185 143 / 0.28);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s;
}
.field-row:focus-within {
  border-color: rgb(227 185 143 / 0.6);
}
.field-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  padding: 0 1rem;
}
.field-row input::placeholder {
  color: rgb(205 179 190 / 0.6);
}
.field-row input:focus {
  outline: none;
}
.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
  padding-inline: 0.75rem;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.12rem 0 0;
  accent-color: var(--accent-strong);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-msg {
  min-height: 1.3em;
  font-size: 0.95rem;
  padding-inline: 0.75rem;
}
.form-msg.ok {
  color: var(--amber);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}
.form-msg.err {
  color: #f19aa8;
}
.waitlist.done .field-row,
.waitlist.done .check {
  display: none;
}

/* Navigation -------------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(0.9rem, env(safe-area-inset-top)) clamp(1rem, 4vw, 2.5rem) 0.9rem;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgb(28 14 22 / 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgb(227 185 143 / 0.1);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font: 500 1.2rem/1 var(--serif);
  letter-spacing: 0.06em;
}
.mark {
  width: 1.75rem;
  height: 1.75rem;
  fill: var(--amber);
}
.mark .star {
  fill: var(--ink);
}
.nav-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.sound {
  appearance: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgb(227 185 143 / 0.3);
  background: rgb(28 14 22 / 0.5);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.sound:hover {
  border-color: var(--amber);
}
.sound svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sound svg path:first-child {
  fill: currentColor;
  stroke: none;
}
.sound .wave {
  display: none;
}
.sound[aria-pressed="true"] .wave {
  display: block;
}
.sound[aria-pressed="true"] .mute {
  display: none;
}
.sound[aria-pressed="true"] {
  border-color: var(--amber);
  color: var(--amber);
}

/* Hero ------------------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 7rem clamp(1.25rem, 5vw, 3rem) 6rem;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg,
.world-bg,
.final-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img,
.world-bg img,
.final-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg img {
  object-position: 50% 60%;
  animation: drift 40s var(--ease) infinite alternate;
  transform-origin: 50% 70%;
}
@keyframes drift {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.14) translate3d(-1.5%, -1%, 0);
  }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgb(28 14 22 / 0.35), rgb(28 14 22 / 0.7) 70%),
    linear-gradient(180deg, rgb(28 14 22 / 0.55) 0%, rgb(28 14 22 / 0.1) 30%, rgb(28 14 22 / 0.45) 70%, var(--bg) 100%);
}
.stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8, transparent),
    radial-gradient(1px 1px at 28% 8%, #fff9, transparent),
    radial-gradient(1.5px 1.5px at 46% 22%, #ffe6c7aa, transparent),
    radial-gradient(1px 1px at 63% 12%, #fff8, transparent),
    radial-gradient(1.5px 1.5px at 78% 26%, #fff9, transparent),
    radial-gradient(1px 1px at 88% 9%, #ffe6c7aa, transparent),
    radial-gradient(1px 1px at 36% 30%, #fff6, transparent),
    radial-gradient(1px 1px at 70% 34%, #fff6, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
.hero-inner {
  max-width: 46rem;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  scroll-margin-top: 6rem;
}
.eyebrow,
.kicker {
  font: 700 0.75rem/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow {
  padding: 0.55rem 1rem;
  border: 1px solid rgb(227 185 143 / 0.3);
  border-radius: 999px;
  background: rgb(28 14 22 / 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.title {
  font-size: clamp(3.4rem, 13vw, 7.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 0.5rem;
  padding-left: 0.12em; /* balance the trailing letter-spacing */
  background: linear-gradient(180deg, #fff6ef 20%, #f0cfae 70%, #c98d6a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgb(227 185 143 / 0.25);
}
.tagline {
  font: italic 400 clamp(1.3rem, 3.4vw, 1.9rem) / 1.35 var(--serif);
  color: var(--ink);
  text-wrap: balance;
}
.lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  text-wrap: pretty;
}
.micro {
  font-size: 0.8rem;
  color: rgb(205 179 190 / 0.75);
}
.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  translate: -50% 0;
  width: 1.6rem;
  height: 2.6rem;
  border: 1.5px solid rgb(243 230 234 / 0.4);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--amber);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Sections --------------------------------------------------------------------------------- */
.section {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}
.section h2,
.world h2,
.final h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-top: 0.9rem;
}
.section-lede {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: var(--muted);
}
.pillar-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3.2rem;
  text-align: left;
}
.pillar {
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(50 27 39 / 0.9), rgb(36 19 28 / 0.9));
  border: 1px solid rgb(227 185 143 / 0.12);
  box-shadow: 0 30px 60px -40px rgb(0 0 0 / 0.8);
}
.pillar svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1.2rem;
}
.pillar h3 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}
.pillar p {
  color: var(--muted);
}

/* Character cards -------------------------------------------------------------------------- */
.cards {
  list-style: none;
  margin: 3rem calc(-1 * clamp(1.25rem, 5vw, 2.5rem)) 0;
  padding: 0.5rem clamp(1.25rem, 5vw, 2.5rem) 1.5rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 300px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cards::-webkit-scrollbar {
  display: none;
}
.cards li {
  scroll-snap-align: center;
}
.card {
  text-align: left;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5.6;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(227 185 143 / 0.14);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 70px -30px rgb(0 0 0 / 0.95), 0 0 0 1px rgb(227 185 143 / 0.4);
}
.card-imgs,
.card-imgs img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}
.card-imgs img {
  transition: transform 1.2s var(--ease);
}
.card:hover .card-imgs img {
  transform: scale(1.04);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgb(20 9 15 / 0.75) 72%, rgb(20 9 15 / 0.96));
}
.card-text {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  padding: 1.3rem 1.3rem 1.4rem;
}
.card-role {
  font: 700 0.68rem/1.3 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.card-name {
  font: 500 1.9rem/1 var(--serif);
}
.card-line {
  font: italic 400 0.95rem/1.45 var(--serif);
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sample conversation ---------------------------------------------------------------------- */
.talk {
  display: grid;
  gap: 3rem;
  align-items: center;
  text-align: left;
}
.talk-copy p {
  color: var(--muted);
  margin-top: 1.1rem;
  max-width: 30rem;
}
.ticks-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding: 0;
  margin: 1.8rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.ticks-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tick {
  display: inline-block;
  width: 18px;
  height: 11px;
  background: currentColor;
  color: rgb(243 230 234 / 0.7);
  -webkit-mask: var(--m) no-repeat center / contain;
  mask: var(--m) no-repeat center / contain;
}
.tick.one {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 11'%3E%3Cpath d='M1 6l3.5 3.5L12 1.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.tick.two {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 11'%3E%3Cpath d='M1 6l3.5 3.5L12 1.5M7.5 8.5l1 1L16.5 1.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.tick.seen {
  color: var(--seen);
}
.phone {
  justify-self: center;
  width: min(100%, 360px);
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #3a2130, #1a0c14);
  box-shadow: 0 50px 90px -40px rgb(0 0 0 / 0.95), 0 0 0 1px rgb(227 185 143 / 0.18), inset 0 0 0 1px rgb(255 255 255 / 0.04);
}
.phone-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 30px 30px 0 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.phone-head img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.phone-head strong {
  display: block;
  font: 500 1.05rem/1.2 var(--serif);
}
.presence {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.presence::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.presence.typing-now {
  color: var(--amber);
}
.phone-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 25rem;
  padding: 1.1rem 0.9rem 1.3rem;
  border-radius: 0 0 30px 30px;
  background: radial-gradient(ellipse at 50% 0%, #2e1825, var(--bg-2) 70%);
}
.bubble {
  position: relative;
  max-width: 82%;
  padding: 0.6rem 0.85rem 1.25rem;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.45;
}
.bubble.out {
  align-self: flex-end;
  background: var(--accent);
  border-bottom-right-radius: 6px;
}
.bubble.in {
  align-self: flex-start;
  background: #3a2130;
  border-bottom-left-radius: 6px;
}
.bubble .meta {
  position: absolute;
  right: 0.7rem;
  bottom: 0.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.66rem;
  color: rgb(243 230 234 / 0.65);
}
.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  background: #3a2130;
}
.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: dot 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
/* With JavaScript the conversation plays out step by step; without it, it is all shown. */
.js [data-step] {
  display: none;
}
.js [data-step].shown {
  display: block;
  animation: pop 0.4s var(--ease);
}
.js .typing.shown {
  display: inline-flex;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
html:not(.js) .typing {
  display: none;
}

/* The world -------------------------------------------------------------------------------- */
.world,
.final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 85svh;
  padding: 6rem clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}
.world::after,
.final::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgb(28 14 22 / 0.25) 25%, rgb(28 14 22 / 0.35) 70%, var(--bg) 100%);
}
.world-card,
.final-inner {
  max-width: 40rem;
  padding: clamp(2rem, 5vw, 3.2rem);
  border-radius: 28px;
  background: rgb(28 14 22 / 0.62);
  border: 1px solid rgb(227 185 143 / 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.9);
}
.world-card p {
  color: var(--muted);
  margin-top: 1.1rem;
}
.world-card .whisper {
  font: italic 400 1.15rem/1.5 var(--serif);
  color: var(--amber);
  margin-top: 1.5rem;
}

/* Steps, trust, FAQ ------------------------------------------------------------------------ */
.step-list {
  list-style: none;
  padding: 0;
  margin: 3.2rem 0 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
.step-list li {
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgb(227 185 143 / 0.14);
  background: rgb(50 27 39 / 0.45);
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font: 500 1.1rem/1 var(--serif);
  color: var(--amber);
  border: 1px solid rgb(227 185 143 / 0.45);
  margin-bottom: 1.1rem;
}
.step-list h3,
.trust-grid h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.step-list p,
.trust-grid p {
  color: var(--muted);
}
.trust-grid {
  list-style: none;
  padding: 0;
  margin: 3.2rem 0 0;
  display: grid;
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgb(227 185 143 / 0.14);
  border: 1px solid rgb(227 185 143 / 0.14);
  text-align: left;
}
.trust-grid li {
  background: var(--bg);
  padding: 1.8rem;
}
.faq-list {
  max-width: 44rem;
  margin: 3rem auto 0;
  text-align: left;
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0.25rem;
  font: 500 1.2rem/1.35 var(--serif);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 1.5px solid var(--amber);
  border-bottom: 1.5px solid var(--amber);
  rotate: 45deg;
  translate: 0 -0.2rem;
  transition: rotate 0.3s var(--ease), translate 0.3s var(--ease);
}
.faq-list details[open] summary::after {
  rotate: 225deg;
  translate: 0 0.15rem;
}
.faq-list details p {
  color: var(--muted);
  padding: 0 0.25rem 1.4rem;
  max-width: 38rem;
}

/* Final call to action --------------------------------------------------------------------- */
.final-inner p {
  color: var(--muted);
  margin: 0.9rem 0 2rem;
}
.final-inner .waitlist {
  gap: 1rem;
}

/* Footer ----------------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1.25rem, 5vw, 2.5rem) max(3rem, env(safe-area-inset-bottom));
}
.footer-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  gap: 1.4rem;
  justify-items: center;
  text-align: center;
}
.footer nav {
  display: flex;
  gap: 1.8rem;
}
.footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer nav a:hover {
  color: var(--ink);
}
.fine {
  font-size: 0.8rem;
  color: rgb(205 179 190 / 0.65);
}

/* Reveal on scroll (only once JavaScript is running) ---------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Wider screens ---------------------------------------------------------------------------- */
@media (min-width: 760px) {
  .pillar-grid,
  .step-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .talk {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
}
@media (min-width: 1100px) {
  .cards {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .cards li:nth-child(even) {
    margin-top: 2.5rem;
  }
}
@media (max-width: 520px) {
  .field-row {
    flex-direction: column;
    border-radius: 22px;
    padding: 0.5rem;
  }
  .field-row input {
    padding: 0.85rem 0.9rem;
  }
  .nav .btn-small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Legal pages ------------------------------------------------------------------------------ */
.legal {
  max-width: 46rem;
  margin-inline: auto;
  padding: 8rem clamp(1.25rem, 5vw, 2rem) 5rem;
}
.legal h1 {
  font-size: clamp(2.2rem, 6vw, 3rem);
}
.legal .updated {
  color: var(--muted);
  margin: 0.8rem 0 2.5rem;
  font-size: 0.92rem;
}
.legal h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 0.8rem;
}
.legal p,
.legal li {
  color: var(--muted);
}
.legal p + p {
  margin-top: 0.9rem;
}
.legal ul {
  padding-left: 1.2rem;
}
.legal li + li {
  margin-top: 0.4rem;
}
.legal .todo {
  color: var(--amber);
}
.center-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 1.5rem;
}
.center-page h1 {
  font-size: clamp(2.4rem, 8vw, 4rem);
}
.center-page p {
  color: var(--muted);
  margin: 1rem auto 2rem;
  max-width: 28rem;
}

/* Review fixes: roomier court cards on desktop, eyebrow wrapping on phones ------------------ */
@media (min-width: 1100px) {
  .court {
    max-width: 1320px;
  }
  .card {
    aspect-ratio: 3 / 4.6;
  }
  .card::after {
    background: linear-gradient(180deg, transparent 52%, rgb(20 9 15 / 0.8) 74%, rgb(20 9 15 / 0.97));
  }
  .card-text {
    padding: 1rem 1.05rem 1.15rem;
    gap: 0.3rem;
  }
  .card-role {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }
  .card-name {
    font-size: 1.6rem;
  }
  .card-line {
    font-size: 0.86rem;
    -webkit-line-clamp: 4;
  }
}
.eyebrow .sep {
  margin-inline: 0.15em;
}
@media (max-width: 520px) {
  .eyebrow {
    letter-spacing: 0.16em;
    font-size: 0.66rem;
  }
}
.nowrap {
  white-space: nowrap;
}
.legal .tldr {
  margin: 0 0 1rem;
  padding: 1.4rem 1.6rem 1.5rem;
  border: 1px solid rgb(227 185 143 / 0.28);
  border-radius: var(--radius);
  background: rgb(142 59 92 / 0.12);
}
.legal .tldr .kicker {
  margin-bottom: 0.9rem;
}
.legal .tldr li {
  color: var(--ink);
}
.legal h2 + ul,
.legal p + ul {
  margin-top: 0.7rem;
}
.legal ul + p {
  margin-top: 0.9rem;
}

/* The film: a vertical video in the phone frame. */
.film-frame {
  padding: 8px;
}
.film-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 32px;
  background: #000;
  object-fit: cover;
}

/* Section textures ------------------------------------------------------------------------- */
/* A faded, darkened scene still behind each plain section, full-bleed, melting into the page at
   its top and bottom edges. The images are built by tools/build-assets.mjs (tex-*.webp). */
.section.pillars,
.section.film,
.section.court,
.section.talk,
.section.steps,
.section.trust,
.section.faq {
  position: relative;
  isolation: isolate;
}
.section.pillars::before,
.section.film::before,
.section.court::before,
.section.talk::before,
.section.steps::before,
.section.trust::before,
.section.faq::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--tex) center / cover no-repeat;
  opacity: 0.2;
  filter: brightness(0.75) sepia(0.25) hue-rotate(-20deg);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  pointer-events: none;
}
.section.pillars { --tex: url(/img/tex-warden.webp); }
.section.film { --tex: url(/img/tex-city.webp); }
.section.court { --tex: url(/img/tex-hall.webp); }
.section.talk:not(.film) { --tex: url(/img/tex-grove.webp); }
.section.steps { --tex: url(/img/tex-gate.webp); }
.section.trust { --tex: url(/img/tex-forest.webp); }
.section.faq { --tex: url(/img/tex-oasis.webp); }
.section.film::before { opacity: 0.32; }

/* Fine film grain over the whole page, so even the gaps between sections aren't flat. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
