@font-face {
  font-family: "Faktum";
  src:
    local("Faktum Light"),
    local("Faktum-Light"),
    url("./assets/fonts/Faktum-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Faktum";
  src:
    local("Faktum Regular"),
    local("Faktum-Regular"),
    url("./assets/fonts/Faktum-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Faktum";
  src:
    local("Faktum Medium"),
    local("Faktum-Medium"),
    url("./assets/fonts/Faktum-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Faktum";
  src:
    local("Faktum SemiBold"),
    local("Faktum-SemiBold"),
    url("./assets/fonts/Faktum-SemiBold.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --brand: #ed887d;
  --brand-dark: #d5756b;
  --ink: #282727;
  --ink-soft: #4f4b4b;
  --white: #ffffff;
  --canvas: #f6f0eb;
  --panel: #fffdfb;
  --panel-soft: #fdf7f4;
  --line: rgba(40, 39, 39, 0.12);
  --line-strong: rgba(40, 39, 39, 0.18);
  --brand-soft: rgba(237, 136, 125, 0.12);
  --hero-line: rgba(255, 255, 255, 0.1);
  --hero-card: rgba(255, 255, 255, 0.05);
  --shadow: 0 26px 80px rgba(40, 39, 39, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-display: "Faktum", "Public Sans", "Helvetica Neue", sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", sans-serif;
}

html[lang="ja"] {
  --font-display: var(--font-jp);
  --font-body: var(--font-jp);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(237, 136, 125, 0.12), transparent 30%),
    linear-gradient(180deg, #f8f3ef 0%, #f4ede7 100%);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1320px, calc(100% - 40px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 24px;
}

.page-shell-single {
  width: min(960px, calc(100% - 32px));
  grid-template-columns: 1fr;
}

.hero-panel,
.app-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  min-height: 780px;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 18% 18%, rgba(237, 136, 125, 0.18), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(237, 136, 125, 0.08), transparent 24%),
    linear-gradient(135deg, #020202 0%, #111010 52%, #191717 100%);
  color: var(--white);
}

.single-panel {
  min-height: calc(100vh - 48px);
  align-items: stretch;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-panel::before {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.03), transparent 34%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.025), transparent 24%);
}

.hero-panel::after {
  inset: auto 32px 32px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 136, 125, 0.14), transparent 68%);
}

.hero-content,
.hero-notes,
.screen,
.section-heading,
.progress-wrap,
.info-card,
.result-card,
.complementary-card,
.summary-card,
.score-card,
.form-field {
  position: relative;
  z-index: 1;
}

.hero-language-switch {
  display: block;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.hero-content {
  display: grid;
  gap: 16px;
}

.hero-content-compact {
  gap: 0;
  width: 100%;
  padding-right: 96px;
  margin: 0;
}

.single-panel-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  margin-top: 18px;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.brand-lockup {
  justify-self: start;
  width: clamp(138px, 12.65vw, 170px);
  margin-bottom: 12px;
}

.brand-logo {
  display: block;
  width: 75%;
  height: auto;
}

.eyebrow {
  margin: 0;
  max-width: 31rem;
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.15vw, 1.16rem);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.78);
}

.hero-panel h1 {
  margin: 0;
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.55vw, 4.05rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.038em;
  color: var(--white);
}

.hero-copy {
  margin: 0;
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.82);
}

.hero-divider {
  position: relative;
  z-index: 1;
  width: 128px;
  height: 1px;
  margin: 24px 0 24px;
  background: linear-gradient(90deg, rgba(237, 136, 125, 0.75), transparent);
}

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

.note-card {
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--hero-line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    var(--hero-card);
  backdrop-filter: blur(14px);
}

