:root {
  --bg-deep: #120728;
  --bg-mid: #2a0f45;
  --bg-outer: #051d36;

  --card-bg: rgba(28, 10, 56, 0.94);
  --card-border: rgba(255, 255, 255, 0.08);

  --text-main: #f5efe9;
  --text-soft: #ddd3eb;
  --text-muted: #b8accf;
  --accent: #efc56b;

  --step-bg: rgba(82, 43, 120, 0.16);
  --field-border: rgba(255, 255, 255, 0.1);

  --choice-bg: linear-gradient(180deg, rgba(90, 51, 125, 0.92) 0%, rgba(71, 38, 99, 0.92) 100%);
  --choice-hover: linear-gradient(180deg, rgba(106, 64, 141, 0.96) 0%, rgba(84, 48, 111, 0.96) 100%);
  --choice-active: linear-gradient(180deg, rgba(129, 82, 172, 0.98) 0%, rgba(100, 56, 140, 0.98) 100%);

  --gold-bg: linear-gradient(180deg, #efc56b 0%, #d8a93f 100%);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", sans-serif;
  background: #0d1630;
  color: var(--text-main);
}

body {
  position: relative;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(150, 67, 180, 0.26), transparent 24%),
    linear-gradient(180deg, #3f114f 0%, #26093f 32%, #18052e 65%, #071f38 100%);
  z-index: -2;
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.05), transparent 12%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.04), transparent 10%),
    radial-gradient(circle at 70% 80%, rgba(153, 87, 205, 0.12), transparent 20%);
  z-index: -1;
}

.app-shell {
  min-height: 100vh;
  padding: 42px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.card {
  width: min(1100px, 100%);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 36px 32px 34px;
  backdrop-filter: blur(8px);
}

.icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 24px;
  line-height: 1;
}

.eyebrow {
  text-align: center;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 10px;
}

h1 {
  margin: 0;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 5vw, 4.15rem);
  line-height: 1;
  font-weight: 600;
  color: var(--text-main);
}

.subtitle {
  text-align: center;
  color: var(--text-soft);
  font-size: 1.16rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 18px auto 30px;
}

.intro-block {
  text-align: center;
  margin-bottom: 28px;
  padding: 0 10px;
}

.intro-block h2,
.plan-preview h2 {
  font-family: "Cormorant Garamond", serif;
  color: var(--accent);
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin: 0 0 12px;
  font-weight: 600;
}

.intro-block p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 1rem;
}

.builder-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-block {
  background: var(--step-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.step-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
}

.step-head h3 {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.step-head p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.98rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.choice-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--choice-bg);
  color: var(--text-main);
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  min-height: 84px;
  font-family: "Inter", sans-serif;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.45;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.choice-card:hover {
  transform: translateY(-2px);
  background: var(--choice-hover);
}

.choice-card.active {
  background: var(--choice-active);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(42, 10, 73, 0.42);
}

.plan-preview {
  margin-top: 30px;
  background: rgba(82, 43, 120, 0.18);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.plan-preview h2 {
  margin-bottom: 14px;
}

.plan-content {
  color: var(--text-soft);
  line-height: 1.85;
  font-size: 1rem;
}

.plan-content p {
  margin: 0 0 12px;
}

.plan-content strong {
  color: var(--text-main);
}

.reminder-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(135, 90, 178, 0.18);
  border: 1px solid rgba(239, 197, 107, 0.14);
  box-shadow:
    0 0 0 1px rgba(239, 197, 107, 0.05),
    0 14px 32px rgba(49, 14, 76, 0.18);
}

.reminder-label {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.reminder-text {
  margin: 0;
  color: #f3d78a;
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 0;
}

.action-btn {
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-family: "Inter", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-btn.primary {
  background: var(--gold-bg);
  color: #2a1637;
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    padding: 28px 20px;
  }
}

@media (max-width: 640px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .step-block {
    padding: 20px 16px 18px;
  }

  .step-head h3 {
    font-size: 1.6rem;
  }

  .choice-card {
    min-height: unset;
  }
}