:root {
  --cream: #f1ece5;
  --ink: #261f1f;
  --ink-90: rgb(38 31 31 / 0.9);
  --ink-80: rgb(38 31 31 / 0.8);
  --ink-60: rgb(38 31 31 / 0.6);
  --navy: #21203e;
  --navy-deep: #1c1a33;
  --coral: #d76b54;
  --coral-pressed: #c85f49;
  --lilac: #a59fd2;
  --lilac-deep: #827da8;

  --font-display: "Marcellus", "Iowan Old Style", Georgia, serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;

  --text-body: clamp(1.0625rem, 0.96rem + 0.32vw, 1.25rem);
  --text-h1: clamp(2.75rem, 1.7rem + 2.9vw, 4.125rem);
  --text-h2: clamp(2rem, 1.45rem + 1.5vw, 2.625rem);

  --content: 1294px;
  --gutter: max(1.5rem, (100% - var(--content)) / 2);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  interpolate-size: allow-keywords;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Locking scroll for the app dialog must not shift the page sideways. */
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: rgb(215 107 84 / 0.24);
}

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

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

@media (max-width: 480px) {
  p,
  li {
    hyphens: auto;
    hyphenate-limit-chars: 12 5 5;
  }
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 500 15px/1.4 var(--font-ui);
  text-decoration: none;
  translate: 0 -200%;
}

.skip-link:focus-visible {
  translate: 0 0;
}

/* Sprite crops: the image is scaled and offset inside a fixed-ratio window. */
.crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio);
}

.crop > img {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  width: var(--cw);
  height: var(--ch);
  max-width: none;
  pointer-events: none;
  user-select: none;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 8px 24px;
  border: 0;
  border-radius: 60px;
  font: 500 16px/1.4 var(--font-ui);
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.button:active {
  transform: scale(0.97);
}

.button-primary {
  background: var(--coral);
  color: #fff;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.18) inset,
    0 1px 2px rgb(117 46 31 / 0.18),
    0 8px 20px -10px rgb(215 107 84 / 0.7);
}

.button-arrow {
  width: 12px;
  height: auto;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .button-primary:hover {
    background: var(--coral-pressed);
  }

  .button-primary:hover .button-arrow {
    transform: translateX(3px);
  }
}

.button-glass {
  height: 48px;
  background: rgb(255 255 255 / 0.5);
  color: #fff;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

@media (hover: hover) and (pointer: fine) {
  .button-glass:hover {
    background: rgb(255 255 255 / 0.58);
  }
}

/* App CTA + store badges */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-badge {
  display: none;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 24px 0 18px;
  border-radius: 60px;
  background: #0f0d0d;
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.14),
    0 8px 20px -12px rgb(0 0 0 / 0.6);
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease;
}

.store-badge:active {
  transform: scale(0.97);
}

.store-badge svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.store-ios svg,
.app-dialog-stores .store-badge:first-child svg {
  margin-top: -3px;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  font: 500 17px/1.05 var(--font-ui);
  letter-spacing: -0.01em;
  text-align: left;
  white-space: nowrap;
}

.store-badge small {
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.78;
}

:root[data-platform="ios"] .store-ios,
:root[data-platform="android"] .store-android,
.app-dialog-stores .store-badge {
  display: inline-flex;
}

@media (hover: hover) and (pointer: fine) {
  .store-badge:hover {
    background: #2a2626;
  }
}

/* Hero */
.hero {
  display: grid;
  --stage-w: min(854px, 52vw);
  /* The phone frame ends 16.3% of the stage width before the stage edge; the hand may bleed past. */
  grid-template-columns: minmax(0, 1fr) var(--stage-w);
  padding-left: var(--gutter);
  padding-right: max(0px, var(--gutter) - var(--stage-w) * 0.163);
  overflow-x: clip;
  position: relative;
  background: #e4dcd1;
}

/* Geborgen: the hero is a sheltered room set into the page, open towards the night below.
   No z-index: a stacking context would trap the floating cards under .night. */
.hero::before {
  content: "";
  position: absolute;
  inset: clamp(8px, 1.2vw, 20px) clamp(8px, 1.2vw, 20px) 0;
  border-radius: clamp(20px, 2.4vw, 40px) clamp(20px, 2.4vw, 40px) 0 0;
  background: #f5f1eb;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(2.5rem, 8.3vw, 137px) 2rem 4rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 24px/1.15 var(--font-display);
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 24px;
}

.hero h1 {
  max-width: 486px;
  margin-top: clamp(2.25rem, 3.8vw, 63px);
  font-size: var(--text-h1);
}

.hero-text {
  max-width: 538px;
  margin-top: 20px;
  color: var(--ink-80);
}

.hero-text p + p {
  margin-top: 1.5em;
}

.heart {
  position: relative;
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-left: 0.1em;
  vertical-align: -0.14em;
  transform-origin: 50% 70%;
}

/* Pearl white with a hairline edge, like the 🤍 it replaces, but visible on the light background. */
.heart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: url(#heart-fill);
  stroke: rgb(120 108 100 / 0.45);
  stroke-width: 0.7;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1.5px rgb(80 60 50 / 0.16));
}

