:root {
  --emerald-700: #1e5f52;
  --emerald-600: #2a7a69;
  --emerald-500: #3d9986;

  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eaeaea;
  --gray-300: #d8d8d8;
  --gray-500: #6b7280;
  --gray-900: #121212;

  --primary: var(--emerald-700);
  --text: var(--gray-900);
  --muted: var(--gray-500);
  --surface: var(--gray-50);
  --border: var(--gray-200);

  --radius: 20px;
  --transition: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: #fbfbfa;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(42, 122, 105, 0.055) 0%,
      rgba(42, 122, 105, 0.018) 24%,
      transparent 48%
    ),
    radial-gradient(
      circle at 0% 88%,
      rgba(61, 153, 134, 0.05) 0%,
      rgba(61, 153, 134, 0.016) 25%,
      transparent 50%
    ),
    #fbfbfa;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app {
  min-height: 100vh;
  background: transparent;
}

.screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.screen-inner {
  width: min(560px, 100%);
}

/* ---------------------------------
   Homepage atmosphere and motion
---------------------------------- */

.hero-screen {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}

.hero-screen.exiting {
  opacity: 0;
  transform: translateY(-18px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  transform: translateY(-32px);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-light {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0;
  filter: blur(90px);
  will-change: transform, opacity;
}

.hero-light-top {
  width: 520px;
  height: 520px;
  top: -270px;
  right: -220px;
  background: rgba(42, 122, 105, 0.075);
  animation:
    atmosphereAppear 1800ms ease forwards,
    atmosphereDriftTop 20s ease-in-out 1800ms infinite alternate;
}

.hero-light-bottom {
  width: 460px;
  height: 460px;
  bottom: -260px;
  left: -200px;
  background: rgba(61, 153, 134, 0.055);
  animation:
    atmosphereAppear 2200ms 250ms ease forwards,
    atmosphereDriftBottom 24s ease-in-out 2200ms infinite alternate;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.018;
  background-image:
    repeating-radial-gradient(
      circle at 0 0,
      rgba(18, 18, 18, 0.55) 0,
      rgba(18, 18, 18, 0.55) 0.4px,
      transparent 0.5px,
      transparent 4px
    );
  background-size: 5px 5px;
}

.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(12px);
  animation:
    heroReveal 760ms
    cubic-bezier(0.16, 1, 0.3, 1)
    forwards;
  will-change: opacity, transform;
}

.hero-reveal-logo {
  transform: translateY(8px) scale(0.985);
  animation-name: logoSettle;
  animation-delay: 60ms;
}

.hero-reveal-heading {
  animation-delay: 150ms;
}

.hero-reveal-copy {
  animation-delay: 260ms;
}

.hero-reveal-button {
  animation-delay: 370ms;
}

.hero-reveal-trust {
  animation-delay: 490ms;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoSettle {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes atmosphereAppear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes atmosphereDriftTop {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-22px, 18px, 0) scale(1.06);
  }
}

@keyframes atmosphereDriftBottom {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(25px, -18px, 0) scale(1.07);
  }
}


