:root {
  --bg: #FFFFFF;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --surface: #F5F5F7;
  --line: #E8E8ED;
  --navy: #0A84FF;
  --indigo: #5E5CE6;
  --action: #0071E3;
  --action-hover: #0077ED;
  --dot: #FF3B30;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  color-scheme: light;
}

* { box-sizing: border-box; }
h1, h2, h3 { text-wrap: balance; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
svg { display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 6px; font-size: 0.94rem; }
.nav a:not(.button) { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.nav a:not(.button):hover { color: var(--text); background: var(--surface); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--action);
  background: var(--action); color: #fff;
  font: 500 0.97rem/1 var(--font); text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.button:hover { background: var(--action-hover); border-color: var(--action-hover); }
.button.secondary { background: var(--surface); border-color: var(--surface); color: var(--text); }
.button.secondary:hover { background: #E8E8ED; border-color: #E8E8ED; }
.nav .button { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }

/* Hero */
.hero { padding: clamp(56px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.hero h1 {
  margin: 0 auto 20px; max-width: 15ch;
  font-weight: 600; font-size: clamp(2.5rem, 6.2vw, 4.5rem); line-height: 1.04; letter-spacing: -0.035em;
}
.hero p { margin: 0 auto 32px; max-width: 46ch; color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* The app panel */
.showcase { padding-bottom: clamp(64px, 9vw, 120px); }
.panel {
  margin: 0 auto; max-width: 880px;
  background: var(--surface); border-radius: 32px;
  padding: clamp(20px, 4vw, 48px);
}
.app {
  margin: 0 auto; max-width: 520px;
  background: #fff; border-radius: 24px; border: 1px solid var(--line);
  overflow: hidden; text-align: left;
}
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.app-top strong { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.app-top span { font-size: 0.85rem; color: var(--muted); }
.rooms-list { list-style: none; margin: 0; padding: 6px 0; }
.rooms-list li { display: flex; gap: 14px; align-items: center; padding: 12px 20px; }
.avatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-weight: 600; font-size: 0.82rem; color: var(--muted); }
.room-text { min-width: 0; flex: 1; }
.room-name { font-weight: 600; letter-spacing: -0.01em; }
.room-scope { font-size: 0.8rem; color: var(--muted); margin-left: 6px; font-weight: 400; }
.room-last { font-size: 0.92rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rooms-list li.here .avatar { background: var(--action); color: #fff; }
.swap { transition: opacity .3s ease; }
.is-swapping .swap { opacity: 0; }
.panel-caption { margin: 18px auto 0; max-width: 52ch; text-align: center; font-size: 0.92rem; color: var(--muted); }

/* Sections */
section.block { padding: clamp(64px, 9vw, 120px) 0; }
section.block.tint { background: var(--surface); }
.block h2 { margin: 0 0 14px; font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 20ch; }
.block .lede { margin: 0 0 48px; max-width: 56ch; color: var(--muted); font-size: 1.12rem; }
.center { text-align: center; }
.center h2, .center .lede { margin-left: auto; margin-right: auto; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.tint .step { border-color: transparent; }
.step h3 { margin: 0 0 8px; font-weight: 600; font-size: 1.2rem; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--muted); }

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin-top: 56px; }
.rules p { margin: 0; color: var(--muted); max-width: 46ch; }
.rules strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.feature svg { width: 26px; height: 26px; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); }

.cta { text-align: center; }
.cta .panel { max-width: none; padding: clamp(48px, 7vw, 88px) var(--gutter); }
.cta h2 { margin-left: auto; margin-right: auto; }
.cta p { margin: 0 auto 28px; max-width: 48ch; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* Legal pages */
.doc { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.doc .wrap { max-width: 760px; }
.doc h1 { margin: 0 0 8px; font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.25rem); line-height: 1.05; letter-spacing: -0.035em; }
.doc .updated { margin: 0 0 40px; color: var(--muted); }
.doc h2 { margin: 2.2em 0 0.5em; font-weight: 600; font-size: 1.45rem; letter-spacing: -0.02em; }
.doc p, .doc li { color: #2B2B2B; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.5em; }
.doc a { color: var(--action); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 0.96rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--line); }
.doc th { font-weight: 600; }
.doc .callout { background: var(--surface); border-radius: 20px; padding: 20px 24px; margin: 28px 0; }
.doc .callout p { margin: 0; }
.table-scroll { overflow-x: auto; }

@media (max-width: 860px) {
  .steps, .features, .rules { grid-template-columns: minmax(0, 1fr); }
  .nav a:not(.button) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