.heart-main {
  transform-origin: 50% 60%;
}

/* Two small hearts that rise and fade with each heartbeat. */
.heart-float {
  position: absolute;
  inset: 0;
  opacity: 0;
  scale: 0.5;
  pointer-events: none;
}

/* Played via .is-beating (main.js), so it always finishes even when the cursor leaves. */
.heart.is-beating .heart-main {
  animation: heartbeat 1100ms var(--ease-out);
}

.heart.is-beating .heart-float {
  animation: float-heart 1500ms var(--ease-out) 120ms;
}

.heart.is-beating .heart-float + .heart-float {
  --dx: 0.55em;
  --turn: 16deg;
  animation-delay: 380ms;
}

@keyframes heartbeat {
  0%,
  100% {
    scale: 1;
  }

  14% {
    scale: 1.24;
  }

  28% {
    scale: 0.98;
  }

  42% {
    scale: 1.16;
  }

  70% {
    scale: 1;
  }
}

@keyframes float-heart {
  0% {
    opacity: 0;
    scale: 0.4;
    translate: 0 0;
    rotate: 0deg;
  }

  20% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    scale: 0.55;
    translate: var(--dx, -0.35em) -1.6em;
    rotate: var(--turn, -14deg);
  }
}

.hero .cta-row {
  margin-top: clamp(2.5rem, 5vw, 84px);
}

.hero-visual {
  position: relative;
  /* Offset instead of transform: a transform would trap the floating cards' z-index under .night. */
  left: max(0px, var(--stage-w) * 0.163 - max(1.5rem, (100vw - var(--content)) / 2));
  aspect-ratio: 854 / 1007;
}

.hero-stage {
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 854 / 1122;
}

.float {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: var(--width);
  will-change: transform;
}

.float-top {
  z-index: 2;
}

.phone {
  position: absolute;
  left: 35.888%;
  top: 11.456%;
  width: 80.259%;
  aspect-ratio: 685.409 / 928.618;
}

.phone img {
  width: 100%;
  height: 100%;
}

/* Night section */
.night {
  position: relative;
  z-index: 1;
  background: var(--navy);
  color: #fff;
  padding-block: clamp(6rem, 9.5vw, 157px) clamp(5rem, 11.5vw, 191px);
}

.container {
  padding-inline: var(--gutter);
}

.night h2 {
  position: relative;
  max-width: 696px;
  font-size: var(--text-h2);
}

.anchor {
  position: absolute;
  top: -48px;
}

.move-box {
  position: relative;
  margin-top: 40px;
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.1);
  overflow: clip;
}

.move-panel {
  height: 305px;
  padding: 32px;
  overflow: hidden;
  color: rgb(255 255 255 / 0.8);
  transition:
    height 520ms var(--ease-out),
    padding-bottom 520ms var(--ease-out);
}

.move-box[data-expanded="true"] .move-panel {
  height: auto;
  padding-bottom: 96px;
}

.move-panel p + p,
.move-panel p + ol,
.move-panel ol + p {
  margin-top: 1.5em;
}