.brand-logo {
  display: block;
  width: min(390px, 82%);
  height: auto;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7));
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.hero-inner h1 {
  max-width: 720px;
  margin-right: auto;
  margin-bottom: 22px;
  margin-left: auto;
  font-size: clamp(48px, 6.2vw, 76px);
  font-weight: 750;
  line-height: 0.92;
  letter-spacing: -0.062em;
  text-wrap: balance;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 500px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.hero-inner .hero-copy {
  max-width: 540px;
  color: rgba(75, 85, 99, 0.82);
  font-weight: 400;
  letter-spacing: -0.012em;
}

.trust-line {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.primary-btn,
.secondary-btn {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform var(--transition),
    opacity var(--transition),
    background var(--transition);
}

.primary-btn {
  color: var(--white);
  background: var(--primary);
}

.hero-button {
  position: relative;
  min-width: 154px;
  overflow: hidden;
  box-shadow:
    0 8px 20px rgba(30, 95, 82, 0.16),
    0 2px 5px rgba(30, 95, 82, 0.1);
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.hero-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      transparent 45%
    );
  pointer-events: none;
}

.hero-button:hover {
  background: var(--emerald-600);
  transform: translateY(-2px);
  box-shadow:
    0 13px 28px rgba(30, 95, 82, 0.2),
    0 3px 8px rgba(30, 95, 82, 0.12);
}

.hero-button:active {
  transform: translateY(0) scale(0.97);
  box-shadow:
    0 4px 10px rgba(30, 95, 82, 0.16),
    inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.secondary-btn {
  color: var(--text);
  background: var(--gray-100);
}

.primary-btn:active,
.secondary-btn:active {
  transform: scale(0.98);
}

.primary-btn:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.full-btn {
  width: 100%;
}

.hidden {
  display: none !important;
}

.flow-screen {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.flow-screen.visible {
  opacity: 1;
  transform: translateY(0);
}

.flow-inner {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: background var(--transition), transform var(--transition);
}

.dot.active {
  background: var(--primary);
  transform: scale(1.15);
}

.line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
}

.step-label {
  margin-bottom: 30px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: stepIn 260ms ease both;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

input {
  width: 100%;
  min-height: 58px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 18px;
  color: var(--text);
  background: var(--gray-50);
  font-size: 16px;
  outline: none;
  transition:
    border var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(30, 95, 82, 0.12);
}

.upload-area {
  border-radius: 28px;
  padding: 34px 24px;
  text-align: center;
  background: var(--gray-50);
}

.upload-area input {
  display: none;
}

.upload-label {
  display: inline-grid;
  place-items: center;
  min-height: 54px;
  border-radius: 999px;
  padding: 0 26px;
  color: var(--white);
  background: var(--primary);
  font-weight: 850;
  cursor: pointer;
}

.upload-note,
.file-count {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.preview-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.preview-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: var(--gray-100);
}

.button-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.button-row button {
  flex: 1;
}

.review {
  border-radius: 28px;
  padding: 24px;
  background: var(--gray-50);
}

.review p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}

.review p:last-child {
  border-bottom: 0;
}

.review span {
  color: var(--muted);
}

.review strong {
  text-align: right;
}

.success {
  text-align: center;
  animation: stepIn 260ms ease both;
}

.success-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--primary);
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(30,95,82,.16);
}

.success p {
  max-width: 420px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.success span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.success strong {
  display: block;
  color: var(--text);
  font-size: 34px;
  letter-spacing: -0.04em;
}

@media (max-width: 640px) {
  .screen {
    padding: 28px 18px;
  }

  .flow-inner {
    min-height: 560px;
  }

  .button-row {
    flex-direction: column;
  }

  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-line {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}
.website-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.upload-security-notice {
  margin: 14px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}
.legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: normal;
}

.legal-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #047857;
  cursor: pointer;
}

.legal-consent span {
  display: block;
}

.legal-consent a {
  color: #047857;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  padding: 30px 0 36px;
  color: #6b7280;
  font-size: 12px;
  background: transparent;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #047857;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}



.submission-progress {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.submission-progress.active {
  display: grid;
}

.submission-progress-card {
  width: min(100%, 460px);
  padding: 34px;
  border-radius: 26px;
  background: white;
  text-align: center;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
}

.progress-spinner {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
}

.progress-spinner span {
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-radius: 50%;
}

.progress-spinner span:nth-child(1) {
  border-top-color: #047857;
  animation: progressSpin 1.05s linear infinite;
}

.progress-spinner span:nth-child(2) {
  inset: 9px;
  border-right-color: #10b981;
  animation: progressSpinReverse 1.45s linear infinite;
}

.progress-spinner span:nth-child(3) {
  inset: 18px;
  border-bottom-color: #6ee7b7;
  animation: progressPulse 1.2s ease-in-out infinite;
}

.progress-eyebrow {
  margin: 0 0 10px;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.submission-progress-card h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.progress-message {
  margin: 12px 0 24px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #047857,
    #10b981,
    #6ee7b7
  );
  transition: width 500ms ease;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 45%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: progressShimmer 1.4s linear infinite;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #6b7280;
  font-size: 12px;
}

.progress-meta span:first-child {
  color: #047857;
  font-weight: 800;
}

@keyframes progressSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes progressSpinReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes progressPulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.45;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes progressShimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 600px) {
  .submission-progress-card {
    padding: 28px 22px;
  }

  .submission-progress-card h2 {
    font-size: 24px;
  }

  .progress-meta {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}
.photo-preview-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #eef2ef;
}

.photo-preview-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}

