@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Regular.5fc3fef1a1a5.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Bold.91486df4e527.ttf") format("truetype");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --orch-ink: #202020;
  --orch-red: #860c19;
  --orch-red-dark: #650812;
  --orch-paper: #ffffff;
  --orch-canvas: #f4f1eb;
  --orch-mint: #b8d2c0;
  --orch-hornet: #ea6218;
  --orch-bronco: #ffb816;
  --orch-sage: #476a6f;
  --orch-nonpartisan: #8271d8;
  --orch-positive: #f5abbf;
  --orch-border: #d8d2c8;
  --orch-muted: #625e57;
  --orch-font: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--orch-ink);
  font-family: var(--orch-font);
}

body {
  background: var(--orch-canvas);
  color: var(--orch-ink);
  font-family: var(--orch-font);
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--orch-red);
  text-underline-offset: 0.16em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--orch-bronco);
  outline-offset: 3px;
}

.orch-standalone-shell {
  display: grid;
  grid-template-columns: minmax(290px, 0.86fr) minmax(0, 1.5fr);
  min-height: 100vh;
}

.orch-brand-panel {
  background:
    linear-gradient(135deg, transparent 0 79%, rgb(32 32 32 / 16%) 79% 100%),
    var(--orch-red);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 4rem);
  position: relative;
}

.orch-brand-panel::before {
  background:
    linear-gradient(45deg, transparent 50%, rgb(255 255 255 / 9%) 50%) 0 0 / 42px 42px,
    linear-gradient(-45deg, transparent 50%, rgb(32 32 32 / 10%) 50%) 21px 21px / 42px 42px;
  content: "";
  height: 46%;
  inset: auto 0 0;
  opacity: 0.9;
  position: absolute;
}

.orch-brand-lockup {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  gap: 0.85rem;
  position: relative;
  text-decoration: none;
  z-index: 2;
}

.orch-brand-mark {
  background: #ffffff;
  color: var(--orch-red);
  height: 52px;
  padding: 9px;
  width: 52px;
}

.orch-brand-mark.orch-nk-mark {
  background: transparent;
  object-fit: cover;
  padding: 0;
}

.orch-brand-mark path {
  fill: currentColor;
}

.orch-brand-copy {
  display: grid;
  line-height: 1;
}

.orch-brand-copy strong {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.orch-brand-copy small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  margin-top: 0.42rem;
  text-transform: uppercase;
}

.orch-brand-message {
  max-width: 28rem;
  position: relative;
  z-index: 2;
}