.move-panel .move-lead {
  margin-top: 0.5em;
}

.move-title {
  color: #fff;
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  max-width: 64ch;
  padding-left: 44px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.12em;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 50%;
  font: 500 14px/1 var(--font-ui);
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.move-help a {
  color: #fff;
  text-decoration-color: rgb(255 255 255 / 0.4);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 200ms ease;
}

.move-help a:hover {
  text-decoration-color: currentColor;
}

.move-fade {
  position: absolute;
  left: -1px;
  bottom: -1px;
  width: calc(100% + 2px);
  height: 290px;
  object-fit: cover;
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.move-box[data-expanded="true"] .move-fade {
  opacity: 0;
}

.move-toggle {
  position: absolute;
  left: 50%;
  bottom: 15px;
  translate: -50% 0;
  gap: 8px;
}

.move-toggle-label {
  display: inline-block;
  transition: filter 200ms ease, opacity 200ms ease;
}

.move-toggle.is-swapping .move-toggle-label {
  filter: blur(2px);
  opacity: 0;
}

.move-toggle-icon {
  transition: transform 320ms var(--ease-out);
}

.move-box[data-expanded="true"] .move-toggle-icon {
  transform: rotate(180deg);
}

.tour {
  margin-top: clamp(4.5rem, 6vw, 100px);
}

.tour h2 {
  font-size: var(--text-h2);
}

.tour-lead {
  margin-top: 16px;
  color: rgb(255 255 255 / 0.8);
}

.features {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  min-height: 460px;
  padding: 24px 32px 0;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 20px;
  overflow: hidden;
  container-type: inline-size;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.22),
    0 24px 48px -32px rgb(8 6 30 / 0.7);
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(110% 70% at 0% 0%, rgb(255 255 255 / 0.16), transparent 62%);
  pointer-events: none;
}

.feature-people,
.feature-talk {
  min-height: 404px;
}

.feature-people {
  grid-column: span 7;
  background: var(--lilac);
}

.feature-talk {
  grid-column: span 5;
  background: var(--lilac-deep);
}

.feature-carried {
  background: linear-gradient(165deg, #8f9dcc 0%, #6f7caf 100%);
}

.feature-sky {
  border-color: rgb(255 255 255 / 0.2);
  background:
    radial-gradient(130% 90% at 85% -10%, #5c5799 0%, transparent 60%),
    linear-gradient(180deg, #34316a 0%, #262450 100%);
}

.feature-trostis {
  border-color: rgb(255 255 255 / 0.7);
  background: linear-gradient(180deg, #f6f0e8 0%, #ece3d6 100%);
}

.feature-trostis::before {
  background: radial-gradient(90% 60% at 100% 100%, rgb(215 107 84 / 0.12), transparent 70%);
}

.feature-text {
  position: relative;
  z-index: 3;
  max-width: 467px;
}

.feature h3 {
  font: inherit;
  font-weight: 500;
  color: #fff;
}

.feature-text p {
  margin-top: 4px;
  color: rgb(255 255 255 / 0.72);
}

.feature-carried .feature-text p,
.feature-sky .feature-text p,
.feature-trostis .feature-text p {
  font-size: min(1em, 18px);
}

.feature-trostis h3 {
  color: var(--ink);
}

.feature-trostis .feature-text p {
  color: var(--ink-60);
}

.feature-art {
  --aw: min(300.695px, 49.7cqi);
  position: relative;
  flex: 1;
  min-height: calc(var(--aw) * 0.78);
}

.feature-art > .crop,
.feature-art > .sky-panel,
.feature-art > .art-mini {
  position: absolute;
  width: var(--aw);
  transition: transform 520ms var(--ease-out);
}

/* Redrawn app UI: 1em = 16 design px at the Figma art width of 300.695px. */
.art-mini {
  display: grid;
  place-items: center;
  font-size: calc(var(--aw) / 18.79);
}

.art-julia {
  aspect-ratio: 300.695 / 313.224;
}

.mini {
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font-ui);
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.match {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 16.25em;
  padding: 1.35em 1.25em 0.5em;
  border: 1px solid rgb(38 31 31 / 0.06);
  border-radius: 1.6em;
  background: #e7e3f6;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.8),
    0 0.2em 0.5em rgb(30 24 70 / 0.1),
    0 1.4em 2.6em -1.2em rgb(30 24 70 / 0.5);
  rotate: 6deg;
}

.art-julia-b .match {
  rotate: -3deg;
}

.match-ring {
  width: 5.9em;
  aspect-ratio: 1;
  padding: 0.34em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.375em 1em rgb(38 31 31 / 0.12);
}

.match-photo,
.match-ini {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.match-ini {
  background:
    radial-gradient(circle at 32% 24%, rgb(255 255 255 / 0.22), transparent 58%),
    var(--ava);
  color: #fffdfa;
  font-size: 2.1em;
  font-weight: 700;
}

.match-name {
  margin-top: 0.5em;
  font: 1.6em/1.2 "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: 0;
}

.match-why {
  margin-top: 0.2em;
  font-size: 0.8em;
  color: rgb(38 31 31 / 0.58);
}

.match-btn {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 3em;
  margin-top: 1.05em;
  border-radius: 99px;
  background: #cf6748;
  color: #fff;
  font-size: 0.94em;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 0.32em 0.8em rgb(207 103 72 / 0.35);
}

.match-link {
  margin-top: 0.45em;
  padding-block: 0.35em;
  font-size: 0.78em;
  color: rgb(38 31 31 / 0.55);
  text-decoration: underline;
  text-decoration-color: rgb(38 31 31 / 0.28);
  text-underline-offset: 0.22em;
}

.rooms {
  width: 18.75em;
  margin: 0;
  padding: 0.3em 1.05em;
  list-style: none;
  border-radius: 1.5em;
  background: #fff;
  box-shadow:
    0 0.2em 0.5em rgb(30 24 70 / 0.1),
    0 1.4em 2.6em -1.2em rgb(30 24 70 / 0.55);
  rotate: -4deg;
}

.room {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding-block: 0.85em;
}

.room + .room {
  border-top: 1px solid rgb(38 31 31 / 0.07);
}

.room-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.9em;
  height: 2.9em;
  border-radius: 0.9em;
  background: #e7e3f6;
  color: #6d5c9e;
}

.room-icon svg {
  width: 1.45em;
  height: 1.45em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.room-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.room-title {
  font-weight: 600;
  line-height: 1.3;
}

.room-line {
  overflow: hidden;
  font-size: 0.8em;
  line-height: 1.45;
  color: rgb(38 31 31 / 0.55);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.room-line b {
  font-weight: 600;
  color: rgb(38 31 31 / 0.75);
}

.room-typing {
  display: flex;
  align-items: center;
  gap: 0.22em;
  margin-top: 0.3em;
  font-size: 0.72em;
  color: #6d5c9e;
}

.room-typing i {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  animation: typing 1.3s ease-in-out infinite;
}

.room-typing i:nth-child(2) {
  animation-delay: 160ms;
}

.room-typing i:nth-child(3) {
  margin-right: 0.35em;
  animation-delay: 320ms;
}

.room-chev {
  flex: none;
  font-size: 1.3em;
  line-height: 1;
  color: rgb(38 31 31 / 0.38);
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-0.22em);
  }
}

.art-julia-a {
  left: 0;
  top: 0;
  transform-origin: 50% 100%;
}

.art-julia-b {
  left: calc(var(--aw) * 0.97);
  top: calc(var(--aw) * -0.09);
  transform-origin: 50% 100%;
}

.art-chat {
  left: 0;
  top: 30px;
}

.feature-talk .feature-art {
  --aw: min(340px, 72cqi);
  min-height: calc(var(--aw) * 0.72 + 44px);
}

@container (max-width: 520px) {
  .feature-art {
    --aw: 62cqi;
  }

  .art-julia-b {
    top: 0;
  }

  .feature-people .feature-art {
    min-height: calc(var(--aw) * 0.96);
  }
}

@media (hover: hover) and (pointer: fine) {
  .feature:hover .art-julia-a {
    transform: translate(-6px, -8px) rotate(-1.5deg);
  }

  .feature:hover .art-julia-b {
    transform: translate(6px, -12px) rotate(1.5deg);
  }

  .feature:hover .art-chat {
    transform: translateY(-8px) rotate(-1deg);
  }

  .feature:hover .art-anna {
    transform: translateY(-6px) rotate(-1deg);
  }

  .feature:hover .sky-panel {
    transform: translateY(-8px) rotate(0deg);
  }

  .feature:hover .trosti {
    animation: hop 640ms var(--ease-out) calc(var(--i) * 70ms) both;
  }
}

/* Getragen */
.feature-carried .feature-art {
  --aw: min(309.539px, 92cqi);
  min-height: calc(var(--aw) * 0.62 + 96px);
}

.invite-pill {
  position: absolute;
  left: 0;
  top: 20px;
  z-index: 2;
  padding: 6px 14px;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font: 500 14px/1.4 var(--font-ui);
  letter-spacing: 0;
}

.art-anna {
  left: -4px;
  top: 64px;
  transform-origin: 30% 100%;
}

.signs {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.signs li {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: #fffaf3;
  color: var(--ink);
  font: 500 13px/1.3 var(--font-ui);
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.8) inset,
    0 10px 22px -10px rgb(30 25 70 / 0.55);
}

.signs li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1ece5;
  font-size: 13px;
}

.signs li:nth-child(1) {
  right: 0;
  top: 92px;
}

.signs li:nth-child(2) {
  right: 4%;
  top: calc(64px + var(--aw) * 0.62 - 40px);
}

.signs li:nth-child(3) {
  left: 26%;
  top: calc(64px + var(--aw) * 0.62 - 6px);
}

/* Unser Himmel */
.feature-sky .feature-art {
  --aw: min(292px, 82cqi);
  min-height: calc(var(--aw) * 0.96);
}

.sky-panel {
  left: 0;
  top: 24px;
  border-radius: 16px;
  overflow: hidden;
  transform: rotate(-2deg);
  transform-origin: 20% 100%;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.14),
    0 28px 48px -20px rgb(0 0 0 / 0.65);
}

.sky-crop {
  width: 100%;
}

.sky-you {
  position: absolute;
  left: 26%;
  top: 39.9%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 244 214 / 0.55) 0%, rgb(255 244 214 / 0) 70%);
}

.twinkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgb(255 248 225 / 0.7);
  opacity: 0.35;
}