.photo-remove-button {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid
    rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.78);
  box-shadow:
    0 4px 12px
    rgba(0, 0, 0, 0.2);
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.photo-remove-button:hover {
  background: #b91c1c;
  transform: scale(1.08);
}

.photo-remove-button:focus-visible {
  outline: 3px solid
    rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.photo-preview-number {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  padding: 0 7px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.76);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}
.success-intro {
  max-width: 460px;
  margin: 0 auto 36px;
  color: var(--muted);
  line-height: 1.6;
}

.success-next-steps {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 22px;
  text-align: left;
}

.success-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(30,95,82,.08);
  border-radius: 16px;
  background: #fcfdfd;
    transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

@media (hover: hover) {
  .success-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    border-color: rgba(30,95,82,.14);
  }
}

.success-step div {
  min-width: 0;
}

.success-step strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 15px;
}

.success-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.success-email-note {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 26px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.06);
  background: #fafafa;
  text-align: left;
}

.success-email-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 14px;
}

.success-email-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.success-email-address {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.success-submission-id {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.success-submission-id span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.success-submission-id strong {
  color: var(--text);
  font-size: 20px;
  letter-spacing: 0.04em;
}

@media (max-width: 520px) {
  .success-step {
    padding: 14px;
  }

  .success-email-note {
    padding: 14px;
  }
}
.success .success-step-number {
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  color: #ffffff;
  background: #1e5f52;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}
.success-next-heading {
  margin: 2.25rem 0 1.25rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

/* ---------------------------------
   Responsive homepage refinements
---------------------------------- */

@media (max-width: 600px) {
  .screen.hero-screen {
    min-height: 100svh;
    padding:
      max(22px, env(safe-area-inset-top))
      20px
      max(22px, env(safe-area-inset-bottom));
  }

  .hero-inner {
    width: min(380px, 100%);
    transform: translateY(-12px);
  }

  .brand {
    margin-bottom: 18px;
  }

  .brand-logo {
    width: min(315px, 86vw);
  }

  .hero-inner h1 {
    max-width: 350px;
    margin-right: auto;
    margin-bottom: 18px;
    margin-left: auto;
    font-size: clamp(46px, 13vw, 58px);
    font-weight: 750;
    line-height: 0.91;
    letter-spacing: -0.06em;
  }

  .hero-inner .hero-copy {
    max-width: 335px;
    margin-bottom: 26px;
    font-size: 16.5px;
    line-height: 1.52;
  }

  .hero-button {
    min-width: 164px;
    min-height: 56px;
  }

  .trust-line {
    max-width: 340px;
    margin: 24px auto 0;
    font-size: 12.5px;
    line-height: 1.65;
  }

  .hero-light-top {
    width: 340px;
    height: 340px;
    top: -180px;
    right: -170px;
    filter: blur(68px);
  }

  .hero-light-bottom {
    width: 310px;
    height: 310px;
    bottom: -170px;
    left: -160px;
    filter: blur(68px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reveal,
  .hero-light,
  .step.active,
  .success,
  .progress-spinner span,
  .progress-fill::after {
    animation: none !important;
  }

  .hero-reveal,
  .hero-light {
    opacity: 1;
    transform: none;
  }

  .hero-button,
  .primary-btn,
  .secondary-btn,
  .flow-screen,
  .dot,
  input,
  .success-step,
  .photo-remove-button {
    transition: none !important;
  }
}

/* =========================================================
   Vintage Card Cash — Homepage polish pass
   These overrides preserve the existing structure and motion.
========================================================= */

/* 1. Add a soft neutral halo behind the hero copy for depth. */
.hero-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 42%;
  left: 50%;
  width: min(720px, 92vw);
  height: 360px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.58) 0%,
      rgba(255, 255, 255, 0.28) 38%,
      transparent 74%
    );
  filter: blur(18px);
}

/* 2. Make the atmosphere movement feel less synchronized and more organic. */
.hero-light-top {
  animation:
    atmosphereAppear 1850ms ease forwards,
    atmosphereDriftTop 18s cubic-bezier(0.45, 0, 0.55, 1) 1850ms infinite alternate;
}

.hero-light-bottom {
  animation:
    atmosphereAppear 2250ms 250ms ease forwards,
    atmosphereDriftBottom 27s cubic-bezier(0.37, 0, 0.63, 1) 2250ms infinite alternate,
    atmosphereWake 1500ms 720ms ease-out 1;
}

/* 3. Let the hero atmosphere dissolve more gradually into the page. */
.hero-atmosphere {
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      #000 0%,
      #000 74%,
      rgba(0, 0, 0, 0.72) 88%,
      transparent 100%
    );
  mask-image:
    linear-gradient(
      to bottom,
      #000 0%,
      #000 74%,
      rgba(0, 0, 0, 0.72) 88%,
      transparent 100%
    );
}

/* 4–5. Refine the primary CTA bloom and hover behavior. */
.hero-button {
  box-shadow:
    0 10px 26px rgba(30, 95, 82, 0.17),
    0 2px 6px rgba(30, 95, 82, 0.10),
    0 0 34px rgba(30, 95, 82, 0.055);
}

.hero-button:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    0 14px 30px rgba(30, 95, 82, 0.21),
    0 4px 10px rgba(30, 95, 82, 0.12),
    0 0 42px rgba(30, 95, 82, 0.075);
}

.hero-button:active {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    0 4px 10px rgba(30, 95, 82, 0.13),
    inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* 6. Fine-tune hero spacing rhythm. */
.brand {
  margin-bottom: 28px;
}

.trust-line {
  margin-top: 20px;
}

/* 7. Continue the atmosphere behind the footer without touching hero effects. */
.site-footer {
  position: relative;
  isolation: isolate;
  letter-spacing: 0.01em;
  color: rgba(107, 114, 128, 0.92);
}

.site-footer::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: 330px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 16% 100%,
      rgba(61, 153, 134, 0.062) 0%,
      rgba(61, 153, 134, 0.024) 38%,
      transparent 74%
    ),
    radial-gradient(
      ellipse at 78% 100%,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.15) 42%,
      transparent 76%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(42, 122, 105, 0.012) 54%,
      rgba(42, 122, 105, 0.026) 100%
    );
}