.orch-brand-message p:first-child {
  color: var(--orch-mint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

.orch-brand-message p:last-child {
  font-size: clamp(1.65rem, 3.2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.03;
  margin: 0;
}

.orch-tagline {
  align-items: start;
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1;
  position: relative;
  text-transform: uppercase;
  z-index: 2;
}

.orch-tagline span {
  display: inline-block;
  padding: 0.4rem 0.52rem;
}

.orch-tagline span:first-child {
  background: var(--orch-ink);
  color: #ffffff;
}

.orch-tagline span:last-child {
  background: var(--orch-bronco);
  color: var(--orch-ink);
}

.orch-standalone-main {
  align-items: center;
  background:
    linear-gradient(135deg, rgb(134 12 25 / 3%) 0 18%, transparent 18% 100%),
    var(--orch-canvas);
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.25rem, 5vw, 5rem);
}

.orch-panel {
  background: var(--orch-paper);
  border: 1px solid var(--orch-border);
  border-top: 7px solid var(--orch-red);
  box-shadow: 0 24px 64px rgb(32 32 32 / 13%);
  max-width: 590px;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  position: relative;
  width: 100%;
}

.orch-panel::after {
  border-color: var(--orch-mint) transparent transparent transparent;
  border-style: solid;
  border-width: 48px 48px 0 0;
  content: "";
  position: absolute;
  right: 0;
  top: 0;
}

.orch-kicker {
  align-items: center;
  color: var(--orch-sage);
  display: flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.5rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

.orch-kicker::before {
  border-color: transparent transparent transparent currentColor;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  content: "";
}

.orch-panel h1 {
  color: var(--orch-ink);
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0 0 1.25rem;
  max-width: 12ch;
}

.orch-panel p {
  font-size: 1rem;
  line-height: 1.58;
}

.orch-panel .quiet {
  color: var(--orch-muted);
  font-size: 0.82rem;
}

.orch-panel form {
  display: grid;
  gap: 0.9rem;
}

.orch-panel form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.32rem;
}

.orch-panel input[type="text"],
.orch-panel input[type="email"],
.orch-panel input[type="password"],
.orch-panel input[type="url"],
.orch-panel select,
.orch-panel textarea {
  background: #ffffff;
  border: 1.5px solid var(--orch-border);
  border-radius: 2px;
  color: var(--orch-ink);
  font-family: var(--orch-font);
  font-size: 1rem;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.orch-panel ul.errorlist {
  background: #f8dfe3;
  border-left: 7px solid var(--orch-red);
  font-size: 0.84rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0.8rem 1rem;
}

.orch-button,
button {
  align-items: center;
  background: var(--orch-red);
  border: 0;
  border-radius: 2px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--orch-font);
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.6rem;
  letter-spacing: 0.06em;
  min-height: 46px;
  padding: 0.8rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
}

.orch-button::after,
button::after {
  border-color: transparent transparent transparent currentColor;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  content: "";
}

.orch-button:hover,
button:hover {
  background: var(--orch-red-dark);
  color: #ffffff;
}

.orch-button.secondary {
  background: var(--orch-ink);
}

.orch-button.secondary:hover {
  background: #3b3b3b;
}

.orch-notice {
  background: #fff1cc;
  border-left: 7px solid var(--orch-bronco);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
}

/* Signing is deliberately calmer and wider than authentication. */
.orch-signing-page .orch-standalone-shell {
  grid-template-columns: minmax(230px, 0.48fr) minmax(0, 1.8fr);
}

.orch-signing-page .orch-brand-panel {
  padding: clamp(1.3rem, 3vw, 2.7rem);
}

.orch-signing-page .orch-brand-message p:last-child {
  font-size: clamp(1.5rem, 2.4vw, 2.6rem);
}

.orch-signing-page .orch-standalone-main {
  align-items: start;
  padding: clamp(1.1rem, 3vw, 3.2rem);
}

.orch-signing-wrap {
  margin: 0 auto;
  max-width: 1080px;
  width: 100%;
}

.orch-signing-head {
  margin-bottom: 1.1rem;
}

.orch-signing-head h1 {
  font-size: clamp(2.1rem, 4vw, 4.3rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 0.3rem 0 0.8rem;
  max-width: 16ch;
}

.orch-signing-head p {
  color: var(--orch-muted);
  line-height: 1.55;
  margin: 0;
}

.orch-document-frame {
  background: var(--orch-paper);
  border: 1px solid var(--orch-border);
  border-top: 7px solid var(--orch-red);
  box-shadow: 0 14px 40px rgb(32 32 32 / 10%);
  margin-bottom: 1.1rem;
  padding: 0.75rem;
}

.orch-document-preview {
  background: #ffffff;
  border: 0;
  display: block;
  height: min(68vh, 790px);
  min-height: 480px;
  width: 100%;
}

.orch-signbox {
  background: var(--orch-paper);
  border: 1px solid var(--orch-border);
  border-left: 8px solid var(--orch-red);
  box-shadow: 0 14px 40px rgb(32 32 32 / 9%);
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.orch-signbox h2 {
  font-size: 1.45rem;
  margin: 0;
}

.orch-signbox label {
  display: grid;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 0.45rem;
  line-height: 1.45;
}

.orch-signbox input[type="text"] {
  border: 1.5px solid var(--orch-border);
  border-radius: 2px;
  font-family: var(--orch-font);
  font-size: 1.1rem;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.orch-signbox input[type="text"]:focus {
  border-color: var(--orch-red);
}

.orch-consent {
  align-items: start;
  display: grid !important;
  font-weight: 400 !important;
  grid-template-columns: 20px minmax(0, 1fr);
}

.orch-consent input {
  accent-color: var(--orch-red);
  height: 19px;
  margin: 0.1rem 0 0;
  width: 19px;
}

.orch-signbox .muted {
  color: var(--orch-muted);
  font-size: 0.78rem;
  margin: 0;
}

.orch-error {
  background: #f8dfe3;
  border-left: 7px solid var(--orch-red);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.8rem 1rem;
}

.orch-complete {
  text-align: left;
}

.orch-complete-mark {
  align-items: center;
  background: var(--orch-sage);
  color: #ffffff;
  display: flex;
  font-size: 1.7rem;
  font-weight: 800;
  height: 56px;
  justify-content: center;
  margin-bottom: 1.2rem;
  width: 56px;
}

@media (max-width: 860px) {
  .orch-standalone-shell,
  .orch-signing-page .orch-standalone-shell {
    grid-template-columns: 1fr;
  }

  .orch-brand-panel,
  .orch-signing-page .orch-brand-panel {
    gap: 2.2rem;
    min-height: 310px;
    padding: 1.4rem;
  }

  .orch-brand-message p:last-child,
  .orch-signing-page .orch-brand-message p:last-child {
    font-size: clamp(1.55rem, 7vw, 2.6rem);
    max-width: 18ch;
  }

  .orch-standalone-main,
  .orch-signing-page .orch-standalone-main {
    padding: 1.2rem;
  }
}

@media (max-width: 520px) {
  .orch-brand-panel,
  .orch-signing-page .orch-brand-panel {
    min-height: 270px;
  }

  .orch-brand-mark {
    height: 44px;
    padding: 7px;
    width: 44px;
  }

  .orch-brand-copy strong {
    font-size: 1.5rem;
  }

  .orch-panel {
    padding: 1.4rem;
  }

  .orch-panel h1 {
    font-size: 2.35rem;
  }

  .orch-button,
  button {
    justify-content: center;
    width: 100%;
  }

  .orch-document-preview {
    height: 60vh;
    min-height: 390px;
  }
}

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