:root {
  --paper: #fbf9f5;
  --surface: #ffffff;
  --ink: #073b36;
  --ink-2: #234f4a;
  --ink-soft: #4a6b67;
  --plum: #0d4d46;
  --plum-deep: #062f2b;
  --plum-soft: #176159;
  --lavender: #eee9fb;
  --lavender-2: #d3c4f5;
  --pink: #f7f3ff;
  --gold: #9b83df;
  --salmon: #f3efe3;
  --line: rgba(7, 59, 54, 0.18);
  --line-plum: rgba(7, 59, 54, 0.28);
  --shadow: 0 24px 60px rgba(6, 47, 43, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lavender-2); color: var(--plum-deep); }

a { color: inherit; text-underline-offset: 0.22em; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--plum);
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

.topbar {
  width: min(960px, calc(100% - 32px));
  margin: 16px auto 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 8px 7px 18px;
  border: 1px solid rgba(7, 59, 54, 0.1);
  border-radius: 14px;
  background: #f1f0e8;
  color: var(--plum-deep);
  box-shadow: 0 12px 32px rgba(6, 47, 43, 0.16);
}

.brand,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

.brand-lockup { display: grid; gap: 3px; line-height: 1; text-align: left; }
.brand-lockup strong { font: inherit; font-weight: 800; }
.brand-curator { display: inline-block; margin-left: .04em; font-family: "Newsreader", serif; font-size: 1.12em; font-style: italic; font-weight: 600; letter-spacing: -.035em; transform: translateY(.015em); }
.brand-lockup small { font-size: 8px; font-weight: 650; letter-spacing: .075em; text-transform: uppercase; opacity: .68; }

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
}

.brand-mark img { display: block; width: 22px; height: 22px; }
.brand-mark svg,
.back-link svg,
.button svg,
.notice svg,
.trust-item svg { width: 18px; height: 18px; flex: none; }

.back-link {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--plum-deep);
  background: var(--plum-deep);
  color: #fff;
  font-size: 14px;
}

.back-link:hover { background: var(--plum); color: var(--surface); }

.legal-strip {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  color: var(--ink-soft);
  font-size: 13px;
}

.legal-strip a { min-height: 32px; display: inline-flex; align-items: center; }

.intake-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 28px;
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  min-height: calc(100vh - 112px);
  border: 1px solid var(--line-plum);
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 3.5vw, 48px);
  overflow: hidden;
  background: var(--plum);
  color: var(--paper);
}

.service-panel::after {
  display: none;
}

.service-panel h1,
.form-header h2,
.scheduler-header h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.service-panel h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  color: #fff;
}

.service-intro {
  max-width: 35ch;
  margin: 24px 0 0;
  color: #dbe9e6;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.process {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(250, 248, 244, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.process-label {
  display: block;
  margin-bottom: 14px;
  color: var(--lavender-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.process ol { margin: 0; padding: 0; list-style: none; counter-reset: process; }

.process li {
  counter-increment: process;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid rgba(250, 248, 244, 0.2);
  color: #dbe9e6;
  font-size: 14px;
}

.process li::before {
  content: counter(process, decimal-leading-zero);
  color: var(--lavender-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 750;
}

.form-panel {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  background: var(--surface);
}

.form-panel::before {
  content: "";
  position: absolute;
  inset: 26px 26px auto auto;
  width: 80px;
  height: 8px;
  border-radius: 8px;
  background: var(--lavender-2);
  box-shadow: -18px 18px 0 var(--salmon), -44px 36px 0 var(--lavender);
  opacity: 0.9;
}

.form-inner { width: min(100%, 680px); margin: 0 auto; }

.step-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
}

.step-line span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--plum);
  color: var(--surface);
}

.step-line i { width: 48px; height: 1px; background: var(--line-plum); }
.step-line .is-next { background: var(--lavender); color: var(--plum); }

.form-header h2,
.scheduler-header h2 {
  max-width: 16ch;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  color: var(--plum);
}

.privacy-note {
  margin: 10px 0 16px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.form-header > p,
.scheduler-header > p {
  max-width: 58ch;
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 16px;
}

.investment-note {
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 13.5px;
}

.investment-note strong { color: var(--plum); font-size: 15px; }

.notice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  margin: 20px 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--line-plum);
  border-radius: 14px;
  background: var(--lavender);
  color: var(--ink-2);
  font-size: 13.5px;
}