/* 8. Keep the hero exit motion soft and deliberate. */
.hero-screen.exiting {
  opacity: 0;
  transform: translateY(-12px);
}

/* 9. Reduce visible grain slightly. */
.hero-grain {
  opacity: 0.014;
}

/* 12. Give related UI elements slightly different timing personalities. */
.hero-screen {
  transition:
    opacity 300ms ease,
    transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flow-screen {
  transition:
    opacity 360ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-button {
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 220ms ease,
    box-shadow 280ms ease;
}

/* 13. Slightly shorten the desktop copy measure. */
@media (min-width: 641px) {
  .hero-inner .hero-copy {
    max-width: 520px;
  }
}

/* 14. Make the success state feel like a softer arrival. */
.success {
  animation: successArrive 440ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes successArrive {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 15. A one-time, barely perceptible atmosphere "wake-up" after the hero appears. */
@keyframes atmosphereWake {
  0%,
  100% {
    filter: blur(90px);
    opacity: 1;
  }

  45% {
    filter: blur(86px);
    opacity: 1.08;
  }
}

/* Mobile tuning keeps the current composition intact. */
@media (max-width: 600px) {
  .hero-inner::before {
    top: 43%;
    width: 108vw;
    height: 300px;
    opacity: 0.78;
    filter: blur(16px);
  }

  .brand {
    margin-bottom: 24px;
  }

  .trust-line {
    margin-top: 20px;
  }

  .hero-atmosphere {
    -webkit-mask-image:
      linear-gradient(
        to bottom,
        #000 0%,
        #000 76%,
        rgba(0, 0, 0, 0.74) 89%,
        transparent 100%
      );
    mask-image:
      linear-gradient(
        to bottom,
        #000 0%,
        #000 76%,
        rgba(0, 0, 0, 0.74) 89%,
        transparent 100%
      );
  }

  .site-footer::before {
    height: 390px;
    background:
      radial-gradient(
        ellipse at 10% 100%,
        rgba(61, 153, 134, 0.072) 0%,
        rgba(61, 153, 134, 0.027) 42%,
        transparent 78%
      ),
      radial-gradient(
        ellipse at 82% 100%,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(255, 255, 255, 0.13) 44%,
        transparent 78%
      ),
      linear-gradient(
        to bottom,
        transparent 0%,
        rgba(42, 122, 105, 0.014) 56%,
        rgba(42, 122, 105, 0.030) 100%
      );
  }
}

/* Preserve accessibility preferences. */
@media (prefers-reduced-motion: reduce) {
  .hero-light-bottom,
  .success {
    animation: none !important;
  }
}

/* =========================================================
   Guided photo upload experience
   Keeps the existing submission spinner and progress screen.
========================================================= */

.upload-area {
  position: relative;
  overflow: hidden;
  padding: 34px 28px;
  border: 1px solid rgba(30, 95, 82, 0.09);
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(40, 126, 107, 0.055),
      transparent 58%
    ),
    var(--gray-50);
  transition:
    padding 280ms ease,
    border-color 220ms ease,
    background 280ms ease,
    box-shadow 280ms ease;
}

.upload-area.has-photos {
  padding: 22px 24px;
  border-color: rgba(30, 95, 82, 0.13);
  background:
    linear-gradient(
      135deg,
      rgba(40, 126, 107, 0.045),
      rgba(255, 255, 255, 0.82)
    ),
    var(--gray-50);
  box-shadow:
    0 12px 34px rgba(30, 95, 82, 0.045);
}

.upload-empty-state {
  display: grid;
  justify-items: center;
}

.upload-camera-mark {
  position: relative;
  width: 58px;
  height: 46px;
  margin-bottom: 18px;
  border: 2px solid rgba(30, 95, 82, 0.42);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 8px 22px rgba(30, 95, 82, 0.08);
}

.upload-camera-mark::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 16px;
  width: 20px;
  height: 9px;
  border: 2px solid rgba(30, 95, 82, 0.42);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: rgba(255, 255, 255, 0.84);
}

.upload-camera-mark span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(30, 95, 82, 0.52);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 4px rgba(30, 95, 82, 0.055);
}

.upload-empty-state h3,
.upload-ready-state h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  letter-spacing: -0.025em;
}

