/* NOPE web console. Brand: ink #0B0C10, cream #F1EEE8, lime #D4F56A,
   Bricolage Grotesque (display) + Geist (text). Dark only, like the site. */

:root {
  --bg: #0b0c10;
  --surface: #15171d;
  --surface-2: #1b1e26;
  --line: #262a34;
  --line-2: #323744;
  --text: #f1eee8;
  --muted: #a29f97;
  --faint: #9a978f;
  --lime: #d4f56a;
  --lime-ink: #12140a;
  --ok: #9fdc7a;
  --warn: #f2c46b;
  --bad: #ff8f86;
  --info: #9cc3ff;
  --r: 18px;
  --r-sm: 12px;
  --display: 'Bricolage Grotesque', 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; }
.ic { display: inline-block; flex: none; vertical-align: -3px; }
b { font-weight: 600; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; overflow-wrap: anywhere; flex: 1; min-width: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--lime); color: var(--lime-ink); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 12px; }

/* ---------- top bar + footer */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(11, 12, 16, 0.86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo img { height: 26px; width: auto; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 10px; font-weight: 500; }
.topnav a:not(.btn):hover, .topnav a[aria-current] { color: var(--text); }
.foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--text); }

/* ---------- page */
.page { padding: 20px 0 8px; }
.page.narrow { max-width: 560px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 0; }
.crumb:hover { color: var(--text); }
.title { font: 800 clamp(30px, 5vw, 44px)/1.05 var(--display); letter-spacing: -0.03em; margin: 0 0 10px; outline: none; }
.lede { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 22px; }
.h2 { font: 700 21px/1.2 var(--display); letter-spacing: -0.01em; margin: 0; }
.h3 { font-size: 15px; font-weight: 600; margin: 12px 0 2px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.fine { color: var(--faint); font-size: 13px; line-height: 1.5; }
.center { text-align: center; }
.bad { color: var(--bad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.legal { font-size: 13px; color: var(--faint); }
.legal a { color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.page > .card, .page > .stack, .page > div > .card { margin-bottom: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.centered { justify-content: center; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 16px; align-items: start; }
.summary-wrap { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }
.who { margin: -6px 0 16px; }
@media (max-width: 860px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .summary-wrap { position: static; }
}

/* ---------- buttons */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; font: 600 15px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, opacity 0.15s; color: var(--text); background: transparent; }
.btn.primary { background: var(--lime); color: var(--lime-ink); }
.btn.primary:hover { background: #def97f; }
.btn.ghost { border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--muted); background: var(--surface-2); }
.btn.danger { background: #3a1513; border-color: #6b2722; color: #ffd6d2; }
.btn.danger:hover { background: #4a1916; }
.btn.danger-text { color: var(--bad); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
@media (pointer: coarse) {
  /* Touch: every button is at least 44px tall (WCAG 2.5.5 / Apple HIG). */
  .btn.small, .chip { min-height: 44px; }
  .btn.link { min-height: 44px; }
  .crumb { min-height: 44px; }
}
.btn.wide { width: 100%; }
.btn.icon { min-width: 44px; padding: 0; border-color: var(--line-2); }
.btn.link { min-height: 0; padding: 4px 0; border: 0; color: var(--lime); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn[aria-busy='true'] { opacity: 0.8; cursor: progress; }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lbl { font-size: 14px; font-weight: 600; color: var(--text); }
.input { width: 100%; min-height: 46px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text); font: 16px/1.4 var(--body); padding: 11px 14px; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(212, 245, 106, 0.18); }
.input.invalid { border-color: var(--bad); }
.input.area { resize: vertical; min-height: 96px; }
.input.code { font: 600 26px/1 var(--body); letter-spacing: 0.4em; text-align: center; }
.input.num { width: 110px; text-align: center; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input, .radio input, .seg-opt input { accent-color: var(--lime); width: 18px; height: 18px; margin: 3px 0 0; flex: none; }
.radio { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--lime); }
.reasons { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.reasons legend { margin-bottom: 10px; }
.err { color: var(--bad); font-size: 14px; }
.err[hidden] { display: none; }
.signin .stack, .signin form { gap: 14px; }

.seg { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend { margin-bottom: 8px; padding: 0; }
.seg-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.seg-opt { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; background: var(--surface-2); }
.seg-opt:has(input:checked) { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; }
.seg-opt input { grid-row: span 2; }
.seg-t { font-weight: 600; }
.seg-s { color: var(--muted); font-size: 13px; grid-column: 2; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { appearance: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 600 14px/1 var(--body); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.chip[aria-pressed='true'] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
a.chip { color: var(--muted); border-style: dashed; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- summary */
.summary { display: flex; flex-direction: column; gap: 10px; }
.line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.line > span:last-child { text-align: right; }
.line.total { border-top: 1px solid var(--line); padding-top: 12px; font: 700 20px/1.2 var(--display); }
.tiers { width: 100%; border-collapse: collapse; font-size: 14px; }
.tiers caption { text-align: left; padding-bottom: 8px; }
.tiers th, .tiers td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tiers th { color: var(--muted); font-weight: 500; }
.tiers tr.on td { color: var(--lime); font-weight: 600; }

/* ---------- notices + pills */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); margin-bottom: 16px; }
.notice > .ic { margin-top: 3px; }
.notice > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.notice.ok { border-color: rgba(159, 220, 122, 0.35); } .notice.ok > .ic { color: var(--ok); }
.notice.warn { border-color: rgba(242, 196, 107, 0.35); } .notice.warn > .ic { color: var(--warn); }
.notice.bad { border-color: rgba(255, 143, 134, 0.4); background: #1f1414; } .notice.bad > .ic { color: var(--bad); }
.notice.info > .ic { color: var(--info); }
.card .notice { margin-bottom: 0; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; border: 1px solid var(--line-2); color: var(--muted); }
.pill.ok { color: var(--ok); border-color: rgba(159, 220, 122, 0.35); }
.pill.warn { color: var(--warn); border-color: rgba(242, 196, 107, 0.35); }
.pill.bad { color: var(--bad); border-color: rgba(255, 143, 134, 0.4); }

/* ---------- lists + tables */
.orgs, .list, .emails, .bullets { list-style: none; margin: 0; padding: 0; }
.orgs li + li, .list li + li { border-top: 1px solid var(--line); }
.org { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; }
.org > div:first-child { min-width: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; overflow-wrap: anywhere; }
.bullets li { position: relative; padding-left: 18px; margin: 8px 0; }
.bullets li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.emails { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.emails li { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .input { min-height: 40px; }
.toolbar select.input { width: auto; }
.searchbox { position: relative; flex: 1 1 220px; }
.searchbox .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.searchbox .input { padding-left: 36px; }
.tablewrap { overflow-x: auto; margin: 0 -4px; }
.people { width: 100%; border-collapse: collapse; }
.people th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 500; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.people td { padding: 12px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.people td:first-child { overflow-wrap: anywhere; min-width: 180px; }
.people th.pick, .people td.pick { width: 32px; min-width: 0; padding-right: 8px; }
.people td.pick input, .people th.pick input { accent-color: var(--lime); width: 18px; height: 18px; margin: 2px 0 0; }
.people td.pick + td { overflow-wrap: anywhere; min-width: 180px; }
.bulkbar:empty { display: none; }
.bulkbar { position: sticky; top: 8px; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; border: 1px solid var(--lime); border-radius: var(--r-sm); background: var(--surface-2); }
.disclosure { border-top: 1px solid var(--line); padding-top: 12px; }
.disclosure > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); min-height: 44px; display: flex; align-items: center; }
.disclosure[open] > summary { margin-bottom: 10px; }
.signin-consent a { color: inherit; text-decoration: underline; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.people td:last-child { text-align: right; }
.email { font-weight: 500; }
.acts { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 640px) {
  .people thead { display: none; }
  .people, .people tbody, .people tr, .people td { display: block; width: 100%; }
  .people tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .people td { border: 0; padding: 3px 0; text-align: left !important; }
  .people td.pick { width: auto; }
  .acts { justify-content: flex-start; }
}
.dns { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-sm); border: 1px dashed var(--line-2); }
.copyrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copyrow > span:first-child { width: 44px; }
.announce { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.55 var(--body); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; }
.results { display: flex; flex-direction: column; gap: 6px; }
.big-check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(212, 245, 106, 0.14); color: var(--lime); }

/* ---------- loading, toasts, dialogs */
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 48px 0; justify-content: center; }
.fail p { margin-bottom: 4px; }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; width: min(520px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: #20232c; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); font-size: 15px; pointer-events: auto; transition: opacity 0.3s, transform 0.3s; }
.toast.success .ic { color: var(--ok); } .toast.error .ic { color: var(--bad); } .toast.info .ic { color: var(--info); }
.toast.out { opacity: 0; transform: translateY(8px); }
.dlg { width: min(480px, calc(100% - 32px)); background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 22px; padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.dlg::backdrop { background: rgba(0, 0, 0, 0.6); }
.dlg-title { font: 700 22px/1.2 var(--display); margin: 0 0 12px; }
.dlg-body { color: var(--muted); display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.dlg-body b { color: var(--text); }
.dlg .field { margin-bottom: 14px; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* ---------- /teams landing */
.hero { padding: 40px 0 24px; }
.hero .title { font-size: clamp(36px, 7vw, 64px); max-width: 860px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 8px 0 24px; }
.feature .ic { color: var(--lime); }
.section { padding: 28px 0; }
.section > .h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 14px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; 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(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin-top: 10px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: 14px; }
.steps b { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- analytics consent (/teams only) */
.consent { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); z-index: 60; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55); display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--muted); }
.foot-links button.linkish { appearance: none; background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.foot-links button.linkish:hover { color: var(--text); }
