:root {
  --indigo: #3D2C82;
  --indigo-2: #2F216B;
  --orange: #FFA33E;
  --paper: #F6F3EE;
  --white: #FFFFFF;
  --ink: #191623;
  --muted: #716C78;
  --line: #E6E0D8;
  --soft: #FBF9F6;
  --danger: #B53B32;
  --success: #176B52;
  --shadow: 0 32px 80px rgba(38, 28, 76, .08);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
body {
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  background:
    radial-gradient(circle at 8% 6%, rgba(255,163,62,.08), transparent 22%),
    linear-gradient(180deg, #F8F5F0 0%, var(--paper) 100%);
  color: var(--ink);
  font-family: "Thmanyah Sans", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(255,163,62,.28); }

.page-shell { width: min(1180px, calc(100% - 48px)); max-width: 100%; min-width: 0; margin: 0 auto; }
.site-header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(61,44,130,.10);
}
.brand {
  width: 54px;
  height: 54px;
  display: block;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(61,44,130,.13);
}
.brand img { width: 100%; height: 100%; object-fit: cover; display: block; }
.header-label { color: var(--indigo); font-size: 14px; font-weight: 700; letter-spacing: -.01em; }

.intro { padding: 68px 0 42px; max-width: 760px; }
.intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.intro-kicker::before { content: ""; width: 28px; height: 2px; background: var(--orange); border-radius: 2px; }
.intro h1 {
  margin: 0;
  color: var(--indigo);
  font-weight: 900;
  font-size: clamp(48px, 6.3vw, 82px);
  line-height: .98;
  letter-spacing: -.045em;
}
.intro h1 span { color: var(--orange); }
.intro p { margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 630px; }

.form-layout {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  margin: 20px 0 74px;
  background: var(--white);
  border: 1px solid rgba(61,44,130,.08);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: clip;
}

main, .intro, .steps-card, .form-card, .form-step, .field-grid, .field, .accounts-list, .account-card, .review-card, .review-section {
  min-width: 0;
  max-width: 100%;
}

img, svg, video, canvas { max-width: 100%; }


.steps-card {
  background: var(--indigo);
  color: var(--white);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  min-height: 720px;
}
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.progress-head span { font-size: 12px; color: rgba(255,255,255,.58); }
.progress-head strong { font-size: 15px; color: var(--orange); font-variant-numeric: tabular-nums; }
.progress-track { height: 2px; background: rgba(255,255,255,.12); overflow: hidden; margin: 16px 0 34px; }
.progress-track span { display: block; height: 100%; width: 25%; background: var(--orange); transition: width .25s ease; }
.steps-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.step-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  align-items: center;
  padding: 13px 11px;
  border-radius: 14px;
  opacity: .48;
  transition: background .2s ease, opacity .2s ease, transform .2s ease;
}
.step-item.active { opacity: 1; background: rgba(255,255,255,.09); transform: translateX(-2px); }
.step-item.complete { opacity: .78; }
.step-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  font-size: 11px;
  color: rgba(255,255,255,.72);
  font-variant-numeric: tabular-nums;
}
.step-item.active .step-number { background: var(--orange); color: var(--indigo-2); border-color: var(--orange); font-weight: 900; }
.step-item.complete .step-number { border-color: rgba(255,163,62,.55); color: var(--orange); }
.step-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--white); }
.step-item small { display: block; margin-top: 2px; font-size: 10px; color: rgba(255,255,255,.46); }
.save-status { margin-top: auto; padding-top: 24px; font-size: 10px; color: rgba(255,255,255,.42); line-height: 1.6; }

