@font-face {
  font-family: 'Fraunces Variable';
  src: url('/fonts/fraunces-latin-full-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Variable';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14101f;
  --ink-raised: #1f1930;
  --ink-high: #2a2340;
  --ink-deep: #0d0a16;
  --line: rgb(244 241 234 / 0.1);
  --line-strong: rgb(244 241 234 / 0.18);
  --text: #f4f1ea;
  --muted: #a79fb8;
  --faint: #6f6785;
  --amber: #f5a65b;
  --amber-deep: #e08a3c;
  --amber-wash: rgb(245 166 91 / 0.12);
  --violet: #8b7be8;
  --positive: #6fcf97;
  --critical: #f2777a;
  --display: 'Fraunces Variable', Fraunces, ui-serif, Georgia, serif;
  --body: 'Inter Variable', Inter, ui-sans-serif, system-ui, sans-serif;
  --card: 1.25rem;
  --control: 0.875rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--ink);
  background-image: radial-gradient(120% 60% at 50% 100%, rgb(245 166 91 / 0.07), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: 'SOFT' 60, 'WONK' 1;
  text-wrap: balance;
  margin: 0;
}

p {
  text-wrap: pretty;
  margin: 0;
}

a {
  color: var(--amber);
  text-underline-offset: 0.2em;
}

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

::selection {
  background: var(--amber);
  color: var(--ink);
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: 1rem;
  z-index: 50;
  transform: translateY(-150%);
  background: var(--amber);
  color: var(--ink);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

header.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgb(20 16 31 / 0.85);
  backdrop-filter: blur(16px);
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.logo {
  display: inline-flex;
  align-items: flex-start;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  font-variation-settings: 'SOFT' 60, 'WONK' 1;
}

.logo svg {
  margin-top: 0.15em;
  margin-inline-start: 0.12em;
}

.bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-inline-start: auto;
}

.langs {
  display: flex;
  gap: 0.25rem;
}

.langs button,
.join {
  font: inherit;
  cursor: pointer;
}

.langs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 2.5rem;
  padding: 0 0.45rem;
}

.langs button[aria-pressed='true'] {
  color: var(--text);
}

.join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.join:hover {
  background: var(--amber-deep);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero picture,
.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(20 16 31 / 0.92), rgb(20 16 31 / 0.72) 55%, var(--ink));
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding-block: 2.5rem 2rem;
}

.cafe-slot {
  order: -1;
  min-width: 0;
}

.cafe-caption {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.list-band {
  position: relative;
  padding-bottom: 1rem;
}

.list-band .card {
  max-width: 36rem;
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.25rem, 7.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.lead {
  margin-top: 1.4rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.1875rem, 2.4vw, 1.375rem);
  line-height: 1.5;
}

.card {
  background: rgb(31 25 48 / 0.92);
  border: 1px solid var(--line-strong);
  border-radius: var(--card);
  padding: 1.35rem;
  box-shadow: inset 0 1px 0 rgb(244 241 234 / 0.06);
}

.card h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.2;
}

.card .quiet {
  margin-top: 0.6rem;
  color: var(--muted);
}

form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 1rem;
}

input[type='email'],
input[type='text'] {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--control);
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--text);
  font: inherit;
}

input:focus {
  border-color: var(--amber);
}

button[type='submit'] {
  min-height: 3.5rem;
  border: 0;
  border-radius: var(--control);
  background: var(--amber);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button[type='submit']:hover {
  background: var(--amber-deep);
}

button[type='submit']:disabled {
  opacity: 0.55;
  cursor: wait;
}

.fine {
  color: var(--muted);
  font-size: 1rem;
}

.hp {
  position: absolute;
  left: -10000px;
  height: 0;
  overflow: hidden;
}

.banner {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--control);
}

.banner.ok {
  background: rgb(111 207 151 / 0.12);
  color: var(--positive);
}

.banner.bad {
  background: rgb(242 119 122 / 0.12);
  color: var(--critical);
}

.promise {
  margin-top: 0.5rem;
  padding-block: 0.4rem;
  padding-inline-start: 1.25rem;
  border-inline-start: 2px solid var(--amber);
  font-family: var(--display);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.25;
  font-variation-settings: 'SOFT' 60, 'WONK' 1;
}

