:root {
  --page: #f5f6fb;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #111827;
  --muted: #667085;
  --soft: #eef1f7;
  --line: rgba(17, 24, 39, 0.08);
  --accent: #ff3b7f;
  --accent-dark: #d91f62;
  --blue: #007aff;
  --shadow: 0 24px 80px rgba(39, 48, 84, 0.16);
  --shadow-soft: 0 10px 30px rgba(39, 48, 84, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 59, 127, 0.16), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(0, 122, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #fbfcff 0%, var(--page) 100%);
}

body::before {
  position: fixed;
  inset: 10% auto auto 50%;
  width: min(640px, 80vw);
  height: min(640px, 80vw);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 59, 127, 0.1), rgba(0, 122, 255, 0.1));
  content: "";
  filter: blur(10px);
  transform: translateX(-50%);
  pointer-events: none;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1080px, calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 18px 0 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 42px;
  margin-bottom: 14px;
}

.topbar--progress-only {
  justify-content: stretch;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand__mark {
  color: var(--accent);
  font-size: 13px;
}

.progress {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
}

.progress__label {
  min-width: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.progress__track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  height: 7px;
}

.progress__segment {
  height: 100%;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.07);
  overflow: hidden;
}

.progress__segment::before {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  content: "";
  transition: width 260ms ease;
}

.progress__segment.is-active::before {
  width: 100%;
}

.progress__prize {
  position: relative;
  display: inline-grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 59, 127, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 26px rgba(217, 31, 98, 0.16);
  font-size: 18px;
  line-height: 1;
  animation: prizePulse 1.45s ease-in-out infinite;
}

.progress__prize::before {
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background: rgba(255, 59, 127, 0.12);
  content: "";
  animation: prizeGlow 1.45s ease-in-out infinite;
  z-index: -1;
}

@keyframes prizePulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes prizeGlow {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.86);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.12);
  }
}

.hero,
.quiz,
.result {
  min-height: 0;
  height: 100%;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: clamp(20px, 4vw, 46px);
  overflow: hidden;
}

.hero__content,
.quiz__panel,
.result__card {
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.35);
}

.hero__content {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
}

.hero__content::after {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(255, 59, 127, 0.08);
  content: "";
  pointer-events: none;
}

.hero__content > * {
  position: relative;
  z-index: 1;
}

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

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

