/* Pronota marketing site.
 *
 * Tokens are lifted verbatim from design-language.html :root. Two brand rules
 * bind hardest here:
 *
 *  - Coral (#E05338) is reserved for the active-speaker bar and PRIMARY CALLS
 *    TO ACTION. It is never a background, never decoration. On this page that
 *    means exactly one coral element: the download button.
 *  - The wordmark is Inter Light 300 with ".ai" in Medium 500, rendered as live
 *    text so it cannot drift into another face. It takes currentColor.
 *
 * Dark mode deviates from the design doc deliberately, matching the app: the
 * doc names near-black as the page, but an indigo rail against a black page
 * reads as two unrelated surfaces, so the page is indigo.
 */

:root {
  --indigo: #1e1b4b;
  --indigo-80: #2d2966;
  --indigo-20: #eeedf8;
  --coral: #e05338;
  --coral-700: #c2451f;
  --coral-20: #fae9e5;
  --white: #ffffff;
  --off-white: #f7f7f5;
  --gray-200: #e8e8e4;
  --gray-400: #aeaaa0;
  --gray-500: #78746b;
  --gray-600: #6b6760;
  --near-black: #0f0e1a;
  --green: #15803d;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --page-max: 960px;

  --page-bg: var(--off-white);
  --surface: var(--white);
  --text: var(--indigo);
  --text-muted: var(--gray-600);
  --rule: var(--gray-200);
  --tint: var(--indigo-20);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --page-bg: var(--indigo);
    --surface: var(--indigo-80);
    --text: var(--off-white);
    --text-muted: var(--gray-400);
    --rule: rgba(255, 255, 255, 0.14);
    --tint: rgba(255, 255, 255, 0.06);
  }
}

:root[data-theme='dark'] {
  --page-bg: var(--indigo);
  --surface: var(--indigo-80);
  --text: var(--off-white);
  --text-muted: var(--gray-400);
  --rule: rgba(255, 255, 255, 0.14);
  --tint: rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------------------------------------------------------------- header --- */

header {
  border-bottom: 1px solid var(--rule);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

/* Wordmark: 0.72 x the mark height, per the design doc's 44px mark / 32px
   wordmark pairing. Matching 1:1 overflows. */
.wordmark {
  font-weight: 300;
  font-size: 23px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wordmark .tld {
  font-weight: 500;
}

/* ------------------------------------------------------------------ hero --- */

.hero {
  padding: 88px 0 72px;
}

h1 {
  font-weight: 300;
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 22ch;
}

h1 strong {
  font-weight: 500;
}

.lede {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 0 36px;
}

/* --------------------------------------------------------------- actions --- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* The one coral element on the page. Reserved for exactly this. */
.btn-primary {
  background: var(--coral);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--coral-700);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}

.btn-secondary:hover {
  border-color: var(--gray-400);
}

.btn:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .btn:focus-visible {
    outline-color: var(--off-white);
  }
}

.btn svg {
  flex: none;
}

.hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 14px 0 0;
}

/* -------------------------------------------------------------- sections --- */

section {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}

h2 {
  font-weight: 500;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

h3 {
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 6px;
}

p {
  margin: 0 0 16px;
}

.section-lede {
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 32px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.card .mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
  display: block;
  margin-bottom: 10px;
}

/* A plain list of who this is for — no cards, it is not a feature grid. */
.who {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 62ch;
}

.who li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text-muted);
}

.who li:last-child {
  border-bottom: 0;
}

.who strong {
  color: var(--text);
  font-weight: 500;
}

/* The licence-vs-meetings promise. Tinted, not coral — it is reassurance, not
   a call to action. */
.promise {
  background: var(--tint);
  border-radius: 12px;
  padding: 24px 26px;
  max-width: 62ch;
}

.promise p:last-child {
  margin-bottom: 0;
}

.promise .headline {
  font-weight: 500;
  color: var(--text);
}

/* ----------------------------------------------------------------- auth --- */

.signed-in {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.who-am-i {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text);
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.error {
  color: var(--coral-700);
  font-size: 0.875rem;
  margin: 14px 0 0;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------- footer --- */

footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 56px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer a {
  color: inherit;
}
