/* VibeRoom — shared styles. Palette mirrors the app's theme.ts (light + dark). */
:root {
  --bg: #f5f1e7;
  --bg-grad-top: #edf2ea;
  --bg-grad-bottom: #f2efe4;
  --card: #fbf9f3;
  --card-alt: #edf2ea;
  --border: #e6e1d4;
  --text: #20402b;
  --text-dim: #5b5f55;
  --accent: #3f7350;
  --accent-2: #5c9e6f;
  --accent-soft: #edf2ea;
  --on-accent: #ffffff;
  --radius: 16px;
  --maxw: 960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1310;
    --bg-grad-top: #243521;
    --bg-grad-bottom: #141a13;
    --card: #191f17;
    --card-alt: #21301f;
    --border: #2b331f;
    --text: #e9f1e4;
    --text-dim: #a6ae9f;
    --accent: #6faa7e;
    --accent-2: #5c9e6f;
    --accent-soft: #21301f;
    --on-accent: #0f1310;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand .mark-sm {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--on-accent);
  font-weight: 800;
  font-size: 16px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(
    180deg,
    var(--bg-grad-top) 0%,
    var(--bg-grad-bottom) 70%,
    var(--bg) 100%
  );
  padding: 88px 0 96px;
  text-align: center;
}

.hero .mark {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  margin-bottom: 8px;
  box-shadow: 0 12px 30px rgba(31, 64, 43, 0.18);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  font-weight: 700;
  margin: 18px 0 14px;
}

.hero p.lede {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .micro {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Sections ---------- */
section.block {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 0 0 10px;
}

.section-head p {
  color: var(--text-dim);
  margin: 0 auto;
  max-width: 540px;
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.feature .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature .ico svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step .num {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* ---------- Strip ---------- */
.strip {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strip .wrap {
  padding-top: 56px;
  padding-bottom: 56px;
  text-align: center;
}

.strip h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}

.strip p {
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Legal / doc pages ---------- */
.doc {
  padding: 56px 0 80px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin: 0 0 6px;
}

.doc .updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 36px;
}

.doc h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 38px 0 12px;
  letter-spacing: -0.3px;
}

.doc h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
}

.doc p,
.doc li {
  color: var(--text-dim);
  font-size: 16px;
}

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

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin: 6px 0;
}

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px 0;
}

.callout p {
  margin: 0;
  color: var(--text);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  margin-left: 12px;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details p {
  color: var(--text-dim);
  margin: 0 0 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 24px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer .brand {
  font-size: 18px;
}

.site-footer .brand .mark-sm {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

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

.foot-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
}

.copyright {
  color: var(--text-dim);
  font-size: 13px;
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .nav {
    gap: 16px;
  }
  .nav a.nav-hide {
    display: none;
  }
}
