:root {
  --app-zoom: 1;
  --ink: #18244f;
  --muted: #60708c;
  --paper: #f7fbfd;
  --line: #d7e7ee;
  --green: #39b98f;
  --green-soft: #e9f8ef;
  --rose: #c75b78;
  --gold: #8cd99c;
  --blue: #24356f;
  --cyan: #52c7d8;
  --teal: #36b8b7;
  --sky: #2f80c5;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(31, 74, 111, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito Sans", "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  min-height: calc(100vh / var(--app-zoom));
  zoom: var(--app-zoom);
}

.view {
  display: none;
}

.view.is-active {
  display: grid;
}

.hero {
  min-height: 100vh;
  grid-template-columns: 1fr;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0.92), rgba(247, 251, 253, 0.98) 62%),
    linear-gradient(135deg, #2f80c5, #36b8b7 48%, #8cd99c);
}

.brand-logo {
  width: 178px;
  height: auto;
  display: block;
  margin: 0 0 28px;
}

.panel-logo,
.sidebar-logo {
  width: 132px;
  height: auto;
  display: block;
  margin: 0 0 22px;
}

.hero-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(840px, 100%);
  text-align: center;
  padding: clamp(36px, 7vw, 88px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.nav-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.powered-by {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.powered-by strong {
  color: var(--blue);
  font-weight: 900;
}

.build-version {
  margin: 10px 0 0;
  color: rgba(24, 36, 79, 0.46);
  font-size: 12px;
  font-weight: 800;
}

.primary,
.secondary,
.ghost {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  letter-spacing: 0;
  font-weight: 800;
}

.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--sky) 58%, var(--teal));
  box-shadow: 0 10px 24px rgba(47, 128, 197, 0.22);
}

.primary.risk-mode {
  background: linear-gradient(135deg, #9d4058, #c75b78);
}

.secondary {
  color: var(--blue);
  background: #edf9fb;
  border: 1px solid #b7e5ed;
}

.ghost {
  color: var(--muted);
  background: transparent;
}

.wide {
  width: 100%;
}

.trust-list {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  font-weight: 700;
}

.panel-view {
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #f7fbfd, #edf9fb 58%, #eef9f0);
}

.back {
  position: fixed;
  top: 20px;
  left: 20px;
}

.panel {
  width: min(560px, 100%);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.payment-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
  width: min(980px, calc(100vw - 72px));
  padding: 34px;
}

.payment-intro,
.payment-action {
  min-width: 0;
}

.payment-intro .panel-logo {
  width: 112px;
}

.payment-intro h2 {
  max-width: 380px;
}

.payment-intro p {
  max-width: 420px;
}

.payment-action .lead-fields {
  margin-top: 0;
}

.panel p {
  color: var(--muted);
  line-height: 1.55;
}

.price-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfeff;
}

.lead-fields {
  display: grid;
  gap: 12px;
  margin: 22px 0 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fdfe;
}

.lead-fields .field {
  margin: 0;
}

.lead-fields .form-message {
  margin: 0;
}

.payment-method-field {
  margin: 0;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payment-methods label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--blue);
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.payment-methods input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-methods label:has(input:checked) {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--sky) 58%, var(--teal));
  box-shadow: 0 8px 18px rgba(47, 128, 197, 0.16);
}

.price-line strong {
  color: var(--green);
  font-size: 38px;
}

.notice {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-left: 4px solid var(--cyan);
  background: #eefbfc;
  color: #256477;
  line-height: 1.45;
}

.field {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: var(--ink);
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdfa;
}

.field-help-link {
  color: var(--sky);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.field-help-link:hover {
  text-decoration: underline;
}

.field-note {
  display: block;
  color: #426a7e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.verification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #eefbfc;
}

.mini-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.external-row {
  align-items: flex-start;
  flex-direction: column;
}

.external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.external-row code {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--blue);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.external-row small {
  color: #426a7e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.mini-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.founders-manager {
  display: grid;
  gap: 18px;
}

.founder-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfeff;
}

.founder-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.founder-card h3 {
  margin: 0;
  color: var(--blue);
  font-size: 20px;
}

.founder-card h3 span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field.compact {
  margin: 0;
}

.id-drop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.drop-zone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 2px dashed #a8dce5;
  border-radius: 18px;
  background: #f0fbfc;
  color: #315f78;
  text-align: center;
  cursor: pointer;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-zone strong {
  color: var(--blue);
}

