/* Buzzberry landing — first-party only: no webfonts, no remote assets, no trackers.
   Colours mirror theme/colors.ts (dark) so the site and the app read as one product. */

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

:root {
  color-scheme: dark;

  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --surface-3: #3a3a3c;
  --line: #38383a;

  --text: #ffffff;
  --muted: #8e8e93;
  --dim: #636366;

  --blue: #2aabee;
  --blue-ink: #229ed9;
  --blue-deep: #1f8fd6;
  --pink: #ff4d73;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 32px 80px -40px rgba(0, 0, 0, 0.9);
  --radius: 20px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 22%;
  border: 1px solid var(--line);
}

.top nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.top nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.top nav a:hover {
  color: var(--text);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 9vw, 112px);
  background:
    radial-gradient(90% 70% at 78% 4%, rgba(42, 171, 238, 0.16) 0%, rgba(0, 0, 0, 0) 60%),
    radial-gradient(70% 60% at 6% 96%, rgba(255, 77, 115, 0.09) 0%, rgba(0, 0, 0, 0) 62%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}

h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  color: var(--blue);
}

.lede {
  max-width: 46ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 19px);
}

/* The three beats of the product, in the order they happen. */
.mechanic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 34px;
  list-style: none;
}

.mechanic li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.mechanic li + li::before {
  content: "\2192";
  color: var(--blue);
  font-weight: 700;
}

/* ---------- signature: the session card ---------- */

.demo {
  position: relative;
}

.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(42, 171, 238, 0.35), rgba(255, 77, 115, 0.3));
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.card-name {
  font-weight: 650;
  letter-spacing: -0.015em;
}

.card-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.shared {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 4px;
}

.tag {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 550;
}

.tag span {
  color: var(--pink);
}

.stage {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stage[hidden] {
  display: none;
}

.request-text {
  margin-bottom: 16px;
  padding: 13px 15px;
  border-radius: 16px 16px 16px 5px;
  background: var(--surface-2);
  font-size: 15px;
  line-height: 1.5;
}

.row {
  display: flex;
  gap: 10px;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  flex: 1;
  background: var(--blue);
  color: #04121b;
}

.btn-primary:hover {
  background: #4fbdf3;
}

.btn-quiet {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--muted);
}

.btn-quiet:hover {
  background: var(--surface-3);
  color: var(--text);
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.timer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.timer-value {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.timer-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.track {
  height: 5px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.track-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  transform-origin: left center;
  transition: transform 0.5s linear;
}

.bubbles {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 5px;
  background: #232326;
  font-size: 15px;
}

.bubble.mine {
  margin-left: auto;
  border-radius: 16px 16px 5px 16px;
  background: var(--blue-deep);
  color: #fff;
}

.demo-caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

/* ---------- sections ---------- */

section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-lede {
  max-width: 54ch;
  margin-top: 16px;
  color: var(--muted);
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.step {
  counter-increment: step;
  padding-top: 20px;
  border-top: 2px solid var(--blue);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
}

.contrast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.claim {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.claim-no,
.claim-yes {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.claim-no {
  color: var(--dim);
  text-decoration: line-through;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
}

.claim-yes {
  margin-top: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.claim p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.safety {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px;
  margin-top: 44px;
}

.safety h3 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.safety p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15.5px;
}

.closing {
  text-align: center;
}

.closing-lede {
  margin-inline: auto;
}

/* ---------- footer ---------- */

footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.foot-grid strong {
  color: var(--text);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.foot-note {
  margin-top: 28px;
  color: var(--dim);
  font-size: 13.5px;
}

/* ---------- responsive ---------- */

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

  .demo {
    max-width: 420px;
  }

  .top nav a {
    display: none;
  }

  .top nav a[href="/support/"] {
    display: inline;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
