/* Shared styles for round 3: the split arrival layout the user liked from
   request-access/sign-up, pushed to pure black-and-white (no teal, no hue
   at all) per explicit feedback. Structure (dark brand panel + light
   working panel, one thing per screen on the light side) still follows the
   onboarding-v2 / request-access family. */

:root {
  --ink: 0 0% 4%;
  --paper: 0 0% 100%;
  --stone: 0 0% 40%;
  --border: 0 0% 87%;
  --ink-foreground: 0 0% 100%;
  --ink-muted: 0 0% 68%;
  --ink-border: 0 0% 20%;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
}

body {
  background: hsl(var(--paper));
  color: hsl(var(--ink));
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

button {
  font-family: inherit;
}

/* ---------- split layout ---------- */

.split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 40fr 60fr;
  }
}

.panel-brand {
  background: hsl(var(--ink));
  color: hsl(var(--ink-foreground));
  padding: 40px 24px;
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

@media (min-width: 860px) {
  .panel-brand {
    padding: 44px 56px;
    order: 1;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
}

.panel-work {
  order: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 860px) {
  .panel-work {
    order: 2;
  }
}

/* ---------- brand panel content ---------- */

.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: hsl(var(--ink-foreground));
}

.overline {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--ink-muted));
  margin: 40px 0 20px;
}

@media (min-width: 860px) {
  .overline {
    margin-top: 56px;
  }
}

.brand-headline {
  font-size: 1.875rem;
  line-height: 1.12;
  color: hsl(var(--ink-foreground));
  margin-bottom: 20px;
}

@media (min-width: 860px) {
  .brand-headline {
    font-size: 2.5rem;
  }
}

.brand-lede {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: hsl(var(--ink-muted));
  max-width: 26rem;
  margin: 0;
}

.capital-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 860px) {
  .capital-list {
    margin-top: 0;
  }
}

.capital-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid hsl(var(--ink-border));
}

.capital-item:first-child {
  padding-top: 0;
  border-top: none;
}

.capital-mark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid hsl(var(--ink-foreground) / 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.capital-mark svg {
  width: 15px;
  height: 15px;
  stroke: hsl(var(--ink-foreground));
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capital-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--ink-foreground));
  margin: 0;
}

.capital-sub {
  font-size: 0.8125rem;
  color: hsl(var(--ink-muted));
  margin: 2px 0 0;
}

.brand-footline {
  font-size: 0.75rem;
  color: hsl(var(--ink-muted));
  padding-top: 16px;
  border-top: 1px solid hsl(var(--ink-border));
}

/* ---------- work panel ---------- */

.work-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 48px 24px 130px;
}

@media (min-width: 860px) {
  .work-inner {
    padding: 56px 56px 130px;
  }
}

.work-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--stone));
  margin: 0 0 10px;
}

.work-rule {
  width: 40px;
  height: 1px;
  background: hsl(var(--ink));
  margin-bottom: 28px;
}

.work-title {
  font-size: 1.625rem;
  margin-bottom: 12px;
}

@media (min-width: 860px) {
  .work-title {
    font-size: 2rem;
  }
}

.work-sub {
  font-size: 0.9375rem;
  color: hsl(var(--stone));
  max-width: 34rem;
  margin: 0 0 8px;
}

/* ---------- screen swap ---------- */

.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* ---------- buttons: ink only, no color ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: hsl(var(--ink));
  color: hsl(var(--paper));
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  border: 1px solid hsl(var(--ink));
  border-radius: 4px;
  padding: 13px 26px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.82;
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--paper));
  color: hsl(var(--ink));
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid hsl(var(--ink));
  border-radius: 4px;
  padding: 12px 25px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: hsl(var(--ink) / 0.05);
}

.back-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  cursor: pointer;
  color: hsl(var(--ink));
  padding: 0;
}

/* ---------- side-option cards ---------- */

.side-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .side-options.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.side-option {
  text-align: left;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--paper));
  border-radius: 4px;
  padding: 18px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.side-option:hover {
  border-color: hsl(var(--ink) / 0.5);
}

.side-option.selected {
  border-color: hsl(var(--ink));
  background: hsl(var(--ink));
}

.side-option.selected .side-option-label,
.side-option.selected .side-option-sub {
  color: hsl(var(--paper));
}

.side-option-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.side-option-sub {
  display: block;
  font-size: 0.8125rem;
  color: hsl(var(--stone));
  margin-top: 3px;
}

/* ---------- pill multi-select ---------- */

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--paper));
  border-radius: 999px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.pill.selected {
  border-color: hsl(var(--ink));
  background: hsl(var(--ink));
  color: hsl(var(--paper));
  font-weight: 600;
}

/* ---------- fields ---------- */

.field-group {
  margin-bottom: 26px;
}

label, .label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 10px;
}

input[type="text"], select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: hsl(var(--ink));
  background: hsl(var(--paper));
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  padding: 13px 15px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 84px;
}

input:focus, select:focus, textarea:focus {
  border-color: hsl(var(--ink));
  box-shadow: 0 0 0 1px hsl(var(--ink));
}

/* ---------- row list ---------- */

.row-list {
  display: flex;
  flex-direction: column;
}

.row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid hsl(var(--border));
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.row-item:last-child {
  border-bottom: 1px solid hsl(var(--border));
}

.row-item:hover {
  background: hsl(var(--ink) / 0.02);
}

.row-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--stone));
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}

.row-name {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 0 6px;
}

.row-sub {
  font-size: 0.875rem;
  color: hsl(var(--stone));
  margin: 0;
}

.row-fit {
  flex-shrink: 0;
  text-align: right;
}

.row-fit-num {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.375rem;
}

.row-fit-label {
  display: block;
  font-size: 0.6875rem;
  color: hsl(var(--stone));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ---------- gain callout ---------- */

.gain-callout {
  border-top: 1px solid hsl(var(--ink));
  border-bottom: 1px solid hsl(var(--ink));
  padding: 30px 0;
  margin: 26px 0;
}

.gain-callout blockquote {
  margin: 0 0 12px;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.gain-callout .works-with {
  font-size: 0.875rem;
  color: hsl(var(--stone));
}

.terms-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- draft output ---------- */

.draft-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: hsl(var(--stone));
  margin: 0 0 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid hsl(var(--ink));
  background: transparent;
  flex-shrink: 0;
}

.status-dot.sent {
  background: hsl(var(--ink));
}

.draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.draft-output {
  margin-top: 12px;
  border: 1px solid hsl(var(--ink));
  border-radius: 4px;
  padding: 26px;
}

.draft-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--stone));
  margin: 0 0 14px;
}

.draft-doc-title {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  margin: 0 0 2px;
}

.draft-doc-sub {
  color: hsl(var(--stone));
  margin: 0 0 18px;
  font-size: 0.875rem;
}

.draft-doc-h {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--stone));
  margin: 16px 0 5px;
}

.draft-doc p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

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

.footer-nav {
  position: sticky;
  bottom: 0;
  background: hsl(var(--paper) / 0.96);
  backdrop-filter: blur(6px);
  border-top: 1px solid hsl(var(--border));
  margin-top: auto;
}

.footer-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
}

@media (min-width: 860px) {
  .footer-nav-inner {
    padding: 18px 56px;
  }
}

::selection {
  background: hsl(var(--ink));
  color: hsl(var(--paper));
}
