/* Alani Hub microsite. The page is the app's own room: the tokens below are
   the Dawn / Dusk palettes from alani-hub-ios/src/constants/theme.ts, so the
   screenshots sit flush in the environment they were taken in. One accent
   (teal) on the ink foundation, per the Alani Hub brand guide. */

:root {
  --canvas: #f0f1f5;
  --surface: #ffffff;
  --section: #f5f6f8;
  --ink: #252b40;
  --text: #0e101f;
  --text-2: #5a5f6d;
  --text-3: #7d8291;
  --line: #e4e4eb;
  --line-soft: #f3f4f6;
  --teal: #1ba8ad;
  --teal-deep: #0d7377;
  --teal-mid: #14868a;
  --teal-tint: #e6f7f8;
  --on-ink: #ffffff;
  --on-accent: #ffffff;
  --chip: #f7f8ff;
  --shadow: 0 30px 80px -20px rgba(37, 43, 64, 0.28), 0 10px 24px -12px rgba(37, 43, 64, 0.16);
  --shadow-soft: 0 18px 50px -20px rgba(37, 43, 64, 0.18);
  --status: #f0f1f5;
  --glow: rgba(27, 168, 173, 0.22);
  --voice-bg: #252b40;
  --voice-fg: #ffffff;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #141826;
    --surface: #1c2131;
    --section: #222840;
    --ink: #eceef6;
    --text: #f3f4fa;
    --text-2: #aab0c3;
    --text-3: #808799;
    --line: #2e3550;
    --line-soft: #262c42;
    --teal: #22b5ba;
    --teal-deep: #5fd0d4;
    --teal-mid: #3cc0c5;
    --teal-tint: #17343b;
    --on-ink: #141826;
    --on-accent: #0b1a1c;
    --chip: #20263a;
    --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 10px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 18px 50px -20px rgba(0, 0, 0, 0.5);
    --status: #141826;
    --glow: rgba(34, 181, 186, 0.18);
    --voice-bg: #0f1320;
    --voice-fg: #eceef6;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --canvas: #141826;
  --surface: #1c2131;
  --section: #222840;
  --ink: #eceef6;
  --text: #f3f4fa;
  --text-2: #aab0c3;
  --text-3: #808799;
  --line: #2e3550;
  --line-soft: #262c42;
  --teal: #22b5ba;
  --teal-deep: #5fd0d4;
  --teal-mid: #3cc0c5;
  --teal-tint: #17343b;
  --on-ink: #141826;
  --on-accent: #0b1a1c;
  --chip: #20263a;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 10px 24px -12px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 18px 50px -20px rgba(0, 0, 0, 0.5);
  --status: #141826;
  --glow: rgba(34, 181, 186, 0.18);
  --voice-bg: #0f1320;
  --voice-fg: #eceef6;
  color-scheme: dark;
}

/* A short cross-fade when the theme is switched by hand. */
.theming,
.theming * {
  transition: background-color 320ms ease, color 320ms ease, border-color 320ms ease !important;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

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

p {
  margin: 0;
}

.wrap {
  width: min(100% - 40px, 980px);
  margin-inline: auto;
}

.wrap.wide {
  width: min(100% - 40px, 1180px);
}

/* Type -------------------------------------------------------------- */

.display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.022em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1.display {
  font-size: clamp(42px, 6.4vw, 76px);
}

h1.display em,
h2.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--teal-deep);
}

h2.display {
  font-size: clamp(30px, 4vw, 46px);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 14px;
}

.lead {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  color: var(--text-2);
  margin: 18px 0 0;
  max-width: 32em;
  text-wrap: pretty;
}

/* The point of a paragraph in ink, the rest in grey. */
.lead b {
  color: var(--ink);
  font-weight: 500;
}

.voice .lead b {
  color: var(--voice-fg);
}

/* Words arrive one after another; sections rise. */
.words .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(6px);
  transition: opacity 640ms var(--ease), transform 720ms var(--ease), filter 640ms var(--ease);
  transition-delay: calc(var(--i) * 70ms);
}

.words.in .w {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.reveal,
.rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 800ms var(--ease), transform 900ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.in,
.rise.in {
  opacity: 1;
  transform: none;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}

/* A discreet way back to bundleiq.com/alani-hub. */
.back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
  margin-right: 18px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
  line-height: 1;
}

