.client-page {
  background: var(--paper);
}

.client-page main {
  overflow: visible;
}

.client-shell {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.client-hero {
  padding: 11rem 0 6rem;
  background:
    linear-gradient(120deg, rgba(185, 151, 91, 0.12), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(74, 79, 85, 0.34), transparent 34%),
    var(--gunmetal-deep);
  color: var(--paper);
}

.client-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.6fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: end;
}

.client-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 400;
  line-height: 0.98;
}

.client-hero__copy {
  width: min(710px, 100%);
  margin-top: 1.6rem;
  color: rgba(255, 253, 248, 0.72);
  font-size: 1.08rem;
  line-height: 1.8;
}

.client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button--outline {
  border-color: rgba(255, 253, 248, 0.34);
  color: var(--paper);
}

.button--outline:hover {
  border-color: var(--brass);
  color: var(--brass-soft);
}

.access-note {
  border-top: 1px solid rgba(185, 151, 91, 0.7);
  padding-top: 1.35rem;
}

.access-note__label {
  color: var(--brass-soft);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.access-note p {
  margin-top: 0.8rem;
  color: rgba(255, 253, 248, 0.68);
  line-height: 1.72;
}

.access-overview {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.access-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.process-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.process-list > li > span {
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
}

.process-list strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 400;
}

.process-list p {
  margin-top: 0.35rem;
  color: rgba(17, 17, 17, 0.64);
  line-height: 1.62;
}

.kyc-section {
  padding: clamp(5rem, 8vw, 7.5rem) 0;
  background: var(--limestone);
}

.kyc-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
  margin-bottom: 3rem;
}

.kyc-heading > p {
  color: rgba(17, 17, 17, 0.64);
  line-height: 1.72;
}

