/* ==========================================================================
   MeetingBell — marketing site
   Aesthetic: warm editorial dark, amber accents, serif/sans mix.
   ========================================================================== */

:root {
  --bg: #0e0d0c;
  --bg-2: #171512;
  --bg-3: #1f1c18;
  --ink: #f3ece0;
  --ink-dim: #b8ad9b;
  --ink-faint: #6c655a;
  --line: #2a2520;
  --amber: #ffb347;
  --amber-2: #ff8a3d;
  --amber-3: #ff5a1f;
  --red: #ff4d4d;
  --blue: #5aa7ff;
  --green: #7ed957;
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --serif: "Fraunces", "Instrument Serif", Georgia, serif;
  --sans: "Geist", "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle film grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(14, 13, 12, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--amber-3));
  border-radius: 9px;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(255, 138, 61, 0.35);
}
.nav-links {
  display: flex; gap: 30px;
  font-size: 14px; color: var(--ink-dim);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); }
@media (max-width: 760px) {
  .nav-links { display: none; }
}
@media (max-width: 420px) {
  .nav-cta { padding: 8px 12px; font-size: 12px; }
  .brand { font-size: 15px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--amber);
  color: #1a0f02;
  box-shadow: 0 10px 30px -8px rgba(255, 179, 71, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--amber-2); }
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.18), transparent 60%);
  filter: blur(30px);
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative; z-index: 2;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 24px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
h1.headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.headline em {
  font-style: italic;
  color: var(--amber);
  font-weight: 400;
}
.sub {
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 520px;
  margin: 0 0 34px;
}
.cta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 28px;
}
.social-proof {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.social-proof span { color: var(--amber); }

/* ---------- Popup demo — faithful to the real app (Classic Dark) ---------- */
.popup-stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 560px;
  padding: 60px 0 20px;
}
.popup-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(79, 110, 247, 0.14), transparent 65%);
  filter: blur(10px);
}
.popup {
  position: absolute;
  width: 360px;
  background: #1a1f2e;
  border: 1px solid #252d42;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  box-shadow:
    0 35px 70px -20px rgba(0,0,0,.75),
    0 0 0 1px rgba(255,255,255,0.02) inset;
  font-family: var(--sans);
  color: #f0f2f5;
}
.popup-main {
  z-index: 3;
  animation: floatin 0.8s ease-out, bob 7s ease-in-out infinite 0.8s;
}
@keyframes floatin {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
/* Conflict popup stacked behind, rotated */
.popup-conflict-card {
  z-index: 2;
  width: 300px;
  transform: translate(-110px, -140px) rotate(-7deg);
  opacity: 0.9;
  animation: stackin 1.2s ease-out .3s both, bobback 7s ease-in-out infinite 1.5s;
}
@keyframes stackin {
  from { opacity: 0; transform: translate(-70px, -120px) rotate(-4deg); }
  to   { opacity: .9;  transform: translate(-110px, -140px) rotate(-7deg); }
}
@keyframes bobback {
  0%, 100% { transform: translate(-110px, -140px) rotate(-7deg); }
  50%      { transform: translate(-112px, -148px) rotate(-7deg); }
}
@keyframes floatin {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* Accent strips */
.popup-strip {
  width: 4px;
  background: #4f6ef7;
  flex: 0 0 4px;
}
.popup-strip-danger {
  width: 6px;
  background: #ff4d4d;
  flex: 0 0 6px;
  box-shadow: 0 0 16px rgba(255, 77, 77, 0.5);
}

.popup-body {
  flex: 1;
  padding: 14px 16px;
  display: flex; flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.popup-head {
  display: flex; justify-content: space-between; align-items: center;
}
.popup-app-mini {
  font-size: 10px;
  color: #8896a9;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.popup-app-mini b { color: #8896a9; font-weight: 700; }
.popup-app-mini.danger,
.popup-app-mini.danger b {
  color: #ff4d4d;
  animation: warnpulse 1.4s ease-in-out infinite;
}
@keyframes warnpulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.65; }
}
.popup-x {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: #8896a9;
  font-size: 13px;
  cursor: pointer;
}
.popup-x:hover { background: #252d42; color: #f0f2f5; }

.popup-sep {
  height: 1px;
  background: #252d42;
  margin: 1px 0 2px;
}

.popup-title-mini {
  color: #f0f2f5;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-top: 2px;
  line-height: 1.3;
}
.popup-sub {
  color: #8896a9;
  font-size: 10px;
}

.popup-info-row {
  display: flex; gap: 6px; align-items: center;
  font-size: 10px;
  margin-top: 2px;
}
.popup-starts { color: #8896a9; }
.popup-source { color: #4f6ef7; font-weight: 700; letter-spacing: 0.01em; }

.popup-count-row {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 0 4px;
}
.popup-emoji {
  font-size: 26px;
  line-height: 1;
  width: 34px;
  display: inline-block;
  transition: transform .25s ease;
}
.popup-count-big {
  color: #4f6ef7;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.4s ease;
}

.popup-bar {
  height: 8px;
  background: #252d42;
  border-radius: 4px;
  overflow: hidden;
  margin: 2px 0 4px;
}
.popup-bar-fill {
  height: 100%;
  width: 100%;
  background: #4f6ef7;
  border-radius: 4px;
  transition: width 0.08s linear, background 0.4s ease;
}

.popup-details {
  background: #1e2538;
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 2px;
  display: flex; flex-direction: column; gap: 2px;
}
.popup-detail-row {
  color: #90a0bc;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popup-quote-box {
  background: #161b27;
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 2px;
  color: #8896a9;
  font-style: italic;
  font-size: 11px;
  min-height: 28px;
}
#popup-quote { transition: opacity .35s ease; }

.popup-buttons {
  display: flex; gap: 6px;
  margin-top: 8px;
}
.pbtn {
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s, filter .15s;
  white-space: nowrap;
  text-decoration: none;
}
.pbtn:hover { transform: translateY(-1px); filter: brightness(1.12); }
.pbtn-join    { background: #10b981; color: #fff; padding: 0 14px; }
.pbtn-mute    { background: #f59e0b; color: #fff; }
.pbtn-snooze  { background: #252d42; color: #8896a9; flex: 1; }
.pbtn-dismiss { background: #252d42; color: #8896a9; padding: 0 14px; }

/* Conflict card content */
.popup-meeting-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 6px 0;
  border-top: 1px solid #252d42;
}
.popup-meeting-row:first-of-type { margin-top: 4px; }
.meeting-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex: 0 0 8px;
}
.meeting-title { color: #f0f2f5; font-size: 12px; font-weight: 600; }
.meeting-meta  { color: #8896a9; font-size: 10px; margin-top: 1px; }

@media (max-width: 1000px) {
  .popup-conflict-card {
    width: 260px;
    transform: translate(-70px, -115px) rotate(-5deg);
  }
  @keyframes stackin {
    from { opacity: 0; transform: translate(-30px, -95px) rotate(-3deg); }
    to   { opacity: .9; transform: translate(-70px, -115px) rotate(-5deg); }
  }
  @keyframes bobback {
    0%, 100% { transform: translate(-70px, -115px) rotate(-5deg); }
    50%      { transform: translate(-72px, -122px) rotate(-5deg); }
  }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .popup-stage { min-height: 620px; padding-top: 140px; }
  .popup-conflict-card {
    transform: translate(-40px, -110px) rotate(-5deg);
  }
}
@media (max-width: 600px) {
  .popup-stage { min-height: 560px; padding-top: 90px; }
  .popup-main { transform: scale(0.88); transform-origin: center top; }
  .popup-conflict-card {
    width: 240px;
    transform: translate(-20px, -90px) rotate(-4deg) scale(0.82);
    opacity: 0.75;
  }
  @keyframes stackin {
    from { opacity: 0; transform: translate(0, -70px) rotate(-2deg) scale(0.82); }
    to   { opacity: .75; transform: translate(-20px, -90px) rotate(-4deg) scale(0.82); }
  }
  @keyframes bobback {
    0%, 100% { transform: translate(-20px, -90px) rotate(-4deg) scale(0.82); }
    50%      { transform: translate(-22px, -96px) rotate(-4deg) scale(0.82); }
  }
}
@media (max-width: 420px) {
  .popup { width: 300px; }
  .popup-conflict-card { display: none; }
  .popup-stage { padding-top: 40px; min-height: 500px; }
}

/* ---------- Stats strip ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.stat {
  padding: 38px 24px;
  background: var(--bg-2);
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--amber);
  line-height: 1;
}
.stat-label {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Problem / before-after ---------- */
.problem {
  padding: 110px 0;
  position: relative;
}
.problem::after {
  content: "";
  position: absolute;
  left: -150px; bottom: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 77, 0.12), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 50px;
}
.scene {
  position: relative;
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 340px;
}
.scene-before {
  background: linear-gradient(180deg, #1a1413, #141010);
}
.scene-after {
  background: linear-gradient(180deg, #1d1711, #16120d);
  border-color: rgba(255, 179, 71, 0.35);
}
.scene-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.scene-before .scene-tag { background: rgba(255,77,77,.12); color: #ff8b8b; }
.scene-after  .scene-tag { background: rgba(255,179,71,.15); color: var(--amber); }
.scene h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.scene p { color: var(--ink-dim); margin: 0 0 18px; font-size: 15px; }
.scene-clock {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px dashed var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
.scene-clock strong { color: var(--ink); }
.msg {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin: 6px 0;
  max-width: 90%;
}
.msg-them { background: #2a241e; color: var(--ink-dim); }
.msg-you {
  background: var(--amber);
  color: #1a0f02;
  margin-left: auto;
  margin-right: 0;
  width: fit-content;
  font-weight: 500;
}
.msg-panic { background: rgba(255,77,77,.15); color: #ff8b8b; }
@media (max-width: 760px) { .problem-grid { grid-template-columns: 1fr; } }

/* ---------- Theme showcase ---------- */
.themes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.theme-card {
  aspect-ratio: 3 / 4;
  padding: 18px 14px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform .2s ease;
  display: flex; flex-direction: column; justify-content: space-between;
}
.theme-card:hover { transform: translateY(-4px); }
.theme-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: .9;
}
.theme-sample {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 500;
}
.theme-mini-bar {
  height: 3px;
  border-radius: 2px;
  width: 70%;
}
/* 4 themes — exact palette from the real app (TOAST_STYLES) */
.t-dark    { background: #1a1f2e; color: #f0f2f5; border: 1px solid #252d42; border-left: 4px solid #4f6ef7; }
.t-dark    .theme-mini-bar { background: #4f6ef7; }
.t-light   { background: #ffffff; color: #1e293b; border: 1px solid #e2e8f0; border-left: 4px solid #4f6ef7; }
.t-light   .theme-mini-bar { background: #4f6ef7; }
.t-neon    { background: #111827; color: #e0fbfc; border: 1px solid #1e3a3a; border-left: 3px solid #06d6a0; position: relative; }
.t-neon::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 30% 20%, rgba(6,214,160,.18), transparent 55%);
}
.t-neon > * { position: relative; z-index: 1; }
.t-neon    .theme-mini-bar { background: #06d6a0; box-shadow: 0 0 8px #06d6a0; }
.t-sunset  { background: #2a211a; color: #fef3c7; border: 1px solid #3d2e1e; border-top: 3px solid #f59e0b; border-left: 1px solid #3d2e1e; }
.t-sunset  .theme-mini-bar { background: #f59e0b; }
@media (max-width: 900px) { .themes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .themes { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quote {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: var(--serif);
  position: absolute;
  top: 6px; left: 20px;
  font-size: 60px;
  color: var(--amber);
  opacity: .5;
  line-height: 1;
}
.quote p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 20px 0 24px;
  position: relative;
  z-index: 1;
}
.who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  color: #1a0f02;
  font-family: var(--mono);
}
.who-meta { font-size: 13px; }
.who-name { color: var(--ink); font-weight: 600; }
.who-role { color: var(--ink-faint); font-size: 12px; }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }

/* ---------- Trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 50px;
}
.trust-item {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  display: flex; align-items: center; gap: 14px;
}
.trust-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 179, 71, 0.12);
  font-size: 18px;
  flex: 0 0 40px;
}
.trust-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.trust-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .4s; }
.reveal.delay-6 { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Bell ring ---------- */
@keyframes ring {
  0%, 86%, 100% { transform: rotate(0); }
  88% { transform: rotate(18deg); }
  90% { transform: rotate(-16deg); }
  92% { transform: rotate(14deg); }
  94% { transform: rotate(-10deg); }
  96% { transform: rotate(6deg); }
  98% { transform: rotate(-4deg); }
}
.brand-mark {
  animation: ring 5s ease-in-out infinite;
  transform-origin: 50% 20%;
}

/* ---------- Chat message drop-in (problem section) ---------- */
.scene .msg,
.scene .scene-clock {
  opacity: 0;
  transform: translateY(8px);
}
.scene.in .msg,
.scene.in .scene-clock {
  animation: msgin .5s ease forwards;
}
.scene.in .msg:nth-of-type(1) { animation-delay: .3s; }
.scene.in .msg:nth-of-type(2) { animation-delay: .9s; }
.scene.in .msg:nth-of-type(3) { animation-delay: 1.6s; }
.scene.in .scene-clock        { animation-delay: 2.3s; }
@keyframes msgin {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Feature micro-demos ---------- */
.f-demo {
  margin-top: 22px;
  height: 64px;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

/* Audio — waveform bars */
.wave {
  display: flex; align-items: center; gap: 3px;
  height: 36px;
}
.wave span {
  display: block;
  width: 4px;
  background: linear-gradient(180deg, var(--amber), var(--amber-3));
  border-radius: 2px;
  animation: wavebar 1s ease-in-out infinite;
}
.wave span:nth-child(1)  { animation-delay: -1.0s; height: 30%; }
.wave span:nth-child(2)  { animation-delay: -0.9s; height: 50%; }
.wave span:nth-child(3)  { animation-delay: -0.8s; height: 80%; }
.wave span:nth-child(4)  { animation-delay: -0.7s; height: 60%; }
.wave span:nth-child(5)  { animation-delay: -0.6s; height: 95%; }
.wave span:nth-child(6)  { animation-delay: -0.5s; height: 40%; }
.wave span:nth-child(7)  { animation-delay: -0.4s; height: 70%; }
.wave span:nth-child(8)  { animation-delay: -0.3s; height: 90%; }
.wave span:nth-child(9)  { animation-delay: -0.2s; height: 55%; }
.wave span:nth-child(10) { animation-delay: -0.1s; height: 35%; }
.wave span:nth-child(11) { animation-delay:  0.0s; height: 75%; }
.wave span:nth-child(12) { animation-delay: -0.45s; height: 50%; }
.wave span:nth-child(13) { animation-delay: -0.75s; height: 85%; }
.wave span:nth-child(14) { animation-delay: -0.25s; height: 40%; }
.wave span:nth-child(15) { animation-delay: -0.55s; height: 60%; }
@keyframes wavebar {
  0%, 100% { transform: scaleY(.35); }
  50%      { transform: scaleY(1.2); }
}

/* Timing — mini progress */
.mini-prog {
  width: 82%; height: 6px; border-radius: 3px;
  background: #2a241e;
  position: relative; overflow: hidden;
}
.mini-prog::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--blue), var(--amber-2), var(--red));
  border-radius: 3px;
  animation: shrink 4s ease-in-out infinite;
  transform-origin: left;
}
@keyframes shrink {
  0%   { transform: scaleX(1); }
  95%  { transform: scaleX(.05); }
  100% { transform: scaleX(1); }
}
.mini-prog-label {
  position: absolute;
  top: 50%; left: 8%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}

/* Style — cycling gradient chips */
.chips { display: flex; gap: 6px; }
.chip {
  width: 16px; height: 16px; border-radius: 50%;
  animation: chipglow 3s ease-in-out infinite;
}
.chip:nth-child(1) { background: #1a1f2e; box-shadow: inset 0 0 0 2px #4f6ef7; animation-delay: 0s; }
.chip:nth-child(2) { background: #ffffff; box-shadow: inset 0 0 0 2px #4f6ef7; animation-delay: .5s; }
.chip:nth-child(3) { background: #111827; box-shadow: inset 0 0 0 2px #06d6a0; animation-delay: 1s; }
.chip:nth-child(4) { background: #2a211a; box-shadow: inset 0 0 0 2px #f59e0b; animation-delay: 1.5s; }
@keyframes chipglow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(255,179,71,0); }
  50%      { transform: scale(1.35); box-shadow: 0 0 14px rgba(255,179,71,.6); }
}

/* Tray — mini Windows taskbar */
.tray {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 18px;
  background: #111;
  border-top: 1px solid #222;
  display: flex; align-items: center; gap: 6px;
  padding: 0 8px;
}
.tray::before {
  content: "";
  width: 10px; height: 10px; border-radius: 2px;
  background: #2a2520;
}
.tray-icon {
  width: 12px; height: 12px;
  display: grid; place-items: center;
  font-size: 10px;
  animation: trayping 2.4s ease-in-out infinite;
  border-radius: 3px;
}
@keyframes trayping {
  0%, 60%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,179,71,0)); }
  75%           { transform: scale(1.35); filter: drop-shadow(0 0 6px rgba(255,179,71,.8)); }
}
.tray-popup {
  position: absolute;
  right: 8px; bottom: 24px;
  padding: 4px 8px;
  background: linear-gradient(180deg, #1b1714, #151210);
  border: 1px solid #2a241e;
  border-radius: 5px;
  font-size: 9px;
  color: var(--ink);
  animation: trayslide 4s ease-in-out infinite;
  opacity: 0;
}
.tray-popup::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-3));
  border-radius: 5px 5px 0 0;
}
@keyframes trayslide {
  0%, 20%     { opacity: 0; transform: translateY(6px); }
  35%, 70%    { opacity: 1; transform: translateY(0); }
  85%, 100%   { opacity: 0; transform: translateY(6px); }
}

/* Per-calendar rows */
.cal-rows {
  width: 100%;
  padding: 0 16px;
  display: flex; flex-direction: column; gap: 3px;
}
.cal-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-dim);
  padding: 2px 0;
  animation: calrowhi 6s ease-in-out infinite;
}
.cal-row:nth-child(1) { animation-delay: 0s; }
.cal-row:nth-child(2) { animation-delay: 2s; }
.cal-row:nth-child(3) { animation-delay: 4s; }
.cal-tag {
  background: rgba(255,179,71,.12);
  color: var(--amber);
  padding: 2px 7px;
  border-radius: 4px;
}
@keyframes calrowhi {
  0%, 28%, 100% { opacity: .55; }
  10%, 18%      { opacity: 1; }
}

/* Conflict demo */
.conflict-demo {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.25);
  border-radius: 8px;
  font-size: 12px;
  color: #ffb3b3;
  width: 100%;
  margin: 0 16px;
}
.conflict-demo em { font-style: normal; color: var(--ink); }
.conflict-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff5a5a;
  box-shadow: 0 0 10px #ff5a5a;
  animation: warnpulse 1.4s ease-in-out infinite;
  flex: 0 0 8px;
}

/* Auto-start — Windows logo booting */
.boot {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-dim);
}
.boot-win {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  width: 20px; height: 20px;
}
.boot-win span {
  background: #5aa7ff;
  animation: bootflash 2s ease-in-out infinite;
}
.boot-win span:nth-child(2) { animation-delay: .15s; }
.boot-win span:nth-child(3) { animation-delay: .3s; }
.boot-win span:nth-child(4) { animation-delay: .45s; }
@keyframes bootflash {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; }
}
.boot-arrow {
  color: var(--amber);
  animation: slideright 2s ease-in-out infinite;
}
@keyframes slideright {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

/* Mood — rotating quote */
.mood {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-dim);
  white-space: nowrap;
  opacity: 1;
  transition: opacity .3s ease;
  text-align: center;
  padding: 0 14px;
}

/* ---------- Step connectors ---------- */
.steps { position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  z-index: 0;
}
.steps::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 10%;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--amber-3));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255,179,71,.5);
  animation: stepflow 5s ease-in-out infinite;
  z-index: 1;
}
@keyframes stepflow {
  0%   { width: 0; }
  50%  { width: 80%; }
  100% { width: 0; left: 90%; }
}
.step { position: relative; z-index: 2; }
.step-num { box-shadow: 0 0 0 6px var(--bg); }
@media (max-width: 800px) {
  .steps::before, .steps::after { display: none; }
}

/* ---------- Popup sound pulse (ring expanding outward) ---------- */
.popup-stage::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 360px; height: 180px;
  margin: -90px 0 0 -180px;
  border-radius: 12px;
  border: 2px solid #4f6ef7;
  opacity: 0;
  animation: soundpulse 3s ease-out infinite;
  pointer-events: none;
  z-index: 1;
}
.popup-stage::before {
  animation: glowpulse 4s ease-in-out infinite;
}
@keyframes soundpulse {
  0%   { transform: scale(.94); opacity: .45; }
  100% { transform: scale(1.15); opacity: 0; }
}
@keyframes glowpulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

/* ---------- Section shared ---------- */
.section {
  padding: 100px 0;
  position: relative;
}
.section-head {
  max-width: 680px;
  margin-bottom: 60px;
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
  margin-bottom: 14px;
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.section-sub {
  color: var(--ink-dim);
  font-size: 17px;
  margin: 0;
}

/* ---------- Features ---------- */
#features { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--bg-2);
  padding: 36px 30px;
  transition: background .2s ease;
}
.feature:hover { background: var(--bg-3); }
.feature-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 18px;
}
.feature-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.feature-desc {
  color: var(--ink-dim);
  font-size: 15px;
  margin: 0;
}
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.step-num {
  position: absolute;
  top: -18px; left: 24px;
  width: 36px; height: 36px;
  background: var(--amber);
  color: #1a0f02;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-family: var(--mono);
}
.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 12px 0 10px;
  letter-spacing: -0.01em;
}
.step p { color: var(--ink-dim); margin: 0; font-size: 15px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Calendars ---------- */
.calendars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.cal {
  padding: 22px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 13px;
  color: var(--ink-dim);
  transition: border-color .2s ease, color .2s ease;
}
.cal:hover { border-color: var(--amber); color: var(--ink); }
.cal-logo {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}
@media (max-width: 900px) { .calendars { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .calendars { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pricing ---------- */
#pricing { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.price-card {
  padding: 40px 34px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.price-card.popular {
  background: linear-gradient(180deg, #1f1812, #17130f);
  border-color: var(--amber);
  box-shadow: 0 30px 60px -30px rgba(255, 179, 71, 0.25);
}
.price-badge {
  position: absolute;
  top: -12px; right: 28px;
  padding: 5px 12px;
  background: var(--amber);
  color: #1a0f02;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.price-name {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
}
.price-amount {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  margin: 14px 0 4px;
  letter-spacing: -0.03em;
}
.price-amount .old {
  color: var(--ink-faint);
  font-size: 28px;
  text-decoration: line-through;
  margin-right: 10px;
  vertical-align: middle;
}
.price-meta { color: var(--ink-dim); font-size: 14px; margin-bottom: 28px; }
.price-list { list-style: none; padding: 0; margin: 0 0 32px; }
.price-list li {
  padding: 8px 0;
  padding-left: 26px;
  position: relative;
  color: var(--ink-dim);
  font-size: 15px;
}
.price-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 8px;
  color: var(--amber);
  font-weight: 700;
}
.price-card .btn { width: 100%; justify-content: center; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--amber);
  font-size: 22px;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 0 24px;
  color: var(--ink-dim);
  margin: 0;
  font-size: 16px;
  max-width: 700px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 120px 0;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(255, 138, 61, 0.1), transparent 60%);
}
.final-cta h2 { max-width: 720px; margin: 0 auto 24px; }
.final-cta .sub { margin: 0 auto 36px; color: var(--ink-dim); max-width: 520px; font-size: 18px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 40px;
  background: var(--bg);
}
.footer-grid {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px;
  align-items: center;
}
.footer-links { display: flex; gap: 26px; font-size: 14px; color: var(--ink-dim); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 13px; color: var(--ink-faint); font-family: var(--mono); }

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: 80px 0 40px;
}
.legal-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.legal-hero .meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-faint);
}
.legal-body {
  max-width: 780px;
  padding-bottom: 100px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-dim);
}
.legal-body h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  margin: 44px 0 14px;
  letter-spacing: -0.015em;
}
.legal-body h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 26px 0 8px;
}
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 18px; padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--ink); }
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  margin: 20px 0;
}
