/* Tokens live in tokens.css; the button family in buttons.css. Both load first. */


* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.hidden { display: none !important; }

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c-grad-start) 0%, var(--c-grad-end) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.brand-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--c-ink);
}

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

.nav-link {
  font-size: 14px;
  color: var(--c-ink-soft);
  transition: color 0.15s;
}

.nav-link:hover { color: var(--c-ink); }

/* Buttons: the family is in buttons.css. Landing wants a stronger ghost than the app
   pages do — full ink on a photographic hero rather than the soft ink a form uses. */

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-border);
}

.btn-ghost:hover { background: var(--c-surface-soft); }

.g-logo {
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 2px;
  padding: 1px;
}

/* Hero */

.hero {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 56px 48px 72px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  font-weight: 700;
}

.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  color: var(--c-ink-soft);
  max-width: 560px;
}

.hero-ctas {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cta { padding: 13px 22px; font-size: 15px; }

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--c-muted);
}

/* Hero stage — a mock of the meeting room (landingPage.ts drives it). The classes echo
   meeting.css's tile and caption look without loading that sheet. */

.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-room {
  width: 100%;
  max-width: 460px;
  background: #1d2033;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 16px 16px 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.room-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pill-room {
  background: rgba(255, 255, 255, 0.12);
  color: #e6e8f5;
}

.room-timer {
  font-size: 12px;
  color: #c9cce0;
  font-variant-numeric: tabular-nums;
}

.room-tile {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #2a3a2a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-avatar {
  height: 100%;
  aspect-ratio: 1;
}

.room-avatar svg,
.room-avatar img {
  width: 100%;
  height: 100%;
  display: block;
}

.room-name {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 8px;
  border-radius: 999px;
}

/* Captions: what has been said reads soft, the clause being said now reads bright. */
.room-caption {
  min-height: 3em;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
}

.room-caption .cap-now { color: #fff; background: rgba(102, 126, 234, 0.35); border-radius: 3px; }
.room-caption .cap-said { color: #d4d7ea; }
.room-caption .cap-ahead { color: rgba(255, 255, 255, 0.35); }

.room-you {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.room-you-dot {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f4a261;
  color: #3a1f08;
}

.room-you-caption {
  min-height: 2.8em;
  font-size: 14px;
  line-height: 1.5;
  color: #c9cce0;
}

.hero-stage-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-sound {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: var(--c-card);
  color: var(--c-ink-soft);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.hero-sound:hover { color: var(--c-ink); }

.hero-sound[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--c-grad-start) 0%, var(--c-grad-end) 100%);
  color: #fff;
}

.carousel-dots {
  display: flex;
  gap: 4px;
}

/* A 24px target around an 8px dot. */
.carousel-dot {
  width: 24px;
  height: 24px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-border);
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot:hover::before { background: var(--c-muted); }

.carousel-dot.is-active::before {
  background: linear-gradient(135deg, var(--c-grad-start) 0%, var(--c-grad-end) 100%);
  transform: scale(1.25);
}

/* Proof strip */

.proof {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-card);
}

.proof-list {
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 48px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 15px;
  color: var(--c-ink-soft);
}

.proof-list strong {
  color: var(--c-ink);
  font-size: 20px;
  margin-right: 4px;
}

/* Sections */

.features,
.role,
.results,
.faq {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}

.section-title {
  font-size: 32px;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--c-ink-soft);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}

.feature-avatar,
.feature-icon,
.feature-avatar-pair {
  height: 48px;
  margin-bottom: 14px;
}

.feature-avatar {
  width: 48px;
  border-radius: 50%;
  display: block;
}

.feature-avatar-pair {
  display: flex;
  align-items: center;
}

.feature-avatar-pair img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--c-card);
}

.feature-avatar-pair img + img { margin-left: -10px; }

.feature-icon {
  width: 48px;
  border-radius: 50%;
  background: #ffe6cc;
  color: #8a4b12;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--c-ink);
}

.feature p {
  font-size: 14px;
  color: var(--c-ink-soft);
}

/* Made for your role */

.role {
  padding-top: 0;
}

.chip-cloud {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.chip-cloud-types { margin-top: 14px; }

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: var(--c-card);
  font-size: 13px;
  color: var(--c-ink-soft);
}

.chip-type {
  border-color: transparent;
  background: #e7ecff;
  color: #3b55a0;
}

.role-note {
  text-align: center;
  font-size: 14px;
  color: var(--c-muted);
  margin-top: 18px;
}

.micro-callout {
  max-width: 760px;
  margin: 40px auto 0;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 1px solid #dcdcf3;
}

.micro-badge {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-grad-start) 0%, var(--c-grad-end) 100%);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.micro-callout h3 { font-size: 17px; margin-bottom: 4px; }
.micro-callout p { font-size: 14px; color: var(--c-ink-soft); }

/* What you get */

.results {
  background: var(--c-card);
  max-width: none;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.results-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.sample-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sample-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sample-title { font-weight: 600; }
.pill-sample { background: #fef3c7; color: #92400e; }

.score-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.score dt { color: var(--c-ink-soft); }

.score dd {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.score-bar {
  width: 90px;
  height: 6px;
  border-radius: 3px;
  background: var(--c-border);
  overflow: hidden;
}

.score-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-grad-start), var(--c-grad-end));
}

.sample-assessment {
  font-size: 14px;
  color: var(--c-ink-soft);
  border-top: 1px solid var(--c-border);
  padding-top: 12px;
}

