:root {
  --font-sans: "Poppins", sans-serif;
  --font-serif: "Montserrat", sans-serif;
  --bg: #0f172a;
  --page-bg: #0f172a;
  --card: rgba(255, 255, 255, 0.9);
  --ink: #0f172a;
  --ink-soft: rgba(15, 23, 42, 0.7);
  --accent: #111827;
  --shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  margin: 0;
  padding: 0;
}

body.hero-active {
  overflow: auto;
  overflow-x: clip;
  display: block;
  padding: 0;
}

body.hero-active::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.hero-active {
  scrollbar-width: none;
}

body.hero-active {
  place-items: start stretch;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background 0.5s ease;
}

.hero {
  min-height: 100vh;
  width: 100%;
  margin-left: 0;
  background: #ffd9ef;
  color: #1f2937;
  font-family: var(--font-serif);
  display: grid;
  gap: 24px;
  padding: 0 0 64px;
  overflow-x: hidden;
}

.hero__topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: 2px solid #1f2937;
  color: #1f2937;
  font-weight: 800;
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-top: 16px;
  margin-left: auto;
  margin-right: auto;
}

.hero__topbar-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  animation: blink-dot 1.2s ease-in-out infinite;
}

.hero__content {
  width: min(920px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero__content h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-family: var(--font-serif);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero__content p {
  max-width: 520px;
}

.hero__logo {
  width: min(120px, 40%);
  height: auto;
  margin-top: 10px;
}

.hero__button {
  background: #f6a8d6;
  color: #1f2937;
  box-shadow: none;
  font-weight: 700;
  padding: 7px 14px;
  font-size: 0.85rem;
  width: auto;
  align-self: center;
}

.hero__image {
  width: min(460px, 100%);
  height: auto;
}

.hero__image--rounded {
  border-radius: 24px;
  box-shadow: 0 18px 30px rgba(31, 41, 55, 0.18);
}

.hero__marquee {
  width: 100%;
  color: #1f2937;
  text-transform: uppercase;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  gap: 28px;
}

.hero__marquee-item {
  padding: 0 12px;
  white-space: nowrap;
}

.hero__marquee-track {
  display: inline-flex;
  gap: 28px;
  animation: marquee-scroll 16s linear infinite;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes blink-dot {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

.hero__content--secondary h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  text-transform: uppercase;
  font-weight: 900;
}

.hero__content--secondary {
  margin-top: 8px;
}

.app {
  width: min(900px, 92vw);
  padding: 40px 0;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px clamp(20px, 4vw, 42px) 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: floatIn 0.6s ease;
}

.brand {
  display: flex;
  justify-content: center;
}

.brand--page {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(220px, 60%);
  z-index: 2;
}

.brand__logo {
  width: min(120px, 40%);
  height: auto;
}

.progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress__track {
  height: 10px;
  background: rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.content {
  flex: 1;
  display: grid;
  gap: 16px;
  align-content: start;
}

.content--landing {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.content--done {
  display: flex;
  flex-direction: column;
  height: auto;
  text-align: center;
  align-items: center;
  gap: 12px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.card.is-done {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.done-actions {
  margin-top: 4px;
  margin-bottom: 0;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.content--landing h1,
.content--landing p {
  text-align: center;
}

.landing-image {
  width: min(520px, 100%);
  justify-self: center;
  align-self: center;
  border-radius: 0;
  box-shadow: none;
}

.done-image {
  width: min(190px, 52%);
  justify-self: center;
  align-self: center;
  margin-top: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.25);
  text-decoration: none;
}

.button:active {
  transform: translateY(2px);
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: white;
  outline: none;
}

input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible {
  border: 1px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(
      120deg,
      #ff4d4d,
      #ffa94d,
      #ffe066,
      #69db7c,
      #4dabf7,
      #748ffc,
      #b197fc,
      #ff6bcb
    ) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: rainbow-border 2.5s ease infinite;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

@keyframes rainbow-border {
  0% {
    background-position: 0% 50%, 0% 50%;
  }
  50% {
    background-position: 0% 50%, 100% 50%;
  }
  100% {
    background-position: 0% 50%, 0% 50%;
  }
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  border-radius: 14px;
  border: 2px solid rgba(15, 23, 42, 0.15);
  padding: 14px 16px;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease, background 0.2s ease;
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.6);
}

.option:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.4);
  color: var(--ink);
}

.option.selected {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink);
}

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

.footer--row-center {
  justify-content: center;
}

.footer--center {
  flex-direction: column;
  align-items: center;
}

.landing-actions {
  margin-top: auto;
}

.landing-back {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.landing-back .button {
  width: auto;
  padding-left: 14px;
  padding-right: 14px;
}

.small {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

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

@media (max-width: 640px) {
  html,
  body {
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .hero {
    padding: 0 16px 48px;
    gap: 18px;
  }

  .hero__topbar-pill {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .hero__content {
    width: min(520px, 92vw);
    gap: 16px;
  }

  .hero__logo {
    width: min(110px, 55%);
    margin-top: 6px;
  }

  .hero__content h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .hero__content p {
    font-size: 0.95rem;
  }

  .hero__button {
    width: auto;
    padding: 10px 16px;
  }

  .hero__image {
    width: min(360px, 100%);
  }

  .hero__image--rounded {
    border-radius: 20px;
  }

  .hero__marquee {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .hero__content--secondary h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.9rem);
  }

  .app {
    width: min(520px, 92vw);
    padding: 96px 0 18px;
    gap: 12px;
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100svh;
    overflow: visible;
  }

  .brand--page {
    top: 10px;
    width: min(180px, 70%);
  }

  .card {
    min-height: auto;
    padding: 16px 14px 20px;
    height: calc(100svh - 120px);
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .content--done {
    gap: 6px;
  }

  .done-image {
    margin-top: 4px;
  }

  .done-actions {
    margin-top: 4px;
  }

  .card::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .card {
    scrollbar-width: none;
  }

  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .app .button {
    width: 100%;
  }

  .hero__button {
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .content {
    overflow: visible;
    gap: 8px;
  }

  .options {
    gap: 10px;
  }

  .option {
    padding: 12px 14px;
    font-size: 1rem;
  }

  input,
  select,
  textarea {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .content--landing .landing-actions {
    width: 100%;
    text-align: center;
  }

  .content--landing .landing-actions .button {
    width: auto;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .content--landing .landing-actions .small {
    display: block;
    text-align: center;
  }

  .landing-image {
    width: min(360px, 100%);
  }

  .hero__content {
    padding-top: 24px;
  }

  .done-image {
    width: min(170px, 60%);
  }
}

@media (max-width: 480px) {
  body {
    position: fixed;
    inset: 0;
    width: 100%;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  p {
    font-size: 0.98rem;
  }

  .card {
    padding: 18px 16px 20px;
  }

  .option {
    font-size: 1.02rem;
    padding: 12px 14px;
  }
}