.form-card { min-width: 0; background: var(--white); }
.form-step { display: none; padding: 54px clamp(30px, 6vw, 74px) 44px; min-height: 720px; }
.form-step.active { display: block; animation: fadeIn .18s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.hp-field {
  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;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  inset-inline-start: 0 !important;
  top: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.hidden { display: none !important; }

.section-heading { margin-bottom: 34px; }
.section-kicker { display: inline-block; color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: .08em; margin-bottom: 8px; }
.section-heading h2 { margin: 0; color: var(--indigo); font-size: clamp(31px, 4vw, 44px); line-height: 1.15; font-weight: 900; letter-spacing: -.028em; }
.section-heading p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 650px; }

.field-grid { display: grid; gap: 20px 18px; }
.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: block; min-width: 0; }
.field > span, .upload-title { display: block; margin-bottom: 8px; color: #3E3947; font-size: 12px; font-weight: 700; }
.field > span b, .upload-title b { color: var(--orange); font-weight: 900; }
.field > span i { display: inline-block; margin-right: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(61,44,130,.08); color: var(--indigo); font-style: normal; font-size: 9px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #FCFBF9;
  color: var(--ink);
  outline: none;
  border-radius: 13px;
  padding: 0 15px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input, .field select { min-height: 52px; }
.field textarea { min-height: 126px; padding-top: 14px; padding-bottom: 14px; resize: vertical; line-height: 1.8; }
.field input::placeholder, .field textarea::placeholder { color: #ABA5AF; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(61,44,130,.55); background: var(--white); box-shadow: 0 0 0 4px rgba(61,44,130,.06); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: rgba(181,59,50,.62); box-shadow: 0 0 0 3px rgba(181,59,50,.05); }
.field > small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.field-error { display: block; min-height: 17px; margin-top: 5px; color: var(--danger); font-size: 10px; font-style: normal; }
.field-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; color: var(--muted); font-size: 9px; }
.generated-field { margin-top: 20px; }
.generated-field textarea { background: rgba(61,44,130,.035); color: #5A5366; }

.upload-block {
  display: grid;
  grid-template-columns: minmax(0,1fr) 150px;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}
.upload-copy p { margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.upload-copy > small { color: #928B98; font-size: 9px; }
.photo-uploader { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1.5px dashed rgba(61,44,130,.27); background: var(--white); cursor: pointer; }
.photo-uploader input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 3; }
.photo-uploader img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--indigo); text-align: center; pointer-events: none; }
.upload-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--indigo-2); font-size: 26px; line-height: 1; font-weight: 500; }
.upload-placeholder strong { font-size: 11px; }
.photo-note { margin-top: 8px; min-height: 20px; font-size: 10px; color: var(--muted); }
.photo-note.warning { color: #8A5A00; }
.photo-note.good { color: var(--success); }

.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-actions.single { justify-content: flex-end; }
.btn {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-weight: 800;
  font-size: 12px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, opacity .16s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--indigo); color: var(--white); box-shadow: 0 12px 28px rgba(61,44,130,.14); }