.notice svg { color: var(--plum); margin-top: 2px; }
.notice strong { color: var(--plum); }

.service-form { display: grid; gap: 10px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }

label,
legend {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 750;
}

.required { color: var(--plum-soft); }

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select { min-height: 46px; padding: 0 13px; }
textarea { min-height: 76px; padding: 10px 13px; resize: vertical; }
input::placeholder,
textarea::placeholder { color: #627b78; opacity: 1; }

input:hover,
select:hover,
textarea:hover { border-color: var(--line-plum); }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 4px rgba(155, 131, 223, 0.2);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: #9a3142;
  background: #fffafb;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #9a3142;
  background: #fffafb;
}

.field-help { margin: 0; color: var(--ink-soft); font-size: 12.5px; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 0;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--plum);
  color: var(--surface);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(6, 47, 43, 0.2);
  transition: transform 180ms var(--ease), background 160ms ease, box-shadow 180ms var(--ease);
}

.button:hover {
  background: var(--plum-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(6, 47, 43, 0.26);
}

.button-secondary {
  background: transparent;
  color: var(--plum);
  border-color: var(--line-plum);
  box-shadow: none;
}

.button-secondary:hover { background: var(--lavender); box-shadow: none; }

.form-fineprint {
  margin: 0;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.scheduler { display: none; }
.is-scheduling .intake-form-view { display: none; }
.is-scheduling .scheduler { display: block; animation: reveal 460ms var(--ease) both; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.scheduler-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.scheduler-header h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
.scheduler-header > div { flex: 1; }

.cal-frame {
  min-height: 620px;
  border: 1px solid var(--line-plum);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.cal-inline { width: 100%; min-height: 620px; overflow: auto; }

.cal-loading,
.cal-error {
  min-height: 220px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 28px;
  text-align: center;
  color: var(--ink-soft);
}

.cal-loading::before {
  content: "";
  width: 26px;
  height: 26px;
  margin: 0 auto 8px;
  border: 3px solid var(--lavender-2);
  border-top-color: var(--plum);
  border-radius: 50%;
  animation: cal-spin 0.8s linear infinite;
}

.cal-error { background: var(--lavender); }
.cal-error strong { color: var(--plum); font-size: 17px; }
.cal-error span { max-width: 44ch; }
.cal-error .button { margin: 10px auto 0; }

.noscript-note {
  width: min(720px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line-plum);
  border-radius: 14px;
  background: var(--lavender);
  color: var(--ink-2);
}
.noscript-note strong { color: var(--plum); }
.noscript-note .button { margin-top: 5px; }

@keyframes cal-spin { to { transform: rotate(360deg); } }

.cal-fallback {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.trust-item svg { color: var(--plum); margin-top: 1px; }

.status {
  min-height: 16px;
  margin: 0;
  color: #9a3142;
  font-size: 13px;
  font-weight: 700;
}

.button:disabled { opacity: 0.62; cursor: wait; transform: none; box-shadow: none; }

@media (max-width: 900px) {
  .intake-shell { grid-template-columns: 1fr; }
  .service-panel { min-height: auto; }
  .service-panel h1 { max-width: 13ch; font-size: clamp(2rem, 8vw, 3rem); }
  .process { margin: 0; padding: 28px; }
  .process ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
}

@media (max-width: 620px) {
  .topbar { width: calc(100% - 20px); margin-top: 10px; padding-left: 14px; }
  .brand { font-size: 15px; }
  .back-link span { display: none; }
  .intake-shell { width: calc(100% - 20px); margin-top: 12px; border-radius: 20px; }
  .service-panel { padding: 18px 16px; }
  .form-panel { padding: 30px 22px; }
  .service-panel::after { width: 150px; height: 150px; }
  .process { padding: 18px; }
  .service-panel h1 {
    max-width: none;
    margin-bottom: 14px;
    font-size: 1.65rem;
  }
  .process ol {
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }
  .process li {
    grid-template-columns: 22px 1fr;
    gap: 6px;
    padding: 9px 0;
    font-size: 12px;
    line-height: 1.4;
  }
  .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .form-panel::before { display: none; }
  .form-actions,
  .scheduler-header { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .trust-row { grid-template-columns: 1fr; }
  .cal-frame,
  .cal-inline { min-height: 700px; }
}

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