.mood-pill {
  position: absolute;
  right: 0;
  top: 46%;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 10px 16px 11px;
  border-radius: 14px;
  background: #fffaf3;
  color: var(--ink);
  font: 500 14px/1.3 var(--font-ui);
  letter-spacing: 0;
  box-shadow: 0 16px 30px -14px rgb(0 0 0 / 0.6);
  transform: rotate(2deg);
}

.mood-label {
  color: var(--ink-60);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Trostis */
.feature-trostis .feature-art {
  min-height: 220px;
}

.trosti-shelf {
  position: absolute;
  left: -10px;
  right: 0;
  bottom: 4px;
  display: flex;
  align-items: flex-end;
}

.trosti {
  flex: none;
  width: clamp(110px, 38cqi, 172px);
  height: auto;
  margin-right: -22px;
  transform-origin: 50% 92%;
}

.trosti:nth-child(2) {
  width: clamp(126px, 44cqi, 196px);
}

.gift-tag {
  position: absolute;
  right: 2%;
  top: 18px;
  z-index: 2;
  padding: 9px 16px 10px 28px;
  border-radius: 4px 10px 10px 4px;
  background: #fffdf8;
  color: var(--ink);
  font: 18px/1.2 var(--font-display);
  letter-spacing: 0;
  box-shadow:
    0 1px 0 rgb(38 31 31 / 0.06),
    0 14px 26px -14px rgb(80 50 30 / 0.45);
  transform: rotate(5deg);
  transform-origin: 0 50%;
}

.gift-tag::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border: 1.5px solid rgb(38 31 31 / 0.35);
  border-radius: 50%;
}

