/* Sursum Meet: shared foundations. Fonts are served from this server (SIL OFL, licences in fonts/),
   so the page makes no third-party requests. One family does all the work; hierarchy is size and weight. */
@font-face { font-family: "Geist"; src: url("/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------------------------------------------------------------- tokens: light (Meet home) */
:root {
  --canvas: #f2f9f4;
  --surface: #ffffff;
  --sunken: #e6f3ea;
  --line: #d6e7dc;
  --line-strong: #b9d1c1;
  --ink: #17231d;
  --ink-2: #3d4d44;
  --ink-3: #5a6b62;
  --ink-4: #66756c;                 /* placeholders: 4.6:1 on the canvas */
  --accent: #16865a;                /* Sursum emerald: the one primary action, active states */
  --accent-hover: #0f6b48;
  --accent-ink: #ffffff;
  --accent-text: #0f6b48;           /* accent as text on the canvas */
  --accent-soft: #d7f6e8;           /* mint tint */
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --warn: #8f5500;
  --shadow-pop: 0 1px 2px rgba(23, 35, 29, .06), 0 12px 32px -8px rgba(23, 35, 29, .18);

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --t-xs: 12px; --t-sm: 13px; --t-md: 15px; --t-lg: 17px; --t-xl: 22px; --t-2xl: 32px; --t-3xl: 44px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  color-scheme: light;
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------------------------------------------------------- tokens: calls. A light green room;
   only the name chips that sit over live video stay dark, so text reads on any picture. */
:root.mint {
  --canvas: #e7f5ec;
  --surface: #ffffff;
  --sunken: #d9eee1;
  --line: rgba(15, 107, 72, .16);
  --line-strong: rgba(15, 107, 72, .3);
  --ink: #12281e;
  --ink-2: #2c4739;
  --ink-3: #46614f;
  --ink-4: #587064;
  --accent: #16865a;
  --accent-hover: #0f6b48;
  --accent-ink: #ffffff;
  --accent-text: #0f6b48;
  --accent-soft: #c9eedb;
  --danger: #c4311f;
  --danger-soft: #fdeceb;
  --warn: #8f5500;
  --shadow-pop: 0 1px 2px rgba(18, 40, 30, .08), 0 16px 40px -10px rgba(18, 40, 30, .28);
  color-scheme: light;
}

/* ---------------------------------------------------------------- reset */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.num { font-variant-numeric: tabular-nums; }

/* the parts of the browser nobody draws */
::selection { background: var(--accent); color: var(--accent-ink); }
:root { caret-color: var(--accent); accent-color: var(--accent); scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }
::placeholder { color: var(--ink-4); opacity: 1; }
a { text-underline-offset: 3px; }

/* ---------------------------------------------------------------- icons */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 16px; height: 16px; }
.i.lg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: var(--r-md); font-size: var(--t-md); font-weight: 500; white-space: nowrap; text-decoration: none;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease);
}
.btn:hover:not(:disabled) { border-color: var(--ink-3); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover:not(:disabled) { background: var(--sunken); border-color: transparent; color: var(--ink); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: transparent; }
.btn.danger:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); }
.btn.sm { height: 32px; padding: 0 12px; font-size: var(--t-sm); border-radius: var(--r-sm); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link { color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line-strong); font-size: var(--t-sm); }
.link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- fields */
.input, .select {
  width: 100%; height: 44px; padding: 0 14px; border-radius: var(--r-md); outline: none;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: var(--t-md);
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 44px; padding: 11px 14px; line-height: 1.4; resize: vertical; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a69b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.select option { background: var(--surface); color: var(--ink); }
.label { display: grid; gap: 6px; font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); }
.hint { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.5; }
.note { min-height: 18px; font-size: var(--t-sm); color: var(--ink-3); }
.note.ok { color: var(--accent-text); }
.note.bad { color: var(--danger); }

/* switch */
.switch-row { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-size: var(--t-md); font-weight: 500; line-height: 1.35; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row small { display: block; margin-top: 3px; font-size: var(--t-sm); font-weight: 400; color: var(--ink-3); line-height: 1.45; }
.switch {
  flex: none; position: relative; width: 38px; height: 22px; margin-top: 1px; border-radius: 999px;
  background: var(--line-strong); transition: background .2s var(--ease);
}
.switch::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .2s var(--ease);
}
input:checked + .switch { background: var(--accent); }
input:checked + .switch::after { transform: translateX(16px); }
input:focus-visible + .switch { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* avatar: initial on a tint, never a stock image */
.ava {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-text); font-weight: 600; font-size: var(--t-sm); letter-spacing: 0;
}
.ava.lg { width: 44px; height: 44px; font-size: var(--t-md); }

kbd {
  font-family: var(--mono); font-size: 11px; line-height: 1; color: var(--ink-3); background: var(--sunken);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px;
}

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 8px); z-index: 50;
  background: var(--ink); color: var(--canvas); padding: 10px 16px; border-radius: var(--r-md);
  font-size: var(--t-sm); font-weight: 500; opacity: 0; transition: opacity .2s, transform .25s var(--ease);
  pointer-events: none; box-shadow: var(--shadow-pop); max-width: calc(100vw - 32px);
}
.toast:empty { display: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Sursum Meet lockup: the mark beside SURSUM, product name in brand green beneath it, the same pattern
   as the other Sursum products. The mark is the Sursum S with a video badge. */
.brandlock { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.brandlock img { display: block; width: 36px; height: 36px; }
.brandlock .bl { display: grid; gap: 3px; line-height: 1; }
.brandlock b { font-size: 15px; font-weight: 700; letter-spacing: .09em; }
.brandlock i { font-style: normal; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--accent-text); }
.brandlock:hover b { color: var(--accent-text); }