.back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back:hover {
  color: var(--ink);
  text-decoration: none;
}

.top .wrap {
  justify-content: flex-start;
}

.top .top-right {
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  width: 26px;
  height: 26px;
  fill: var(--teal);
}

.brand b {
  color: var(--teal);
  font-weight: 700;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.local {
  display: flex;
  gap: 26px;
  margin-left: auto;
  margin-right: 28px;
}

.local a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.local a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* Theme control: Dawn / Auto / Dusk, the app's own Appearance names. */
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
}

.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background 200ms ease, color 200ms ease;
}

.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.seg button:focus-visible {
  outline-offset: 0;
}

/* Buttons ----------------------------------------------------------- */

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 180ms var(--ease), opacity 180ms ease;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn.small {
  padding: 9px 14px;
  font-size: 14px;
}

.btn.big {
  padding: 16px 26px;
  font-size: 16px;
}

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

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 72px);
  overflow: clip;
}

.glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 90%;
  background:
    radial-gradient(60% 50% at 70% 40%, var(--glow), transparent 70%),
    radial-gradient(40% 40% at 20% 80%, color-mix(in srgb, var(--glow) 60%, transparent), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(-3%, 0, 0) scale(1);
  }

  to {
    transform: translate3d(3%, 4%, 0) scale(1.06);
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-copy .lead {
  margin-top: 20px;
}

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

/* The mark. Its four strokes roll while she thinks (the app's WaveLoader)
   and breathe while she listens. */
.mark path {
  fill: var(--teal);
  transform-box: fill-box;
  transform-origin: center;
}

.mark.thinking path {
  animation: roll 1.1s ease-in-out infinite;
}

.mark.thinking path:nth-child(2),
.mark.breathe path:nth-child(2) {
  animation-delay: 0.12s;
}

.mark.thinking path:nth-child(3),
.mark.breathe path:nth-child(3) {
  animation-delay: 0.24s;
}

.mark.thinking path:nth-child(4),
.mark.breathe path:nth-child(4) {
  animation-delay: 0.36s;
}

@keyframes roll {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-4%);
  }

  50% {
    opacity: 1;
    transform: translateX(4%);
  }
}

/* Early access: one button, which becomes the field. ------------------ */

.cta-row {
  margin-top: 44px;
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.quiet {
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 15px;
}

.hero-phone {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.access {
  max-width: 460px;
}

.access.open button[data-want] {
  display: none;
}

.access form {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  animation: unfold 360ms var(--ease);
}

.access form[hidden] {
  display: none;
}

@keyframes unfold {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
}

.access input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 10px 16px;
  border-radius: 999px;
}

.access input::placeholder {
  color: var(--text-3);
}

.access input:focus-visible {
  outline: none;
}

.access form:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-tint), var(--shadow-soft);
}

.access .btn {
  flex: 0 0 auto;
}

.access .note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-3);
}

.access .note.ok {
  color: var(--teal-deep);
  font-weight: 600;
}

.access .note.err {
  color: #dc2626;
}

/* The thank-you: the mark and two lines in a teal-tinted card, in place of
   the field. It unfolds like the field did, and the mark settles once. */
.access .thanks {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px 18px 18px;
  border-radius: 22px;
  background: var(--teal-tint);
  border: 1px solid transparent;
  text-align: left;
  animation: unfold 420ms var(--ease);
}

.access .thanks[hidden] {
  display: none;
}

.thanks .mark {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-top: 1px;
}

.thanks .mark.settle path {
  animation: settle 1.6s var(--ease) both;
}

.thanks .mark.settle path:nth-child(2) {
  animation-delay: 0.1s;
}

.thanks .mark.settle path:nth-child(3) {
  animation-delay: 0.2s;
}

