/* Sono landing: mobile-first. Font: Geist (OFL), self-hosted, Latin subset. */
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Hero-only static 800 instance with overlaps removed (clean outline stroke). Glyphs: M e t S o n.
   Other characters fall back to the variable font. Regenerate if the hero words change (see README). */
@font-face {
  font-family: "Geist Display";
  src: url("fonts/Geist-Display-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #9b9b9b;   /* 7.9:1 on black */
  --line: #222;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
  border-radius: 10px;
}

/* film grain, very subtle */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) var(--pad) 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); text-decoration: none;
  font-weight: 650; font-size: 18px; letter-spacing: -.02em;
}
.brand-mark { width: 26px; height: 26px; }
.pill {
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
  color: #d6d6d6;
  padding: 6px 12px 6px 11px;
  border: 1px solid #2c2c2c;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}
a.pill { text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
a.pill:hover { color: #fff; border-color: #555; background: rgba(255,255,255,.08); }
a.pill:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 24px var(--pad) 28px;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  overflow-clip-margin: 40px;
}

.glow {
  position: absolute; z-index: -1;
  left: 50%; top: 42%;
  width: 140vw; max-width: 1100px; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,255,255,.10), rgba(255,255,255,.035) 45%, transparent 72%);
  pointer-events: none;
}

.mascot {
  width: clamp(92px, 26vw, 132px);
  aspect-ratio: 1;
  margin-bottom: 4px;
  animation: float 6s var(--ease) infinite, rise .9s var(--ease) both;
  filter: drop-shadow(0 18px 40px rgba(255,255,255,.12));
}
.mascot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mascot-eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }

/* Huge display type: the "background" of the page */
.title {
  margin: 0;
  font-family: "Geist Display", var(--font);
  font-weight: 800;
  font-size: clamp(112px, 36.5vw, 200px);
  line-height: .8;
  letter-spacing: -.075em;
  display: flex; flex-direction: column; align-items: center;
  padding-bottom: .06em; /* keep descender-free gradient from clipping */
  animation: rise 1s .05s var(--ease) both;
}
.title span { display: block; padding: 0 .04em; }
.t-meet {
  color: transparent;
  -webkit-text-stroke: 1.25px rgba(255,255,255,.6);
}
.t-sono {
  background: linear-gradient(180deg, #fff 0%, #fff 45%, rgba(255,255,255,.38) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lede {
  margin: 22px 0 0;
  max-width: 22ch;
  font-size: clamp(19px, 5.2vw, 24px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -.025em;
  color: #e9e9e9;
  animation: rise 1s .12s var(--ease) both;
}

/* ---------- CTA: white speech bubble ---------- */
.cta-wrap {
  margin-top: 30px;
  display: flex; flex-direction: column; align-items: center;
  animation: rise 1s .2s var(--ease) both;
}
body[data-cta-mode="telegram"] .cta-email,
body[data-cta-mode="email"] .cta-telegram { display: none !important; }

.bubble {
  --r: 26px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px;
  padding: 0 26px 0 30px;
  border-radius: var(--r) var(--r) var(--r) 8px;
  background: #fff; color: #000;
  font: inherit; font-size: 18px; font-weight: 650; letter-spacing: -.02em;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 10px 40px -8px rgba(255,255,255,.28);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.bubble-tail {
  position: absolute; left: 0; bottom: -11px;
  width: 22px; height: 16px;
  color: #fff;
  transform-origin: 0 0;
  transition: transform .35s var(--ease);
}
.bubble-arrow { width: 20px; height: 20px; transition: transform .35s var(--ease); }

a.bubble:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 0 0 1px #fff, 0 16px 50px -8px rgba(255,255,255,.4); }
a.bubble:hover .bubble-arrow { transform: translateX(3px); }
a.bubble:hover .bubble-tail { transform: rotate(-6deg); }
a.bubble:active { transform: translateY(0) scale(.985); }
a.bubble:focus-visible { outline: 3px solid #fff; outline-offset: 5px; border-radius: var(--r) var(--r) var(--r) 8px; }

/* email variant */
.bubble-form {
  width: min(100%, 372px);
  padding: 6px;
  gap: 6px;
  justify-content: space-between;
}
.bubble-form input {
  flex: 1; min-width: 0;
  height: 48px; padding: 0 8px 0 18px;
  border: 0; background: transparent; color: #000;
  font: inherit; font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  border-radius: 20px;
}
.bubble-form input::placeholder { color: #6b6b6b; }
.bubble-form input:focus { outline: none; }
.bubble-form:focus-within { box-shadow: 0 0 0 1px #fff, 0 0 0 4px #000, 0 0 0 6px #fff; }
.bubble-form button {
  flex: none;
  height: 48px; padding: 0 18px;
  border: 0; border-radius: 20px 20px 20px 20px;
  background: #000; color: #fff;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s;
}
.bubble-form button:hover { background: #1c1c1c; }
.bubble-form button:active { transform: scale(.97); }
.bubble-form button:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.bubble-form.is-busy button { opacity: .6; }
.form-status { min-height: 1.4em; margin: 14px 0 -10px; font-size: 14px; color: var(--muted); }

.fine {
  margin: 26px 0 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .01em;
  color: var(--muted);
  animation: rise 1s .28s var(--ease) both;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.6);
  animation: ping 2.4s infinite;
}

/* ---------- footer ---------- */
.foot {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; gap: 12px;
  padding: 0 var(--pad) calc(20px + env(safe-area-inset-bottom));
  font-size: 13px; color: #8a8a8a;
}
.foot a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.foot a:hover { color: #fff; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .hero { padding-top: 8px; padding-bottom: 36px; }
  .mascot { width: 136px; margin-bottom: 10px; }
  .title {
    flex-direction: row; gap: .14em;
    font-size: clamp(160px, 19vw, 320px);
    line-height: .82;
  }
  .t-meet { -webkit-text-stroke-width: 2px; }
  .lede { margin-top: 30px; max-width: none; font-size: 26px; }
  .cta-wrap { margin-top: 34px; }
  .bubble-form { width: 420px; }
  .bubble { min-height: 64px; font-size: 19px; padding: 0 28px 0 32px; }
  .top { padding-top: 28px; }
  .brand { font-size: 19px; }
  .foot { padding-bottom: 28px; }
}

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.fine .sep { margin-right: 8px; }