@keyframes hop {
  0%,
  100% {
    transform: translateY(0) scale(1, 1);
  }

  30% {
    transform: translateY(-14px) scale(0.97, 1.03);
  }

  62% {
    transform: translateY(0) scale(1.05, 0.95);
  }

  80% {
    transform: translateY(0) scale(0.99, 1.01);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .signs li {
    animation: drift 4.2s var(--ease-in-out) calc(var(--i) * -1.4s) infinite alternate;
  }

  .sky-you {
    animation: glow 3.2s ease-in-out infinite;
  }

  .twinkle {
    animation: twinkle 3.6s ease-in-out var(--d) infinite;
  }
}

@keyframes drift {
  to {
    translate: 0 -6px;
  }
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
  }

  45% {
    opacity: 1;
  }
}

/* FAQ */
.faq {
  padding: 80px 1.5rem 112px;
}

.faq-inner {
  max-width: 640px;
  margin-inline: auto;
}

.faq h2 {
  font-size: var(--text-h2);
}

.faq-list {
  margin-top: 40px;
  border-top: 1px solid rgb(38 31 31 / 0.1);
}

.faq details {
  border-bottom: 1px solid rgb(38 31 31 / 0.1);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  color: var(--ink-90);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 200ms ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:focus-visible {
  outline-offset: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .faq summary:hover {
    color: var(--ink);
  }

  .faq summary:hover .faq-icon {
    background: rgb(38 31 31 / 0.06);
  }
}

.faq-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  transition: background-color 200ms ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  translate: -50% -50%;
  transition: transform 280ms var(--ease-out), opacity 200ms ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq details[open] .faq-icon::after {
  transform: rotate(180deg);
  opacity: 0;
}

.faq-answer {
  padding-bottom: 22px;
  color: var(--ink-60);
}

.faq-answer p + p {
  margin-top: 0.75em;
}

.faq-answer a {
  text-decoration-color: rgb(38 31 31 / 0.3);
  text-underline-offset: 0.2em;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}

.faq-answer a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

@supports selector(::details-content) {
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 360ms var(--ease-out),
      content-visibility 360ms allow-discrete;
  }

  .faq details[open]::details-content {
    block-size: auto;
  }

  .faq-answer {
    opacity: 0;
    translate: 0 -4px;
    transition: opacity 280ms ease, translate 360ms var(--ease-out);
  }

  .faq details[open] .faq-answer {
    opacity: 1;
    translate: 0 0;
  }
}