.thanks .mark.settle path:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes settle {
  0% {
    opacity: 0.35;
    transform: translateX(-6%);
  }

  40% {
    opacity: 1;
    transform: translateX(4%);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.thanks-text {
  min-width: 0;
}

.thanks-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-variation-settings: "opsz" 32, "SOFT" 30;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.thanks-copy {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}

.thanks-copy b {
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.store {
  display: none;
}

.store.on {
  display: flex;
}

.store.on + .access {
  display: none;
}

/* Phones -------------------------------------------------------------- */

/* A phone: a dark bezel around the screen, the screen's own corner radius
   inside it, and the status bar tucked under the top edge. Screenshots are
   640 x 1391 with an 83px status bar. */
.phone {
  position: relative;
  width: 100%;
  padding: 3.6%;
  border-radius: 15.5%/8%;
  border-radius: clamp(28px, 15% * 640 / 1308 * 2, 60px);
  background: #171b28;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.phone.big {
  max-width: 360px;
}

.screen {
  position: relative;
  overflow: hidden;
  border-radius: clamp(20px, 11% * 640 / 1308 * 2, 46px);
  background: var(--status);
  aspect-ratio: 640 / 1308;
  container-type: inline-size;
}

.screen img {
  width: 100%;
  margin-top: -12.97%;
}

/* Clips are captured without the status bar, so they fill the screen as is. */
.screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--status);
}

.phone.stack .screen img,
.phone.stack .screen video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms var(--ease);
}

.phone.stack .screen img.on,
.phone.stack .screen video.on {
  opacity: 1;
}

/* The live phone: the typed line sits on the Home screenshot's composer,
   the HUD drops in under the header, exactly where the app puts them. */

.typed {
  position: absolute;
  left: 6.4%;
  right: 7%;
  top: 75.1%;
  height: 5.4%;
  display: flex;
  align-items: center;
  background: var(--surface);
  color: var(--ink);
  font-size: 3.6cqw;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 200ms ease;
}

.typed.on {
  opacity: 1;
}

.typed .caret {
  display: inline-block;
  width: 0.09em;
  height: 1em;
  background: var(--teal);
  vertical-align: -0.15em;
  margin-left: 0.05em;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.hud {
  position: absolute;
  left: 50%;
  top: 8.6%;
  transform: translate(-50%, -8px);
  width: max-content;
  max-width: 86%;
  display: flex;
  align-items: flex-start;
  gap: 2.4cqw;
  padding: 2.8cqw 4cqw 2.8cqw 3.4cqw;
  border-radius: 5.5cqw;
  background: var(--surface);
  color: var(--ink);
  font-size: 3.6cqw;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 320ms var(--ease), transform 420ms var(--ease);
  pointer-events: none;
}

.hud.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hud .mark {
  width: 4.6cqw;
  height: 4.6cqw;
  flex: 0 0 auto;
  margin-top: 0.1em;
}

.hud-text {
  min-width: 0;
}

.hud .undo {
  color: var(--teal-deep);
  font-weight: 600;
  margin-left: 0.5em;
}

.hud.wait {
  padding-right: 3.2cqw;
}

/* Models: the marks of what's inside, one colour, on surface pills. ------ */

section.models {
  padding-top: clamp(48px, 7vw, 88px);
}

/* The models, named in a sentence with their marks beside them. */
.marks {
  margin: 26px 0 0;
  font-size: 17px;
  line-height: 2;
  color: var(--text-2);
}

.marks .m {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.marks svg {
  width: 19px;
  height: 19px;
  margin-right: 6px;
  vertical-align: -0.22em;
  fill: var(--ink);
}

/* Tour: the phone pins, the screen changes as you read. ---------------- */

.tour {
  padding-top: clamp(40px, 6vw, 80px);
}

.tour-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}

.tour-phone {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-phone .phone {
  max-width: min(340px, 44vh * 640 / 1308 * 2);
}

.step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 600ms var(--ease);
}

.step.active {
  opacity: 1;
}

.step:first-child {
  min-height: 60vh;
}

.step:last-child {
  min-height: 60vh;
}

/* The four verbs: a quiet quartet under the hero. ---------------------- */

section.verbs {
  padding-top: clamp(28px, 4vw, 56px);
}

.quartet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.quartet > div {
  padding: 26px 22px 6px 0;
}

.quartet h3 {
  margin: 0 0 6px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.quartet p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
  text-wrap: pretty;
}

/* Editorial spreads: the headline on the left, the substance on the
   right, a hairline above. The three quiet sections share this so the
   page has a rhythm instead of the same block six times. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 64px;
  align-items: start;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.split .lead {
  margin-top: 6px;
}

.split .lead + .lead {
  margin-top: 18px;
}

.split .display {
  max-width: 11em;
}

/* Rules: ruled rows, the promise on the left and what it means beside it. */
.rules {
  margin-top: 6px;
}

.rules > div {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 8px 28px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
}

.rules > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.rules h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

.rules p {
  margin: 2px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Who it's for: a line of type, not tags. */
.chips {
  margin-top: 28px;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 40, "SOFT" 60;
  font-size: 19px;
  line-height: 1.6;
  color: var(--teal-deep);
  text-wrap: pretty;
}

.chips span + span::before {
  content: "·";
  margin: 0 0.5em;
  color: var(--text-3);
}

/* People and places: the map, with the cards over its edges. -------- */
.mapboard {
  position: relative;
  margin-top: clamp(36px, 5vw, 56px);
}

.map {
  height: clamp(420px, 52vw, 640px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.map:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px 18px;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}

.card h3 {
  margin: 4px 0 2px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}

.card p {
  margin: 8px 0 0;
}

.card-kicker {
  margin: 0 !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.card .stamp {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-3);
}

.card .said {
  margin-top: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 40, "SOFT" 60;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ink);
}

.spots {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.spots li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spots b,
.who b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
}

.spots small,
.who small {
  display: block;
  font-size: 12.5px;
  color: var(--text-3);
}

.spot-glyph {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--teal-tint);
  display: grid;
  place-items: center;
}

.spot-glyph svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.initials {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}

@media (min-width: 901px) {
  .card {
    position: absolute;
    z-index: 2;
    width: 300px;
  }

  .card-note {
    top: 28px;
    left: 28px;
  }

  .card-person {
    left: 28px;
    bottom: 28px;
  }

  .card-nearby {
    top: 28px;
    right: 28px;
  }
}

@media (max-width: 900px) {
  .mapboard {
    display: grid;
    gap: 14px;
  }

  .map {
    height: clamp(360px, 90vw, 460px);
    border-radius: 22px;
  }
}

/* The facts under the map: three short lines. */
.facts {
  list-style: none;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}

.facts li {
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}

.facts b {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 720px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .facts li {
    padding: 14px 0 16px;
  }
}

/* Pins. Notes are teal drops with a page on them; nearby spots are small
   white cups, like the app; you are the pulsing dot. */
.pin-wrap {
  width: 0;
  height: 0;
  display: grid;
  place-items: center;
}

.pin {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 4px 8px rgba(20, 24, 38, 0.28));
  cursor: pointer;
}

