/* ════════════════════════════════════════════════════════════════
   IX — Intake modal styles (paired with intake-modal.jsx)
   Inherits the page's --paper / --ink / --accent tokens.
   ════════════════════════════════════════════════════════════════ */

.ix-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: stretch; justify-content: center;
  animation: ix-fade .25s ease-out;
}
@keyframes ix-fade { from { opacity: 0; } to { opacity: 1; } }

.ix-overlay__scrim {
  position: absolute; inset: 0;
  background: rgba(14,13,11,0.62);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 0; cursor: pointer;
}

.ix-panel {
  position: relative;
  width: min(1280px, 100%);
  max-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: ix-rise .35s cubic-bezier(.2,.7,.2,1);
  margin: 0;
}
@keyframes ix-rise {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@media (min-width: 900px) {
  .ix-overlay { padding: 24px; }
  .ix-panel { border-radius: 20px; max-height: calc(100vh - 48px); }
}

/* ─── header ─── */
.ix-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.ix-head__brand {
  display: flex; align-items: center; gap: 12px;
}
.ix-head__mark {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink);
}
.ix-head__brand-txt { display: flex; flex-direction: column; gap: 1px; }
.ix-head__brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 500; font-size: 15px;
  letter-spacing: -0.02em; line-height: 1.1;
}
.ix-head__brand-sub {
  font-family: "Geist Mono", monospace;
  font-size: 10px; color: var(--ink-dim);
}

.ix-stepper {
  display: flex; align-items: center; gap: 2px;
  justify-self: center;
  flex-wrap: wrap;
}
.ix-stepper__node {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--ink-dim);
  transition: background .2s, color .2s;
  background: transparent;
}
.ix-stepper__node:not(:disabled):hover { background: var(--paper-2); color: var(--ink); }
.ix-stepper__node.is-done { color: var(--ink); cursor: pointer; }
.ix-stepper__node.is-current { background: var(--ink); color: var(--paper); }
.ix-stepper__node.is-current .ix-stepper__num { color: var(--accent); }
.ix-stepper__num {
  font-family: "Geist Mono", monospace; font-size: 10px;
  color: var(--ink-mute);
  transition: color .2s;
}
.ix-stepper__node.is-done .ix-stepper__num { color: var(--accent); }

.ix-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.ix-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(90deg); }

@media (max-width: 1100px) {
  .ix-stepper__lab { display: none; }
  .ix-stepper__node { padding: 8px 10px; }
}
@media (max-width: 720px) {
  .ix-head { grid-template-columns: auto 1fr auto; gap: 8px; padding: 14px 16px; }
  .ix-stepper { justify-self: end; gap: 1px; }
  .ix-stepper__node { padding: 6px 8px; }
  .ix-head__brand-sub { display: none; }
}

/* ─── body grid ─── */
.ix-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  flex: 1; min-height: 0;
  overflow: hidden;
}
.ix-aside {
  background: var(--paper-2);
  border-right: 1px solid var(--line-soft);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.ix-aside__top { display: flex; flex-direction: column; gap: 12px; }
.ix-aside__eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.04em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.ix-aside__h {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 500;
  font-size: 36px; letter-spacing: -0.03em; line-height: 0.95;
}
.ix-aside__dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: 6px;
}
.ix-aside__p {
  font-size: 13px; line-height: 1.5;
  color: var(--ink-dim);
  max-width: 28ch;
  margin-top: 8px;
}

.ix-aside__visual {
  flex: 1;
  position: relative;
  min-height: 220px;
  margin: 28px 0;
  display: grid; place-items: center;
}
.ix-aside__bigstep {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 500;
  font-size: clamp(120px, 18vw, 220px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--ink);
  position: relative;
  z-index: 2;
}
.ix-aside__frame {
  position: absolute; inset: 24px;
  pointer-events: none;
}
.ix-aside__frame span {
  position: absolute;
  width: 26px; height: 26px;
  border: 1.5px solid var(--ink);
}
.ix-aside__frame span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.ix-aside__frame span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.ix-aside__frame span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.ix-aside__frame span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.ix-aside__bot {
  display: flex; justify-content: space-between;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--ink-dim);
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

