/* Meetless - mobile-first stylesheet */
:root {
  --accent: #2F6B5E;
  --accent-dark: #234F45;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f7f8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
img, video, svg { max-width: 100%; height: auto; }
body { overflow-x: clip; }  /* nothing may ever push the page sideways */

/* ---------- nav ---------- */
.topnav {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.9rem; background: #fff; border-bottom: 1px solid var(--line);
}
.brand { font-size: 1.15rem; font-weight: 800; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand span { color: var(--accent); }
.tagline { display: none; }  /* desktop-only */
.nav-links {
  margin-left: auto; display: flex; align-items: center;
  gap: 0.7rem; font-size: 0.85rem; white-space: nowrap;
}
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links .btn-sm { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
.credits-pill {
  display: none;  /* desktop-only */
  background: #e3ede9; color: #234F45; border-radius: 999px;
  padding: 0.15rem 0.7rem; font-size: 0.78rem; font-weight: 700;
  white-space: nowrap;
}

.container { max-width: 1080px; margin: 0 auto; padding: 1rem; }

/* ---------- hero ---------- */
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72rem; font-weight: 800; color: var(--accent-dark);
  background: #e3ede9; border-radius: 999px; padding: 0.25rem 0.8rem;
}
.hero-flex { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem 0 0.5rem; }
.hero h1 {
  font-size: clamp(1.9rem, 7vw, 3.1rem); line-height: 1.12;
  margin: 0.7rem 0 0.8rem; letter-spacing: -0.02em;
}
.hero-copy > p { color: var(--muted); max-width: 52ch; margin: 0 0 1.1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.1rem; }
.hero-points { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 0.92rem; }
.hero-points li { padding-left: 1.5rem; position: relative; margin: 0.3rem 0; }
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800;
}

/* ---------- cards & buttons ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem; margin: 1.1rem 0;
}
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0;
  padding: 0.75rem 1.3rem; border-radius: 10px; font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { background: var(--muted); cursor: not-allowed; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: #b91c1c; }
.btn-danger:hover { background: #991b1b; }
.hint { color: var(--muted); font-size: 0.85rem; }
.error { color: #b91c1c; font-weight: 600; }
.overview { font-size: 1.05rem; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field span .hint { display: block; font-weight: 400; }
.field input[type="text"], .field input[type="number"], .field input[type="email"],
.field input[type="password"], .field select, .field textarea {
  width: 100%; max-width: 30rem; padding: 0.55rem 0.7rem; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff;
}
.field textarea { resize: vertical; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 1.2rem; align-items: flex-end; }
.field-row .field { flex: 1 1 10rem; }
.radio-field > span { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.radio-field label { display: block; margin: 0.2rem 0; font-size: 0.95rem; }
.check-field { display: block; margin: 0.35rem 0; font-size: 0.95rem; }
.check-list > span { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.auth-card { max-width: 440px; margin: 1.5rem auto; }
.auth-card input[type="email"], .auth-card input[type="password"] {
  width: 100%; padding: 0.7rem; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem;
}

/* ---------- intake ---------- */
.intake-card { max-width: 760px; margin: 1.1rem auto; }
.intake-screen { border: 0; border-top: 1px solid var(--line); padding: 1.2rem 0 0.6rem; margin: 0 0 0.8rem; }
.intake-screen legend {
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-dark); padding-right: 0.8rem;
}
.more-detail { border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.9rem; margin: 0.8rem 0; }
.more-detail summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--muted); }
.more-detail[open] summary { margin-bottom: 0.7rem; }

