:root {
  --bg: #eee3cf;
  --bg-flat: #f4e8d1;
  --surface-box: #f7efde;
  --surface-box-soft: #fbf6ee;
  --surface-box-muted: #f1e7d7;
  --panel: #f7efde;
  --panel-strong: #fbf6ee;
  --text: #2c1b12;
  --muted: rgba(44, 27, 18, 0.72);
  --accent: #ff6400;
  --accent-dark: #7c3115;
  --accent-2: #f1bd1a;
  --line: rgba(44, 27, 18, 0.14);
  --option-bg: rgba(255, 248, 240, 0.72);
  --shadow: 0 18px 40px rgba(70, 35, 8, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(241, 189, 26, 0.18), transparent 18%),
    linear-gradient(180deg, #f2e9da 0%, var(--bg) 100%);
  min-height: 100vh;
}

body.landing-mode {
  background: var(--bg-flat);
}

.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container.container-landing {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.panel {
  width: 100%;
  max-width: 820px;
  background: var(--panel);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.panel.app-intro {
  max-width: 440px;
  height: calc(100vh - 24px);
  height: calc(100svh - 24px);
  max-height: calc(100svh - 24px);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.panel.app-landing {
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100svh;
  max-height: none;
}

.panel::before {
  content: "";
  position: absolute;
  top: -36px;
  left: -36px;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--accent-2);
  opacity: 0.95;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.screen {
  animation: screenIn 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.panel.app-intro::before,
.panel.app-intro::after {
  display: none;
}

.intro-screen {
  height: 100%;
  min-height: 100%;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.intro-screen-boxed {
  --screen-box-bleed: clamp(12px, 3.4vw, 18px);
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  padding: var(--screen-box-bleed);
}

.intro-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: var(--surface-box);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 30px;
  box-shadow: 0 18px 44px rgba(120, 82, 18, 0.16);
  padding: 26px 18px 18px;
  display: flex;
  flex-direction: column;
}

.intro-frame-flat {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg-flat);
  border-radius: 0;
  box-shadow: none;
  padding: clamp(48px, 8vh, 80px) clamp(24px, 7vw, 56px) clamp(36px, 6vh, 56px);
  justify-content: space-between;
}

.intro-frame-flat-home {
  align-items: center;
  justify-content: flex-start;
  gap: clamp(104px, 15vh, 164px);
  padding-top: clamp(28px, 4.8vh, 52px);
  padding-bottom: clamp(118px, 17vh, 168px);
}

.intro-frame-flat-story {
  align-items: center;
  justify-content: flex-start;
  gap: clamp(86px, 13vh, 134px);
  padding-top: clamp(28px, 4.8vh, 52px);
  padding-bottom: clamp(82px, 12vh, 122px);
}

.intro-frame-boxed {
  width: 100%;
  max-width: 392px;
  margin: 0 auto;
  min-height: calc(100svh - (var(--screen-box-bleed) * 2));
  background: var(--surface-box);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 32px;
  box-shadow: 0 18px 44px rgba(120, 82, 18, 0.14);
  overflow: hidden;
}

.intro-frame-flat:not(.intro-frame-boxed) .intro-corner {
  display: none;
}

.intro-corner {
  position: absolute;
  top: 12px;
  left: 10px;
  width: 42px;
  height: 40px;
  border-top-left-radius: 26px;
  border-bottom-right-radius: 24px;
  background: #f5bf1b;
}

.screen-visual {
  min-height: min(78vh, 780px);
  display: flex;
  flex-direction: column;
}

h1,
h2 {
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  max-width: 8ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 0.92;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
}

p {
  margin: 0 0 18px 0;
  line-height: 1.5;
  font-size: 1rem;
  color: var(--text);
}

.lead {
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.28rem;
  line-height: 1.42;
  color: rgba(44, 27, 18, 0.82);
}

.intro-copy {
  margin-top: 8px;
  margin-bottom: 28px;
}

.intro-brand {
  align-self: flex-start;
  text-align: left;
  width: min(100%, 314px);
  padding: 36px 0 0 16px;
  position: relative;
  z-index: 1;
}

.intro-brand-flat {
  width: min(100%, 300px);
  padding: 0;
  margin-left: min(4vw, 18px);
}

.intro-logo {
  display: block;
  width: 100%;
  height: auto;
}

.intro-brand-flat .intro-logo {
  width: min(100%, 252px);
}

.intro-brand-flat-home,
.intro-brand-flat-story {
  align-self: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(18px, 5vw, 30px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-brand-flat-home .intro-logo,
.intro-brand-flat-story .intro-logo {
  width: min(100%, 344px);
  max-width: 344px;
  margin: 0 auto;
}

.intro-brand-flat-story .intro-logo {
  margin: 0 auto;
}

.intro-main-flat {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 8vh, 84px) 0 clamp(20px, 4vh, 40px);
}

.intro-main-flat-home {
  flex: 0 0 auto;
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
}

.intro-main-flat-story {
  flex: 0 0 auto;
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
}

.intro-message {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  text-align: left;
  color: var(--accent);
  width: min(100%, 334px);
  max-width: none;
  flex: 1;
  margin: 0 0 0 28px;
  padding-top: 0;
  font-size: clamp(3.1rem, 8.8vw, 4.1rem);
  font-weight: 700;
  line-height: 1.02;
}

.intro-message-flat {
  align-self: center;
  flex: 0 0 auto;
  width: min(100%, 340px);
  max-width: 340px;
  margin: 0 auto;
  gap: 34px;
  text-align: center;
  font-size: clamp(2rem, 7.8vw, 3rem);
  line-height: 1.04;
}

.intro-message-flat-home {
  width: min(100%, 332px);
  max-width: 332px;
  padding-right: clamp(10px, 2.6vw, 18px);
  text-align: right;
  font-size: clamp(2.24rem, 9.6vw, 3.58rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.intro-message-flat-home .intro-message-lines {
  align-items: flex-end;
}

.intro-message-flat-story {
  width: min(100%, 300px);
  max-width: 300px;
  gap: 46px;
  padding-inline: 0;
  transform: translateX(-10px);
  text-align: center;
  font-size: clamp(2.08rem, 8.5vw, 3.1rem);
  line-height: 1.08;
}

.intro-message-flat-story .intro-question {
  margin-top: 0 !important;
}

.intro-message-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.08em;
}

.intro-message-lines-centered {
  align-items: center;
}

.intro-message-lines-centered span {
  width: 100%;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
}

.intro-message-lines span {
  display: block;
  white-space: nowrap;
}

.intro-message p {
  margin: 0;
  color: var(--accent);
  font-size: inherit;
  line-height: inherit;
}

.intro-question-flat {
  margin-top: 0 !important;
}

.intro-question {
  margin-top: 4px !important;
}

.intro-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-bottom: 8px;
  margin-top: 0;
}

.intro-cta-flat {
  gap: 14px;
  padding-bottom: 0;
}

.intro-cta-flat-home {
  width: auto;
  align-self: center;
}

.intro-cta-flat-story {
  width: 100%;
  align-self: center;
  gap: 16px;
  padding-bottom: 0;
}

.intro-cta-flat-story button {
  min-width: 214px;
}

.intro-cta-flat-story .intro-note {
  font-size: 0.98rem;
  color: var(--accent-dark);
}

.intro-language-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.intro-language-button {
  min-width: 146px;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(124, 49, 21, 0.18);
}

.intro-language-button.is-active {
  box-shadow:
    0 12px 28px rgba(124, 49, 21, 0.18),
    0 0 0 2px rgba(255, 255, 255, 0.38) inset;
}

.intro-language-flag {
  display: block;
  width: 32px;
  height: 22px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  text-indent: -999px;
}

.intro-language-label {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.intro-language-button[data-language="it"] .intro-language-flag {
  background-image: url("assets/images/quiz-photos/flag-it.svg");
}

.intro-language-button[data-language="en"] .intro-language-flag {
  background-image: url("assets/images/quiz-photos/flag-en.svg");
}

.intro-cta button {
  min-width: 214px;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(255, 100, 0, 0.2);
}

.intro-cta-flat button {
  min-width: 188px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(255, 100, 0, 0.18);
  font-size: 1rem;
}

.intro-note {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(44, 27, 18, 0.82);
}

.intro-cta-flat .intro-note {
  color: rgba(124, 49, 21, 0.92);
}

.intro-frame-choice {
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 5.6vh, 56px);
  padding: clamp(54px, 9vh, 92px) clamp(24px, 7vw, 38px) clamp(42px, 7vh, 66px);
  text-align: center;
}

.intro-choice-copy {
  flex: 0 1 auto;
  width: 100%;
  max-width: 372px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vh, 30px);
  text-align: center;
  padding: 0;
  margin: 0;
}

.intro-choice-title,
.intro-choice-note {
  width: 100%;
  margin: 0;
  font-size: clamp(2.14rem, 7.2vw, 3.06rem);
  line-height: 0.98;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.012em;
}

.intro-choice-title span,
.intro-choice-note span {
  display: block;
}

.intro-choice-note {
  line-height: 1.02;
}

.intro-frame-choice .intro-cta {
  width: auto;
  padding-bottom: 0;
  margin-top: 0;
}

.progress {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}

button {
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 16px;
  cursor: pointer;
  background: var(--accent);
  color: white;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
  box-shadow: 0 12px 28px rgba(255, 100, 0, 0.22);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 100, 0, 0.28);
}

button:active {
  transform: translateY(0);
}

.button-secondary {
  background: var(--surface-box-soft);
  color: var(--text);
  border: 1px solid rgba(44, 27, 18, 0.12);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--surface-box);
  box-shadow: 0 10px 22px rgba(44, 27, 18, 0.08);
}

.carousel-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.image-carousel {
  --carousel-card-width: min(82vw, 344px);
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: max(10px, calc((100% - var(--carousel-card-width)) / 2));
  padding: 6px max(10px, calc((100% - var(--carousel-card-width)) / 2)) 14px;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.visual-shell {
  width: 100%;
  min-height: 100%;
  flex: 1;
}

.visual-carousel {
  --carousel-card-width: 100%;
  align-items: stretch;
  gap: 0;
  scroll-padding-inline: 0;
  padding-inline: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.image-carousel::-webkit-scrollbar {
  display: none;
}

.image-option {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  flex: 0 0 var(--carousel-card-width);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  animation: optionIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.selection-screen-restored .image-option {
  animation: none !important;
}

.visual-option {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 14px 10px;
  scroll-snap-align: start;
}

.visual-option .image-card {
  width: min(100%, 454px);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.visual-option .option-image {
  width: 100%;
  max-width: none;
  height: 100%;
  margin-inline: auto;
  object-fit: contain;
}

.visual-option.is-selected .image-card {
  box-shadow: none;
}

.image-option:hover {
  background: transparent;
}

.carousel-option.is-selected:not(.visual-option) .image-card {
  box-shadow:
    0 18px 36px rgba(40, 18, 0, 0.16),
    0 0 0 3px rgba(255, 100, 0, 0.36);
}

.image-card {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(44, 27, 18, 0.08);
  background: var(--surface-box);
  box-shadow: 0 12px 28px rgba(40, 18, 0, 0.12);
}

.image-option:nth-child(1) {
  animation-delay: 90ms;
}

.image-option:nth-child(2) {
  animation-delay: 160ms;
}

.image-option:nth-child(3) {
  animation-delay: 230ms;
}

.image-option:nth-child(4) {
  animation-delay: 300ms;
}

.option-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: translate(var(--option-shift-x, 0%), var(--option-shift-y, 0%))
    scale(var(--option-scale, 1));
  transition: transform 220ms ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .image-option:hover .option-image {
    transform: translate(var(--option-shift-x, 0%), var(--option-shift-y, 0%))
      scale(var(--option-hover-scale, var(--option-scale, 1)));
  }
}

.nav-arrow {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
  flex: 0 0 auto;
}

.nav-arrow:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: 0 10px 20px rgba(255, 100, 0, 0.12);
}

.visual-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.nav-arrow-prev.visual-arrow {
  left: 8px;
}

.nav-arrow-next.visual-arrow {
  right: 8px;
}

.screen-selection h2,
.screen-visual h2 {
  margin-bottom: 12px;
}

.screen-question {
  padding-top: 8px;
}

.question-header {
  width: min(100%, 444px);
  margin: 0 auto 18px;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.question-title {
  margin: 0;
  font-size: clamp(3.28rem, 11.2vw, 4.56rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.question-description {
  margin: 0;
  max-width: 23ch;
  font-size: clamp(1.28rem, 4.8vw, 1.52rem);
  line-height: 1.34;
  font-weight: 700;
  color: var(--accent-dark);
  text-wrap: balance;
}

.selection-only-screen {
  min-height: min(78vh, 780px);
}

.selection-only-screen .visual-shell {
  min-height: 100%;
}

.score-screen {
  min-height: 100%;
}

.score-frame {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.score-copy {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 26px 12px 20px;
}

.score-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: rgba(44, 27, 18, 0.64);
}

.score-value {
  margin: 0;
  font-size: clamp(4rem, 12vw, 6rem);
  line-height: 0.9;
  font-weight: 800;
  color: var(--accent);
}

.score-value span {
  font-size: 0.42em;
  color: rgba(44, 27, 18, 0.64);
}

.score-note {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(1.2rem, 4.2vw, 1.55rem);
  line-height: 1.28;
  color: rgba(44, 27, 18, 0.9);
}

.confirm-screen {
  min-height: 100%;
}

.confirm-frame {
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  text-align: center;
  padding: 30px 20px 24px;
}

.confirm-preview {
  width: min(100%, 220px);
  margin: 40px auto 0;
}

.confirm-image-card {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
}

.confirm-copy {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 14px 10px 10px;
}

.confirm-title {
  margin: 0;
  max-width: 13.5ch;
  font-size: clamp(2.42rem, 7.8vw, 3.24rem);
  line-height: 0.95;
  text-transform: none;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-wrap: balance;
}

.confirm-question {
  margin: 0;
  max-width: 19ch;
  font-size: 1.18rem;
  line-height: 1.42;
  color: rgba(44, 27, 18, 0.86);
  text-wrap: balance;
}

.confirm-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.carousel-footer {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.carousel-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface-box-soft);
  border: 1px solid rgba(44, 27, 18, 0.08);
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.email-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.email-form .field-label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.email-form .field-hint {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

.email-form input[type="email"] {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 1rem;
  background: var(--surface-box-soft);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.email-form input[type="text"],
.email-form select,
.email-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 1rem;
  background: var(--surface-box-soft);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.email-form input[type="email"]:focus {
  border-color: rgba(255, 100, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 100, 0, 0.12);
  background: var(--surface-box);
}

.email-form input[type="text"]:focus,
.email-form select:focus,
.email-form textarea:focus {
  border-color: rgba(255, 100, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 100, 0, 0.12);
  background: var(--surface-box);
}

.email-form input[readonly] {
  background: var(--surface-box-muted);
  color: rgba(44, 27, 18, 0.78);
}

.email-form textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 0.95rem;
  color: var(--muted);
}

.result {
  margin-top: 18px;
  font-weight: 700;
  color: var(--accent);
}

.story-form-screen {
  min-height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-scrollable {
  min-height: 100%;
  height: auto;
  align-items: stretch;
}

.frame-scrollable {
  min-height: 100%;
  height: auto;
}

.story-form-card {
  height: auto;
  min-height: 100%;
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.story-form-header {
  padding-top: 26px;
  text-align: center;
}

.story-form-eyebrow {
  margin: 0 0 10px 0;
  font-size: 0.88rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(124, 49, 21, 0.76);
}

.story-form-eyebrow-large {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  max-width: none;
  margin: 0 auto 86px;
  font-size: clamp(2rem, 6.8vw, 2.82rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--accent);
}

.story-form-eyebrow-large span {
  display: block;
}

.story-form-card h2 {
  margin-bottom: 0;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: clamp(2.15rem, 6.8vw, 3rem);
  line-height: 0.94;
  color: var(--text);
}

.story-form-title {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  letter-spacing: -0.04em;
}

.story-form-title-accent {
  color: var(--accent);
}

.story-form-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  width: min(100%, 320px);
  align-self: center;
  padding: 34px 0 22px;
}

.story-form-card .lead {
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.story-form-card-email h2,
.story-form-card-follow-up h2 {
  color: var(--accent);
}

.story-form-card-email .story-form-title-accent,
.story-form-card-follow-up .story-form-title-accent {
  color: var(--accent);
}

.story-form-card-follow-up .story-form-copy {
  align-items: center;
}

.story-form-card-follow-up .lead,
.story-form-card-follow-up .story-form-note {
  text-align: center;
}

.story-form-card-email .story-form-copy {
  width: min(100%, 338px);
  gap: 34px;
  padding: 14px 0 20px;
  align-items: stretch;
}

.story-form-card-email .email-form {
  width: min(100%, 338px);
  align-self: center;
  gap: 14px;
}

.story-form-card-email .lead {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(1.12rem, 3.95vw, 1.22rem);
  line-height: 1.56;
  font-weight: 400;
  color: rgba(28, 18, 12, 0.98);
  text-align: left;
  padding: 0 2px;
  text-wrap: pretty;
}

.story-form-card-email .story-form-lead-strong,
.story-form-card-email .story-form-description-impact {
  width: 100%;
  max-width: none;
  font-size: clamp(1.12rem, 3.95vw, 1.22rem);
  line-height: 1.56;
  font-weight: 400;
  color: rgba(28, 18, 12, 0.98);
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  padding: 0 2px;
}

.story-form-card-email .story-form-copy strong {
  color: inherit;
  font-weight: inherit;
}

.story-form-card-email .story-form-lead-strong strong,
.story-form-card-email .story-form-description-impact strong {
  color: rgba(28, 18, 12, 0.98);
  font-weight: 700;
}

.story-form-card-email .checkbox-row {
  font-size: 0.94rem;
  line-height: 1.46;
  color: rgba(44, 27, 18, 0.9);
}

.story-form-card-email .checkbox-row-optional {
  padding: 14px 14px 14px 12px;
  border: 1px solid rgba(124, 49, 21, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
}

.story-form-card-email .checkbox-row-optional input {
  margin-top: 4px;
}

.story-form-card-email .checkbox-row-optional .checkbox-copy-long {
  line-height: 1.52;
}

.legal-info-link-row {
  display: flex;
  justify-content: flex-start;
  margin-top: -2px;
}

.legal-info-link {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  box-shadow: none;
}

.legal-info-link:hover,
.legal-info-link:active {
  transform: none;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
}

.story-form-card .checkbox-row strong {
  font-weight: 700;
  color: rgba(44, 27, 18, 0.96);
}

.story-form-card-follow-up {
  padding-bottom: 18px;
}

.story-form-card-follow-up .story-form-header {
  padding-top: 16px;
}

.story-form-card-follow-up h2 {
  color: var(--accent);
  font-size: clamp(2rem, 6.8vw, 2.82rem);
  line-height: 0.98;
  font-weight: 800;
  text-transform: uppercase;
}

.story-form-card-follow-up .story-form-title {
  gap: 1px;
  letter-spacing: 0.01em;
}

.story-form-card-follow-up .story-form-copy {
  width: min(100%, 346px);
  gap: 20px;
  padding: 14px 0 10px;
  align-items: stretch;
}

.story-form-card-follow-up .lead,
.story-form-card-follow-up .story-form-description {
  width: 100%;
  margin: 0;
  text-align: left;
  color: rgba(28, 18, 12, 0.98);
  padding: 0 8px;
  text-wrap: pretty;
}

.story-form-card-follow-up .story-form-lead-strong {
  max-width: none;
  font-size: clamp(1.22rem, 4.3vw, 1.36rem);
  line-height: 1.56;
  font-weight: 500;
}

.story-form-card-follow-up .story-form-description {
  max-width: none;
  font-size: clamp(1.22rem, 4.3vw, 1.36rem);
  line-height: 1.56;
  font-weight: 500;
  color: rgba(28, 18, 12, 0.98);
}

.story-form-card-follow-up .story-form-copy strong {
  color: rgba(28, 18, 12, 0.98);
  font-weight: 700;
}

.story-form-card-follow-up .email-form {
  width: min(100%, 338px);
  align-self: center;
  gap: 12px;
  margin-top: 0;
}

.story-form-card-follow-up .field-label {
  font-size: 0.96rem;
}

.story-form-lead {
  max-width: 18ch;
  font-size: clamp(1.5rem, 4.9vw, 1.9rem);
  line-height: 1.3;
  font-weight: 600;
  color: rgba(44, 27, 18, 0.9);
}

.story-form-lead-strong {
  max-width: 18ch;
  font-size: clamp(1.42rem, 4.8vw, 1.8rem);
  line-height: 1.34;
  font-weight: 500;
  color: rgba(44, 27, 18, 0.92);
}

.story-form-description {
  max-width: 20ch;
  font-size: clamp(1.08rem, 4vw, 1.34rem);
  line-height: 1.4;
  color: rgba(44, 27, 18, 0.82);
}

.story-form-description-impact {
  max-width: 18ch;
  font-size: clamp(1.22rem, 4.3vw, 1.5rem);
  line-height: 1.4;
  font-weight: 500;
  color: rgba(44, 27, 18, 0.92);
}

.story-form-copy strong {
  color: var(--accent);
  font-weight: 700;
}

.story-form-note {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(44, 27, 18, 0.72);
  text-align: left;
}

.follow-up-email-note {
  margin-top: -4px;
  margin-bottom: 2px;
}

.story-form-card .email-form {
  margin-top: auto;
  gap: 16px;
}

.story-form-card .email-form input[type="email"] {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-box-soft);
}

.story-form-card .email-form input[type="text"],
.story-form-card .email-form select,
.story-form-card .email-form textarea {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-box-soft);
}

.checkbox-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 2px;
}

.choice-picker {
  width: 100%;
}

.choice-picker-trigger {
  width: 100%;
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(124, 49, 21, 0.12);
  border-radius: 18px;
  background: var(--surface-box-soft);
  box-shadow: 0 10px 22px rgba(120, 82, 18, 0.08);
  color: inherit;
}

.choice-picker-trigger:hover,
.choice-picker-trigger:active {
  transform: none;
  box-shadow: 0 12px 24px rgba(120, 82, 18, 0.1);
}

.choice-picker-label {
  grid-column: 1 / 2;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text);
  text-align: left;
}

.choice-picker-value {
  grid-column: 1 / 2;
  font-size: 0.98rem;
  line-height: 1.35;
  color: rgba(44, 27, 18, 0.56);
  text-align: left;
  text-wrap: balance;
}

.choice-picker-trigger.has-value .choice-picker-value {
  color: var(--accent-dark);
}

.choice-picker-icon {
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  width: 14px;
  height: 14px;
  margin-right: 2px;
  border-right: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

html.has-choice-picker-modal-open,
body.has-choice-picker-modal-open {
  overflow: hidden;
}

.choice-picker-modal[hidden] {
  display: none;
}

.choice-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.choice-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 15, 8, 0.58);
  box-shadow: none;
}

.choice-picker-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  max-height: min(78vh, 620px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px 16px;
  border-radius: 28px;
  background: var(--surface-box);
  box-shadow: 0 24px 60px rgba(20, 10, 4, 0.32);
}

.choice-picker-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.choice-picker-sheet-title {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.28;
  font-weight: 700;
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.02em;
}

.choice-picker-close {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  background: rgba(124, 49, 21, 0.08);
  color: var(--text);
  box-shadow: none;
  font-size: 1.6rem;
  line-height: 1;
}

.choice-picker-close:hover,
.choice-picker-close:active {
  transform: none;
  box-shadow: none;
  background: rgba(124, 49, 21, 0.12);
}

.choice-picker-sheet-hint {
  margin: -4px 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: left;
}

.choice-picker-sheet-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.choice-picker-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(124, 49, 21, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  color: rgba(44, 27, 18, 0.92);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: left;
}

.choice-picker-option input {
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.choice-picker-option span {
  flex: 1;
}

.choice-picker-sheet-actions {
  display: flex;
  justify-content: flex-end;
}

.legal-info-sheet {
  width: min(100%, 392px);
  max-height: min(80vh, 680px);
}

.legal-info-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  padding-right: 2px;
}

.legal-info-intro {
  margin: 0;
}

.legal-info-subtitle,
.legal-info-updated {
  margin: 0;
  text-align: left;
}

.legal-info-subtitle {
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 700;
  color: rgba(44, 27, 18, 0.9);
}

.legal-info-updated {
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(44, 27, 18, 0.62);
}

.legal-info-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(124, 49, 21, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.legal-info-section-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.34;
  font-weight: 700;
  color: var(--text);
}

.legal-info-section-body {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(44, 27, 18, 0.84);
  text-align: left;
}

.legal-info-list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-info-list-item {
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(44, 27, 18, 0.84);
}

.choice-picker-apply {
  min-width: 128px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(255, 100, 0, 0.2);
}

.choice-picker-backdrop:hover,
.choice-picker-backdrop:active {
  transform: none;
  box-shadow: none;
}

.choice-group {
  margin: 0;
  padding: 0;
  border: none;
}

.choice-group-label {
  margin: 0 0 10px 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.choice-group-hint {
  margin: 0 0 12px 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

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

.choice-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(44, 27, 18, 0.08);
  border-radius: 16px;
  background: var(--surface-box-soft);
  color: rgba(44, 27, 18, 0.92);
  font-size: 0.96rem;
  line-height: 1.4;
}

.choice-row input {
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.choice-row span {
  display: block;
  flex: 1;
}

.story-form-card .checkbox-row {
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  line-height: 1.4;
  color: rgba(44, 27, 18, 0.9);
}

.story-form-card .checkbox-row-optional {
  color: rgba(44, 27, 18, 0.9);
}

.story-form-card .checkbox-row input {
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.story-form-card .checkbox-row span {
  display: block;
  flex: 1;
}

.checkbox-copy-long {
  max-width: 30ch;
}

.story-form-card .email-form button {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(255, 100, 0, 0.24);
}

.confirmation-screen {
  justify-content: stretch;
}

.confirmation-card {
  justify-content: center;
  gap: 16px;
}

.confirmation-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.confirmation-badge {
  display: inline-flex;
  align-self: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 100, 0, 0.12);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.confirmation-copy {
  gap: 18px;
}

.confirmation-actions {
  width: 100%;
  margin-top: auto;
}

.confirmation-actions button {
  width: 100%;
}

.confirmation-card-email-sent {
  gap: 28px;
  justify-content: center;
}

.confirmation-card-email-sent .confirmation-header {
  gap: 4px;
}

.confirmation-card-email-sent h2 {
  color: var(--accent);
  font-size: clamp(2rem, 6.8vw, 2.82rem);
  line-height: 0.98;
  font-weight: 800;
  text-transform: uppercase;
}

.confirmation-card-email-sent .story-form-title {
  gap: 1px;
  letter-spacing: 0.01em;
}

.confirmation-card-email-sent .confirmation-copy {
  flex: 0 0 auto;
  width: min(100%, 346px);
  gap: 26px;
  padding: 18px 0 14px;
  align-items: stretch;
  justify-content: flex-start;
}

.confirmation-card-email-sent .confirmation-actions {
  width: min(100%, 346px);
  margin-top: 10px;
  align-self: center;
}

.confirmation-card-email-sent .lead,
.confirmation-card-email-sent .story-form-description {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: clamp(1.2rem, 4.35vw, 1.34rem);
  line-height: 1.62;
  color: rgba(28, 18, 12, 0.98);
  text-align: left;
  padding: 0 6px;
  text-wrap: pretty;
}

.confirmation-card-email-sent .lead {
  font-weight: 500;
}

.confirmation-card-email-sent .lead strong {
  color: var(--accent);
  font-weight: 700;
  word-break: break-word;
}

.confirmation-card-email-sent .story-form-description {
  font-size: clamp(1.12rem, 4.05vw, 1.24rem);
  line-height: 1.58;
}

.confirmation-card-email-sent .story-form-note {
  width: 100%;
  max-width: none;
  margin: -4px 0 0;
  padding: 0 6px;
  font-size: 0.98rem;
  line-height: 1.52;
  color: rgba(44, 27, 18, 0.72);
  text-align: left;
  text-wrap: pretty;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes optionIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */
@media (min-width: 768px) {
  .container {
    padding: 34px;
  }

  .panel {
    padding: 42px;
    border-radius: 34px;
  }

  .panel.app-intro {
    padding: 0;
  }

  .panel.app-landing {
    height: 100vh;
    height: 100svh;
  }

  p,
  button,
  .email-form input[type="email"] {
    font-size: 1.05rem;
  }

  .nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .image-option {
    flex-basis: min(32vw, 280px);
  }

  .visual-option {
    flex-basis: min(40vw, 392px);
  }

  .intro-screen {
    padding: 0;
  }

  .intro-screen-boxed {
    --screen-box-bleed: clamp(18px, 2.8vw, 28px);
  }

  .intro-frame {
    padding: 30px 24px 20px;
  }

  .intro-frame-flat {
    padding: clamp(56px, 8vh, 84px) clamp(42px, 6vw, 72px) clamp(42px, 6vh, 64px);
  }

  .intro-frame-flat-home {
    gap: clamp(72px, 11vh, 112px);
  }

  .intro-frame-flat-story {
    gap: clamp(70px, 10vh, 108px);
  }

  .intro-frame-boxed {
    max-width: 420px;
  }

  .confirm-actions {
    flex-direction: row;
  }

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

/* Desktop largo */
@media (min-width: 1100px) {
  .panel {
    max-width: 920px;
  }
}

/* Riduzione animazioni */
@media (prefers-reduced-motion: reduce) {
  .screen,
  .image-option {
    animation: none !important;
  }

  button,
  .email-form input[type="email"],
  .option-image {
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 10px;
  }

  .panel.app-intro {
    height: calc(100vh - 20px);
    height: calc(100svh - 20px);
    max-height: calc(100svh - 20px);
  }

  .panel.app-landing {
    height: 100vh;
    height: 100svh;
    max-height: none;
  }

  .intro-frame {
    width: 100%;
    padding: 22px 16px 16px;
  }

  .intro-frame-flat {
    padding: 42px 22px 34px;
  }

  .intro-frame-flat-home {
    gap: 88px;
    padding: 34px 22px 92px;
  }

  .intro-frame-flat-story {
    gap: 72px;
    padding: 34px 22px 74px;
  }

  .intro-screen-boxed {
    --screen-box-bleed: 14px;
  }

  .intro-frame-boxed {
    max-width: 388px;
    border-radius: 28px;
  }

  .intro-brand {
    width: min(100%, 308px);
    padding: 30px 0 0 12px;
  }

  .intro-brand-flat {
    width: min(100%, 254px);
    margin-left: 8px;
  }

  .intro-brand-flat-home,
  .intro-brand-flat-story {
    width: 100%;
    margin: 0;
    padding-inline: 12px;
  }

  .intro-brand-flat-home .intro-logo,
  .intro-brand-flat-story .intro-logo {
    width: min(100%, 312px);
    max-width: 312px;
  }

  .intro-message {
    width: min(100%, 320px);
    max-width: none;
    gap: 18px;
    margin-left: 26px;
    font-size: clamp(2.9rem, 9.6vw, 3.45rem);
    line-height: 1.02;
    padding-top: 0;
  }

  .intro-main-flat {
    padding: 32px 0 20px;
  }

  .intro-main-flat-home {
    padding: 0;
  }

  .intro-main-flat-story {
    padding: 0;
  }

  .intro-message-flat {
    width: min(100%, 286px);
    gap: 28px;
    font-size: clamp(1.9rem, 9.2vw, 2.45rem);
  }

  .intro-message-flat-home {
    width: min(100%, 304px);
    max-width: 304px;
    padding-right: 12px;
    font-size: 2.08rem;
    line-height: 1.08;
  }

  .intro-message-flat-story {
    width: min(100%, 286px);
    max-width: 286px;
    gap: 36px;
    padding-inline: 0;
    transform: translateX(-8px);
    font-size: 1.92rem;
    line-height: 1.08;
  }

  .intro-language-actions {
    gap: 10px;
  }

  .intro-language-button {
    min-width: 138px;
    min-height: 52px;
    padding: 10px 14px;
  }

  .intro-cta button {
    min-width: 210px;
  }

  .intro-cta-flat button {
    min-width: 186px;
  }

  .intro-cta-flat-story button {
    min-width: 204px;
  }

  .intro-choice-copy {
    max-width: 334px;
    gap: 18px;
  }

  .intro-choice-title,
  .intro-choice-note {
    font-size: clamp(1.94rem, 7.9vw, 2.4rem);
    line-height: 0.98;
    letter-spacing: -0.01em;
  }

  .question-header {
    width: min(100%, 376px);
    margin-bottom: 18px;
    gap: 10px;
  }

  .question-title {
    font-size: clamp(3.04rem, 11.8vw, 3.68rem);
  }

  .question-description {
    max-width: 22ch;
    font-size: clamp(1.2rem, 4.9vw, 1.34rem);
  }

  .score-copy {
    gap: 16px;
    padding: 22px 10px 16px;
  }

  .score-value {
    font-size: clamp(3.4rem, 13vw, 4.6rem);
  }

  .score-note {
    max-width: 15ch;
    font-size: clamp(1.05rem, 4.8vw, 1.28rem);
  }

  .story-form-card {
    padding: 26px 16px 18px;
  }

  .story-form-header {
    padding-top: 20px;
  }

  .story-form-eyebrow {
    margin-bottom: 8px;
    font-size: 0.82rem;
  }

  .story-form-eyebrow-large {
    gap: 0;
    font-size: clamp(1.86rem, 7.8vw, 2.3rem);
    margin-bottom: 68px;
  }

  .story-form-card h2 {
    font-size: clamp(2rem, 8.2vw, 2.6rem);
  }

  .story-form-copy {
    gap: 18px;
    width: min(100%, 304px);
    padding: 22px 0 16px;
  }

  .story-form-lead {
    max-width: 18ch;
    font-size: clamp(1.28rem, 5.8vw, 1.55rem);
  }

  .story-form-lead-strong {
    max-width: 18ch;
    font-size: clamp(1.22rem, 5.4vw, 1.46rem);
    line-height: 1.34;
  }

  .story-form-description {
    max-width: 19ch;
    font-size: clamp(1rem, 4.5vw, 1.18rem);
  }

  .story-form-description-impact {
    max-width: 18ch;
    font-size: clamp(1.08rem, 4.8vw, 1.24rem);
    line-height: 1.36;
  }

  .story-form-note {
    font-size: 0.9rem;
  }

  .story-form-card .email-form {
    gap: 14px;
  }

  .story-form-card .checkbox-row {
    font-size: 0.96rem;
    line-height: 1.42;
  }

  .confirmation-card-email-sent h2 {
    font-size: clamp(1.94rem, 8vw, 2.4rem);
  }

  .confirmation-card-email-sent .confirmation-copy {
    width: min(100%, 330px);
    gap: 24px;
    padding: 16px 0 12px;
  }

  .confirmation-card-email-sent .confirmation-actions {
    width: min(100%, 330px);
    margin-top: 6px;
  }

  .confirmation-card-email-sent .lead,
  .confirmation-card-email-sent .story-form-description {
    max-width: none;
    font-size: clamp(1.14rem, 4.75vw, 1.22rem);
    line-height: 1.6;
    padding: 0 6px;
  }

  .confirmation-card-email-sent .story-form-description {
    font-size: clamp(1.08rem, 4.35vw, 1.16rem);
  }

  .story-form-card-email .story-form-copy {
    width: min(100%, 332px);
    gap: 30px;
    padding: 10px 0 16px;
  }

  .story-form-card-email .lead,
  .story-form-card-email .story-form-lead-strong,
  .story-form-card-email .story-form-description-impact {
    width: 100%;
    max-width: none;
    font-size: clamp(1.04rem, 4.3vw, 1.12rem);
    line-height: 1.56;
    margin-left: 0;
    margin-right: 0;
    padding: 0 2px;
  }

  .legal-info-link {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .legal-info-sheet {
    width: min(100%, 336px);
    max-height: min(76vh, 600px);
  }

  .story-form-card-follow-up .story-form-copy {
    width: min(100%, 328px);
    gap: 18px;
    padding: 14px 0 10px;
  }

  .story-form-card-follow-up h2 {
    font-size: clamp(1.94rem, 8vw, 2.4rem);
  }

  .story-form-card-follow-up .story-form-lead-strong {
    max-width: none;
    font-size: clamp(1.18rem, 4.9vw, 1.28rem);
    line-height: 1.56;
  }

  .story-form-card-follow-up .story-form-description {
    max-width: none;
    font-size: clamp(1.18rem, 4.9vw, 1.28rem);
    line-height: 1.56;
  }

  .choice-picker-trigger {
    padding: 13px 14px;
  }

  .choice-picker-value {
    font-size: 0.94rem;
  }

  .choice-picker-option {
    padding: 11px 12px;
    font-size: 0.92rem;
  }

  .choice-picker-sheet {
    width: min(100%, 334px);
    max-height: min(74vh, 560px);
    padding: 16px 14px 14px;
  }

  .choice-picker-sheet-title {
    font-size: 1.06rem;
  }

  .checkbox-copy-long {
    max-width: none;
  }

  .confirm-frame {
    padding: 22px 16px 20px;
    gap: 14px;
  }

  .confirm-preview {
    width: min(100%, 180px);
    margin-top: 26px;
  }

  .confirm-copy {
    gap: 12px;
    padding: 8px 6px 8px;
  }

  .confirm-title {
    max-width: 13.5ch;
    font-size: clamp(1.92rem, 7.8vw, 2.44rem);
  }

  .confirm-question {
    max-width: 19ch;
    font-size: 1.04rem;
    line-height: 1.38;
  }

  .confirm-actions {
    gap: 10px;
    margin-top: 0;
  }

  .carousel-shell {
    gap: 0;
  }

  .image-carousel {
    gap: 12px;
  }

  .image-card {
    border-radius: 18px;
  }

  .visual-option {
    padding-inline: 8px;
  }

  .visual-option .image-card {
    width: min(100%, 364px);
  }

  .visual-option .option-image {
    height: 100%;
  }

  .visual-carousel {
    --carousel-card-width: 100%;
  }
}

@media (max-width: 359px) {
  .intro-frame-flat-home {
    gap: 74px;
    padding: 30px 18px 74px;
  }

  .intro-frame-flat-story {
    gap: 64px;
    padding: 30px 18px 64px;
  }

  .intro-screen-boxed {
    --screen-box-bleed: 10px;
  }

  .intro-brand-flat-home,
  .intro-brand-flat-story {
    padding-inline: 8px;
  }

  .intro-brand-flat-home .intro-logo,
  .intro-brand-flat-story .intro-logo {
    width: min(100%, 284px);
    max-width: 284px;
  }

  .intro-message-flat-home {
    width: min(100%, 280px);
    max-width: 280px;
    padding-right: 16px;
    font-size: 1.86rem;
    line-height: 1.06;
  }

  .intro-message-flat-story {
    width: min(100%, 262px);
    max-width: 262px;
    gap: 30px;
    font-size: 1.74rem;
  }

  .intro-language-actions {
    gap: 8px;
  }

  .intro-language-button {
    min-width: 130px;
    min-height: 50px;
    padding: 10px 12px;
  }

  .intro-language-flag {
    width: 30px;
    height: 20px;
  }
}

@media (min-width: 360px) and (max-width: 389px) {
  .intro-frame-flat-home {
    gap: 82px;
    padding: 34px 20px 76px;
  }

  .intro-frame-flat-story {
    gap: 68px;
    padding: 34px 20px 68px;
  }

  .intro-brand-flat-home .intro-logo,
  .intro-brand-flat-story .intro-logo {
    width: min(100%, 298px);
    max-width: 298px;
  }

  .intro-message-flat-home {
    width: min(100%, 292px);
    max-width: 292px;
    padding-right: 14px;
    font-size: 1.96rem;
  }

  .intro-message-flat-story {
    width: min(100%, 272px);
    max-width: 272px;
    gap: 32px;
    font-size: 1.82rem;
  }
}

@media (min-width: 390px) and (max-width: 430px) {
  .intro-frame-flat-home {
    gap: 92px;
    padding: 38px 22px 84px;
  }

  .intro-frame-flat-story {
    gap: 76px;
    padding: 38px 22px 74px;
  }

  .intro-brand-flat-home .intro-logo,
  .intro-brand-flat-story .intro-logo {
    width: min(100%, 318px);
    max-width: 318px;
  }

  .intro-message-flat-home {
    width: min(100%, 304px);
    max-width: 304px;
    padding-right: 14px;
    font-size: 2.08rem;
  }

  .intro-message-flat-story {
    width: min(100%, 282px);
    max-width: 282px;
    gap: 34px;
    font-size: 1.9rem;
  }
}

@media (min-width: 431px) and (max-width: 640px) {
  .intro-frame-flat-home {
    gap: 100px;
    padding: 42px 24px 92px;
  }

  .intro-frame-flat-story {
    gap: 84px;
    padding: 42px 24px 82px;
  }

  .intro-brand-flat-home .intro-logo,
  .intro-brand-flat-story .intro-logo {
    width: min(100%, 332px);
    max-width: 332px;
  }

  .intro-message-flat-home {
    width: min(100%, 320px);
    max-width: 320px;
    padding-right: 16px;
    font-size: 2.18rem;
  }

  .intro-message-flat-story {
    width: min(100%, 294px);
    max-width: 294px;
    gap: 36px;
    font-size: 1.98rem;
  }
}

@media (max-height: 760px) and (max-width: 430px) {
  .intro-frame-flat-home {
    gap: 70px;
    padding-top: 24px;
    padding-bottom: 66px;
  }

  .intro-frame-flat-story {
    gap: 58px;
    padding-top: 24px;
    padding-bottom: 56px;
  }

  .intro-brand-flat-home .intro-logo,
  .intro-brand-flat-story .intro-logo {
    width: min(100%, 300px);
    max-width: 300px;
  }

  .intro-message-flat-home {
    width: min(100%, 292px);
    max-width: 292px;
    font-size: 1.96rem;
  }

  .intro-message-flat-story {
    width: min(100%, 274px);
    max-width: 274px;
    gap: 28px;
    font-size: 1.8rem;
  }
}
