/* Legal Reset — guided international intake */

.reset-intake-page {
  background: var(--reset-ink);
}

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

.reset-intake-hero {
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding-bottom: clamp(52px, 8vw, 96px);
}

.reset-intake-hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: -26vw;
  width: min(62vw, 880px);
  aspect-ratio: 1;
  border: 1px solid rgba(243, 239, 229, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 7vw rgba(243, 239, 229, 0.025),
    0 0 0 15vw rgba(243, 239, 229, 0.018);
  pointer-events: none;
}

.reset-intake-hero .reset-thesis {
  max-width: 12ch;
}

.reset-intake-hero .reset-counterpoint {
  max-width: 58ch;
}

.reset-intake-section {
  padding: clamp(28px, 5vw, 72px) 0 clamp(72px, 10vw, 144px);
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(243, 239, 229, 0.055) calc(100% - 1px)) 0 0 / min(11.11vw, 160px) 100%,
    var(--reset-ink);
}

.reset-intake-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.28fr);
  border-top: 1px solid var(--reset-line-onink-strong);
  border-bottom: 1px solid var(--reset-line-onink-strong);
}

.reset-intake-card {
  min-width: 0;
  min-height: 620px;
  padding: clamp(28px, 5vw, 70px);
  background: var(--reset-paper);
  color: var(--reset-ink);
}

.reset-intake-ledger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
  padding: clamp(28px, 3.2vw, 48px);
  border-left: 1px solid var(--reset-line-onink-strong);
  color: var(--reset-paper);
}

.reset-intake-ledger__index,
.reset-intake-progress__meta,
.reset-intake-eyebrow,
.reset-intake-choice__meta,
.reset-intake-field label,
.reset-intake-fieldset > legend,
.reset-intake-summary dt {
  font: 500 0.7rem/1.35 var(--reset-font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reset-intake-ledger__index {
  color: var(--reset-mint);
}

.reset-intake-ledger h2 {
  max-width: 12ch;
  margin: 14px 0 18px;
  color: var(--reset-paper);
  font: 500 clamp(1.55rem, 2.5vw, 2.4rem)/1.03 var(--reset-font-sans);
  letter-spacing: -0.035em;
}

.reset-intake-ledger p {
  margin: 0;
  color: var(--reset-muted-onink);
  font-size: 0.92rem;
  line-height: 1.65;
}

.reset-intake-ledger__privacy {
  padding-top: 24px;
  border-top: 1px solid var(--reset-line-onink);
}

.reset-intake-progress {
  margin-bottom: clamp(38px, 6vw, 68px);
}

.reset-intake-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  color: var(--reset-muted);
}

.reset-intake-progress__track {
  height: 2px;
  overflow: hidden;
  background: var(--reset-line);
}

.reset-intake-progress__bar {
  display: block;
  width: 16.666%;
  height: 100%;
  background: #C89C4B;
  transform-origin: left;
  transition: width 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reset-intake-step[hidden],
.reset-intake-conditional[hidden],
.reset-intake-success[hidden] {
  display: none !important;
}

.reset-intake-step.is-entering {
  animation: reset-intake-enter 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes reset-intake-enter {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}

.reset-intake-eyebrow {
  margin: 0 0 14px;
  color: #8B692C;
}

.reset-intake-question {
  max-width: 17ch;
  margin: 0;
  color: var(--reset-ink);
  font: 560 clamp(2rem, 4.4vw, 4rem)/0.98 var(--reset-font-sans);
  letter-spacing: -0.055em;
}

.reset-intake-help {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--reset-muted);
  font: 400 clamp(1rem, 1.4vw, 1.14rem)/1.6 var(--reset-font-serif);
}

.reset-intake-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(30px, 5vw, 52px);
}

.reset-intake-choice {
  position: relative;
  min-height: 102px;
  padding: 21px 48px 21px 22px;
  border: 1px solid var(--reset-line);
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.reset-intake-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 24, 35, 0.42);
  background: rgba(255, 255, 255, 0.7);
}

.reset-intake-choice:has(input:focus-visible) {
  outline: 2px solid var(--reset-forest);
  outline-offset: 3px;
}

.reset-intake-choice:has(input:checked),
.reset-intake-choice.is-selected {
  border-color: var(--reset-forest);
  background: var(--reset-mint);
  box-shadow: inset 4px 0 0 var(--reset-forest);
}

.reset-intake-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.reset-intake-choice::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--reset-muted);
  border-radius: 50%;
  transform: translateY(-50%);
}

.reset-intake-choice:has(input:checked)::after,
.reset-intake-choice.is-selected::after {
  border: 4px solid var(--reset-forest);
}

.reset-intake-choice__title {
  display: block;
  color: var(--reset-ink);
  font: 560 1.05rem/1.25 var(--reset-font-sans);
}

