:root {
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --soft: #939ba3;
  --line: #e8e8e8;
  --panel: #f5f5f5;
  --black: #0a0a0a;
  --white: #ffffff;
  --disabled: #9b9b9b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 22px 0 30px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}

.brand-image {
  display: block;
  width: min(100%, 224px);
  height: auto;
}

.invite-banner {
  font-size: 0.72rem;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  display: none;
}

.main-shell {
  flex: 1;
  width: 100%;
}

.landing-screen,
.funnel-screen {
  width: 100%;
}

.funnel-container {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 0 24px 60px;
}

.intro-block,
.info-block,
.cta-block {
  width: 100%;
}

.intro-block {
  padding: 28px 0 22px;
  text-align: center;
}

.step-kicker {
  margin: 0 0 12px;
  font-size: 0.75rem;
  color: var(--soft);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.landing-title,
.step-title,
.info-block h2,
.success-screen h2 {
  margin: 0;
  color: var(--black);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.landing-title {
  font-size: 30px;
  line-height: 37.5px;
}

.landing-copy,
.step-copy,
.preview-copy,
.info-card-copy,
.video-placeholder p,
.inline-note,
.instruction-box p {
  color: var(--muted);
  line-height: 1.55;
}

.landing-copy {
  max-width: 460px;
  margin: 16px auto 0;
  font-size: 14px;
  line-height: 22px;
}

.video-shell {
  margin-top: 24px;
}

.video-placeholder {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  text-align: left;
}

.video-play {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
}

.primary-button,
.secondary-button,
.ghost-button,
.add-button {
  appearance: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.add-button:hover {
  opacity: 0.92;
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.add-button:active {
  transform: translateY(1px);
}

.primary-button {
  height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
}

.primary-button:disabled {
  background: var(--disabled);
  cursor: not-allowed;
  opacity: 1;
}

.secondary-button,
.ghost-button {
  height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--black);
  font-weight: 500;
}

.secondary-button.hidden,
.ghost-button.hidden,
.primary-button.hidden,
.hidden {
  display: none !important;
}

#getStartedBtn,
#getStartedBtnBottom {
  width: 100%;
  margin-top: 22px;
}

.info-block {
  padding: 42px 0 12px;
  text-align: center;
}

.info-block h2 {
  font-size: 20px;
  line-height: 25px;
}

.info-list,
.steps-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  text-align: left;
}

.info-card,
.preview-row,
.instruction-box,
.summary-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.info-card {
  padding: 16px;
}

.info-card-title,
.preview-title {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--black);
  font-size: 14px;
  line-height: 20px;
}

.info-card-copy,
.preview-copy {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.preview-row {
  padding: 14px 6px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
  border: none;
  background: transparent;
}

.preview-row span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

.cta-block {
  padding: 30px 0 18px;
}

.progress-head {
  padding-top: 28px;
  text-align: center;
}

.progress-row {
  display: flex;
  justify-content: center;
  gap: 0;
  align-items: center;
  margin-bottom: 14px;
}

.step-index {
  display: none;
}

.step-title {
  font-size: 30px;
  line-height: 37.5px;
}

.step-copy {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 16px;
  line-height: 24px;
}

.progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #efefef;
  overflow: hidden;
  margin: 22px 0 28px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--black);
  transition: width 0.2s ease;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
  padding-top: 26px;
}

.compound-field {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 12px;
}

.entry-input,
.text-input,
.text-area {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  color: var(--black);
  outline: none;
  box-shadow: none;
}

.entry-input,
.text-input {
  min-height: 60px;
  padding: 0 22px;
}

.text-area {
  min-height: 120px;
  padding: 18px 22px;
  resize: vertical;
}

.file-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  color: var(--black);
  padding: 18px 22px;
  min-height: 112px;
}

.entry-input::placeholder,
.text-input::placeholder,
.text-area::placeholder {
  color: #8e8e8e;
}

.entry-input:focus,
.text-input:focus,
.text-area:focus,
.file-input:focus {
  border-color: #cfcfcf;
}

.file-input::file-selector-button {
  appearance: none;
  border: 1px solid #bdbdbd;
  border-radius: 10px;
  background: #f6f6f6;
  color: var(--black);
  padding: 10px 18px;
  margin-right: 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.add-button {
  min-height: 60px;
  border-radius: 22px;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #f5f5f5;
  border: 1px solid #e2e2e2;
  font-size: 0.92rem;
}

.chip button {
  border: none;
  background: transparent;
  color: #8d8d8d;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.inline-note {
  margin-top: 18px;
  font-size: 0.92rem;
}

.field-label {
  display: block;
  margin: 32px 0 14px;
  font-size: 16px;
  line-height: 28px;
  font-weight: 700;
}

.conditional-field {
  margin-top: 8px;
}

.instruction-box,
.summary-box {
  padding: 20px 22px;
  margin-top: 26px;
}

.instruction-box strong {
  display: block;
  margin-bottom: 6px;
}

.instruction-box p {
  margin: 0;
}

.instruction-box p + p {
  margin-top: 8px;
}

.confirm-row {
  margin-top: 26px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.action-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 40px;
}

.action-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

#continueBtn,
#submitBtn {
  width: 100%;
}

#backBtn {
  display: none;
  min-width: 108px;
  width: auto;
}

.summary-group + .summary-group {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #dfdfdf;
}

.summary-group h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.summary-group p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.summary-group p + p {
  margin-top: 10px;
}

.success-screen {
  padding-top: 18px;
}

.submit-error {
  margin: 18px 0 0;
  color: #c64242;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}

.page-footer {
  padding: 42px 0 18px;
}

.landing-footer {
  padding-top: 62px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.error {
  border-color: #dd8b8b !important;
}

@media (max-width: 720px) {
  .site-header {
    padding: 18px 0 24px;
  }

  .brand-image {
    width: min(100%, 198px);
  }

  .funnel-container {
    padding: 0 18px 42px;
  }

  .compound-field {
    grid-template-columns: 1fr;
  }

  .step-panel.active {
    padding-top: 20px;
  }

  .action-row {
    align-items: flex-start;
  }

  .action-group {
    width: 100%;
  }

  .action-group button,
  .action-row > button,
  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .video-placeholder {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