/* ---------- result & documents ---------- */
.sect-label {
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem;
  font-weight: 800; color: var(--muted); margin: 1.2rem 0 0.3rem;
}
.outcome-h { margin: 0.2rem 0 0.3rem; font-size: clamp(1.4rem, 5vw, 1.9rem); }
.reason { color: var(--muted); max-width: 60ch; margin-top: 0; }
table.kv-table { width: 100%; border-collapse: collapse; }
table.kv-table td { padding: 0.45rem 0.4rem; border-top: 1px solid var(--line); font-size: 0.95rem; }
table.kv-table td.num {
  text-align: right; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem; white-space: nowrap;
}
.ruled-out { margin: 0.5rem 0; }
.ruled-out s { color: var(--muted); font-weight: 600; }
.note-block {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: #f3f6f4; border-radius: 8px; padding: 0.6rem 0.9rem; margin: 0.8rem 0;
}
.note-block p { margin: 0.2rem 0 0; font-size: 0.92rem; }
.note-label {
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem;
  font-weight: 800; color: var(--accent-dark);
}
.diagnosis-card { border-left: 4px solid var(--accent); }
.diagnosis-card h3 { margin: 1.1rem 0 0.2rem; font-size: 1rem; }
.spec-card { max-width: 720px; margin: 1.5rem auto; }
.spec-card h3 { margin: 1.3rem 0 0.2rem; font-size: 1rem; }
.spec-card p { margin: 0.2rem 0 0; }
.mono-line code {
  display: inline-block; background: #f3f6f4; border: 1px solid var(--line);
  border-radius: 8px; padding: 0.35rem 0.6rem; font-size: 0.82rem;
  word-break: break-all; white-space: normal;
}
.cal-block {
  width: 100%; max-width: 34rem; display: block; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.82rem; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.6rem; background: #fafafa; margin-bottom: 0.5rem;
}
.poll-note { border-left: 3px solid var(--line); padding-left: 0.8rem; color: #374151; font-size: 0.92rem; }
.danger-card { border-color: #fecaca; }
.result-card { border-top: 4px solid var(--accent); }

/* ---------- demo ---------- */
.demo-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem;
  justify-content: space-between;
}
.demo-head h1, .demo-head h2 { margin: 0; }

/* ---------- grids ---------- */
.how, .pricing-grid, .account-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.1rem 0;
}
.how-step, .price-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.how-step b { color: var(--accent-dark); }
.how-step p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.9rem; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-card h2 { margin-top: 0; }
.price-desc { color: var(--muted); }
.price-feats { color: var(--muted); font-size: 0.9rem; padding-left: 1.1rem; flex: 1; }
.price-big { font-size: 2rem; font-weight: 800; margin: 0.2rem 0 0; }
.price-per { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.price-unit { color: var(--muted); font-size: 0.82rem; margin: 0 0 0.4rem; }
.price-badge {
  align-self: flex-start; background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 800; border-radius: 999px; padding: 0.15rem 0.7rem;
}

/* ---------- feature grid + steps (marketing) ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.1rem 0; }
.feature-card h3 { margin: 0.4rem 0 0.3rem; }
.feature-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.feature-icon { font-size: 1.4rem; }
ol.steps { margin: 0.5rem 0 0; padding-left: 1.4rem; }
ol.steps li { margin: 0.7rem 0; }
ol.steps li span { display: block; color: var(--muted); font-size: 0.92rem; }

/* ---------- tables (scroll on small screens) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.jobs { width: 100%; border-collapse: collapse; min-width: 560px; }
table.jobs th, table.jobs td {
  text-align: left; padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.badge { padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: #f0f0f2; color: #374151; }
.badge-done, .badge-held, .badge-analysed { background: #dcfce7; color: #166534; }
.badge-processing, .badge-queued, .badge-trial_active, .badge-shared { background: #e3ede9; color: #234F45; }
.badge-error, .badge-reverted { background: #fee2e2; color: #991b1b; }
.badge-draft, .badge-abandoned { background: #f0f0f2; color: #374151; }
.link-btn { background: none; border: 0; color: #b91c1c; cursor: pointer; font-size: 0.9rem; padding: 0; }
.actions-col { white-space: nowrap; }

/* ---------- status/progress ---------- */
.progress { height: 10px; background: #f0f0f2; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); transition: width 0.5s; }
.stage { margin-top: 0.8rem; }

/* ---------- banners ---------- */
.success-banner { background: #dcfce7; border: 1px solid #86efac; color: #166534; padding: 0.7rem 1.1rem; border-radius: 10px; }
.verify-banner {
  background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
  padding: 0.9rem 1.2rem; border-radius: 10px; margin: 1rem 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
}
.verify-banner form { margin-left: auto; }
.verify-banner em { font-style: normal; font-weight: 600; }

/* ---------- content pages & footer ---------- */
.content-page { max-width: 720px; margin: 0 auto; padding: 1.5rem 0; }
.content-page h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 0.6rem 0 1rem; }
.content-page h2 { font-size: 1.15rem; margin: 1.6rem 0 0.4rem; }
.content-page p, .content-page li { color: #374151; }
.content-page a { color: var(--accent-dark); }
.contact-form textarea {
  width: 100%; padding: 0.7rem; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem; font-family: inherit; resize: vertical;
}
.contact-form input[type="text"], .contact-form input[type="email"] {
  width: 100%; padding: 0.7rem; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem;
}
.hp-field { position: absolute; left: -5000px; opacity: 0; height: 0; }
.notfound { text-align: center; padding: 3rem 0; }
.notfound-code { font-size: 5rem; font-weight: 800; color: var(--accent); margin: 0; line-height: 1; }
.notfound .hero-ctas { justify-content: center; }

.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 3rem; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 2rem 1rem 1rem;
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.92rem; }
.footer-col b { margin-bottom: 0.3rem; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--accent-dark); }
.footer-base {
  max-width: 1080px; margin: 0 auto; padding: 1rem;
  color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--line);
}
@media (min-width: 780px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; padding: 2.5rem 1.5rem 1.5rem; }
  .footer-base { padding: 1rem 1.5rem; }
}

/* ---------- workspace buy options ---------- */
.buy-options { display: grid; grid-template-columns: 1fr; gap: 0.8rem; margin: 1rem 0 0.4rem; }
.buy-option {
  border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.buy-option.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.buy-option .buy-price { font-size: 1.3rem; font-weight: 800; }
.buy-option .buy-desc { color: var(--muted); font-size: 0.88rem; flex: 1; }
.buy-option .btn { margin-top: 0.5rem; align-self: flex-start; }
.empty-hint { text-align: center; padding: 1rem 0; }
@media (min-width: 780px) {
  .buy-options { grid-template-columns: repeat(2, 1fr); }
}
.dev-banner { background: #fef9c3; border: 1px solid #fde047; color: #854d0e; padding: 0.7rem 1.1rem; border-radius: 10px; }
.big-number { font-size: 2.4rem; font-weight: 800; margin: 0.2rem 0; color: var(--accent-dark); }
.inline-form { display: inline; }

/* ---------- desktop ---------- */
@media (min-width: 780px) {
  .container { padding: 2rem 1.5rem; }
  .topnav { padding: 0.9rem 2rem; gap: 1rem; }
  .brand { font-size: 1.3rem; }
  .tagline { display: inline; color: var(--muted); font-size: 0.9rem; }
  .nav-links { gap: 1rem; font-size: 0.95rem; }
  .nav-links .btn-sm { font-size: 0.9rem; padding: 0.4rem 0.9rem; }
  .credits-pill { display: inline-block; }
  .hero-flex { flex-direction: row; align-items: center; gap: 2.5rem; padding-top: 2.5rem; }
  .card { padding: 1.4rem 1.6rem; margin: 1.4rem 0; }
  .how { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .account-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