.reset-intake-choice__meta {
  display: block;
  margin-top: 8px;
  color: var(--reset-muted);
}

.reset-intake-fieldset {
  min-width: 0;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  border: 0;
}

.reset-intake-fieldset > legend,
.reset-intake-field label {
  margin-bottom: 10px;
  color: var(--reset-muted);
}

.reset-intake-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
  margin-top: clamp(30px, 5vw, 48px);
}

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

.reset-intake-field label {
  display: block;
}

.reset-intake-field input,
.reset-intake-field select,
.reset-intake-field textarea {
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid var(--reset-line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--reset-ink);
  font: 500 1.05rem/1.45 var(--reset-font-sans);
}

.reset-intake-field textarea {
  min-height: 150px;
  padding: 12px 0;
  resize: vertical;
}

.reset-intake-field input:focus,
.reset-intake-field select:focus,
.reset-intake-field textarea:focus {
  border-bottom-color: var(--reset-forest);
  box-shadow: 0 2px 0 var(--reset-forest);
}

.reset-intake-field__note {
  margin: 8px 0 0;
  color: var(--reset-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.reset-intake-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(36px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--reset-line);
}

.reset-intake-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--reset-muted);
  font: 500 0.78rem/1 var(--reset-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.reset-intake-back:hover {
  color: var(--reset-ink);
}

.reset-intake-error {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-left: 3px solid var(--reset-danger);
  background: rgba(180, 35, 24, 0.07);
  color: #7D231B;
  font-size: 0.9rem;
}

.reset-intake-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 34px 0 0;
  border-top: 1px solid var(--reset-line);
  border-left: 1px solid var(--reset-line);
}

.reset-intake-summary > div {
  min-height: 92px;
  padding: 18px;
  border-right: 1px solid var(--reset-line);
  border-bottom: 1px solid var(--reset-line);
}

.reset-intake-summary dt {
  color: var(--reset-muted);
}

.reset-intake-summary dd {
  margin: 9px 0 0;
  color: var(--reset-ink);
  font-weight: 560;
}

.reset-intake-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 24px;
  color: var(--reset-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.reset-intake-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--reset-forest);
}

.reset-intake-consent a {
  color: inherit;
  text-underline-offset: 3px;
}

.reset-intake-form.is-submitting {
  opacity: 0.66;
  pointer-events: none;
}

.reset-intake-success {
  min-height: 500px;
  align-content: center;
}

.reset-intake-success:not([hidden]) {
  display: grid;
}

.reset-intake-success__mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--reset-mint);
  color: var(--reset-forest);
  font-size: 1.45rem;
}

.reset-intake-success h2 {
  max-width: 15ch;
  margin: 0;
  color: var(--reset-ink);
  font: 560 clamp(2.1rem, 4.2vw, 3.8rem)/0.98 var(--reset-font-sans);
  letter-spacing: -0.05em;
}

.reset-intake-success p {
  max-width: 55ch;
  color: var(--reset-muted);
  font: 400 1.08rem/1.65 var(--reset-font-serif);
}

@media (max-width: 880px) {
  .reset-intake-shell {
    grid-template-columns: 1fr;
  }

  .reset-intake-ledger {
    grid-row: 1;
    min-height: 0;
    border-left: 0;
    border-bottom: 1px solid var(--reset-line-onink-strong);
  }

  .reset-intake-ledger h2 {
    max-width: 20ch;
  }

  .reset-intake-ledger__privacy {
    display: none;
  }

  .reset-intake-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .reset-intake-hero .reset-thesis {
    max-width: 10ch;
  }

  .reset-intake-section {
    padding-top: 0;
    background: var(--reset-ink);
  }

  .reset-intake-shell {
    margin-inline: calc(-1 * var(--reset-gutter));
    border-bottom: 0;
  }

  .reset-intake-ledger,
  .reset-intake-card {
    padding: 26px var(--reset-gutter) 34px;
  }

  .reset-intake-card {
    min-height: 680px;
  }

  .reset-intake-progress {
    margin-bottom: 38px;
  }

  .reset-intake-question {
    font-size: clamp(2rem, 10.8vw, 3.1rem);
  }

  .reset-intake-choices,
  .reset-intake-fields,
  .reset-intake-summary {
    grid-template-columns: 1fr;
  }

  .reset-intake-choice {
    min-height: 84px;
    padding-block: 17px;
  }

  .reset-intake-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin-inline: calc(-1 * var(--reset-gutter));
    padding: 18px var(--reset-gutter);
    background: linear-gradient(to top, var(--reset-paper) 72%, rgba(243, 239, 229, 0));
  }
}

@media (prefers-reduced-motion: reduce) {
  .reset-intake-progress__bar,
  .reset-intake-choice {
    transition: none;
  }

  .reset-intake-step.is-entering {
    animation: none;
  }
}