/* Footer: the notch artwork is a fixed 1654 × 929 shape; the side and bottom fills extend it seamlessly. */
.footer {
  --notch-half: 827px;
  color: #fff;
  background:
    url("assets/footer-bg.svg") top center / 1654px 929px no-repeat,
    linear-gradient(var(--navy-deep), var(--navy-deep)) left top / max(0px, 50% - var(--notch-half) + 1px) 100% no-repeat,
    linear-gradient(var(--navy-deep), var(--navy-deep)) right top / max(0px, 50% - var(--notch-half) + 1px) 100% no-repeat,
    linear-gradient(var(--navy-deep), var(--navy-deep)) left 0 top 928px / 100% 100% no-repeat,
    var(--cream);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 113px 1.5rem 80px;
  text-align: center;
}

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

.footer-brand > img {
  width: 44px;
  height: 25px;
}

.footer-brand p {
  margin-top: 24px;
  font: 20px/normal var(--font-display);
  letter-spacing: 0;
}

.footer-brand p a {
  text-decoration: none;
}

.footer-brand p a:hover {
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.4);
  text-underline-offset: 0.2em;
}

.boat-glow {
  margin-top: 32px;
  filter: drop-shadow(0 0 10px rgb(255 255 255 / 0.6));
}

.boat {
  width: 196px;
  height: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .boat {
    animation: bob 7s var(--ease-in-out) infinite alternate;
  }
}

@keyframes bob {
  from {
    transform: translateY(0) rotate(-0.6deg);
  }

  to {
    transform: translateY(-4px) rotate(0.6deg);
  }
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  font: 16px/normal var(--font-ui);
  letter-spacing: 0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  text-decoration: none;
  transition: color 200ms ease, opacity 200ms ease;
}