.pin svg {
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pin-note {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  margin-bottom: 6px;
}

.pin-note svg {
  width: 17px;
  height: 17px;
  stroke: #fff;
  transform: rotate(45deg);
}

.pin-cafe {
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
  border: 1.5px solid rgba(20, 24, 38, 0.12);
}

.pin-cafe svg {
  width: 15px;
  height: 15px;
  stroke: var(--teal-deep);
}

.here {
  width: 0;
  height: 0;
  display: grid;
  place-items: center;
}

.here span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1b7bf5;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(27, 123, 245, 0.35), 0 2px 6px rgba(0, 0, 0, 0.3);
  position: relative;
}

.here span::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(27, 123, 245, 0.55);
  animation: here 2.4s ease-out infinite;
}

@keyframes here {
  from {
    transform: scale(1);
    opacity: 0.9;
  }

  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* MapLibre chrome, in the page's own finish. */
.maplibregl-map {
  font-family: inherit;
}

.maplibregl-popup-content {
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-2);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.4;
}

.maplibregl-popup-content b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.maplibregl-popup-content span {
  display: block;
  color: var(--text-3);
  font-size: 12.5px;
  margin-top: 2px;
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: var(--surface);
}

.maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom-color: var(--surface);
}

.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: var(--surface);
}

.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: var(--surface);
}

.maplibregl-ctrl-group {
  background: var(--surface) !important;
  border: 1px solid var(--line);
  border-radius: 12px !important;
  box-shadow: var(--shadow-soft) !important;
  overflow: hidden;
}

.maplibregl-ctrl-group button {
  background-color: transparent !important;
}

.maplibregl-ctrl-group button + button {
  border-top: 1px solid var(--line) !important;
}

:root[data-theme="dark"] .maplibregl-ctrl-group button .maplibregl-ctrl-icon {
  filter: invert(1);
}