@media (max-width: 900px) {
  .ix-body { grid-template-columns: 1fr; }
  .ix-aside { display: none; }
}

/* ─── main panel (form area) ─── */
.ix-main {
  padding: 36px 40px 40px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px;
  animation: ix-step-in .3s cubic-bezier(.2,.7,.2,1);
}
@keyframes ix-step-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ix-step__h {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 22ch;
}
.ix-step__h .it { font-family: "Instrument Serif", serif; font-style: italic; color: var(--accent); font-weight: 400; }
.ix-step__lead {
  font-size: 15px; line-height: 1.5;
  color: var(--ink-dim);
  max-width: 56ch;
  text-wrap: pretty;
}
.ix-step__lead strong { color: var(--ink); font-weight: 500; }
@media (max-width: 720px) {
  .ix-main { padding: 24px 18px 28px; gap: 16px; }
}

/* ─── chip grid (services) ─── */
.ix-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 720px) { .ix-chip-grid { grid-template-columns: 1fr; } }

.ix-chip {
  position: relative;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.ix-chip:hover { background: var(--paper-2); border-color: var(--ink); }
.ix-chip__dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
}
.ix-chip__label {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.ix-chip__hint {
  grid-column: 2;
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.3;
  margin-top: 2px;
}
.ix-chip__check {
  width: 26px; height: 26px; border-radius: 50%;
  background: transparent; color: transparent;
  display: grid; place-items: center;
  transition: background .2s, color .2s;
  grid-row: 1 / span 2;
  align-self: center;
}
.ix-chip.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.ix-chip.is-on .ix-chip__hint { color: var(--paper-3); }
.ix-chip.is-on .ix-chip__dot { background: var(--accent); border-color: var(--accent); }
.ix-chip.is-on .ix-chip__check { background: var(--accent); color: var(--accent-ink); }

/* ─── radio cards (budget, timeline, country) ─── */
.ix-fieldset { display: flex; flex-direction: column; gap: 10px; }
.ix-fieldset__label {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ix-rcard-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.ix-rcard-grid--row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
@media (max-width: 720px) { .ix-rcard-grid { grid-template-columns: 1fr; } }

.ix-rcard {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.ix-rcard:hover { background: var(--paper-2); border-color: var(--ink); }
.ix-rcard__radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--line);
  flex-shrink: 0; margin-top: 3px;
  position: relative;
  transition: border-color .2s;
}
.ix-rcard__radio::after {
  content: "";
  position: absolute; inset: 3px;
  border-radius: 50%; background: var(--accent);
  transform: scale(0); transition: transform .2s;
}
.ix-rcard__text { display: flex; flex-direction: column; gap: 3px; }
.ix-rcard__label {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 500;
  font-size: 15px; letter-spacing: -0.015em;
  line-height: 1.15;
}
.ix-rcard__hint { font-size: 12px; line-height: 1.35; color: var(--ink-dim); }
.ix-rcard.is-on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.ix-rcard.is-on .ix-rcard__hint { color: var(--paper-3); }
.ix-rcard.is-on .ix-rcard__radio { border-color: var(--accent); }
.ix-rcard.is-on .ix-rcard__radio::after { transform: scale(1); }

/* ─── inputs ─── */
.ix-fields { display: flex; flex-direction: column; gap: 18px; }
.ix-fields--cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 720px) { .ix-fields--cols { grid-template-columns: 1fr; } }

.ix-field { display: flex; flex-direction: column; gap: 6px; }
.ix-field__label {
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.ix-field__req { color: var(--accent); margin-left: 4px; }
.ix-field__hint { font-size: 12px; line-height: 1.45; color: var(--ink-mute); margin-top: 2px; }

.ix-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s, background .2s, box-shadow .2s;
  font-family: "Geist", system-ui, sans-serif;
}
.ix-input:hover { border-color: var(--ink-mute); }
.ix-input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper-2);
  box-shadow: 0 0 0 3px rgba(255,74,28,0.18);
}
.ix-input--area { resize: vertical; min-height: 120px; line-height: 1.5; font-family: inherit; }

