:root {
  color-scheme: light;
  --bg: #fff7fb;
  --paper: #ffffff;
  --paper-soft: #fff1f7;
  --pink: #e95f9b;
  --pink-deep: #b83272;
  --rose: #ffd6e8;
  --wine: #5d1839;
  --gold: #c99b4a;
  --champagne: #fff6df;
  --lavender: #eee6ff;
  --mint: #dcf7ee;
  --ink: #2a1020;
  --muted: #806273;
  --line: rgba(93, 24, 57, 0.14);
  --shadow: 0 22px 60px rgba(184, 50, 114, 0.18);
  --radius: 8px;
  --theme-a: #ffd6e8;
  --theme-b: #e95f9b;
  --theme-c: #c99b4a;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 214, 232, 0.92), rgba(255, 247, 251, 0.72) 34%),
    linear-gradient(320deg, rgba(238, 230, 255, 0.72), transparent 42%),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

body[data-style="luxury-girl"] {
  --theme-a: #2a1020;
  --theme-b: #b83272;
  --theme-c: #c99b4a;
}

body[data-style="soft-life"] {
  --theme-a: #fff6df;
  --theme-b: #ffd6e8;
  --theme-c: #dcf7ee;
}

body[data-style="travel-girl"] {
  --theme-a: #eee6ff;
  --theme-b: #6ca6df;
  --theme-c: #e95f9b;
}

body[data-style="money-career"] {
  --theme-a: #2a1020;
  --theme-b: #b83272;
  --theme-c: #c99b4a;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.app-shell {
  position: relative;
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px;
}

.floating-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.float {
  position: absolute;
  color: rgba(184, 50, 114, 0.45);
  font-size: 2rem;
  animation: floaty 12s ease-in-out infinite;
  text-shadow: 0 10px 30px rgba(184, 50, 114, 0.18);
}

.float--heart {
  top: 12%;
  left: 8%;
}

.float--star {
  top: 19%;
  right: 8%;
  color: rgba(201, 155, 74, 0.72);
  animation-delay: -3s;
}

.float--sparkle {
  right: 19%;
  bottom: 14%;
  color: rgba(233, 95, 155, 0.56);
  animation-delay: -7s;
}

.float--small {
  top: 68%;
  left: 7%;
  font-size: 1.35rem;
  animation-delay: -5s;
}

.float--tiny {
  top: 49%;
  right: 4%;
  font-size: 1.15rem;
  animation-delay: -9s;
}

.hero,
.constructor {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  min-height: calc(100vh - 40px);
  align-content: center;
  gap: 34px;
  padding: 14px 0 28px;
}

.brand-row {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 36px rgba(184, 50, 114, 0.1);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  font-family: Georgia, serif;
  font-weight: 700;
}

.brand-name {
  color: var(--wine);
  font-weight: 800;
}

.hero__content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.1rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero__subtitle {
  max-width: 650px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.62;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button--primary {
  color: var(--paper);
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  box-shadow: 0 18px 42px rgba(184, 50, 114, 0.32);
}

.button--ghost {
  border: 1px solid var(--line);
  color: var(--wine);
  background: rgba(255, 255, 255, 0.72);
}

.button:hover,
.text-button:hover,
.style-card:hover,
.price-card:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.text-button:focus-visible,
.style-card:focus-visible,
.price-card:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(233, 95, 155, 0.32);
  outline-offset: 3px;
}

.text-button {
  padding: 0;
  cursor: pointer;
  color: var(--pink-deep);
  background: transparent;
  font-weight: 800;
}

.hero-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(100%, 520px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 246, 223, 0.7)),
    rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero-board__tile {
  display: grid;
  min-height: 104px;
  place-items: end start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--paper);
  background: var(--pink);
  font-family: Georgia, serif;
  font-weight: 700;
  isolation: isolate;
}