.drop-zone span {
  font-size: 14px;
  font-weight: 700;
}

.drop-zone.has-file {
  border-style: solid;
  background: var(--green-soft);
}

.drop-zone.is-dragging {
  border-color: var(--teal);
  background: #dcf6f8;
}

.add-founder {
  justify-self: start;
}

.precheck {
  padding: 18px;
  border: 1px solid #f0c9d2;
  border-radius: 18px;
  background: #fff6f8;
  color: #773149;
  line-height: 1.55;
}

.precheck strong {
  display: block;
  margin-bottom: 10px;
  color: #5f2138;
  font-size: 18px;
}

.precheck ul {
  margin: 0;
  padding-left: 20px;
}

.precheck.is-ok {
  border-color: #bde5c9;
  background: #f0fbf3;
  color: #275b3c;
}

.precheck.is-ok strong {
  color: #244f3a;
}

.document-checklist {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfeff;
}

.document-checklist h3 {
  margin: 0;
  color: var(--blue);
  font-size: 20px;
}

.document-checklist p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.document-checklist-list {
  display: grid;
  gap: 10px;
}

.document-check-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #f0c9d2;
  border-radius: 14px;
  background: #fff7f9;
}

.document-check-row.is-ok {
  border-color: #bde5c9;
  background: #f1fbf4;
}

.status-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: #c75b78;
  font-size: 12px;
  font-weight: 900;
}

.document-check-row.is-ok .status-dot {
  background: var(--teal);
}

.document-check-row strong {
  display: block;
  color: var(--blue);
}

.document-check-row small {
  color: var(--muted);
  font-weight: 700;
}

.document-tool {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfeff;
}

.document-tool h3 {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 20px;
}

.document-tool p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.document-tool .secondary {
  justify-self: start;
}

.file-button {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.official-form-notes {
  display: grid;
  gap: 8px;
}

.official-form-notes span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f0fbfc;
  color: #315f78;
  font-weight: 800;
}

.proof-tool {
  background: #f8fdfe;
}

.admin-document-tool {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  padding: 12px;
  gap: 12px;
}

.admin-document-tool .secondary,
.admin-document-tool .signed-doc {
  width: 100%;
  min-height: 64px;
}

.admin-document-tool .secondary {
  justify-self: stretch;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.form-message {
  min-height: 22px;
  color: var(--rose);
  font-weight: 800;
}

.guide-view {
  min-height: 100vh;
  grid-template-columns: 330px 1fr;
}

.sidebar {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: #eef9fb;
}

.steps {
  display: grid;
  gap: 8px;
  margin: 4px 0 auto;
}

.step-button {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.step-button span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--sky);
  font-weight: 800;
}

.step-button.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(31, 74, 111, 0.08);
}

.step-button.is-done span:first-child {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--green));
}

.workspace {
  min-height: 100vh;
  padding: clamp(24px, 5vw, 56px);
  background: var(--paper);
}

.progress-wrap {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

#step-count {
  color: var(--muted);
  font-weight: 800;
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e1d3;
  background: #dceef3;
}

.progress span {
  display: block;
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--cyan), var(--green));
  transition: width 180ms ease;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

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

.live-promo {
  display: grid;
  gap: 18px;
  justify-items: center;
  width: min(760px, 100%);
  margin: 0 auto;
}

.live-promo img {
  display: block;
  width: min(560px, 100%);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(47, 128, 197, 0.14);
}

.live-promo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.live-promo-actions .primary,
.live-promo-actions .secondary {
  min-width: min(240px, 100%);
}

.live-promo .live-off {
  min-width: 96px;
}

.live-promo-off {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfeff;
}

.live-promo-off p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

body.capture-mode {
  font-size: 14px;
}

body.capture-mode .guide-view {
  grid-template-columns: 250px 1fr;
}

body.capture-mode .sidebar {
  gap: 10px;
  padding: 16px;
}

body.capture-mode .sidebar-logo {
  width: 74px;
  margin-bottom: 8px;
}

body.capture-mode .sidebar h2 {
  font-size: 24px;
}

body.capture-mode .steps {
  gap: 4px;
}

body.capture-mode .step-button {
  grid-template-columns: 22px 1fr;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 12px;
}