/* tag row (heardof) */
.ix-tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ix-tag {
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  color: var(--ink);
  transition: background .2s, border-color .2s, color .2s;
}
.ix-tag:hover { background: var(--paper-2); border-color: var(--ink); }
.ix-tag.is-on {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

/* toggle */
.ix-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  cursor: pointer;
  padding: 4px 0;
}
.ix-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ix-toggle__track {
  width: 44px; height: 24px;
  border-radius: 100px;
  background: var(--paper-3);
  position: relative;
  transition: background .25s;
}
.ix-toggle__thumb {
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--paper);
  border-radius: 50%;
  transition: transform .25s, background .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.ix-toggle input:checked + .ix-toggle__track { background: var(--ink); }
.ix-toggle input:checked + .ix-toggle__track .ix-toggle__thumb {
  transform: translateX(20px);
  background: var(--accent);
}
.ix-toggle__label { font-size: 14px; color: var(--ink-2); }

/* ─── review ─── */
.ix-rev {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  overflow: hidden;
}
.ix-rev__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.45;
}
.ix-rev__row:last-child { border-bottom: 0; }
.ix-rev__lab {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-top: 2px;
}
.ix-rev__val { color: var(--ink); white-space: pre-wrap; word-wrap: break-word; }
.ix-rev__empty { color: var(--ink-mute); font-style: italic; }
@media (max-width: 720px) {
  .ix-rev__row { grid-template-columns: 1fr; gap: 4px; }
}

/* ─── error ─── */
.ix-err {
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  background: rgba(255,74,28,0.06);
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  color: var(--ink);
}

/* ─── footer / buttons ─── */
.ix-foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
  flex-shrink: 0;
}
.ix-foot__progress {
  display: flex; align-items: center; gap: 14px;
  justify-self: center;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--ink-dim);
}
.ix-foot__bar {
  width: 180px; height: 3px;
  background: var(--paper-3); border-radius: 100px; overflow: hidden;
}
.ix-foot__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width .35s cubic-bezier(.6,.05,.1,1);
}
@media (max-width: 720px) {
  .ix-foot { grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px; }
  .ix-foot__progress { display: none; }
}

.ix-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-family: inherit;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  border: 0;
  cursor: pointer;
}
.ix-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.ix-btn--ink { background: var(--ink); color: var(--paper); }
.ix-btn--ink:hover:not(:disabled) { background: var(--ink-2); }
.ix-btn--accent { background: var(--accent); color: var(--accent-ink); }
.ix-btn--accent:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.ix-btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.ix-btn--ghost:hover:not(:disabled) { background: var(--paper-2); border-color: var(--ink); }
.ix-btn--text {
  background: transparent; color: var(--ink-dim);
  padding: 8px 14px;
}
.ix-btn--text:hover:not(:disabled) { color: var(--ink); }
.ix-btn svg { transition: transform .2s; }
.ix-btn--ink:hover svg, .ix-btn--accent:hover svg { transform: translateX(2px); }
.ix-btn--text:not(:disabled):hover svg { transform: translateX(-2px); }

/* ─── done ─── */
.ix-done {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 20px;
  max-width: 540px;
  margin: 0 auto;
}
.ix-done__mark {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  animation: ix-pop .4s cubic-bezier(.2,1.4,.4,1);
}
@keyframes ix-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ix-done__h {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.ix-done__h .it { font-family: "Instrument Serif", serif; font-style: italic; color: var(--accent); font-weight: 400; }
.ix-done__p {
  font-size: 16px; line-height: 1.5;
  color: var(--ink-dim);
  text-wrap: pretty;
}
.ix-done__p strong { color: var(--ink); }
.ix-done__actions {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-top: 8px;
}
