:root {
  --page: #f1f1f1;
  --card: #fff;
  --ink: #171717;
  --muted: #616161;
  --accent: #ef2f31;
  --line: #d2d2d2;
  --shadow: 0 10px 28px rgba(0, 0, 0, .09);
}

* { box-sizing: border-box; }

html { background: var(--page); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

button, a { font: inherit; }

button:focus-visible, a:focus-visible {
  outline: 4px solid rgba(239, 47, 49, .28);
  outline-offset: 3px;
}

.app {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 18px calc(32px + env(safe-area-inset-bottom));
}

.brand {
  display: block;
  width: min(100%, 540px);
  height: auto;
  margin: 0 auto 24px;
}

.home { text-align: center; }

.home h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 9vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.tagline {
  margin: 0 0 28px;
  font-size: clamp(1.28rem, 5.5vw, 1.65rem);
  font-weight: 700;
}

.home-copy {
  max-width: 590px;
  margin: 0 auto;
}

.home-copy p { margin: 0 0 20px; }

.discover-list {
  display: grid;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  margin: 24px auto;
  padding: 0;
  text-align: left;
  list-style: none;
  font-weight: 700;
}

.time-note { font-weight: 700; }

.primary {
  width: 100%;
  min-height: 64px;
  margin-top: 10px;
  padding: 16px 22px;
  border: 2px solid #111;
  border-radius: 18px;
  color: #fff;
  background: #111;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.home-cta {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 14px auto 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.home-cta img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.question-shell { padding-bottom: 24px; }

.question-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.back {
  min-height: 46px;
  padding: 8px 14px;
  border: 1.5px solid #222;
  border-radius: 999px;
  color: #111;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.progress {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.progress-bar {
  height: 7px;
  margin: -14px 0 30px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbdbdb;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .25s ease;
}

.question-shell h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 7.5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.hint {
  margin: 0 0 24px;
  color: var(--muted);
}

.answers {
  display: grid;
  gap: 14px;
}

.answer {
  width: 100%;
  min-height: 68px;
  padding: 17px 18px;
  border: 2px solid #171717;
  border-radius: 16px;
  color: var(--ink);
  background: var(--card);
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 #171717;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.answer:hover { background: #fafafa; }
.answer:active { transform: translateY(3px); box-shadow: 0 1px 0 #171717; }

.result { padding-bottom: 24px; }

.result-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.result-intro .lead { font-weight: 700; }

.perfect {
  margin: 22px 0 26px;
  padding: 20px;
  border-left: 6px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: #fff;
}

.perfect strong { display: block; margin-bottom: 8px; }
.perfect ul { margin: 0; padding-left: 22px; }

.product-block { margin: 0 0 28px; }

.alternative-heading {
  margin: 34px 0 14px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.product-card {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
  box-shadow: none;
}

.product-card img {
  display: block;
  width: 100%;
  height: auto;
}

.link-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.product-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 12px;
  border: 1.5px solid #151515;
  border-radius: 12px;
  color: #111;
  background: #fff;
  text-align: center;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.result-note {
  margin: 30px 0;
  padding: 0;
  border-radius: 0;
  background: var(--page);
}

.result-note p { margin: 0 0 16px; }
.result-note p:last-child { margin-bottom: 0; }
.length { color: var(--accent); font-weight: 900; text-transform: uppercase; }

.cta-stack { display: grid; gap: 14px; }

.image-cta {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--page);
  cursor: pointer;
}

.image-cta img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.card-dialog {
  width: min(96vw, 1100px);
  max-width: none;
  padding: 46px 10px 10px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 80px rgba(0,0,0,.3);
}

.card-dialog::backdrop { background: rgba(0,0,0,.72); }
.card-dialog img { display: block; width: 100%; height: auto; }

.dialog-close {
  position: absolute;
  top: 5px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 600px) {
  .app { padding: 28px 30px 52px; }
  .brand { margin-bottom: 34px; }
  .primary { width: auto; min-width: 300px; }
  .answer { padding-inline: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