.maplibregl-ctrl-attrib {
  background: color-mix(in srgb, var(--surface) 82%, transparent) !important;
  color: var(--text-3) !important;
  font-size: 10px !important;
  border-top-left-radius: 8px;
}

.maplibregl-ctrl-attrib a {
  color: var(--text-2) !important;
}

.maplibregl-cooperative-gesture-screen {
  border-radius: 28px;
  font-size: 14px;
}

/* Voice: the band inverts (ink foundation), like the app's own chrome. */

.voice {
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--voice-bg);
  color: var(--voice-fg);
  text-align: center;
}

.voice .display {
  color: var(--voice-fg);
}

.voice .lead {
  color: color-mix(in srgb, var(--voice-fg) 72%, transparent);
  margin-inline: auto;
}

.listen {
  position: relative;
  margin: 0 auto 6px;
}

/* The mark and its ripples: the app's 300pt stage, scaled. Rings are 84 of
   300, the logo 72 of 300, both centred; the JS drives scale and opacity. */
.alani-mark {
  position: relative;
  width: clamp(240px, 32vw, 320px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.ripple {
  position: absolute;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  border: 1.25px solid var(--teal);
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

.alani-mark .logo {
  width: 24%;
  height: 24%;
  opacity: 0.4;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 24px var(--glow));
}

.state {
  height: 20px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  transition: opacity 300ms ease;
}

.state:empty {
  opacity: 0;
}

.phrases {
  max-width: 40em;
  margin: 36px auto 0;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 40, "SOFT" 60;
  font-size: 19px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--voice-fg) 78%, transparent);
  text-wrap: balance;
}

.phrases span + span::before {
  content: "·";
  margin: 0 0.5em;
  color: color-mix(in srgb, var(--voice-fg) 40%, transparent);
}

/* Native rails: a bento of the Apple features she runs on. --------------- */

section.native {
  padding-top: clamp(56px, 9vw, 120px);
}

.native > .wrap {
  text-align: center;
}

.native .lead {
  margin-inline: auto;
}

/* Built in: ten cells on the ground, ruled above, five to a row. */
.bento {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 52px;
  text-align: left;
}

.tile {
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 800ms var(--ease);
}

.tile.in {
  opacity: 1;
  transform: none;
}

.tile .glyph {
  display: block;
  height: 24px;
  margin-bottom: 14px;
}

.tile svg {
  width: 24px;
  height: 24px;
  stroke: var(--teal-deep);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

.tile p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
  text-wrap: pretty;
}

.tile:nth-child(2) { transition-delay: 60ms; }
.tile:nth-child(3) { transition-delay: 120ms; }
.tile:nth-child(4) { transition-delay: 180ms; }
.tile:nth-child(5) { transition-delay: 60ms; }
.tile:nth-child(6) { transition-delay: 120ms; }
.tile:nth-child(7) { transition-delay: 180ms; }
.tile:nth-child(8) { transition-delay: 240ms; }
.tile:nth-child(9) { transition-delay: 60ms; }
.tile:nth-child(10) { transition-delay: 120ms; }
.tile:nth-child(11) { transition-delay: 180ms; }
.tile:nth-child(12) { transition-delay: 240ms; }

/* Sections ----------------------------------------------------------- */

section {
  padding-top: clamp(56px, 9vw, 120px);
}

/* Who: her letter, centred on its own ground, the mark above it. */
section.who {
  margin-top: clamp(56px, 9vw, 120px);
  padding-block: clamp(56px, 8vw, 104px);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.who .wrap > * {
  margin-inline: auto;
}

.who-mark {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
}

.who .quote {
  margin-top: 24px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 40, "SOFT" 30;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
  max-width: 26em;
}

.origin {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}

.origin p:not(.eyebrow) {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 40, "SOFT" 60;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}

/* Grouped list: the app's interior idiom. Surface on canvas, hairlines
   only between rows, no outside border, no chevrons. */
.rows {
  margin-top: 32px;
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  padding: 20px 26px;
  border-top: 1px solid var(--line-soft);
}

.row:first-child {
  border-top: 0;
}

.row .k {
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 17px;
}

.row .v {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
}

.row .v q {
  quotes: "\201C" "\201D";
}

/* Closing CTA ---------------------------------------------------------- */

.cta {
  text-align: center;
}

.cta .lead,
.cta .access {
  margin-inline: auto;
}

.cta .access,
.cta .store {
  margin-top: 40px;
  justify-content: center;
}

.cta-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
}