.progress-wrap {
  margin-bottom: 1.5rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  color: rgba(17, 17, 17, 0.66);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.progress-track {
  height: 3px;
  background: rgba(17, 17, 17, 0.13);
}

.progress-track span {
  display: block;
  width: 12.5%;
  height: 100%;
  background: var(--brass);
  transition: width 240ms ease;
}

.kyc-form {
  border: 1px solid rgba(17, 17, 17, 0.13);
  border-radius: 8px;
  background: rgba(251, 248, 240, 0.88);
  box-shadow: 0 26px 70px rgba(18, 17, 15, 0.08);
}

.form-step {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.form-step[hidden] {
  display: none;
}

.form-step legend {
  width: 100%;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.form-step legend span {
  margin-right: 0.65rem;
  color: var(--brass);
  font-size: 0.95rem;
  vertical-align: 0.25rem;
}

.step-intro {
  margin: 0.9rem 0 2rem;
  color: rgba(17, 17, 17, 0.64);
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid--spaced {
  margin-top: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field > span,
.owner-field > span {
  color: rgba(17, 17, 17, 0.66);
  font-size: 0.78rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.owner-field input,
.owner-field select {
  width: 100%;
  min-height: 3.1rem;
  border: 1px solid rgba(17, 17, 17, 0.22);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--ink);
  padding: 0.84rem 0.9rem;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.owner-field input:focus,
.owner-field select:focus {
  border-color: var(--brass);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(154, 116, 65, 0.14);
}

.field :invalid:not(:placeholder-shown),
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.check-field.is-invalid {
  border-color: #8e3f34;
}

.conditional-panel {
  margin-top: 1rem;
  border-left: 3px solid rgba(185, 151, 91, 0.65);
  padding: 1.2rem;
  background: rgba(185, 151, 91, 0.07);
}

.conditional-panel[hidden] {
  display: none;
}

.owner-section {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.subsection-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: start;
}

.subsection-heading h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.subsection-heading p {
  max-width: 720px;
  margin-top: 0.4rem;
  color: rgba(17, 17, 17, 0.62);
  line-height: 1.62;
}

.text-button {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0.2rem 0;
  background: transparent;
  color: var(--brass);
  cursor: pointer;
}

.owner-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.6fr 1fr 1fr auto;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: end;
}

.owner-field {
  display: grid;
  gap: 0.4rem;
}

.remove-owner {
  min-height: 3.1rem;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 4px;
  background: transparent;
  color: rgba(17, 17, 17, 0.62);
  cursor: pointer;
  padding: 0 0.85rem;
}

.remove-owner:hover {
  border-color: #8e3f34;
  color: #8e3f34;
}

.sensitive-note,
.form-alert {
  margin-top: 1.5rem;
  border: 1px solid rgba(185, 151, 91, 0.42);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  background: rgba(185, 151, 91, 0.08);
  color: rgba(17, 17, 17, 0.72);
  line-height: 1.6;
}

.form-alert {
  margin: 0 0 1rem;
}

.form-alert--error {
  border-color: rgba(142, 63, 52, 0.42);
  background: rgba(142, 63, 52, 0.07);
  color: #6e3028;
}

.certification-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style-position: inside;
}

.certification-list li {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  color: rgba(17, 17, 17, 0.72);
  line-height: 1.62;
}

.check-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  margin-top: 1.5rem;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 4px;
  padding: 1.1rem;
  background: rgba(255, 253, 248, 0.55);
  color: rgba(17, 17, 17, 0.72);
  line-height: 1.6;
}

.check-field input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--brass);
}

.check-field a {
  color: #72562f;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.review-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.review-item {
  border-bottom: 1px solid var(--line);
  padding: 1rem;
}

.review-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.review-item span {
  display: block;
  color: rgba(17, 17, 17, 0.56);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.review-item strong {
  display: block;
  margin-top: 0.35rem;
  font-weight: 500;
  line-height: 1.45;
}

.form-navigation {
  display: grid;
  grid-template-columns: minmax(8rem, auto) 1fr minmax(10rem, auto);
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 1.25rem clamp(1.5rem, 4vw, 3rem);
}

.form-navigation .button {
  width: auto;
}

.button--secondary {
  border-color: rgba(17, 17, 17, 0.3);
  background: transparent;
  color: var(--ink);
}

.button--secondary:hover {
  border-color: var(--brass);
  color: #72562f;
}

.form-navigation__status {
  color: rgba(17, 17, 17, 0.54);
  font-size: 0.82rem;
  text-align: center;
}

.client-footer {
  width: min(760px, calc(100% - 2.5rem));
}

.footer-legal {
  display: flex;
  gap: 1rem;
  color: rgba(255, 253, 248, 0.52);
  font-size: 0.8rem;
}

.footer-legal a:hover {
  color: var(--brass-soft);
}

.legal-page {
  min-height: 100vh;
  padding: 10rem 0 6rem;
  background: var(--paper);
}

.legal-copy {
  width: min(820px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.legal-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 4.7rem);
  font-weight: 400;
}

.legal-copy h2 {
  margin-top: 2.5rem;
  font-size: 1.65rem;
}

.legal-copy p,
.legal-copy li {
  color: rgba(17, 17, 17, 0.7);
  line-height: 1.75;
}

.legal-copy p {
  margin-top: 1rem;
}

.legal-copy ul {
  display: grid;
  gap: 0.5rem;
}

@media (max-width: 980px) {
  .client-hero__grid,
  .access-overview__grid,
  .kyc-heading {
    grid-template-columns: 1fr;
  }

  .owner-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
  }

  .remove-owner {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .client-hero {
    padding-top: 10rem;
    padding-bottom: 4rem;
  }

  .client-actions,
  .client-actions .button {
    width: 100%;
  }

  .form-grid,
  .owner-row,
  .review-panel {
    grid-template-columns: 1fr;
  }

  .field--wide {
    grid-column: auto;
  }

  .review-item:nth-child(odd) {
    border-right: 0;
  }

  .subsection-heading {
    display: grid;
  }

  .subsection-heading .text-button {
    justify-self: start;
  }

  .form-navigation {
    grid-template-columns: 1fr 1fr;
  }

  .form-navigation__status {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .form-navigation .button {
    width: 100%;
  }

  .form-next,
  .form-submit {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-track span,
  .field input,
  .field select,
  .field textarea {
    transition: none;
  }
}