.hero-board__tile--self {
  background:
    linear-gradient(rgba(93, 24, 57, 0.08), rgba(93, 24, 57, 0.36)),
    radial-gradient(circle at 25% 25%, #fff, transparent 16%),
    linear-gradient(135deg, #ffd6e8, #e95f9b);
}

.hero-board__tile--love {
  background:
    linear-gradient(rgba(93, 24, 57, 0.08), rgba(93, 24, 57, 0.38)),
    linear-gradient(135deg, #ff8fbe, #b83272);
}

.hero-board__tile--travel {
  background:
    linear-gradient(rgba(93, 24, 57, 0.08), rgba(93, 24, 57, 0.4)),
    linear-gradient(135deg, #eee6ff, #8a74d6);
}

.hero-board__tile--money {
  background:
    linear-gradient(rgba(93, 24, 57, 0.08), rgba(93, 24, 57, 0.36)),
    linear-gradient(135deg, #fff6df, #c99b4a);
}

.hero-board__tile--home {
  background:
    linear-gradient(rgba(93, 24, 57, 0.08), rgba(93, 24, 57, 0.4)),
    linear-gradient(135deg, #dcf7ee, #52b994);
}

.hero-board__tile--career {
  background:
    linear-gradient(rgba(93, 24, 57, 0.08), rgba(93, 24, 57, 0.38)),
    linear-gradient(135deg, #2a1020, #e95f9b);
}

.constructor {
  padding: 8px 0 32px;
}

.constructor[hidden] {
  display: none;
}

.constructor__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.progress {
  position: relative;
  height: 8px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  overflow: hidden;
}

.progress__bar {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  transition: width 320ms ease;
}

.step-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.step-tabs__item {
  display: grid;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: 800;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.step-tabs__item.is-active {
  color: var(--paper);
  background: var(--pink-deep);
  box-shadow: 0 10px 28px rgba(184, 50, 114, 0.18);
}

.steps {
  min-height: 580px;
}

.step {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.step.is-active {
  display: block;
  animation: stepIn 320ms ease forwards;
}

.section-copy {
  max-width: 680px;
  margin-bottom: 18px;
}

.section-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.style-grid,
.pricing-grid {
  display: grid;
  gap: 12px;
}

.style-card,
.price-card,
.zone-card,
.payment-card,
.success-message,
.phone-preview {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 44px rgba(184, 50, 114, 0.1);
  backdrop-filter: blur(18px);
}

.style-card,
.price-card {
  display: grid;
  width: 100%;
  gap: 10px;
  padding: 14px;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.style-card.is-selected,
.price-card.is-selected {
  border-color: rgba(233, 95, 155, 0.72);
  background: rgba(255, 241, 247, 0.9);
  box-shadow: 0 18px 48px rgba(184, 50, 114, 0.2);
}

.style-card__preview {
  display: block;
  height: 86px;
  border-radius: var(--radius);
  background: var(--rose);
}

.style-card__preview--pink {
  background:
    radial-gradient(circle at 24% 28%, #fff, transparent 18%),
    linear-gradient(135deg, #ffd6e8, #e95f9b);
}

.style-card__preview--luxury {
  background:
    radial-gradient(circle at 78% 20%, #fff6df, transparent 17%),
    linear-gradient(135deg, #2a1020, #c99b4a);
}

.style-card__preview--soft {
  background:
    radial-gradient(circle at 18% 20%, #fff, transparent 15%),
    linear-gradient(135deg, #fff6df, #ffd6e8, #dcf7ee);
}

.style-card__preview--travel {
  background:
    radial-gradient(circle at 70% 30%, #fff, transparent 14%),
    linear-gradient(135deg, #eee6ff, #6ca6df, #ffd6e8);
}

.style-card__preview--money {
  background:
    radial-gradient(circle at 24% 24%, #fff6df, transparent 15%),
    linear-gradient(135deg, #2a1020, #b83272, #c99b4a);
}

.style-card strong,
.price-card span {
  font-size: 1rem;
}

.style-card small,
.price-card small {
  color: var(--muted);
  line-height: 1.45;
}

.zones-grid {
  display: grid;
  gap: 12px;
}

.zone-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.zone-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.zone-card__number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--pink-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.upload-box {
  position: relative;
  display: grid;
  min-height: 148px;
  place-items: center;
  border: 1px dashed rgba(184, 50, 114, 0.36);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(255, 214, 232, 0.78), rgba(255, 246, 223, 0.7)),
    var(--paper-soft);
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-box__empty {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 16px;
  color: var(--wine);
  text-align: center;
}

.upload-box__empty strong {
  font-size: 0.96rem;
}

.upload-box__empty small {
  color: var(--muted);
  line-height: 1.4;
}

.upload-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wish-input {
  width: 100%;
  min-height: 76px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

.preview-layout {
  display: grid;
  gap: 16px;
}

.vision-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 241, 247, 0.86)),
    var(--paper);
  box-shadow: var(--shadow);
}

.preview-tile {
  position: relative;
  display: grid;
  min-height: 112px;
  align-content: end;
  overflow: hidden;
  padding: 8px;
  border-radius: var(--radius);
  color: var(--paper);
  background:
    linear-gradient(rgba(93, 24, 57, 0.05), rgba(93, 24, 57, 0.52)),
    linear-gradient(135deg, var(--theme-a), var(--theme-b), var(--theme-c));
}

.preview-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(transparent 35%, rgba(42, 16, 32, 0.64));
}

.preview-tile__text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
}

.preview-tile__text strong {
  font-size: 0.78rem;
}

.preview-tile__text small {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.7rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.phone-preview {
  padding: 14px;
}

.phone-preview__screen {
  display: grid;
  min-height: 320px;
  align-content: end;
  gap: 6px;
  padding: 18px;
  border: 8px solid var(--ink);
  border-radius: 28px;
  color: var(--paper);
  background:
    linear-gradient(rgba(42, 16, 32, 0.04), rgba(42, 16, 32, 0.66)),
    linear-gradient(145deg, var(--theme-a), var(--theme-b) 44%, var(--theme-c));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.phone-preview__screen span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.phone-preview__screen strong {
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.pricing-grid {
  align-items: stretch;
}

.price-card strong {
  color: var(--pink-deep);
  font-size: 1.8rem;
  line-height: 1;
}

.payment-flow {
  display: grid;
  gap: 14px;
  max-width: 680px;
}

.email-field {
  display: grid;
  gap: 8px;
  color: var(--wine);
  font-weight: 800;
}

.email-field input {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
}

.payment-card,
.success-message {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.payment-card__label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.success-message {
  color: var(--wine);
  background: rgba(220, 247, 238, 0.82);
}

.success-message[hidden] {
  display: none;
}

.success-message span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: #3f9b76;
  font-weight: 900;
}

.success-message small {
  color: #4b7567;
}

.step-actions {
  display: flex;
  position: sticky;
  bottom: 10px;
  z-index: 3;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 42px rgba(184, 50, 114, 0.12);
  backdrop-filter: blur(18px);
}

.step-actions .button {
  flex: 1;
}

@keyframes floaty {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  45% {
    transform: translate3d(18px, -30px, 0) rotate(8deg);
  }

  70% {
    transform: translate3d(-12px, -12px, 0) rotate(-7deg);
  }
}

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

@media (min-width: 640px) {
  .app-shell {
    padding: 28px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
    align-items: center;
  }

  .brand-row {
    grid-column: 1 / -1;
  }

  .style-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zones-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
  }
}

@media (min-width: 940px) {
  h1 {
    font-size: 5.8rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .style-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

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

  .preview-tile {
    min-height: 168px;
  }
}

@media (max-width: 420px) {
  .app-shell {
    padding: 16px;
  }

  h1 {
    font-size: 3.3rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-board__tile {
    min-height: 88px;
  }

  .constructor__header {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