.section-label,
.option-code,
.field-label {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label {
  font-size: 0.76rem;
}

.app-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.note-kicker {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.note-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.note-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
}

.app-panel {
  padding: 30px;
  border: 1px solid rgba(40, 39, 39, 0.06);
  background:
    radial-gradient(circle at top right, rgba(237, 136, 125, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(253, 247, 244, 0.98));
}

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

.app-header-on-dark {
  margin-bottom: 0;
}

.app-heading {
  display: grid;
  gap: 8px;
}

.app-kicker {
  color: var(--brand);
}

.section-label {
  color: var(--brand-dark);
}

.question-title,
.result-title,
.section-heading h3,
.result-card strong,
.complementary-card strong,
.summary-card strong,
.score-card strong,
.option-button strong {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
}

.app-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.44rem, 1.8vw, 1.78rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.app-header-on-dark h2 {
  color: var(--white);
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-header-on-dark .app-kicker {
  color: rgba(237, 136, 125, 0.92);
}

.app-header-on-dark .ghost-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.app-header-on-dark .ghost-button:hover,
.app-header-on-dark .ghost-button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(40, 39, 39, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.lang-button {
  min-width: 42px;
  min-height: 36px;
  padding: 8px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(237, 136, 125, 0.26);
}

.lang-button:hover,
.lang-button:focus-visible {
  outline: none;
  background: rgba(237, 136, 125, 0.12);
}

.hero-panel .language-switch {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-panel .lang-button {
  color: var(--white);
}

.hero-panel .lang-button:hover,
.hero-panel .lang-button:focus-visible {
  background: rgba(237, 136, 125, 0.22);
}

.hero-panel .lang-button.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

html[lang="ja"] .hero-panel h1 {
  max-width: 12ch;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

html[lang="ja"] .section-label,
html[lang="ja"] .app-kicker,
html[lang="ja"] .note-kicker,
html[lang="ja"] .field-label,
html[lang="ja"] .option-code {
  letter-spacing: 0.06em;
}

.question-title,
.result-title,
.section-heading h3,
.option-button strong {
  margin: 0;
}

.card {
  min-height: 0;
  padding: 28px;
  border: 1px solid rgba(40, 39, 39, 0.08);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.card-on-dark {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(253, 247, 244, 0.98));
}

.screen {
  display: grid;
  gap: 24px;
  max-width: 100%;
}

.section-heading {
  display: grid;
  gap: 8px;
}

.section-heading h3 {
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.helper-text,
.question-subtitle,
.result-copy,
.muted,
.summary-question,
.progress-meta,
.feedback-message,
.pill {
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
}

.intro-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screen-intro .section-heading {
  gap: 8px;
}

.screen-intro .section-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.screen-intro .section-heading h3 {
  font-family: var(--font-display);
  font-size: clamp(1.44rem, 1.8vw, 1.78rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.screen-intro .info-card strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.screen-registration .section-heading {
  gap: 8px;
}

.screen-registration .section-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.screen-registration .section-heading h3 {
  font-family: var(--font-display);
  font-size: clamp(1.44rem, 1.8vw, 1.78rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.screen-registration .helper-text {
  max-width: 36rem;
  font-size: 0.96rem;
  line-height: 1.65;
}

.screen-question .section-heading {
  gap: 8px;
}

.screen-question .section-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.info-card,
.result-card,
.complementary-card,
.summary-card,
.score-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.info-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(180deg, var(--panel-soft), var(--white));
}

.progress-wrap {
  display: grid;
  gap: 12px;
}

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

.progress-bar {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(40, 39, 39, 0.08);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  transition: width 220ms ease;
}

.question-title {
  font-size: clamp(1.56rem, 2.2vw, 2.1rem);
  line-height: 1.08;
}

.form-grid,
.registration-grid,
.complementary-grid,
.summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.field-label {
  color: var(--ink);
  font-size: 0.76rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  font-weight: 300;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  resize: vertical;
}

.form-field textarea {
  min-height: 132px;
}

.form-field input:hover,
.form-field input:focus-visible,
.form-field select:hover,
.form-field select:focus-visible,
.form-field textarea:hover,
.form-field textarea:focus-visible {
  outline: none;
  border-color: rgba(237, 136, 125, 0.65);
  box-shadow: 0 0 0 4px rgba(237, 136, 125, 0.14);
  background: #fffaf8;
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: rgba(190, 77, 67, 0.55);
  background: #fff7f5;
}

.field-error {
  color: #bc4d43;
  font-size: 0.92rem;
}

.options-grid,
.scores-grid {
  display: grid;
  gap: 14px;
}

.option-button {
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 102px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(253, 247, 244, 0.72));
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.option-button:hover,
.option-button:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(237, 136, 125, 0.5);
  box-shadow: 0 18px 30px rgba(40, 39, 39, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 250, 248, 1), rgba(255, 244, 241, 0.92));
}

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

.date-button.is-selected,
.slot-button.is-selected {
  border-color: rgba(237, 136, 125, 0.72);
  background:
    radial-gradient(circle at top right, rgba(237, 136, 125, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 248, 245, 1), rgba(255, 240, 235, 0.96));
  box-shadow: 0 18px 34px rgba(237, 136, 125, 0.18);
}

.option-code {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(237, 136, 125, 0.14);
  color: var(--ink);
  font-size: 0.74rem;
}

.cta-row,
.result-actions,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-button {
  border: 1px solid transparent;
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(237, 136, 125, 0.24);
}

.secondary-button {
  border: 1px solid rgba(237, 136, 125, 0.32);
  background: rgba(237, 136, 125, 0.08);
  color: var(--ink);
}

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

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(237, 136, 125, 0.16);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.hidden {
  display: none;
}

.result-hero {
  display: grid;
  gap: 16px;
}

.pill {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(237, 136, 125, 0.22);
  background: var(--brand-soft);
  color: var(--ink);
}

.result-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(237, 136, 125, 0.16), transparent 28%),
    linear-gradient(180deg, #fff8f5 0%, #ffffff 100%);
}

.complementary-box {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(237, 136, 125, 0.12), transparent 24%),
    linear-gradient(180deg, #fffaf7 0%, #ffffff 100%);
}

.complementary-box .section-heading {
  gap: 6px;
}

.result-meta-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.result-title {
  font-size: clamp(1.78rem, 2.5vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.result-category,
.complementary-category {
  margin: -2px 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--brand-dark);
}

.complementary-card,
.summary-card,
.score-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--white);
}

.complementary-card {
  align-content: start;
  gap: 10px;
  min-height: 100%;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(253, 247, 244, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

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

.score-card .score-value {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--brand);
}

.summary-item {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.summary-item:first-child,
.summary-item:nth-child(2) {
  padding-top: 0;
  border-top: none;
}

.feedback-message {
  min-height: 1.5em;
  margin: 0;
}

.feedback-message.success {
  color: #236546;
}

.feedback-message.error {
  color: #bc4d43;
}

.confirmation-box {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(237, 136, 125, 0.1), transparent 28%),
    linear-gradient(180deg, #fffaf7 0%, #ffffff 100%);
}

.summary-definition {
  display: grid;
  gap: 16px;
  margin: 0;
}

.summary-definition div {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.summary-definition div:first-child {
  padding-top: 0;
  border-top: none;
}

.summary-definition dt {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.summary-definition dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}

@media (max-width: 1180px) {
  .page-shell {
    width: min(100% - 24px, 100%);
    grid-template-columns: 1fr;
  }

  .page-shell-single {
    width: min(100% - 24px, 100%);
  }

  .hero-panel {
    min-height: 0;
  }

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

@media (max-width: 920px) {
  .hero-panel,
  .app-panel {
    padding: 24px;
  }

  .hero-content-compact {
    width: 100%;
    padding-right: 72px;
  }

  .hero-notes,
  .intro-grid,
  .form-grid,
  .date-grid,
  .slot-grid,
  .registration-grid,
  .complementary-grid,
  .summary-grid,
  .scores-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel h1 {
    max-width: 11ch;
    font-size: clamp(2.3rem, 7vw, 3.5rem);
  }

  .brand-logo {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    margin: 10px auto 18px;
    gap: 16px;
  }

  .page-shell-single {
    width: min(100% - 18px, 100%);
  }

  .hero-panel,
  .app-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .single-panel {
    min-height: calc(100vh - 28px);
  }

  .card {
    padding: 20px;
    border-radius: 24px;
  }

  .app-header {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .app-header-on-dark {
    margin-bottom: 0;
  }

  .hero-language-switch {
    top: 16px;
    right: 16px;
  }

  .app-header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .cta-row,
  .result-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .option-button {
    min-height: 86px;
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 12px, 100%);
  }

  .page-shell-single {
    width: min(100% - 12px, 100%);
  }

  .hero-panel,
  .app-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .hero-content-compact {
    width: 100%;
    padding-right: 56px;
  }

  .card {
    padding: 16px;
    border-radius: 18px;
  }

  .eyebrow,
  .note-kicker,
  .section-label,
  .app-kicker,
  .field-label,
  .option-code {
    font-size: 0.7rem;
  }

  .hero-panel h1 {
    font-size: clamp(2.08rem, 12vw, 3rem);
  }

  .hero-copy,
  .helper-text,
  .question-subtitle,
  .result-copy,
  .muted,
  .summary-question,
  .feedback-message,
  .pill {
    font-size: 0.92rem;
  }

  .app-header h2 {
    font-size: 1.62rem;
  }

  .question-title,
  .result-title {
    word-break: break-word;
  }

  .score-card .score-value {
    font-size: 1.7rem;
  }
}