.btn.primary:hover { background: var(--indigo-2); }
.btn.primary span { color: var(--orange); font-size: 18px; }
.btn.ghost { background: transparent; color: var(--indigo); border: 1px solid rgba(61,44,130,.18); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.accounts-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.accounts-toolbar > div { color: var(--muted); font-size: 11px; }
.accounts-toolbar strong { color: var(--indigo); font-size: 16px; margin-left: 5px; }
.add-account { border: 0; background: rgba(61,44,130,.07); color: var(--indigo); min-height: 42px; padding: 0 15px; border-radius: 11px; font-weight: 800; font-size: 11px; cursor: pointer; }
.add-account span { color: var(--orange); font-size: 18px; margin-left: 5px; }
.add-account:disabled { opacity: .38; cursor: not-allowed; }
.accounts-list { display: grid; gap: 12px; }
.account-card { border: 1px solid var(--line); background: #FCFBF9; border-radius: 17px; padding: 18px; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.account-head > div { display: flex; align-items: center; gap: 8px; }
.account-index { color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.account-head strong { font-size: 11px; color: var(--indigo); }
.remove-account { background: transparent; border: 0; color: #9A4F48; cursor: pointer; font-size: 10px; }
.account-grid { grid-template-columns: .9fr 1fr 1.55fr .75fr; gap: 14px; }
.accounts-error, .consent-error { min-height: 20px; margin-top: 7px; color: var(--danger); font-size: 10px; }
.platforms-note { margin-top: 16px; padding: 13px 15px; border-right: 3px solid var(--orange); background: rgba(255,163,62,.07); color: #6C6259; font-size: 10px; line-height: 1.8; }
.platforms-note strong { color: var(--ink); }

.review-card { display: grid; gap: 10px; }
.review-section { border: 1px solid var(--line); border-radius: 15px; padding: 16px; background: #FCFBF9; }
.review-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.review-section h3 { margin: 0; font-size: 13px; color: var(--indigo); }
.review-edit { border: 0; background: transparent; color: var(--orange); font-weight: 800; font-size: 10px; cursor: pointer; }
.review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 18px; }
.review-item small { display: block; color: var(--muted); font-size: 9px; margin-bottom: 2px; }
.review-item strong { display: block; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.review-item.full { grid-column: 1 / -1; }
.review-account { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.review-account:last-child { border-bottom: 0; }
.review-account span { font-size: 10px; color: var(--ink); }
.review-account small { font-size: 9px; color: var(--muted); }

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; margin-top: 20px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--indigo); margin: 3px 0 0; }
.consent span { font-size: 10px; line-height: 1.85; color: #5E576B; }
.privacy-note { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.privacy-note strong { color: var(--indigo); }
.submit-message { min-height: 22px; padding-top: 9px; font-size: 10px; color: var(--danger); text-align: center; }
.spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.28); border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
.submit-btn.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.success-screen { min-height: 720px; padding: 80px clamp(30px,6vw,74px); display: grid; align-content: center; justify-items: start; text-align: right; }
.success-screen[hidden] { display: none; }
.success-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--indigo-2); font-size: 24px; font-weight: 900; margin-bottom: 18px; }
.success-screen h2 { margin: 5px 0 10px; color: var(--indigo); font-size: clamp(36px,4vw,54px); line-height: 1.12; }
.success-screen > p { margin: 0; max-width: 500px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.application-id-box { margin: 22px 0; padding: 11px 15px; border-radius: 11px; background: var(--paper); border: 1px solid var(--line); }
.application-id-box small { display: block; color: var(--muted); font-size: 9px; }
.application-id-box strong { display: block; color: var(--indigo); direction: ltr; margin-top: 2px; font-size: 12px; }

.site-footer { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(61,44,130,.10); color: #8A8490; font-size: 10px; }
.site-footer a { color: var(--indigo); text-decoration: none; }

@media (max-width: 900px) {
  .page-shell { width: calc(100% - 32px); max-width: 1180px; }
  .intro { padding-top: 54px; }
  .form-layout { grid-template-columns: 1fr; border-radius: 24px; }
  .steps-card { min-height: auto; padding: 22px 22px 18px; }
  .progress-track { margin: 13px 0 18px; }
  .steps-list { grid-template-columns: repeat(4,1fr); gap: 5px; }
  .step-item { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 8px 4px; gap: 5px; }
  .step-item.active { transform: none; }
  .step-item small { display: none; }
  .step-number { width: 32px; height: 32px; }
  .step-item strong { font-size: 10px; }
  .save-status { display: none; }
  .form-step, .success-screen { min-height: auto; }
  .account-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .account-url-field { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .page-shell { width: calc(100% - 20px); max-width: 1180px; }
  .site-header { height: 78px; }
  .brand { width: 48px; height: 48px; border-radius: 13px; }
  .header-label { font-size: 12px; }
  .intro { padding: 38px 2px 28px; }
  .intro-kicker { font-size: 11px; margin-bottom: 12px; }
  .intro h1 { font-size: clamp(42px, 13vw, 62px); line-height: 1; }
  .intro p { margin-top: 15px; font-size: 13px; line-height: 1.75; }
  .form-layout { margin-top: 8px; margin-bottom: 42px; border-radius: 20px; width: 100%; overflow: clip; }
  .steps-card { padding: 18px 14px 14px; }
  .progress-head span, .progress-head strong { font-size: 10px; }
  .step-item strong { font-size: 8.8px; }
  .step-number { width: 29px; height: 29px; font-size: 9px; }
  .form-step { padding: 30px 17px 20px; }
  .section-heading { margin-bottom: 26px; }
  .section-heading h2 { font-size: 31px; }
  .section-heading p { font-size: 11px; }
  .two-cols, .account-grid, .review-grid { grid-template-columns: 1fr; }
  .full-mobile { grid-column: auto; }
  .field-grid { gap: 15px; }
  .field input, .field select { min-height: 50px; }
  .upload-block { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .photo-uploader { width: 150px; justify-self: start; }
  .accounts-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .add-account { width: 100%; }
  .step-actions { position: sticky; bottom: 0; z-index: 6; margin: 28px -17px -20px; padding: 12px 17px; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
  .btn { flex: 1; min-width: 0; padding: 0 14px; }
  .consent { padding: 13px; }
  .site-footer { min-height: 78px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* Mobile in-app browser hardening: prevents horizontal canvas drift in Instagram/Safari. */
@media (max-width: 640px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
    overscroll-behavior-x: none;
  }
  .page-shell, main, .intro, .form-layout, .steps-card, .form-card, .form-step {
    max-width: 100%;
    min-width: 0;
  }
  .intro h1, .section-heading h2, .field, .field input, .field select, .field textarea {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .steps-list {
    width: 100%;
    min-width: 0;
  }
}