h1 {
  max-width: 650px;
  margin-bottom: 16px;
  color: var(--text);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.lead,
.quiz__hint,
.result__card p {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.44;
}

.microcopy {
  max-width: 460px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  padding: 0 24px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.button--primary {
  color: #fff;
  background: linear-gradient(180deg, #ff5b97 0%, var(--accent-dark) 100%);
  box-shadow: 0 14px 28px rgba(217, 31, 98, 0.26);
}

.button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button--text {
  min-height: auto;
  margin-top: 16px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  text-decoration: underline;
}

.hero__visual {
  position: relative;
  display: grid;
  min-height: 0;
  height: min(66svh, 560px);
  place-items: center;
  transform: translateY(-34px);
}

.feed-preview {
  position: relative;
  width: min(320px, 100%);
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 38px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
  backdrop-filter: blur(28px);
}

.story-strip {
  display: flex;
  gap: 3px;
  margin-bottom: 8px;
}

.story-strip__item {
  flex: 1 1 0;
  min-width: 0;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.09);
}

.story-strip__item::before {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  content: "";
  transition: width 280ms ease;
}

.story-strip__item.is-seen::before,
.story-strip__item.is-active::before {
  width: 100%;
}

.feed-card {
  overflow: hidden;
  border-radius: 30px;
  background: var(--soft);
}

.feed-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-card--front {
  position: relative;
  height: clamp(360px, 56svh, 500px);
  box-shadow: 0 18px 42px rgba(39, 48, 84, 0.16);
  z-index: 3;
}

.feed-card--front img {
  opacity: 1;
  transform: scale(1);
  transition: opacity 420ms ease, transform 520ms ease;
}

.feed-card--front img.is-switching {
  opacity: 0;
  transform: scale(1.035);
}

.feed-card--middle,
.feed-card--back {
  position: absolute;
  inset: 54px 6px auto;
  height: clamp(330px, 51svh, 460px);
  opacity: 0.48;
  pointer-events: none;
}

.feed-card--middle {
  transform: translate(18px, 18px) rotate(5deg);
  z-index: 2;
}

.feed-card--back {
  transform: translate(-18px, 30px) rotate(-6deg);
  z-index: 1;
}

.feed-preview .status-pill,
.feed-preview h2 {
  position: relative;
  z-index: 4;
}

.feed-preview h2 {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(14px);
}

.profile-card {
  position: relative;
  width: min(330px, 100%);
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 38px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
  backdrop-filter: blur(28px);
}

.profile-card::before {
  position: absolute;
  inset: 10px 10px auto;
  height: 42px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.42);
  content: "";
  pointer-events: none;
}

.avatar {
  position: relative;
  height: clamp(220px, 42svh, 330px);
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 24%, #fff3f7 0 8%, transparent 9%),
    radial-gradient(circle at 48% 34%, #211820 0 13%, transparent 14%),
    linear-gradient(155deg, #f7d4df 0%, #f0a5bf 45%, #d7ddff 100%);
}

.avatar::before {
  position: absolute;
  inset: auto 50px 0;
  height: 52%;
  border-radius: 90px 90px 24px 24px;
  background: linear-gradient(180deg, rgba(255, 248, 251, 0.96), #eba3ba);
  content: "";
}

.avatar::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
  content: "";
  backdrop-filter: blur(16px);
}

.status-pill,
.floating-badge,
.benefits span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.status-pill {
  margin: 14px 0 10px;
  padding: 7px 11px;
  color: #078445;
  background: #e9fbf1;
  font-size: 11px;
}

.profile-card h2 {
  margin-bottom: 6px;
  font-size: 28px;
}

.profile-card p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

.floating-badge {
  position: absolute;
  padding: 11px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.floating-badge--left {
  top: 14%;
  left: 0;
}

.floating-badge--right {
  right: 0;
  bottom: 18%;
}

.quiz {
  display: grid;
  align-content: center;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.quiz__panel {
  padding: clamp(24px, 4vw, 44px);
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.option strong,
.option span {
  display: block;
}

.option strong {
  margin-bottom: 5px;
  font-size: 15px;
}

.option span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.option.is-selected {
  border-color: rgba(255, 59, 127, 0.5);
  background: #fff;
  box-shadow: 0 16px 36px rgba(217, 31, 98, 0.16);
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.actions:has([hidden]) {
  justify-content: flex-start;
}

.result {
  display: grid;
  place-items: center;
}

.result__card {
  width: min(720px, 100%);
  padding: clamp(28px, 5vw, 54px);
  text-align: center;
}

.result__card p {
  margin-right: auto;
  margin-left: auto;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 24px;
}

.benefits span {
  padding: 9px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 24px, 620px);
    padding: 14px 0 16px;
  }

  .topbar {
    height: auto;
    margin-bottom: 10px;
  }

  .brand {
    justify-content: center;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    padding-top: clamp(28px, 8svh, 72px);
  }

  .hero__visual {
    display: grid;
    height: 230px;
    margin-top: 12px;
    transform: translateY(-18px);
  }

  .profile-card {
    width: min(280px, 82vw);
    padding: 10px;
    border-radius: 30px;
  }

  .feed-preview {
    width: min(240px, 82vw);
    padding: 10px;
    border-radius: 30px;
  }

  .feed-card--front {
    height: 300px;
  }

  .feed-card--middle,
  .feed-card--back {
    inset: 44px 6px auto;
    height: 278px;
  }

  .feed-preview h2 {
    margin: 9px 0 2px;
    font-size: 22px;
  }

  .feed-preview .status-pill {
    margin: 9px 0 7px;
    padding: 5px 9px;
  }

  .feed-card,
  .feed-card--front {
    border-radius: 22px;
  }

  .avatar {
    height: 150px;
    border-radius: 22px;
  }

  .floating-badge--left {
    top: 10px;
  }

  .floating-badge--right {
    bottom: 10px;
  }

  .options {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .option {
    min-height: 62px;
    padding: 12px 14px;
  }

  .quiz {
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: min(100% - 20px, 620px);
    padding: 10px 0 12px;
  }

  .topbar {
    gap: 8px;
    margin-bottom: 8px;
  }

  .progress {
    gap: 7px;
  }

  .progress__label {
    min-width: 30px;
    font-size: 11px;
  }

  .progress__prize {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .hero {
    padding-top: 6px;
  }

  .hero__content,
  .quiz__panel,
  .result__card {
    border-radius: 24px;
    padding: 16px;
  }

  h1 {
    margin-bottom: 10px;
    font-size: clamp(28px, 8.8vw, 38px);
    letter-spacing: -0.055em;
  }

  h2 {
    font-size: clamp(23px, 7vw, 30px);
  }

  .lead,
  .quiz__hint,
  .result__card p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.36;
  }

  .microcopy {
    display: none;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .button {
    min-height: 44px;
    border-radius: 15px;
    padding: 0 18px;
  }

  .hero__visual {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 132px;
    height: auto;
    margin: 0;
    transform: none;
  }

  .feed-preview {
    width: 132px;
    padding: 7px;
    border-radius: 22px;
  }

  .feed-card--front {
    height: 168px;
    border-radius: 16px;
  }

  .feed-card--middle,
  .feed-card--back {
    inset: 34px 5px auto;
    height: 154px;
    border-radius: 16px;
  }

  .story-strip {
    gap: 2px;
    margin-bottom: 5px;
  }

  .story-strip__item {
    height: 2px;
  }

  .feed-preview .status-pill {
    display: none;
  }

  .feed-preview h2 {
    margin: 7px 0 1px;
    font-size: 15px;
  }

  .floating-badge {
    display: none;
  }

  .options {
    gap: 7px;
  }

  .option {
    min-height: 56px;
    border-radius: 16px;
    padding: 10px 12px;
  }

  .option strong {
    margin-bottom: 3px;
    font-size: 14px;
  }

  .option span {
    font-size: 11px;
  }

  .actions {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .actions .button,
  .hero .button,
  .result .button--primary {
    width: 100%;
  }
}

@media (max-height: 700px) {
  .app-shell {
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .topbar {
    margin-bottom: 8px;
  }

  .hero__content,
  .quiz__panel,
  .result__card {
    padding: 20px;
  }

  h1 {
    font-size: clamp(32px, 6.2vw, 50px);
  }

  h2 {
    font-size: clamp(25px, 4vw, 36px);
  }

  .lead,
  .quiz__hint,
  .result__card p {
    margin-bottom: 14px;
  }

  .microcopy {
    display: none;
  }

  .hero__visual {
    height: min(52svh, 380px);
    transform: translateY(-24px);
  }

  .feed-card--front {
    height: clamp(240px, 48svh, 360px);
  }

  .feed-card--middle,
  .feed-card--back {
    height: clamp(220px, 44svh, 330px);
  }

  .avatar {
    height: clamp(150px, 34svh, 240px);
  }

  .option {
    min-height: 62px;
  }
}

@media (max-height: 620px) {
  .hero__visual {
    position: absolute;
    right: 24px;
    bottom: 76px;
    display: grid;
    width: 160px;
    height: auto;
    margin: 0;
    transform: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin: 0 auto;
    padding-top: 18px;
  }

  .feed-preview {
    width: 160px;
    padding: 8px;
    border-radius: 24px;
  }

  .feed-card--front {
    height: 205px;
    border-radius: 18px;
  }

  .feed-card--middle,
  .feed-card--back {
    inset: 38px 6px auto;
    height: 188px;
    border-radius: 18px;
  }

  .story-strip {
    gap: 2px;
    margin-bottom: 5px;
  }

  .feed-preview .status-pill {
    display: none;
  }

  .feed-preview h2 {
    margin: 8px 0 2px;
    font-size: 17px;
  }

  .topbar {
    height: 34px;
  }

  .button {
    min-height: 46px;
  }
}

@media (max-width: 520px) and (max-height: 760px) {
  .hero__content {
    padding-right: 118px;
    min-height: 374px;
  }

  .hero__visual {
    right: 10px;
    bottom: 10px;
    width: 112px;
  }

  .feed-preview {
    width: 112px;
    padding: 6px;
    border-radius: 20px;
  }

  .feed-card--front {
    height: 142px;
  }

  .feed-card--middle,
  .feed-card--back {
    inset: 31px 5px auto;
    height: 130px;
  }

  .feed-preview h2 {
    font-size: 13px;
  }

  .quiz {
    gap: 9px;
  }

  .quiz__panel {
    padding: 14px;
  }

  .actions .button {
    min-height: 40px;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: calc(100% - 24px);
    min-height: 100svh;
    padding: 12px 0;
  }

  .topbar {
    height: 34px;
    margin-bottom: 10px;
  }

  .progress {
    gap: 8px;
  }

  .progress__label {
    min-width: 30px;
    font-size: 11px;
  }

  .progress__track {
    gap: 5px;
    height: 7px;
  }

  .progress__prize {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .hero {
    display: flex;
    height: 100%;
    flex-direction: column;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 14px;
  }

  .hero__content {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 22px;
    border-radius: 30px;
  }

  .hero__content::after {
    right: -72px;
    bottom: -58px;
    width: 220px;
    height: 220px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.13em;
  }

  h1 {
    max-width: 330px;
    margin-bottom: 16px;
    font-size: clamp(39px, 11.2vw, 48px);
    line-height: 0.96;
    letter-spacing: -0.06em;
  }

  .lead {
    max-width: 310px;
    margin-bottom: 22px;
    font-size: 17px;
    line-height: 1.34;
  }

  .hero .button {
    width: 100%;
    min-height: 58px;
    border-radius: 20px;
    font-size: 18px;
  }

  .microcopy {
    display: none;
  }

  .hero__visual {
    position: absolute;
    right: 18px;
    bottom: 28px;
    z-index: 4;
    display: grid;
    width: 148px;
    height: auto;
    margin: 0;
    transform: rotate(1deg);
  }

  .feed-preview {
    width: 148px;
    padding: 7px;
    border-radius: 24px;
  }

  .feed-card--front {
    height: 196px;
    border-radius: 18px;
  }

  .feed-card--middle,
  .feed-card--back {
    inset: 35px 5px auto;
    height: 180px;
    border-radius: 18px;
  }

  .story-strip {
    gap: 2px;
    margin-bottom: 5px;
  }

  .story-strip__item {
    height: 2px;
  }

  .feed-preview .status-pill {
    display: none;
  }

  .feed-preview h2 {
    margin: 8px 0 1px;
    font-size: 15px;
    letter-spacing: -0.04em;
  }

  .floating-badge {
    display: none;
  }

  .quiz,
  .result {
    height: 100%;
    align-content: center;
    gap: 10px;
  }

  .quiz__panel,
  .result__card {
    padding: 18px;
    border-radius: 26px;
  }

  .quiz h2,
  .result h2 {
    margin-bottom: 10px;
    font-size: clamp(25px, 7.2vw, 32px);
    line-height: 1.02;
  }

  .quiz__hint,
  .result__card p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.34;
  }

  .options {
    gap: 8px;
  }

  .option {
    min-height: 58px;
    border-radius: 17px;
    padding: 11px 12px;
  }

  .option strong {
    margin-bottom: 3px;
    font-size: 14px;
  }

  .option span {
    font-size: 11px;
  }

  .actions {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .actions .button,
  .result .button--primary {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 520px) and (max-height: 720px) {
  .app-shell {
    padding: 10px 0;
  }

  .topbar {
    margin-bottom: 8px;
  }

  .hero__content {
    padding: 20px;
  }

  h1 {
    max-width: 300px;
    margin-bottom: 12px;
    font-size: clamp(34px, 10vw, 42px);
  }

  .lead {
    max-width: 292px;
    margin-bottom: 16px;
    font-size: 15px;
  }

  .hero .button {
    min-height: 50px;
    font-size: 16px;
  }

  .hero__visual {
    right: 14px;
    bottom: 18px;
    width: 126px;
  }

  .feed-preview {
    width: 126px;
    padding: 6px;
    border-radius: 20px;
  }

  .feed-card--front {
    height: 158px;
    border-radius: 15px;
  }

  .feed-card--middle,
  .feed-card--back {
    inset: 31px 5px auto;
    height: 146px;
    border-radius: 15px;
  }

  .feed-preview h2 {
    font-size: 13px;
  }

  .quiz__panel,
  .result__card {
    padding: 14px;
  }

  .option {
    min-height: 52px;
    padding: 9px 11px;
  }
}

@media (max-width: 520px) {
  .hero__content {
    padding: 22px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(36px, 10.4vw, 45px);
  }

  .lead {
    max-width: 100%;
    font-size: 16px;
  }

  .hero__visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
  }

  .feed-preview {
    width: 100%;
    padding: 9px;
    border-radius: 28px;
  }

  .feed-card--front {
    height: min(42svh, 310px);
    border-radius: 22px;
  }

  .feed-card--middle,
  .feed-card--back {
    inset: 38px 8px auto;
    height: min(39svh, 288px);
    border-radius: 22px;
  }

  .feed-preview h2 {
    margin-top: 10px;
    font-size: 18px;
  }

  .option {
    min-height: 64px;
    padding: 12px 14px;
  }

  .option strong {
    font-size: 15px;
  }

  .option span {
    font-size: 12px;
  }
}

@media (max-width: 520px) and (max-height: 720px) {
  .hero__content {
    padding: 18px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(32px, 9.4vw, 39px);
  }

  .lead {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: 14px;
  }

  .hero .button {
    min-height: 48px;
  }

  .hero__visual {
    right: auto;
    bottom: auto;
    width: 100%;
    padding-top: 0;
  }

  .feed-preview {
    width: 100%;
    padding: 8px;
    border-radius: 24px;
  }

  .feed-card--front {
    height: min(37svh, 250px);
    border-radius: 19px;
  }

  .feed-card--middle,
  .feed-card--back {
    inset: 35px 7px auto;
    height: min(34svh, 232px);
    border-radius: 19px;
  }

  .feed-preview h2 {
    font-size: 16px;
  }

  .option {
    min-height: 58px;
    padding: 10px 12px;
  }
}

@media (max-width: 520px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell,
  .hero,
  .hero__content,
  .hero__visual,
  .feed-preview {
    max-width: 100%;
  }

  .hero {
    display: flex;
    height: auto;
    flex-direction: column;
    gap: 14px;
    overflow: visible;
  }

  .hero__content {
    height: auto;
    flex: 0 0 auto;
  }

  .hero__visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 350px);
    flex: 0 0 auto;
    margin: 0 auto;
    padding: 0 8px 8px;
    transform: none;
    overflow: visible;
  }

  .feed-preview {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 34px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: rotate(1deg);
    backdrop-filter: blur(28px);
  }

  .story-strip {
    gap: 3px;
    margin-bottom: 9px;
  }

  .story-strip__item {
    height: 3px;
  }

  .feed-card--front {
    width: 100%;
    height: auto;
    border-radius: 26px;
    aspect-ratio: 3 / 4.35;
    box-shadow: 0 18px 42px rgba(39, 48, 84, 0.16);
  }

  .feed-card--middle,
  .feed-card--back {
    inset: 46px 10px auto;
    width: calc(100% - 20px);
    height: auto;
    border-radius: 26px;
    opacity: 0.42;
    aspect-ratio: 3 / 4.35;
  }

  .feed-card--middle {
    transform: translate(12px, 16px) rotate(4deg);
  }

  .feed-card--back {
    transform: translate(-12px, 24px) rotate(-5deg);
  }

  .feed-preview .status-pill {
    display: inline-flex;
    margin: 12px 0 8px;
    padding: 6px 10px;
    font-size: 10px;
  }

  .feed-preview h2 {
    max-width: 100%;
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.1;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.12);
    backdrop-filter: blur(14px);
  }

  .floating-badge {
    z-index: 6;
    display: inline-flex;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
  }

  .floating-badge--left {
    top: 42px;
    left: 0;
  }

  .floating-badge--right {
    right: 0;
    bottom: 58px;
  }
}

@media (max-width: 520px) and (max-height: 720px) {
  .hero__visual {
    width: min(100%, 320px);
    padding-inline: 6px;
  }

  .feed-preview {
    padding: 10px;
    border-radius: 30px;
  }

  .feed-card--front {
    border-radius: 22px;
    aspect-ratio: 3 / 4.05;
  }

  .feed-card--middle,
  .feed-card--back {
    inset: 42px 8px auto;
    width: calc(100% - 16px);
    border-radius: 22px;
    aspect-ratio: 3 / 4.05;
  }

  .feed-preview .status-pill {
    margin: 10px 0 7px;
  }

  .feed-preview h2 {
    font-size: 15px;
  }

  .floating-badge {
    padding: 8px 10px;
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .privacy-pill {
    margin-bottom: 14px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .hero__content {
    align-items: center;
    text-align: center;
  }

  .hero__content h1,
  .hero__content .lead {
    margin-right: auto;
    margin-left: auto;
  }

  .privacy-pill {
    align-self: center;
  }

  .hero .button {
    align-self: stretch;
  }
}
