:root {
  color-scheme: light;
  --bg-top: #fff7ed;
  --bg-bottom: #ffe4e6;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #d62839;
  --accent-dark: #9f1239;
  --line: rgba(148, 163, 184, 0.22);
  --shadow: 0 28px 80px rgba(159, 18, 57, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.28), transparent 28%),
    radial-gradient(circle at bottom right, rgba(251, 146, 60, 0.24), transparent 30%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.hero-card {
  width: min(960px, 100%);
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  gap: 28px;
}

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

.logo-shell {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 237, 213, 0.92));
  border: 1px solid rgba(214, 40, 57, 0.12);
  box-shadow: 0 16px 36px rgba(214, 40, 57, 0.12);
}

.app-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.brand-text {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
}

.brand-caption {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 0.95;
  max-width: 11ch;
}

.subcopy {
  margin: 16px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.referral-panel {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}

.referral-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.panel-label {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.referral-code {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 14px 20px;
  border-radius: 18px;
  background: #111827;
  color: #fff;
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.copy-button {
  border: 0;
  border-radius: 999px;
  min-height: 52px;
  padding: 0 18px;
  background: rgba(214, 40, 57, 0.1);
  color: var(--accent-dark);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.copy-button:hover {
  transform: translateY(-2px);
  background: rgba(214, 40, 57, 0.18);
}

.panel-note {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 22px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 18px 40px rgba(214, 40, 57, 0.28);
}

.btn-secondary {
  background: #111827;
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  border: 1px solid var(--line);
}

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

.step {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.step span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(214, 40, 57, 0.12);
  color: var(--accent-dark);
  font-weight: 800;
}

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

@media (max-width: 760px) {
  .page-shell {
    padding: 14px;
    align-items: start;
  }

  .hero-card {
    padding: 20px;
    border-radius: 24px;
    gap: 22px;
  }

  .brand-lockup {
    align-items: flex-start;
    gap: 14px;
  }

  .logo-shell {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }

  .app-logo {
    width: 56px;
    height: 56px;
  }

  h1 {
    font-size: clamp(28px, 10vw, 42px);
    line-height: 1;
    max-width: none;
  }

  .subcopy {
    font-size: 16px;
    margin-top: 14px;
  }

  .referral-panel {
    padding: 18px;
  }

  .referral-code {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: clamp(20px, 8vw, 30px);
    letter-spacing: 0.1em;
  }

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

  .actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .copy-button {
    width: 100%;
  }
}

.policy-shell {
  min-height: 100vh;
  padding: 32px 20px 48px;
}

.policy-card {
  width: min(920px, 100%);
  margin: 0 auto;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.policy-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.policy-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.02;
  max-width: none;
}

.policy-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.policy-section {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}

.policy-section + .policy-section {
  margin-top: 16px;
}

.policy-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
}

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

.policy-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.policy-list li + li {
  margin-top: 8px;
}

.policy-footer {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .policy-shell {
    padding: 16px 14px 28px;
  }

  .policy-card {
    padding: 20px;
    border-radius: 24px;
  }

  .policy-header {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
  }

  .policy-section {
    padding: 18px;
  }
}