.upload-guidance {
  max-width: 430px;
  margin: 9px auto 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.upload-help {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.upload-help span {
  position: relative;
  padding-left: 15px;
}

.upload-help span::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

.upload-ready-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  text-align: left;
}

.upload-ready-copy {
  min-width: 0;
}

.upload-ready-eyebrow {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.upload-ready-state p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.upload-add-more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(30, 95, 82, 0.16);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow:
    0 6px 18px rgba(30, 95, 82, 0.055);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.upload-add-more span {
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
}

.upload-add-more.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

.upload-area .file-count {
  margin-top: 14px;
  font-weight: 750;
}

.upload-area.has-photos .file-count {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.preview-grid {
  transition:
    margin 240ms ease,
    opacity 220ms ease;
}

.preview-grid:not(.has-photos) {
  margin-top: 0;
}

.photo-preview-item {
  isolation: isolate;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid rgba(30, 95, 82, 0.07);
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.055);
  transition:
    transform 190ms ease,
    box-shadow 190ms ease,
    border-color 190ms ease;
}

.photo-preview-item img {
  min-height: 0;
  transition:
    transform 240ms ease,
    filter 220ms ease;
}

.photo-preview-enter {
  animation:
    photoPreviewArrive 420ms
    cubic-bezier(0.16, 1, 0.3, 1)
    var(--preview-delay, 0ms)
    both;
}

@keyframes photoPreviewArrive {
  from {
    opacity: 0;
    transform: translateY(9px) scale(0.975);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.photo-remove-button {
  width: 34px;
  height: 34px;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .upload-add-more:hover {
    transform: translateY(-1px);
    border-color: rgba(30, 95, 82, 0.27);
    background: #ffffff;
    box-shadow:
      0 9px 22px rgba(30, 95, 82, 0.09);
  }

  .photo-preview-item:hover {
    z-index: 2;
    transform: translateY(-2px);
    border-color: rgba(30, 95, 82, 0.14);
    box-shadow:
      0 11px 24px rgba(15, 23, 42, 0.10);
  }

  .photo-preview-item:hover img {
    transform: scale(1.012);
    filter: saturate(1.03) contrast(1.02);
  }
}

.upload-add-more:focus-visible {
  outline: 3px solid rgba(30, 95, 82, 0.22);
  outline-offset: 3px;
}

@media (min-width: 760px) {
  .preview-grid {
    grid-template-columns:
      repeat(5, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .upload-area {
    padding: 29px 20px;
    border-radius: 24px;
  }

  .upload-area.has-photos {
    padding: 19px;
  }

  .upload-guidance {
    max-width: 310px;
  }

  .upload-label {
    width: 100%;
    max-width: 280px;
  }

  .upload-help {
    display: grid;
    justify-content: start;
    width: min(100%, 280px);
    text-align: left;
  }

  .upload-ready-state {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }

  .upload-add-more {
    align-self: stretch;
    min-height: 48px;
  }

  .preview-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .photo-remove-button {
    top: 6px;
    right: 6px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 390px) {
  .preview-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-preview-enter {
    animation: none !important;
  }

  .photo-preview-item,
  .photo-preview-item img,
  .upload-add-more,
  .upload-area {
    transition: none !important;
  }
}



/* ---------------------------------
   Final review summary
---------------------------------- */

.review-step h2 {
  margin-bottom: 12px;
}

.review-intro {
  max-width: 470px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.review-summary-card {
  position: relative;
  overflow: hidden;
  padding: 21px;
  border: 1px solid rgba(30, 95, 82, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(231, 243, 239, 0.78),
      rgba(249, 252, 251, 0.96)
    );
  box-shadow:
    0 16px 42px rgba(30, 95, 82, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.review-summary-card::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -95px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(
      circle,
      rgba(61, 153, 134, 0.12),
      transparent 68%
    );
  filter: blur(10px);
}

.review-summary-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(30, 95, 82, 0.10);
}

.review-summary-check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(30, 95, 82, 0.16);
  font-size: 17px;
  font-weight: 900;
}

.review-summary-header div {
  min-width: 0;
}

.review-summary-header strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.review-summary-header div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.review-summary-card .review {
  position: relative;
  z-index: 1;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.review-summary-card .review p {
  gap: 18px;
  min-width: 0;
  padding: 13px 1px;
  border-bottom-color: rgba(30, 95, 82, 0.09);
}

.review-summary-card .review p:last-child {
  border-bottom: 0;
}

.review-summary-card .review span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.review-summary-card .review strong {
  min-width: 0;
  max-width: 72%;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
}

.review-summary-card .review-photo-row strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(30, 95, 82, 0.11);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.review-security-notice {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 0;
  padding: 15px 1px 0;
  border-top: 1px solid rgba(30, 95, 82, 0.09);
  color: rgba(75, 85, 99, 0.84);
  font-size: 11px;
  line-height: 1.55;
}

.review-security-icon {
  position: relative;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  border: 1px solid rgba(30, 95, 82, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.review-security-icon::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 7px;
  height: 6px;
  border-radius: 2px;
  background: var(--primary);
}

.review-security-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 6px;
  border: 1.5px solid var(--primary);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.review-button-row {
  margin-top: 19px;
}

@media (max-width: 600px) {
  .review-intro {
    margin-bottom: 19px;
    font-size: 13px;
  }

  .review-summary-card {
    padding: 18px;
    border-radius: 22px;
  }

  .review-summary-header {
    padding-bottom: 14px;
  }

  .review-summary-card .review p {
    padding: 12px 1px;
  }

  .review-summary-card .review strong {
    max-width: 68%;
    font-size: 12px;
  }

  .review-button-row {
    gap: 10px;
  }
}

@media (max-width: 380px) {
  .review-summary-card {
    padding: 16px;
  }

  .review-summary-header div > span {
    font-size: 11px;
  }

  .review-summary-card .review p {
    gap: 12px;
  }

  .review-summary-card .review strong {
    max-width: 64%;
  }
}


/* ---------------------------------
   Final review — quiet refinements
---------------------------------- */

/* Make the emerald atmosphere barely perceptible. */
.review-summary-card::before {
  background:
    radial-gradient(
      circle,
      rgba(61, 153, 134, 0.075),
      transparent 70%
    );
  filter: blur(14px);
}

/* Soften all separators within the summary card. */
.review-summary-header {
  border-bottom-color:
    rgba(30, 95, 82, 0.065);
}

.review-summary-card .review p {
  border-bottom-color:
    rgba(30, 95, 82, 0.055);
}

.review-security-notice {
  display: block;
  padding-top: 14px;
  border-top-color:
    rgba(30, 95, 82, 0.055);
  color: rgba(75, 85, 99, 0.61);
}

/* Remove the old CSS-drawn lock completely. */
.review-security-icon,
.review-security-icon::before,
.review-security-icon::after {
  display: none;
}

/*
  A restrained arrival on the final step:
  the card settles upward while the checkmark
  gently resolves into place.
*/
.step.active .review-summary-card {
  animation:
    reviewCardArrive
    420ms
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

.step.active .review-summary-check {
  animation:
    reviewCheckArrive
    360ms
    110ms
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

@keyframes reviewCardArrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reviewCheckArrive {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .step.active .review-summary-card,
  .step.active .review-summary-check {
    animation: none;
  }
}

/* ---------------------------------
   Ambassador referral attribution
---------------------------------- */

.referral-field {
  margin: 2px 0 16px;
}

.referral-field > label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.referral-field > label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.referral-field input {
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.referral-field.is-confirmed input {
  border-color:
    rgba(30, 95, 82, 0.22);
  color: var(--emerald-700);
  background:
    rgba(238, 246, 243, 0.74);
  font-weight: 800;
}

.referral-field.is-confirmed input:focus {
  box-shadow: none;
}

.referral-help,
.referral-status {
  margin: 7px 2px 0;
  font-size: 11px;
  line-height: 1.45;
}

.referral-help {
  color:
    rgba(107, 114, 128, 0.82);
}

.referral-status {
  min-height: 16px;
  color: var(--muted);
  font-weight: 700;
}

.referral-status:empty {
  display: none;
}

.referral-status.checking {
  color: var(--muted);
}

.referral-status.valid {
  color: var(--emerald-700);
}

.referral-status.invalid {
  color: #9f4b45;
}

@media (max-width: 600px) {
  .referral-field {
    margin-bottom: 15px;
  }
}

