/* ── Reset page background ───────────────────────────────────── */
    body {
      background: #0c0a07;
      min-height: 100vh;
    }

    /* ── Hide standard header on this page — inline nav shown ───── */
    .site-header { display: none; }

    /* ── Split layout ────────────────────────────────────────────── */
    .signup-layout {
      display: grid;
      grid-template-columns: 1fr 1.18fr;
      min-height: 100vh;
      align-items: start;
    }

    /* ── Left: sticky brand panel ────────────────────────────────── */
    .signup-brand {
      position: sticky;
      top: 0;
      height: 100vh;
      overflow: hidden;
      background: #0c0a07;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 44px 44px 50px;
    }

    .signup-brand-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: 50% 30%;
      filter: saturate(0.55) brightness(0.42);
    }

    .signup-brand-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        0deg,
        rgba(8, 5, 2, 0.88) 0%,
        rgba(8, 5, 2, 0.52) 50%,
        rgba(8, 5, 2, 0.22) 100%
      );
    }

    .signup-brand-content {
      position: relative;
      z-index: 1;
    }

    .signup-brand-logo {
      display: block;
      width: 70px;
      margin-bottom: 32px;
      filter: brightness(0) invert(1);
      opacity: 0.9;
    }

    .signup-brand-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 20px;
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: #c8a98a;
    }

    .signup-brand-eyebrow::before {
      content: "";
      display: block;
      width: 20px;
      height: 1.5px;
      background: #c8a98a;
      border-radius: 999px;
    }

    .signup-brand-heading {
      font-family: "Fraunces", serif;
      font-size: clamp(1.7rem, 2.4vw, 2.3rem);
      font-weight: 600;
      line-height: 1.12;
      letter-spacing: -0.03em;
      color: #fff;
      margin: 0 0 28px;
    }

    .signup-brand-list {
      list-style: none;
      padding: 0;
      margin: 0 0 36px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .signup-brand-list li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      font-size: 0.88rem;
      line-height: 1.55;
      color: rgba(255, 255, 255, 0.72);
    }

    .signup-brand-list li::before {
      content: "";
      flex-shrink: 0;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: rgba(200, 169, 138, 0.18);
      border: 1.5px solid rgba(200, 169, 138, 0.4);
      margin-top: 1px;
    }

    .signup-brand-step-indicator {
      display: flex;
      align-items: center;
      gap: 6px;
      padding-top: 28px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .signup-brand-step-indicator span {
      font-size: 0.78rem;
      color: rgba(255, 255, 255, 0.45);
      letter-spacing: 0.04em;
    }

    .brand-step-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.2);
      transition: background 0.3s, width 0.3s;
    }

    .brand-step-dot.is-active {
      background: #c8a98a;
      width: 18px;
      border-radius: 999px;
    }

    .brand-step-dot.is-done {
      background: rgba(200, 169, 138, 0.5);
    }

    /* ── Right: scrollable form column ───────────────────────────── */
    .signup-form-col {
      background: #fefcf8;
      min-height: 100vh;
      padding: clamp(40px, 6vh, 72px) clamp(32px, 5.5vw, 72px) clamp(48px, 8vh, 88px);
      display: flex;
      flex-direction: column;
    }

    /* ── Inline nav (replaces hidden header) ─────────────────────── */
    .signup-inline-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: clamp(32px, 5vh, 56px);
    }

    .signup-inline-logo {
      display: block;
      height: 28px;
    }

    .signup-signin-link {
      font-size: 0.84rem;
      font-weight: 600;
      color: #6b5d51;
      text-decoration: none;
      transition: color 0.2s;
    }

    .signup-signin-link:hover { color: #1a100a; }

    .signup-signin-link span {
      color: #1a100a;
      font-weight: 800;
      border-bottom: 1.5px solid #c8a98a;
      padding-bottom: 1px;
    }

    /* ── Page header ─────────────────────────────────────────────── */
    .signup-page-header {
      margin-bottom: 36px;
    }

    .signup-page-eyebrow {
      display: inline-block;
      margin: 0 0 14px;
      padding: 5px 14px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 236, 225, 0.9));
      border: 1px solid rgba(159, 131, 108, 0.22);
      border-radius: 999px;
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: #9f836c;
    }

    .signup-page-title {
      margin: 0 0 10px;
      font-family: "Fraunces", serif;
      font-size: clamp(1.8rem, 2.8vw, 2.5rem);
      font-weight: 600;
      line-height: 1.05;
      letter-spacing: -0.03em;
      color: #1a100a;
    }

    .signup-page-sub {
      margin: 0;
      font-size: 0.92rem;
      line-height: 1.65;
      color: #7a6555;
    }

    /* ── Step tracker ────────────────────────────────────────────── */
    .signup-tracker {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0;
      margin-bottom: 16px;
      position: relative;
    }

    .tracker-step {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      position: relative;
    }

    /* connector line between steps */
    .tracker-step:not(:last-child)::after {
      content: "";
      position: absolute;
      top: 17px;
      left: calc(50% + 18px);
      right: calc(-50% + 18px);
      height: 1.5px;
      background: rgba(40, 31, 25, 0.1);
      border-radius: 999px;
      transition: background 0.3s;
    }

    .tracker-step.is-complete:not(:last-child)::after {
      background: #c8a98a;
    }

    .tracker-dot {
      position: relative;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: #f5f0e8;
      border: 1.5px solid rgba(40, 31, 25, 0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
      z-index: 1;
    }

    .tracker-num {
      font-size: 0.72rem;
      font-weight: 800;
      color: #9a8878;
      line-height: 1;
      transition: opacity 0.2s;
    }

    .tracker-dot svg {
      display: none;
      position: absolute;
      width: 14px;
      height: 14px;
      fill: none;
      stroke: #fff;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .tracker-label {
      font-size: 0.67rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      color: #a09080;
      transition: color 0.25s;
      white-space: nowrap;
    }

    /* Active step */
    .tracker-step.is-active .tracker-dot {
      background: linear-gradient(135deg, #1e1510, #3a2820);
      border-color: transparent;
      box-shadow: 0 4px 14px rgba(22, 14, 9, 0.28);
    }

    .tracker-step.is-active .tracker-num { color: #fff; }
    .tracker-step.is-active .tracker-label { color: #1a100a; font-weight: 800; }

    /* Completed step */
    .tracker-step.is-complete .tracker-dot {
      background: linear-gradient(135deg, #c8a98a, #b09070);
      border-color: transparent;
    }

    .tracker-step.is-complete .tracker-num { display: none; }
    .tracker-step.is-complete .tracker-dot svg { display: block; }
    .tracker-step.is-complete .tracker-label { color: #9f836c; }

    /* ── Progress bar ────────────────────────────────────────────── */
    .signup-progress {
      height: 3px;
      background: rgba(40, 31, 25, 0.08);
      border-radius: 999px;
      overflow: hidden;
      margin-bottom: 32px;
    }

    .signup-progress-fill {
      height: 100%;
      background: linear-gradient(90deg, #c8a98a, #9f836c);
      border-radius: 999px;
      transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
      width: calc(1 / 7 * 100%);
    }

    /* ── Form card ───────────────────────────────────────────────── */
    .signup-card {
      background: #fff;
      border: 1px solid rgba(40, 31, 25, 0.08);
      border-radius: 20px;
      padding: clamp(28px, 4vw, 44px) clamp(24px, 3.5vw, 40px) clamp(24px, 3.5vw, 36px);
      box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.9) inset,
        0 16px 48px rgba(22, 14, 9, 0.09),
        0 4px 12px rgba(22, 14, 9, 0.05);
      flex: 1;
    }

    /* ── Step header ─────────────────────────────────────────────── */
    .step-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 28px;
      padding-bottom: 22px;
      border-bottom: 1px solid rgba(40, 31, 25, 0.07);
    }

    .step-header-text {}

    .step-eyebrow {
      margin: 0 0 5px;
      font-size: 0.67rem;
      font-weight: 800;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: #9f836c;
    }

    .step-title {
      margin: 0;
      font-family: "Fraunces", serif;
      font-size: clamp(1.3rem, 2vw, 1.65rem);
      font-weight: 600;
      line-height: 1.1;
      letter-spacing: -0.025em;
      color: #1a100a;
    }

    /* Step badge on the right of header */
    .step-badge {
      flex-shrink: 0;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: #f5ece0;
      border: 1.5px solid #e0c9ae;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      font-weight: 800;
      color: #9f836c;
      letter-spacing: 0.02em;
      white-space: nowrap;
    }

    /* ── Form grid ───────────────────────────────────────────────── */
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px 22px;
    }

    .col-full { grid-column: 1 / -1; }

    /* ── Field ───────────────────────────────────────────────────── */
    .field {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .field label {
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      color: #2e2018;
      line-height: 1.35;
    }

    /* All inputs / selects / textareas */
    .signup-card input[type="text"],
    .signup-card input[type="email"],
    .signup-card input[type="password"],
    .signup-card select,
    .signup-card textarea {
      display: block;
      width: 100%;
      padding: 12px 14px;
      font-family: "Manrope", sans-serif;
      font-size: 0.93rem;
      color: #1e1510;
      background: #faf8f5;
      border: 1.5px solid rgba(40, 31, 25, 0.13);
      border-radius: 8px;
      outline: none;
      -webkit-appearance: none;
      transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
      box-shadow: 0 1px 3px rgba(22, 14, 9, 0.04) inset;
    }

    .signup-card input::placeholder,
    .signup-card textarea::placeholder { color: #bca898; }

    .signup-card input:focus,
    .signup-card select:focus,
    .signup-card textarea:focus {
      border-color: #9f836c;
      box-shadow: 0 0 0 3.5px rgba(159, 131, 108, 0.14);
      background: #fff;
    }

    /* Valid state */
    .signup-card input:not(:placeholder-shown):valid:not([type="password"]) {
      border-color: rgba(80, 130, 90, 0.45);
    }

    .signup-card select {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%237a6555' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 13px center;
      background-color: #faf8f5;
      padding-right: 36px;
      cursor: pointer;
    }

    .signup-card textarea {
      min-height: 96px;
      resize: vertical;
      line-height: 1.62;
    }

    /* ── Password toggle ─────────────────────────────────────────── */
    .pw-wrap { position: relative; }
    .pw-wrap input { padding-right: 46px; }

    .pw-toggle {
      position: absolute;
      right: 13px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      padding: 4px;
      cursor: pointer;
      color: #a08878;
      display: flex;
      align-items: center;
      border-radius: 4px;
      transition: color 0.2s;
    }
    .pw-toggle:hover { color: #6b5244; }

    .pw-toggle svg {
      width: 17px;
      height: 17px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.7;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* ── Field help text ─────────────────────────────────────────── */
    .field-help {
      font-size: 0.75rem;
      color: #9a8878;
      line-height: 1.5;
    }

    /* ── Step animation ──────────────────────────────────────────── */
    .form-section { display: none; }
    .form-section.is-active {
      display: block;
      animation: stepIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

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

    /* ── Step nav ────────────────────────────────────────────────── */
    .step-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 32px;
      padding-top: 26px;
      border-top: 1px solid rgba(40, 31, 25, 0.07);
    }

    .btn-continue {
      min-height: 50px;
      min-width: 156px;
      padding: 0 32px;
      background: linear-gradient(135deg, #1e1510 0%, #3a2820 100%);
      color: #fff;
      font-family: "Manrope", sans-serif;
      font-size: 0.86rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: transform 0.18s, box-shadow 0.2s;
      box-shadow: 0 4px 20px rgba(22, 14, 9, 0.20), 0 1px 4px rgba(22, 14, 9, 0.12);
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .btn-continue::after {
      content: "→";
      font-size: 1rem;
      font-weight: 400;
      transition: transform 0.2s;
    }
    .btn-continue:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 30px rgba(22, 14, 9, 0.26), 0 2px 6px rgba(22, 14, 9, 0.14);
    }
    .btn-continue:hover::after { transform: translateX(3px); }
    .btn-continue:active { transform: none; }
    .btn-continue[type="submit"]::after { display: none; }

    .btn-back {
      min-height: 50px;
      min-width: 110px;
      padding: 0 24px;
      background: transparent;
      border: 1.5px solid rgba(40, 31, 25, 0.16);
      border-radius: 8px;
      color: #4a382f;
      font-family: "Manrope", sans-serif;
      font-size: 0.86rem;
      font-weight: 700;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s, color 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .btn-back::before {
      content: "←";
      font-size: 1rem;
      font-weight: 400;
      transition: transform 0.2s;
    }
    .btn-back:hover {
      border-color: rgba(40, 31, 25, 0.28);
      background: rgba(40, 31, 25, 0.04);
      color: #281f19;
    }
    .btn-back:hover::before { transform: translateX(-3px); }

    /* ── Confirmation checkboxes ─────────────────────────────────── */
    .confirm-list {
      display: grid;
      gap: 10px;
    }

    .confirm-item {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 16px 18px;
      background: #faf8f5;
      border: 1.5px solid rgba(40, 31, 25, 0.09);
      border-radius: 10px;
      cursor: pointer;
      transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
    }
    .confirm-item:hover { background: #f5f0e8; }

    .confirm-item:has(input:checked) {
      border-color: #c8a98a;
      background: #fffaf4;
      box-shadow: 0 0 0 3px rgba(200, 169, 138, 0.14);
    }

    .confirm-item input[type="checkbox"] {
      width: 17px;
      height: 17px;
      flex-shrink: 0;
      margin-top: 2px;
      accent-color: #2d221c;
      cursor: pointer;
    }

    .confirm-item span {
      font-size: 0.88rem;
      color: #3e2e22;
      line-height: 1.58;
    }

    .confirm-item span a {
      color: #2d221c;
      font-weight: 700;
      text-decoration: none;
      border-bottom: 1.5px solid #c8a98a;
      transition: color 0.2s;
    }
    .confirm-item span a:hover { color: #9f836c; }

    /* ── Sign-in nudge ───────────────────────────────────────────── */
    .signup-signin-nudge {
      text-align: center;
      margin-top: 22px;
      font-size: 0.86rem;
      color: #7a6555;
    }
    .signup-signin-nudge a {
      color: #281f19;
      font-weight: 700;
      text-decoration: none;
      border-bottom: 1.5px solid #c8a98a;
      padding-bottom: 1px;
      transition: color 0.2s, border-color 0.2s;
    }
    .signup-signin-nudge a:hover { color: #9f836c; border-color: transparent; }

    /* ── Mobile: compact top banner instead of left panel ─────────── */
    @media (max-width: 900px) {
      body { background: #fefcf8; }

      .signup-layout {
        grid-template-columns: 1fr;
      }

      .signup-brand {
        position: relative;
        height: clamp(200px, 28vh, 280px);
        padding: 28px 28px 32px;
      }

      .signup-brand-logo { width: 54px; margin-bottom: 16px; }
      .signup-brand-list { display: none; }
      .signup-brand-step-indicator { display: none; }

      .signup-brand-eyebrow { margin-bottom: 10px; }

      .signup-brand-heading {
        font-size: clamp(1.3rem, 4vw, 1.7rem);
        margin-bottom: 0;
      }

      .signup-form-col {
        min-height: auto;
        padding: 32px 24px 64px;
      }

      .signup-inline-nav { margin-bottom: 28px; }
    }

    @media (max-width: 640px) {
      .step-header { flex-direction: column; gap: 10px; }
      .step-badge { display: none; }
      .form-grid { grid-template-columns: 1fr; gap: 16px; }
      .col-full { grid-column: 1; }
      .step-nav { flex-direction: column-reverse; align-items: stretch; }
      .btn-continue, .btn-back { min-width: 0; width: 100%; justify-content: center; }
      .tracker-label { display: none; }
      .tracker-dot { width: 30px; height: 30px; }
      .tracker-step:not(:last-child)::after {
        top: 15px;
        left: calc(50% + 15px);
        right: calc(-50% + 15px);
      }
    }

    @media (max-width: 420px) {
      .tracker-dot { width: 26px; height: 26px; font-size: 0.62rem; }
      .tracker-step:not(:last-child)::after { top: 13px; }
      .signup-page-title { font-size: 1.7rem; }
    }

    /* ── Honeypot — invisible to humans ──────────────────────────── */
    .signup-hp-wrap {
      position: absolute;
      left: -9999px;
      top: -9999px;
      width: 1px;
      height: 1px;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
      tabindex: -1;
    }

    /* ── Field-level error state (matching login.html) ────────────── */
    .field.has-error input[type="text"],
    .field.has-error input[type="email"],
    .field.has-error input[type="password"],
    .field.has-error select,
    .field.has-error textarea {
      border-color: rgba(176, 64, 64, 0.5);
      box-shadow: 0 0 0 3.5px rgba(176, 64, 64, 0.08);
      background: #fff;
    }

    .field-error {
      display: block;
      margin-top: 6px;
      font-size: 0.81rem;
      font-weight: 600;
      color: #b04040;
      line-height: 1.4;
    }

    /* ── Autofill styling ────────────────────────────────────────── */
    .signup-card input:-webkit-autofill,
    .signup-card input:-webkit-autofill:hover,
    .signup-card input:-webkit-autofill:focus {
      -webkit-text-fill-color: #1e1510;
      -webkit-box-shadow: 0 0 0 1000px #faf8f5 inset;
      transition: background-color 9999s ease-in-out 0s;
      border: 1.5px solid rgba(40, 31, 25, 0.13);
    }

    /* ── Submit button loading state ─────────────────────────────── */
    @keyframes signup-spin { to { transform: rotate(360deg); } }

    .btn-continue.is-loading {
      pointer-events: none;
      opacity: 0.78;
    }

    .btn-spinner {
      display: none;
      width: 16px;
      height: 16px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: signup-spin 0.7s linear infinite;
      flex-shrink: 0;
    }

    .btn-continue.is-loading .btn-spinner { display: block; }
    .btn-continue.is-loading::after { display: none; }

    /* ── Security note ───────────────────────────────────────────── */
    .signup-footer-note {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      margin-top: 18px;
      padding: 14px 16px;
      background: rgba(159, 131, 108, 0.07);
      border-radius: 12px;
      border: 1px solid rgba(159, 131, 108, 0.15);
      font-size: 0.84rem;
      color: #8a7868;
      line-height: 1.55;
    }

    .signup-footer-note .shield-icon {
      flex-shrink: 0;
      width: 13px;
      height: 13px;
      margin-top: 2px;
      fill: #9f836c;
    }

    /* ── Location verification banner ────────────────────────────── */
    .location-verify-banner {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 18px;
      background: rgba(90, 124, 90, 0.08);
      border: 1px solid rgba(90, 124, 90, 0.2);
      border-radius: 10px;
      font-size: 0.84rem;
      color: #3e5e3e;
      line-height: 1.5;
    }

    .location-verify-banner.is-mismatch {
      background: rgba(176, 64, 64, 0.06);
      border-color: rgba(176, 64, 64, 0.18);
      color: #8b2f2f;
    }

    .location-verify-banner.is-hidden { display: none; }

    .btn-verify-location {
      flex-shrink: 0;
      padding: 7px 16px;
      background: linear-gradient(135deg, #1e1510 0%, #3a2820 100%);
      color: #fff;
      font-family: "Manrope", sans-serif;
      font-size: 0.76rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: opacity 0.2s;
    }
    .btn-verify-location:hover { opacity: 0.85; }
    .btn-verify-location:disabled { opacity: 0.5; cursor: not-allowed; }