.sample-coach {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--c-grad-start);
  border-radius: var(--r-sm);
  background: var(--c-card);
  font-size: 13px;
  color: var(--c-ink-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sample-coach-title { font-weight: 600; color: var(--c-ink); }
.sample-coach-quote { font-style: italic; color: var(--c-muted); }
.sample-coach-more { color: var(--c-grad-start); font-size: 12px; }

.results-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 15px;
  color: var(--c-ink-soft);
}

.results-points strong {
  display: block;
  color: var(--c-ink);
  margin-bottom: 2px;
}

/* How it works */

.how {
  padding: 80px 48px;
}

.how .section-title { margin-bottom: 32px; }

.steps {
  list-style: none;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--c-ink-soft);
}

.how-video {
  max-width: 800px;
  margin: 40px auto 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-card);
}

.how-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-grad-start) 0%, var(--c-grad-end) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

/* FAQ */

.faq { padding-top: 0; }

.faq-list {
  max-width: 760px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq details {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--c-muted); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }

.faq details p {
  padding-bottom: 16px;
  font-size: 15px;
  color: var(--c-ink-soft);
}

/* Final call to action */

.cta-band {
  background: linear-gradient(135deg, var(--c-grad-start) 0%, var(--c-grad-end) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-band h2 {
  font-size: 28px;
  letter-spacing: -0.01em;
  max-width: 640px;
}

.btn-on-dark {
  background: #fff;
  color: var(--c-ink);
}

/* Footer */

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 48px 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--c-muted);
}

.site-footer a:hover { color: var(--c-ink); }
.footer-dot { color: var(--c-border); }

/* Auth error banner */

#auth-error-banner,
#invite-error-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f4c3bd;
  border-radius: var(--r-sm);
  padding: 10px 16px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  max-width: min(520px, calc(100vw - 32px));
  text-align: center;
}

#invite-error-banner {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

/* Sign-in dialog: password form */

.basic-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-dialog-google-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 4px;
}

.app-dialog-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--c-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-dialog-divider::before,
.app-dialog-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

#sign-in-btn {
  font-family: inherit;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-ink);
}

.ba-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.ba-input:focus {
  border-color: var(--c-grad-start);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.ba-error {
  font-size: 0.8125rem;
  color: #c0392b;
  margin: 0;
}

.ba-submit {
  width: 100%;
  justify-content: center;
}

.ba-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Responsive */

@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 16px 48px;
    gap: 36px;
  }
  .hero-title { font-size: 36px; }
  .site-header { padding: 16px; }
  .features, .role, .results, .faq, .how, .site-footer { padding-left: 16px; padding-right: 16px; }
  .features, .results, .how { padding-top: 56px; padding-bottom: 56px; }
  .faq { padding-bottom: 56px; }
  .proof-list { padding: 18px 16px; justify-content: center; }
  .results-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-title { font-size: 26px; }
  .site-nav .nav-link { display: none; }
}

@media (max-width: 560px) {
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .micro-callout { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* The join page: a meeting link opened while signed out (join.html, join.ts). One card,
   nothing to read past it. */
.join-main {
  display: flex;
  justify-content: center;
  padding: 48px 16px 64px;
}

.join-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px 24px;
  text-align: center;
}

.join-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
}

.join-sub {
  margin: 0 0 20px;
  color: var(--c-muted);
  font-size: 14px;
}

/* The shared sign-in controls sit on a page here rather than in a dialog. */
.join-card .app-dialog-google-btn {
  width: 100%;
}

.join-card .basic-auth-form {
  text-align: left;
}

/* Terms and Privacy (terms.html, privacy.html): one readable column. */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-ink-soft);
}

.legal h1 { font-size: 34px; letter-spacing: -0.01em; color: var(--c-ink); }
.legal h2 { font-size: 20px; color: var(--c-ink); margin: 32px 0 8px; }
.legal h3 { font-size: 16px; color: var(--c-ink); margin: 20px 0 6px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--c-grad-start); text-decoration: underline; }
.legal strong { color: var(--c-ink); }
.legal-effective { color: var(--c-muted); font-size: 13px; margin-top: 6px !important; }

/* The consent line under the sign-in buttons (signInForm.ts). */
.signin-legal {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--c-muted);
  text-align: center;
}

.signin-legal a { color: var(--c-ink-soft); text-decoration: underline; }

@media (max-width: 560px) {
  .legal { padding: 24px 16px 48px; }
  .legal h1 { font-size: 28px; }
}

/* The Terms prompt after sign-in (accept-terms.html): the join card, a little wider. */
.terms-card { width: min(520px, 100%); text-align: left; }
.terms-card .join-title, .terms-card .join-sub { text-align: center; }

.terms-summary {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--c-ink-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terms-read { font-size: 14px; color: var(--c-ink-soft); margin: 0 0 18px; }
.terms-read a { color: var(--c-grad-start); text-decoration: underline; }

.terms-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--c-ink);
  padding: 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-bg);
  cursor: pointer;
}

.terms-check input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.terms-accept { width: 100%; justify-content: center; margin-top: 14px; }

.terms-decline-form { text-align: center; margin-top: 10px; }

.terms-decline {
  background: none;
  border: none;
  font: inherit;
  font-size: 13px;
  color: var(--c-muted);
  text-decoration: underline;
  cursor: pointer;
}