body.capture-mode .step-button span:first-child {
  width: 22px;
  height: 22px;
}

body.capture-mode .workspace {
  padding: 16px 18px;
}

body.capture-mode .progress-wrap {
  gap: 8px;
  margin-bottom: 12px;
}

body.capture-mode #step-title {
  font-size: 28px;
}

body.capture-mode .form-grid {
  gap: 10px;
}

body.capture-mode .field {
  gap: 5px;
}

body.capture-mode .field input,
body.capture-mode .field textarea,
body.capture-mode .field select {
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 9px;
}

body.capture-mode .field textarea {
  min-height: 58px;
}

body.capture-mode .founders-manager {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.capture-mode .founder-card,
body.capture-mode .document-tool,
body.capture-mode .precheck,
body.capture-mode .document-checklist {
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
}

body.capture-mode .founder-card h3,
body.capture-mode .document-tool h3,
body.capture-mode .document-checklist h3 {
  font-size: 16px;
}

body.capture-mode .id-drop-grid,
body.capture-mode .admin-document-tool {
  gap: 8px;
}

body.capture-mode .drop-zone {
  min-height: 58px;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
}

body.capture-mode .drop-zone span,
body.capture-mode .field-note,
body.capture-mode .document-check-row small {
  font-size: 11px;
}

body.capture-mode .official-form-notes {
  gap: 5px;
}

body.capture-mode .official-form-notes span {
  padding: 6px 8px;
  border-radius: 8px;
}

body.capture-mode .step-help {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  line-height: 1.35;
}

body.capture-mode .nav-actions {
  margin-top: 10px;
}

body.capture-mode .primary,
body.capture-mode .secondary,
body.capture-mode .ghost {
  min-height: 36px;
  padding: 0 12px;
}

body.capture-mode .live-promo img {
  width: min(420px, 100%);
}

.step-help {
  display: none;
}

.toast {
  position: fixed;
  right: 20px;
  top: 20px;
  width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .guide-view {
    grid-template-columns: 1fr;
  }

  .payment-panel {
    display: block;
    width: min(560px, 100%);
    padding: clamp(28px, 5vw, 44px);
  }

  .payment-intro .panel-logo {
    width: 132px;
  }

  .hero-content,
  .sidebar {
    min-height: auto;
  }

  .hero-content {
    min-height: 100vh;
    padding: 32px 22px 44px;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .id-drop-grid {
    grid-template-columns: 1fr;
  }

  .admin-document-tool {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) and (min-width: 700px) {
  .panel-view {
    padding: 10px;
  }

  .back {
    top: 8px;
    left: 10px;
    min-height: 34px;
    padding: 0 10px;
  }

  .panel {
    width: min(520px, 100%);
    padding: 20px 26px;
    border-radius: 16px;
  }

  .panel-logo {
    width: 82px;
    margin-bottom: 10px;
  }

  .panel .eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .panel h2 {
    font-size: 28px;
  }

  .panel p {
    margin: 10px 0;
    line-height: 1.38;
  }

  .lead-fields {
    gap: 8px;
    margin: 10px 0;
    padding: 10px;
    border-radius: 12px;
  }

  .lead-fields .field {
    gap: 5px;
  }

  .lead-fields .field input {
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 10px;
  }

  .price-line {
    gap: 12px;
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .price-line strong {
    font-size: 30px;
  }

  .notice {
    margin-bottom: 12px;
    padding: 9px 12px;
    line-height: 1.3;
  }

  .panel .primary,
  .panel .secondary,
  .panel .ghost {
    min-height: 40px;
  }
}

@media (max-height: 660px) and (min-width: 700px) {
  .panel-view {
    padding: 6px;
  }

  .panel {
    width: min(500px, 100%);
    padding: 16px 22px;
  }

  .panel-logo {
    width: 68px;
    margin-bottom: 8px;
  }

  .panel h2 {
    font-size: 25px;
  }

  .panel p {
    margin: 7px 0;
    line-height: 1.28;
  }

  .lead-fields {
    margin: 8px 0;
    padding: 8px;
  }

  .price-line {
    margin: 8px 0;
    padding: 8px 10px;
  }

  .notice {
    margin-bottom: 8px;
    padding: 8px 10px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 40px;
  }

  .hero-actions,
  .nav-actions {
    width: 100%;
  }

  .hero-actions button,
  .nav-actions button {
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}