.horizon {
  height: 1px;
  margin: 4rem auto;
  border: 0;
  background: linear-gradient(90deg, transparent, rgb(245 166 91 / 0.35), transparent);
}

.section-lead {
  margin-top: 0.8rem;
  max-width: 40rem;
  color: var(--muted);
}

h2.display {
  font-size: clamp(1.875rem, 5.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
}

.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 3.5rem;
}

.step {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.frame {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--card);
  border: 1px solid var(--line);
  background: var(--ink-raised);
}

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

.pills {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 4rem 1.15rem 1.15rem;
  background: linear-gradient(to top, var(--ink), rgb(20 16 31 / 0.7), transparent);
}

.pills p {
  color: var(--muted);
  font-size: 1rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.pill {
  border: 1px solid rgb(245 166 91 / 0.3);
  background: rgb(20 16 31 / 0.8);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 1rem;
}

.pill.more {
  border-color: var(--line);
  color: var(--muted);
}

.step h3 {
  margin-top: 0.4rem;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
}

.step p.body {
  margin-top: 0.75rem;
  color: var(--muted);
}

.privacy {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--card);
  border: 1px solid var(--line);
  background: var(--ink-raised);
}

.orb {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 8%, var(--violet) 42%, transparent 70%);
  box-shadow: 0 0 60px -12px rgb(139 123 232 / 0.55);
}

.privacy p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.3rem);
}

.close {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.close p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.3rem);
}

.close .card {
  margin-top: 2rem;
  text-align: start;
}

footer {
  margin-top: 5rem;
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
}

.foot {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2.5rem;
}

footer h2 {
  font-size: 1.35rem;
}

footer p,
footer address {
  margin-top: 0.7rem;
  color: var(--muted);
  font-style: normal;
}

.legal-meta {
  color: var(--faint);
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .hero-shade {
    background: linear-gradient(to right, var(--ink), rgb(20 16 31 / 0.86) 48%, rgb(20 16 31 / 0.45));
  }

  .hero-grid,
  .step {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
  }

  .hero-copy {
    order: 1;
  }

  .cafe-slot {
    order: 2;
  }

  .cafe-caption {
    text-align: start;
  }

  .step.flip .copy {
    order: 1;
  }

  .step.flip .frame {
    order: 2;
  }

  .privacy {
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: 2rem 2.25rem;
  }

  .foot {
    grid-template-columns: 1.2fr 1fr;
  }
}

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

  .cafe-pulse,
  .cafe-caret {
    animation: none;
  }
}

/* Virtual café — same scene as the old landing page. */
.cafe {
  position: relative;
  display: flex;
  flex-direction: column;
  height: min(26rem, 70svh);
  overflow: hidden;
  border-radius: var(--card);
  border: 1px solid var(--line);
  background: var(--ink);
  box-shadow: 0 24px 80px -24px rgb(0 0 0 / 0.65);
}

.cafe-shade,
.cafe-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cafe-shade {
  background: linear-gradient(to bottom, #1c1528, #14101f 55%, #0c0a12);
}

.cafe-glow::before,
.cafe-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
}

.cafe-glow::before {
  width: 10rem;
  height: 10rem;
  inset-inline-start: -2.5rem;
  top: 2rem;
  background: rgb(245 166 91 / 0.35);
}

.cafe-glow::after {
  width: 12rem;
  height: 12rem;
  inset-inline-end: -2rem;
  bottom: 4rem;
  background: rgb(139 123 232 / 0.4);
}

.cafe-head,
.cafe-seats {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.cafe-log {
  position: relative;
  z-index: 1;
}

.cafe-foot {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  background: #100c18;
}

.cafe-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgb(244 241 234 / 0.08);
}

.cafe-eye {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
}

.cafe-names {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 1rem;
}

.cafe-meta {
  color: var(--faint);
}

.cafe-count {
  margin-inline-start: auto;
  text-align: end;
  flex-shrink: 0;
}

.cafe-count p:first-child {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, monospace;
  font-size: 1rem;
}

.cafe-beat {
  font-size: 0.7rem;
  color: var(--faint);
  text-transform: capitalize;
}

.cafe-seats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.75rem;
  border-bottom: 1px solid rgb(244 241 234 / 0.06);
}

