:root {
  --bg: #062d33;
  --bg-soft: #103d40;
  --paper: #eef2f1;
  --panel: rgba(255, 255, 255, 0.95);
  --panel-strong: #ffffff;
  --text: #06282d;
  --muted: #42666e;
  --accent: #0c716d;
  --accent-soft: #19a586;
  --cyan: #d8f8ff;
  --lime: #dcff45;
  --yellow: #f6ff5f;
  --line: rgba(6, 40, 45, 0.12);
  --danger: #af3f34;
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --shadow: 0 14px 34px rgba(4, 30, 33, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "SF Pro Display", "Avenir Next", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #062d33 0%, #062d33 24rem, var(--paper) 24rem, #edf2f0 100%);
  color: var(--text);
}

body {
  padding: 10px 16px 28px;
}

.page-shell {
  max-width: 1480px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.72fr);
  gap: 16px;
  margin-bottom: 20px;
}

.hero-copy,
.hero-panel,
.wizard-card,
.rail-card {
  background: var(--panel);
  backdrop-filter: none;
  border: 1px solid rgba(6, 40, 45, 0.1);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: 8px;
  min-height: 548px;
  padding: 28px 38px 28px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #062d33 0%, #062d33 54%, #0a3a3e 100%);
  color: white;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
  opacity: 1;
}

.hero-logo {
  width: 154px;
  max-width: 42vw;
  height: auto;
  display: block;
}

.hero-copy::after {
  content: none;
}

.eyebrow,
.section-label,
.step-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

.hero .eyebrow,
.hero .step-kicker {
  color: var(--cyan);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-family: "Tusker Grotesk", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 0.035em;
  font-size: clamp(2.65rem, 5.4vw, 5.55rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 14px;
  color: var(--lime);
  max-width: 12.8ch;
}

.hero-title-line {
  display: block;
  line-height: 1.02;
  min-height: 1em;
}

.hero-text {
  max-width: 760px;
  font-size: 1.03rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 18px;
}

.hero-pills,
.status-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-pills span,
.status-pills span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(188, 239, 253, 0.18);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
}

.rail-card .status-pills span {
  background: #f3fbfe;
  border-color: rgba(6, 40, 45, 0.1);
  color: var(--text);
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-payment-strip {
  margin-top: 20px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(188, 239, 253, 0.16);
}

.hero-payment-strip .section-label {
  color: var(--cyan);
  margin-bottom: 8px;
}

.hero-payment-config {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.hero-payment-card {
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(188, 239, 253, 0.12);
}

.hero-payment-card strong {
  display: block;
  color: white;
  margin-bottom: 7px;
  font-size: 0.82rem;
  line-height: 1.2;
}

.hero-payment-card .btn {
  width: 100%;
  justify-content: center;
  min-height: 42px;
}

.hero-panel {
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: #ffffff;
}

.panel-card,
.note-card,
.intro-grid article {
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.panel-card.accent {
  background: #f7fae8;
  border-color: rgba(12, 113, 109, 0.18);
}

.panel-card h2,
.wizard-header h2,
.review-panel h3 {
  font-family: "Tusker Grotesk", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.visual-card {
  display: grid;
  grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: #062d33;
  color: white;
  overflow: hidden;
}

.visual-card img {
  width: 100%;
  aspect-ratio: 0.8;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  display: block;
}

.visual-card .section-label {
  color: var(--lime);
  margin-bottom: 8px;
}

.visual-card p:not(.section-label) {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  margin: 0;
}

.panel-card ul {
  padding-left: 18px;
  margin: 0;
  line-height: 1.65;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.62fr);
  gap: 18px;
  align-items: start;
}

.wizard-card {
  border-radius: 8px;
  padding: 26px;
  background: #ffffff;
}

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

.progress-cluster {
  min-width: 180px;
}

.progress-cluster span {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(10, 107, 105, 0.08);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--accent-soft));
  transition: width 180ms ease;
}

.intro-view p,
.rail-card p,
.review-panel p {
  line-height: 1.7;
  color: var(--muted);
}

.intro-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.intro-grid article h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.wizard-form {
  display: grid;
  gap: 20px;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #ffffff;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--lime), var(--accent-soft));
}

.form-section h3 {
  font-size: 1.55rem;
  font-family: "Tusker Grotesk", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.form-section p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

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

.field-wrap[data-span="full"] {
  grid-column: 1 / -1;
}

.field-wrap-child {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(22, 50, 55, 0.14);
}

.field-children[hidden] {
  display: none !important;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.94rem;
}

.field-control input,
.field-control textarea,
.field-control select {
  width: 100%;
  border: 1px solid rgba(22, 50, 55, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

.field-control input:focus,
.field-control textarea:focus,
.field-control select:focus {
  outline: none;
  border-color: rgba(10, 107, 105, 0.45);
  box-shadow: 0 0 0 4px rgba(10, 107, 105, 0.1);
}

.field-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.field-error {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--danger);
  font-weight: 700;
}

.review-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  background: #ffffff;
}

.review-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
}

.wizard-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  padding: 11px 18px;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 160ms ease;
}

.btn-intake {
  min-height: 56px;
  padding: 15px 28px;
  font-size: 1.04rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: var(--bg);
  background: var(--lime);
  box-shadow: 0 10px 20px rgba(204, 255, 103, 0.2);
}

.btn-secondary {
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
}

.btn-ghost {
  background: rgba(188, 239, 253, 0.4);
  color: var(--accent);
}

.side-rail {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 20px;
}

.rail-card {
  border-radius: 8px;
  padding: 22px;
}

.payment-config {
  display: grid;
  gap: 10px;
}

.payment-row {
  padding: 14px;
  border-radius: 8px;
  background: #f3fbfe;
  border: 1px solid rgba(6, 40, 45, 0.08);
}

.payment-row strong {
  display: block;
  margin-bottom: 4px;
}

.payment-copy {
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.payment-btn {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.payment-link {
  display: block;
  color: var(--accent);
  word-break: break-all;
  font-size: 0.84rem;
}

.muted-link {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  min-width: 280px;
  max-width: 420px;
  background: #062f34;
  color: white;
  padding: 16px 18px;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(7, 25, 28, 0.28);
}

.toast.error {
  background: #7d2f28;
}

@media (max-width: 1100px) {
  .hero,
  .app-layout,
  .review-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
  }

  .hero-payment-config {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-copy {
    min-height: auto;
  }

  .wizard-header,
  .wizard-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .progress-cluster span {
    text-align: left;
  }
}

@media (max-width: 720px) {
  body {
    padding: 10px;
  }

  .hero-copy,
  .wizard-card,
  .hero-panel,
  .rail-card {
    padding: 22px;
    border-radius: 8px;
  }

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

  .hero-payment-config {
    grid-template-columns: 1fr;
  }

  .visual-card {
    grid-template-columns: 1fr;
  }

  .visual-card img {
    aspect-ratio: 16 / 9;
  }

  .hero-copy {
    padding: 22px;
  }

  h1 {
    font-size: clamp(2.2rem, 14vw, 4rem);
    max-width: 9.5ch;
  }
}