.legal a {
  color: rgb(255 255 255 / 0.5);
}

.legal a:hover {
  color: rgb(255 255 255 / 0.85);
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social a:hover {
  opacity: 0.75;
}

.social img {
  width: 16px;
  height: 16px;
}

.seal {
  width: 80px;
  height: 80px;
}

.copyright {
  font: 16px/normal var(--font-ui);
  letter-spacing: 0;
  color: rgb(255 255 255 / 0.5);
}

/* Entrance + reveal motion */
@media (prefers-reduced-motion: no-preference) {
  .enter {
    animation: rise 900ms var(--ease-out) both;
    animation-delay: calc(80ms + var(--i) * 70ms);
  }

  .card-enter {
    animation: settle 1100ms var(--ease-out) both;
    animation-delay: calc(240ms + var(--i) * 80ms);
  }

  .js .reveal {
    opacity: 0;
    translate: 0 18px;
    transition: opacity 800ms ease, translate 900ms var(--ease-out);
  }

  .js .reveal.is-visible {
    opacity: 1;
    translate: 0 0;
  }

  .features .reveal {
    transition-delay: calc(var(--i, 0) * 90ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  .enter,
  .card-enter {
    animation: fade 400ms ease both;
  }

  .move-panel,
  .feature-art > .crop,
  .feature-art > .sky-panel,
  .feature-art > .art-mini {
    transition: none;
  }

  .room-typing i {
    animation: none;
    opacity: 0.6;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(-1.5deg) scale(0.98);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

/* CTA below the tour */
.tour-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: clamp(56px, 7vw, 96px);
  text-align: center;
}

.tour-cta::before {
  content: "";
  position: absolute;
  inset: -40% 10%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 60%, rgb(165 159 210 / 0.22), transparent 70%);
  pointer-events: none;
}

.tour-cta p {
  max-width: 34ch;
  font: 400 clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem)/1.3 var(--font-display);
  text-wrap: balance;
}

.tour-cta .cta-row {
  justify-content: center;
}

.tour-cta .store-badge {
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.24),
    0 8px 20px -12px rgb(0 0 0 / 0.8);
}

/* App dialog */
:root:has(.app-dialog[open]) {
  overflow: hidden;
}

.app-dialog {
  width: min(780px, 100% - 32px);
  max-width: none;
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: var(--ink);
}

/* Keyframes instead of transitions: the close plays in every browser (main.js waits for it),
   and only opacity/transform move, so it stays on the compositor. */
.app-dialog[open] {
  animation: dialog-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.app-dialog.is-closing {
  animation: dialog-out 200ms cubic-bezier(0.4, 0, 1, 1) both;
}

/* A solid tint instead of a blur: blurring the whole page on every frame made the fade stutter. */
.app-dialog::backdrop {
  background: rgb(28 26 51 / 0.62);
}

.app-dialog[open]::backdrop {
  animation: backdrop-in 360ms ease-out both;
}

.app-dialog.is-closing::backdrop {
  animation: backdrop-out 240ms ease-in both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dialog-out {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}

@keyframes backdrop-out {
  to {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-dialog[open],
  .app-dialog.is-closing {
    animation-name: backdrop-in;
    animation-duration: 200ms;
  }

  .app-dialog.is-closing {
    animation-name: backdrop-out;
  }
}

.app-dialog-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 44px;
  max-height: calc(100dvh - 32px);
  padding: 44px 48px 44px 44px;
  overflow: auto;
  border-radius: 28px;
  background:
    radial-gradient(80% 60% at 0% 0%, rgb(165 159 210 / 0.22), transparent 70%),
    linear-gradient(180deg, #fbf8f3 0%, #f1ece5 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgb(28 26 51 / 0.1),
    0 40px 80px -32px rgb(10 8 30 / 0.65);
}

.app-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(38 31 31 / 0.06);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 200ms ease,
    transform 160ms var(--ease-out);
}

.app-dialog-close:active {
  transform: scale(0.94);
}

.app-dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

@media (hover: hover) and (pointer: fine) {
  .app-dialog-close:hover {
    background: rgb(38 31 31 / 0.1);
  }
}

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.qr-frame {
  position: relative;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 1px 2px rgb(38 31 31 / 0.08),
    0 16px 32px -18px rgb(38 31 31 / 0.35);
}

.qr-frame::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid var(--coral);
  border-radius: 32px;
  -webkit-mask:
    linear-gradient(#000 0 0) top left / 44px 44px no-repeat,
    linear-gradient(#000 0 0) top right / 44px 44px no-repeat,
    linear-gradient(#000 0 0) bottom left / 44px 44px no-repeat,
    linear-gradient(#000 0 0) bottom right / 44px 44px no-repeat;
  mask:
    linear-gradient(#000 0 0) top left / 44px 44px no-repeat,
    linear-gradient(#000 0 0) top right / 44px 44px no-repeat,
    linear-gradient(#000 0 0) bottom left / 44px 44px no-repeat,
    linear-gradient(#000 0 0) bottom right / 44px 44px no-repeat;
  pointer-events: none;
}

.qr-frame img {
  display: block;
  width: 216px;
  height: 216px;
}

.qr figcaption {
  font: 500 14px/1.3 var(--font-ui);
  color: var(--ink-60);
}

.app-dialog-body h2 {
  max-width: 14ch;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  line-height: 1.12;
}

.app-dialog-body > p {
  margin-top: 12px;
  color: var(--ink-80);
  font-size: 17px;
  line-height: 1.5;
}

.app-dialog-steps {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-80);
}

.app-dialog-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  counter-increment: step;
}

.app-dialog-steps li::before {
  content: counter(step);
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(215 107 84 / 0.12);
  color: var(--coral-pressed);
  font: 500 13px/1 var(--font-ui);
}

.app-dialog-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.app-dialog-stores .store-badge {
  height: 48px;
  padding: 0 20px 0 16px;
}

.app-dialog-stores .store-badge span {
  font-size: 15px;
}

.app-dialog-stores .store-badge small {
  font-size: 10px;
}

@media (prefers-reduced-motion: no-preference) {
  .app-dialog[open] .qr-frame::before {
    animation: viewfinder 2.8s var(--ease-in-out) 700ms infinite;
  }
}

/* Scale rather than inset, so the pulse never triggers layout. */
@keyframes viewfinder {
  0%,
  100% {
    opacity: 1;
    scale: 1;
  }

  50% {
    opacity: 0.7;
    scale: 0.963;
  }
}

@media (max-width: 720px) {
  .app-dialog-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 40px 24px 28px;
    text-align: center;
  }

  .app-dialog-body h2 {
    max-width: none;
  }

  .app-dialog-steps {
    justify-content: center;
    text-align: left;
  }

  .app-dialog-stores {
    justify-content: center;
  }
}

/* Smaller screens */
@media (max-width: 1100px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature,
  .feature-people,
  .feature-talk {
    grid-column: auto;
  }

  .feature-trostis {
    grid-column: 1 / -1;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .feature-trostis {
    flex-direction: row;
    gap: 24px;
    min-height: 300px;
  }

  .feature-trostis .feature-text {
    flex: 0 1 40%;
    padding-bottom: 32px;
  }

  .feature-trostis .trosti-shelf {
    justify-content: center;
  }

  .feature-trostis .trosti {
    width: 140px;
  }

  .feature-trostis .trosti:nth-child(2) {
    width: 162px;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    padding-right: var(--gutter);
    padding-bottom: 2.5rem;
  }

  .hero-visual {
    left: 0;
    width: min(100%, 640px);
    margin-left: auto;
  }
}

@media (max-width: 700px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .move-panel {
    padding: 24px 22px;
    height: 340px;
  }

  .feature {
    min-height: 0;
    padding-inline: 22px;
  }

  .feature-text {
    padding-bottom: 16px;
  }

  .footer-inner {
    gap: 56px;
  }

  .footer-nav {
    gap: 40px;
  }
}