.seat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border-radius: var(--control);
  border: 1px solid rgb(244 241 234 / 0.08);
  background: rgb(31 25 48 / 0.4);
}

.seat.on.amber {
  border-color: rgb(245 166 91 / 0.4);
  background: var(--amber-wash);
}

.seat.on.violet {
  border-color: rgb(139 123 232 / 0.4);
  background: rgb(139 123 232 / 0.1);
}

.orb-seat {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 50%;
}

.orb-seat.amber {
  border: 1px solid rgb(245 166 91 / 0.4);
  background: linear-gradient(to bottom right, rgb(245 166 91 / 0.4), rgb(245 166 91 / 0.1));
  box-shadow: 0 0 16px rgb(232 168 92 / 0.3);
}

.orb-seat.violet {
  border: 1px solid rgb(139 123 232 / 0.5);
  background: linear-gradient(to bottom right, rgb(139 123 232 / 0.5), rgb(139 123 232 / 0.1));
  box-shadow: 0 0 16px rgb(140 110 200 / 0.35);
}

.orb-seat .dot {
  position: absolute;
  top: -2px;
  inset-inline-end: -2px;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  display: none;
}

.seat.on .dot {
  display: block;
}

.dot.amber {
  background: var(--amber);
}

.dot.violet {
  background: var(--violet);
}

.seat-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-name.amber {
  color: var(--amber);
}

.seat-name.violet {
  color: #a99bf0;
}

.seat-tag {
  margin: 0;
  font-size: 0.7rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-copy {
  min-width: 0;
}

.cafe-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cafe-setting,
.cafe-close {
  color: var(--faint);
  font-size: 0.75rem;
  line-height: 1.45;
}

.cafe-close {
  border: 1px solid rgb(244 241 234 / 0.1);
  background: rgb(31 25 48 / 0.8);
  border-radius: var(--control);
  padding: 0.5rem 0.75rem;
  color: var(--muted);
}

.bubble {
  max-width: 92%;
  border-radius: var(--control);
  border: 1px solid transparent;
  background: rgb(31 25 48 / 0.95);
  padding: 0.5rem 0.75rem;
}

.bubble.amber {
  align-self: flex-start;
  border-color: rgb(245 166 91 / 0.25);
}

.bubble.violet {
  align-self: flex-end;
  border-color: rgb(139 123 232 / 0.3);
}

.bubble-meta {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  margin-bottom: 0.15rem;
}

.who {
  font-size: 0.7rem;
  font-weight: 500;
}

.who.amber {
  color: var(--amber);
}

.who.violet {
  color: #a99bf0;
}

.turn-no {
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
  color: var(--faint);
}

.bubble p {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--muted);
}

.bubble.think p {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-style: italic;
  color: var(--faint);
}

.dots {
  display: inline-flex;
  gap: 0.15rem;
}

.dots span {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--faint);
  animation: cafe-pulse 1s ease-in-out infinite;
}

.dots span:nth-child(2) {
  animation-delay: 150ms;
}

.dots span:nth-child(3) {
  animation-delay: 300ms;
}

.cafe-caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-inline-start: 2px;
  transform: translateY(1px);
  animation: cafe-pulse 1s ease-in-out infinite;
}

.cafe-caret.amber {
  background: rgb(245 166 91 / 0.8);
}

.cafe-caret.violet {
  background: rgb(139 123 232 / 0.8);
}

.cafe-pulse {
  animation: cafe-pulse 1.4s ease-in-out infinite;
}

@keyframes cafe-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.cafe-foot {
  border-top: 1px solid rgb(244 241 234 / 0.08);
  padding: 0.7rem 0.85rem 0.8rem;
}

.cafe-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--ink-raised);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.cafe-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(to right, rgb(245 166 91 / 0.8), rgb(139 123 232 / 0.8));
  transition: width 0.5s var(--ease);
}

.cafe-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
}

.cafe-controls button {
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 2.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--control);
  border: 1px solid var(--line);
  background: var(--ink-raised);
  color: var(--text);
  white-space: nowrap;
}

.cafe-controls button.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.cafe-note {
  margin-inline-start: auto;
  font-size: 0.7rem;
  color: var(--faint);
  text-align: end;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (min-width: 900px) {
  .cafe {
    height: 32rem;
  }
}
