@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Fraunces:wght@600;700&display=swap');

:root {
  color-scheme: light;
  --bg: #f6f4f0;
  --ink: #0c0f13;
  --muted: #5f646c;
  --accent: #ff6a3d;
  --accent-dark: #d44d27;
  --blue: #2c6bff;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(16, 24, 40, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  height: 100vh;
  overflow: hidden;
}

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

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at top left, #fff0e6, transparent 45%),
    radial-gradient(circle at 70% 20%, #e9efff, transparent 45%),
    radial-gradient(circle at 10% 90%, #e6fff6, transparent 40%);
}

.orb {
  position: absolute;
  border-radius: 999px;
  opacity: 0.7;
}

.orb-one {
  width: 380px;
  height: 380px;
  background: linear-gradient(120deg, #ff6a3d, #ffb347);
  top: -140px;
  left: -120px;
  animation: float 12s ease-in-out infinite;
}

.orb-two {
  width: 300px;
  height: 300px;
  background: linear-gradient(120deg, #2c6bff, #7cc6ff);
  right: -120px;
  top: 120px;
  animation: float 14s ease-in-out infinite;
}

.orb-three {
  width: 220px;
  height: 220px;
  background: linear-gradient(120deg, #43d19e, #9ff7d2);
  bottom: -120px;
  left: 20%;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

.flow {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px clamp(18px, 4vw, 48px) 96px;
  gap: 24px;
}

.flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
}

.brand-name {
  font-weight: 700;
  font-size: 20px;
}

.step-indicator {
  font-size: 14px;
  color: var(--muted);
}

.flow-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow);
  display: grid;
  align-items: center;
  height: 100%;
  overflow: hidden;
}

.step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.step.active {
  display: block;
}

.step[data-step="1"],
.step[data-step="5"] {
  text-align: center;
}

.step.active[data-step="1"],
.step.active[data-step="5"] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.step[data-step="5"] .store-buttons {
  margin: 0 auto;
}

.step[data-step="5"] .support {
  text-align: center;
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 16px;
}

.subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 26px;
}

.usp-line {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 106, 61, 0.15);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.highlight-grid div {
  background: #f9fafc;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid #eef0f4;
}

.intro-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-weight: 500;
}

.intro-points li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent);
}

form {
  display: block;
  max-width: 520px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 500;
  color: var(--muted);
}

input,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e5ef;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}

.iti {
  width: 100%;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.form-error {
  margin: 6px 0 0;
  font-size: 13px;
  color: #b42318;
  min-height: 18px;
}

.feature-line {
  margin-top: 18px;
  font-size: 14px;
  color: var(--accent-dark);
  font-weight: 600;
}

.store-buttons {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.store-btn {
  border-radius: 16px;
  padding: 14px 18px;
  display: grid;
  gap: 4px;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-btn strong {
  font-size: 18px;
}

.store-btn.apple {
  border-color: #111;
}

.store-btn.google {
  border-color: var(--blue);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.support {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.flow-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.nav-btn {
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 106, 61, 0.3);
}

.nav-btn.ghost {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.nav-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(16, 24, 40, 0.15);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  body {
    overflow: hidden;
  }

  .flow {
    padding: 20px 16px 96px;
    gap: 18px;
  }

  .flow-footer {
    flex-direction: row;
    justify-content: space-between;
  }

}

@media (max-width: 900px) {
  .flow-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(246, 244, 240, 0.92);
    backdrop-filter: blur(8px);
    z-index: 5;
  }
}
