* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --bg: #f5f5f4;
  --text: #1f2937;
  --muted: rgba(31, 41, 55, 0.7);
  --linkHover: 0.65;
}

.dark {
  --bg: #0b1220;
  --text: #e5e7eb;
  --muted: rgba(229, 231, 235, 0.7);
  --linkHover: 0.75;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.topbar {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10;
}

.toggle {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
}

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

.container {
  width: min(720px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.workflow-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: var(--text);
  font-size: clamp(20px, 6vw, 36px);
  font-weight: 600;
  padding: 8px 0;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.workflow-link:hover {
  opacity: var(--linkHover);
}

.disclaimer {
  margin-top: 24px;
  max-width: 60ch;
  font-size: 14px;
  font-style: italic;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
}

.contact-row {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.contact-btn {
  display: inline-block;
  text-decoration: none;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  border: 1px solid rgba(31, 41, 55, 0.22);
  padding: 9px 14px;
  border-radius: 10px;
  background: transparent;
}

.dark .contact-btn {
  border-color: rgba(229, 231, 235, 0.22);
}

.contact-btn:hover {
  opacity: var(--linkHover);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  z-index: 20;
}

.modal.is-open {
  display: flex;
}

.modal-box {
  width: min(560px, 100%);
  background: var(--bg);
  color: var(--text);
  border: 1px solid rgba(31, 41, 55, 0.22);
  border-radius: 14px;
  padding: 18px;
  text-align: left;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.dark .modal-box {
  border-color: rgba(229, 231, 235, 0.22);
}

.close {
  margin-left: auto;
  display: block;
  border: 1px solid rgba(31, 41, 55, 0.22);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.dark .close {
  border-color: rgba(229, 231, 235, 0.22);
}

.modal-title {
  margin: 10px 0 8px;
  font-size: 22px;
}

.modal-description {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
  font-style: italic;
}