/* Landing page and the legal pages. Vibe's tokens and components, laid out as a page. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

.container {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: 1rem;
}
.container.narrow {
  max-width: 46rem;
}

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
}
.bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
}
.nav {
  display: none;
  gap: 0.25rem;
  margin-left: 1rem;
}
.nav a {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-lg);
  color: var(--muted-foreground);
  font-weight: 500;
}
.nav a:hover {
  background: color-mix(in oklch, var(--accent) 60%, transparent);
  color: var(--foreground);
  text-decoration: none;
}
.bar-tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.cta {
  display: none;
}
@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .cta {
    display: inline-flex;
  }
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(60rem 22rem at 50% -8rem, color-mix(in srgb, var(--primary) 20%, transparent), transparent 70%),
    var(--background);
}
.hero-inner {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
}
.eyebrow .icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--primary);
}
.hero h1 {
  max-width: 20ch;
  font-size: clamp(2rem, 6.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
.lead {
  max-width: 40rem;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.hero-note {
  max-width: 34rem;
}

.stay-safe {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

/* ---- Sections ---------------------------------------------------------- */
.section {
  padding-block: 3rem 0.5rem;
}
.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.section-head h2,
.card-title.xl {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-head p {
  max-width: 44rem;
}

/* Demo */
.demo {
  display: grid;
  gap: 0.75rem;
  align-items: stretch;
}
.demo-arrow {
  display: flex;
  justify-content: center;
  color: var(--muted-foreground);
}
.demo-arrow .icon {
  width: 1.5rem;
  height: 1.5rem;
  transform: rotate(90deg);
}
.demo-pane .textarea {
  min-height: 9rem;
  font-size: 1rem;
}
.demo-out {
  padding: 0.5rem 0.75rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.demo-frame {
  min-height: 7rem;
  max-height: 11rem;
  overflow-y: auto;
}
.demo-buttons {
  flex-wrap: wrap;
}
#demo-result:empty {
  display: none;
}
#demo-result.fail {
  color: var(--destructive);
}
#demo-result.ok {
  color: var(--primary);
}
@media (min-width: 900px) {
  .demo {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .demo-arrow {
    align-items: center;
  }
  .demo-arrow .icon {
    transform: none;
  }
}

/* Steps */
.steps {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  padding: 1rem;
  gap: 0.375rem;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.25rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--primary) 15%, transparent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Visibility */
.two-col {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}
.card-title.row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-title.good {
  color: var(--primary);
}
.card-title.warn {
  color: var(--warning);
}
.checks {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted-foreground);
}
.checks li {
  position: relative;
  padding-left: 1.25rem;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--border);
}
.card:has(.good) .checks li::before {
  background: var(--primary);
}
.card:has(.warn) .checks li::before {
  background: var(--warning);
}

/* Use cases */
.grid-4 {
  display: grid;
  gap: 0.75rem;
}
.use {
  padding: 1rem;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Comparison */
.table-card {
  padding: 0;
  overflow-x: auto;
}
.compare {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
}
.compare th,
.compare td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}
.compare thead th {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare tbody th {
  font-weight: 500;
}
.compare td {
  color: var(--muted-foreground);
}
.compare .us {
  color: var(--foreground);
  background: color-mix(in oklch, var(--primary) 8%, transparent);
}
.compare thead .us {
  color: var(--primary);
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.5rem;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}
.faq summary {
  padding: 0.875rem 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--muted-foreground);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq details p {
  padding: 0 1rem 1rem;
  color: var(--muted-foreground);
}

/* Final call to action */
.final {
  padding-block: 3rem;
}
.final-card {
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem;
  text-align: center;
  background:
    radial-gradient(30rem 12rem at 50% 0, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
    var(--card);
}

/* ---- Footer ----------------------------------------------------------- */
.site-footer {
  padding: 1.5rem 0 calc(1.5rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.foot-nav {
  display: flex;
  gap: 1rem;
}

/* ---- Legal pages ------------------------------------------------------- */
.prose {
  padding-block: 2.5rem 3rem;
  max-width: 46rem;
}
.prose h1 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.prose p,
.prose li {
  color: color-mix(in srgb, var(--foreground) 82%, transparent);
  line-height: 1.7;
}
.prose p + p,
.prose ul,
.prose ol {
  margin-top: 0.75rem;
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
}
.prose li + li {
  margin-top: 0.375rem;
}
.prose .meta {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}
.prose .notice {
  margin-top: 1rem;
}
.prose table {
  width: 100%;
  margin-top: 0.75rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.prose th,
.prose td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--muted);
}