.cta-mark use,
.cta-mark {
  fill: var(--teal);
}

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

footer {
  margin-top: clamp(56px, 9vw, 120px);
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
}

footer a {
  color: var(--text-2);
}

footer .legal {
  flex-basis: 100%;
}

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

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

  .words .w,
  .reveal,
  .rise,
  .tile {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .caret,
  .mark.thinking path,
  .mark.breathe path,
  .glow,
  .access form,
  .access .thanks,
  .thanks .mark.settle path,
  .here span::after {
    animation: none;
  }

  .reply-text,
  .verb,
  .phone.stack img,
  .step {
    transition: none;
  }
}

/* Tablet ------------------------------------------------------------- */

@media (max-width: 1024px) {
  .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
}

/* Narrow ------------------------------------------------------------- */

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .top .wrap {
    height: 60px;
  }

  .top .btn,
  .local,
  .devices {
    display: none;
  }

  .back {
    margin-right: 12px;
    padding-right: 12px;
  }

  .back span {
    display: none;
  }

  .quartet {
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }

  .quartet > div {
    padding: 20px 0 8px;
  }

  .quartet h3 {
    font-size: 21px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 32px;
  }

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

  .pane .phone {
    width: min(100%, 280px);
  }

  .split .lead {
    margin-top: 0;
  }

  .rules {
    margin-top: 0;
  }

  .rules > div:first-child {
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }

  .split .display {
    max-width: none;
  }

  .rules > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .chips {
    font-size: 17px;
  }

  .cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .btn-row {
    flex-direction: column;
    gap: 14px;
  }

  .access .note {
    text-align: center;
  }

  .top .wrap {
    gap: 8px;
  }

  .brand {
    font-size: 17px;
    gap: 8px;
    white-space: nowrap;
  }

  .brand svg {
    width: 22px;
    height: 22px;
  }

  .seg {
    padding: 2px;
  }

  .seg button {
    padding: 10px 8px;
    font-size: 13px;
  }

  .back {
    min-height: 44px;
    align-items: center;
    margin-right: 8px;
    padding-right: 8px;
  }

  .quiet {
    padding: 10px 6px;
  }

  footer a {
    display: inline-block;
    padding: 8px 0;
  }

  .hero {
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy .lead,
  .access {
    margin-inline: auto;
  }

  .hero-phone .phone {
    max-width: 300px;
  }

  .access form {
    width: 100%;
  }

  /* One column: block, not grid, so the sticky phone's containing block is
     the whole tour and it stays pinned through every step. */
  .tour-grid {
    display: block;
  }

  /* No mask here: WebKit will not paint a video inside a masked element.
     The fade at the bottom is a gradient laid over the edge instead. */
  .tour-phone {
    top: 60px;
    height: auto;
    padding: 14px 0 22px;
    z-index: 5;
    background: var(--canvas);
  }

  .tour-phone::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -28px;
    height: 28px;
    background: linear-gradient(var(--canvas), transparent);
    pointer-events: none;
  }

  .tour-phone .phone {
    max-width: 164px;
  }

  .step {
    min-height: 0;
    padding: 40px 0;
    text-align: center;
  }

  .step .lead {
    margin-inline: auto;
  }

  .step:first-child,
  .step:last-child {
    min-height: 0;
  }

  /* The things you can say, one per line. */
  .phrases span {
    display: block;
  }

  .phrases span + span::before {
    content: none;
  }

  /* The closing line breaks where the thought does. */
  .cta .display em {
    display: block;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 20px;
  }

  .tile {
    padding: 18px 0 24px;
  }

  footer .wrap {
    justify-content: flex-start;
  }
}

/* Small phones ------------------------------------------------------ */

@media (max-width: 360px) {
  .wrap {
    width: min(100% - 28px, 980px);
  }

  .seg button {
    padding: 9px 6px;
    font-size: 12px;
  }

  .brand {
    font-size: 16px;
  }

  .back {
    margin-right: 6px;
    padding-right: 6px;
  }
}
