/* Roundtable AI website. Plain CSS, no build step. Mobile first (390 px), widens at 760 px and 1100 px. */

:root {
  --ink: #0f1b2d;
  --ink-soft: #5b6576;
  --paper: #f6f4ef;
  --panel: #ffffff;
  --line: #e4e0d6;
  --accent: #2f6fed;       /* app blue; white button text passes AA */
  --accent-ink: #ffffff;
  --soon-bg: #f3efe4;
  --soon-ink: #5c4a1f;     /* 7.4:1 on soon-bg */
  --focus: #b3541e;
  --radius: 10px;
  --wrap: 1120px;
  font-size: 100%;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: #245fcf; } /* Darker blue keeps small links readable on paper. */
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 10;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex: none;
}

/* Nav: full list on wide screens. On phones a Menu link jumps to the page list in the footer (no JavaScript). */
.site-header { position: relative; }
.nav-main { display: none; }
.nav-main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-main a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: .98rem;
}
.nav-main a:hover { background: var(--soon-bg); }
.nav-main a[aria-current="page"] { font-weight: 700; color: #245fcf; }
.menu-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
@media (min-width: 900px) {
  .nav-main { display: block; }
  .menu-link { display: none; }
}

/* Buttons and labels */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-soon {
  background: transparent;
  color: var(--ink-soft);
  border: 1px dashed #9c9586;
  font-weight: 600;
  cursor: default;
}
@media (max-width: 599px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
}
.tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--soon-bg);
  color: var(--soon-ink);
  white-space: nowrap;
}
.tag-demo { background: #e3efe9; color: #164536; }

/* Hero */
.hero { padding: 40px 0 20px; }
.hero h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hero .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 38em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: .95rem; color: var(--ink-soft); margin: 12px 0 0; max-width: 32em; text-wrap: pretty; }

.video-spot {
  margin-top: 28px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 2px dashed var(--line);
  background: repeating-linear-gradient(135deg, #f4f1ea 0 14px, #efebe2 14px 28px);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 16px;
}

@media (min-width: 1100px) {
  .hero .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .hero { padding: 64px 0 48px; }
  .video-spot { margin-top: 12px; }
}

/* Sections */
.section { padding: 48px 0; }
.section h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin: 0 0 8px; line-height: 1.2; }
.section .intro { color: var(--ink-soft); margin: 0 0 20px; max-width: 40em; }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.25; }
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Demo project panel */
.demo {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.demo-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 6px; }
.demo-head h3 { margin: 0; font-size: 1.2rem; }
.fine { font-size: .92rem; color: var(--ink-soft); margin: 0 0 16px; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.demo-steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fdfcf9;
}
.demo-steps strong { display: block; }
@media (min-width: 760px) { .demo-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 759px) {
  .demo { padding: 16px; }
  .demo-steps li {
    border: 0;
    border-left: 3px solid var(--line);
    border-radius: 0;
    background: none;
    padding: 4px 0 4px 12px;
  }
}

/* Page stub */
.stub { padding: 48px 0 64px; }
.stub h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 0 0 12px; }

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 28px 0 36px;
  font-size: .97rem;
}
.footer-links {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.footer-links a { display: inline-block; padding: 8px 8px; min-height: 44px; line-height: 28px; }
.footer-note { margin: 0; color: var(--ink-soft); }
.footer-note a { font-weight: 600; }

@media (max-width: 599px) {
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .footer-links a { text-decoration: none; }
}

.nowrap { white-space: nowrap; }

/* Inner pages */
.hero-page { padding-bottom: 8px; }
.hero-page h1 { font-size: clamp(2rem, 7vw, 3rem); }

.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.step h3 { margin: 2px 0 6px; font-size: 1.2rem; line-height: 1.25; }
.step p { margin: 0 0 10px; }
.step p:last-child { margin-bottom: 0; }
.num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.example {
  font-size: .97rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
  padding-left: 12px;
}
.example strong { color: var(--ink); }
@media (min-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

.soon-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.soon-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  max-width: 560px;
}

.feature-list { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .feature-list { grid-template-columns: 1fr 1fr; } }

/* Inner page heroes with no video: let the lead use the full width. */
@media (min-width: 1100px) {
  .hero-page .wrap:has(> :only-child) { display: block; }
  .hero-page .lead { max-width: 44em; }
}

/* Keep the footer at the bottom on short pages. */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* FAQ */
.faq { display: grid; gap: 14px; max-width: 760px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.card ul { margin: 0; padding-left: 20px; }
.card li + li { margin-top: 6px; }

/* Simple lists on text pages (Privacy) */
.plain-list { margin: 0; padding-left: 20px; max-width: 46em; }
.plain-list li + li { margin-top: 10px; }
.plain-list .tag { margin-right: 6px; }

.hero-sub { color: var(--ink-soft); margin: 0 0 22px; max-width: 38em; }
.btn-secondary { background: var(--panel); color: #245fcf; border: 2px solid #245fcf; }

/* Compare table */
.scroll-hint { font-size: .92rem; color: var(--ink-soft); margin: 0 0 10px; }
@media (min-width: 1100px) { .scroll-hint { display: none; } }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.compare { border-collapse: collapse; min-width: 980px; width: 100%; font-size: .95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--soon-bg); font-size: 1rem; }
.compare tbody th { width: 140px; }
.compare td:nth-child(2), .compare th:nth-child(2) { background: #eef3fd; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* Roadmap */
.soon-wide li { max-width: 760px; }

/* Early testers */
.card-title { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.25; }
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.signup { max-width: 640px; }
.signup fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px; margin: 0; min-width: 0; }
.signup input:disabled, .signup select:disabled, .signup textarea:disabled, .signup button:disabled { opacity: .75; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; padding: 10px 12px; min-height: 44px;
  border: 1px solid #8a8374; border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin-bottom: 14px; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup button { font: inherit; font-weight: 600; }
.section .card-title { font-size: 1.2rem; margin: 0 0 8px; line-height: 1.25; }
