/* The public pages: home (home.html), privacy and terms. Reachable while
   logged out (see server.js's PUBLIC_PATHS), so they don't load style.css
   (the table's) — just ui.css and this. Same tokens as style.css's :root
   and the Call panel's button types (see the vtt-ui-style skill). */
:root {
  --bg: #1b1d22;
  --panel-bg: rgba(28, 30, 36, 0.92);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #e7e9ee;
  --text-dim: rgba(231, 233, 238, 0.65);
  --accent: #6ea8fe;
  --green: #1db954;
  --red: #f05252;
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-bg-hover: rgba(255, 255, 255, 0.11);
  --btn-border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

.ui-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: none;
}
.ui-icon svg {
  width: 100%;
  height: 100%;
}

/* --- Buttons (Call panel types) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--text);
  cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.btn:hover {
  background: var(--btn-bg-hover);
}
.btn:active {
  transform: scale(0.97);
}
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--green);
  border-color: transparent;
  color: #04160a;
  font-weight: 600;
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--green) 88%, white);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-dim);
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--btn-bg);
}

/* --- Top bar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(16px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--panel-border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand img {
  width: 26px;
  height: 26px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav .nav-link {
  display: none;
}
@media (min-width: 720px) {
  .site-nav .nav-link {
    display: inline-flex;
  }
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Hero --- */
.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 56px 0 40px;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1fr 1.15fr;
    padding: 88px 0 64px;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 18px 0 16px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lead {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 34em;
  margin: 0 0 28px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}

/* The drawn "table" (an SVG, see home.html): a framed panel, like the app's. */
.table-shot {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: #15171b;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.table-shot svg {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Sections --- */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--panel-border);
}
.section-head {
  max-width: 40em;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 10px;
}
.section-head p {
  margin: 0;
  color: var(--text-dim);
}

.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.feature {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 18px 18px 16px;
}
.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  margin: 0 0 8px;
}
.feature h3 .ui-icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  color: var(--tint, var(--accent));
  background: color-mix(in srgb, var(--tint, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint, var(--accent)) 30%, transparent);
}
.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}
.feature ul {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-dim);
}
.feature li + li {
  margin-top: 2px;
}

/* Icon hues, the same family as the table's panel toggles. */
.t-blue { --tint: #6ea8fe; }
.t-green { --tint: #1db954; }
.t-amber { --tint: #f2b84b; }
.t-red { --tint: #f07a7a; }
.t-violet { --tint: #b493ff; }
.t-teal { --tint: #4fd1c5; }
.t-pink { --tint: #f58fc4; }

/* --- How it works --- */
.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 18px;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 13px;
  color: #04160a;
  background: var(--green);
}
.steps h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.steps p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* --- Honest notes --- */
.notes {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.note {
  border-left: 3px solid var(--panel-border);
  padding: 2px 0 2px 14px;
  font-size: 14px;
  color: var(--text-dim);
}
.note strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.closing {
  text-align: center;
  padding: 64px 0 72px;
  border-top: 1px solid var(--panel-border);
}
.closing h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 10px;
}
.closing p {
  color: var(--text-dim);
  margin: 0 0 24px;
}
.closing .cta-row {
  justify-content: center;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 22px 16px 32px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}
.site-footer a {
  color: inherit;
}
.site-footer p {
  margin: 4px 0;
}

/* --- Legal pages (privacy.html, terms.html) --- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}
.doc h1 {
  font-size: 30px;
  margin: 0 0 6px;
}
.doc .updated {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0 0 28px;
}
.doc h2 {
  font-size: 18px;
  margin: 32px 0 8px;
}
.doc p,
.doc li {
  color: rgba(231, 233, 238, 0.85);
  font-size: 15px;
}
.doc ul {
  padding-left: 20px;
}
.doc li + li {
  margin-top: 4px;
}
.doc .callout {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn:active {
    transform: none;
  }
}
