@font-face {
  font-family: "GenSen Rounded TW";
  src: url("./fonts/gensen-rounded-tw-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "GenSen Rounded TW";
  src: url("./fonts/gensen-rounded-tw-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --paper: #fbf6ed;
  --paper-deep: #f3eadc;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --plum: #583548;
  --plum-deep: #3f2635;
  --ink: #3d3939;
  --muted: #746c6a;
  --mist: #876c84;
  --mist-dark: #6f536b;
  --mist-pale: #e9e0e8;
  --coral: #d47c6b;
  --coral-pale: #f5ddd5;
  --line: #ded3c7;
  --focus: #a35162;
  --danger: #a44646;
  --shadow-soft: 0 14px 36px rgba(73, 48, 61, 0.08);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  color-scheme: light;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 3%, rgba(212, 124, 107, 0.08), transparent 23rem),
    radial-gradient(circle at 94% 8%, rgba(135, 108, 132, 0.08), transparent 22rem),
    var(--paper);
  font-family: "GenSen Rounded TW", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

:focus-visible {
  outline: 3px solid rgba(163, 81, 98, 0.44);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(88, 53, 72, 0.09);
  background: rgba(251, 246, 237, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--plum);
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "GenSen Rounded TW", "Noto Sans TC", "PingFang TC", sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: var(--plum);
  overflow: hidden;
}

.brand-bubble {
  position: absolute;
  display: block;
  width: 17px;
  height: 12px;
  border: 2px solid var(--paper);
  border-radius: 7px 7px 3px 7px;
}

.brand-bubble::after {
  position: absolute;
  bottom: -5px;
  left: 2px;
  width: 5px;
  height: 5px;
  content: "";
  border-left: 2px solid var(--paper);
  transform: skew(-24deg);
}

.brand-bubble-one {
  top: 9px;
  left: 8px;
}

.brand-bubble-two {
  right: 7px;
  bottom: 8px;
  transform: rotate(180deg);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--plum);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.header-links a:hover {
  background: rgba(88, 53, 72, 0.07);
}

.header-links .header-plan {
  border: 1px solid rgba(88, 53, 72, 0.3);
}

#app {
  flex: 1;
}

.home-view {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0 84px;
}

.hero-copy {
  max-width: 740px;
  margin: 0 auto 46px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-copy h1 {
  margin: 0;
  color: var(--plum-deep);
  font-family: "GenSen Rounded TW", "Noto Sans TC", "PingFang TC", sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-subtitle {
  margin: 22px auto 0;
  max-width: 650px;
  color: var(--ink);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

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

.scenario-card {
  position: relative;
  width: 100%;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.82);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.scenario-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: var(--card-accent, var(--mist));
  opacity: 0;
  transition: opacity 160ms ease;
}

.scenario-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 53, 72, 0.35);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.scenario-card:hover::before,
.scenario-card:focus-visible::before {
  opacity: 1;
}

.scenario-card:active {
  transform: translateY(-1px) scale(0.992);
  box-shadow: none;
}

.scenario-card:nth-child(2n) {
  --card-accent: var(--coral);
}

.scenario-card:nth-child(3n) {
  --card-accent: #9b7a5c;
}

.scenario-card.custom-card {
  grid-column: span 2;
  --card-accent: var(--plum);
  background: var(--mist-pale);
}

.scenario-card .card-label {
  margin: 18px 0 10px;
  color: var(--plum-deep);
  font-size: 22px;
  font-weight: 800;
}

.scenario-card q,
.scenario-card .card-description {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.scenario-card q::before,
.scenario-card q::after {
  content: "";
}

.card-arrow {
  margin-top: auto;
  padding-top: 18px;
  color: var(--mist-dark);
  font-size: 13px;
  font-weight: 800;
}

.card-symbol {
  width: 64px;
  height: 64px;
  display: block;
  margin: -8px 0 -4px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 12px rgba(73, 48, 61, 0.08));
}

.demo-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
  margin-top: clamp(92px, 12vw, 150px);
  padding: clamp(30px, 5vw, 58px);
  border-radius: var(--radius-lg);
  background: var(--plum);
}

.demo-copy h2 {
  margin: 0;
  color: #fffaf2;
  font-family: "GenSen Rounded TW", "Noto Sans TC", "PingFang TC", sans-serif;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.3;
}

.demo-copy p {
  margin: 18px 0 0;
  color: rgba(255, 250, 242, 0.72);
  line-height: 1.8;
}

.demo-chat {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 22px 52px rgba(35, 20, 29, 0.22);
}

.demo-message {
  max-width: 86%;
  margin-bottom: 16px;
}

.demo-message.user {
  margin-left: auto;
}

.demo-message span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.demo-message p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 15px 15px 4px 15px;
  color: var(--surface);
  background: var(--mist-dark);
  line-height: 1.65;
}

.demo-message.other {
  position: relative;
}

.demo-message.other p {
  padding-right: 46px;
  border-radius: 15px 15px 15px 4px;
  color: var(--ink);
  background: var(--paper-deep);
}

.demo-refresh {
  position: absolute;
  top: 29px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--plum);
  background: transparent;
  font-size: 20px;
}

.demo-refresh:hover {
  background: rgba(88, 53, 72, 0.08);
}

.points-section {
  margin-top: clamp(74px, 9vw, 116px);
}

.points-section h2 {
  margin: 0 0 34px;
  color: var(--plum-deep);
  font-family: "GenSen Rounded TW", "Noto Sans TC", "PingFang TC", sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  text-align: center;
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.point {
  padding: 28px;
  border-top: 1px solid var(--line);
}

.point-number {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--surface);
  background: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.point h3 {
  margin: 18px 0 8px;
  color: var(--plum-deep);
  font-size: 20px;
}

.point p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.possibility-note {
  margin: 56px auto 0;
  max-width: 760px;
  padding: 20px 24px;
  border-left: 4px solid var(--coral);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.72);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 48px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(88, 53, 72, 0.12);
  background: var(--paper-deep);
}

.footer-brand {
  color: var(--plum);
  font-family: "GenSen Rounded TW", "Noto Sans TC", "PingFang TC", sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px 24px;
}

.site-footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--plum);
  text-decoration: underline;
}

.flow-view {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 84px;
}

.flow-topbar {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  min-height: 54px;
  margin-bottom: 34px;
}

.flow-topbar h1 {
  margin: 0;
  color: var(--plum-deep);
  font-family: "GenSen Rounded TW", "Noto Sans TC", "PingFang TC", sans-serif;
  font-size: 22px;
  text-align: center;
}

.flow-topbar .preview-badge {
  justify-self: end;
}

.back-button,
.text-button {
  min-height: 44px;
  border: 0;
  color: var(--plum);
  background: transparent;
  font-weight: 800;
}

.back-button {
  justify-self: start;
  padding: 0 8px 0 0;
}

.back-button:hover,
.text-button:hover {
  text-decoration: underline;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(88, 53, 72, 0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.chat-panel,
.custom-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-soft);
}

.chat-panel {
  overflow: hidden;
}

.messages {
  min-height: 380px;
  padding: 34px clamp(20px, 5vw, 46px) 22px;
}

.message {
  position: relative;
  max-width: 82%;
  margin-bottom: 24px;
}

.message.user {
  margin-left: auto;
}

.message-speaker {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.message.user .message-speaker {
  text-align: right;
}

.message-bubble {
  margin: 0;
  padding: 15px 18px;
  border-radius: 18px 18px 5px 18px;
  color: #fffdf8;
  background: var(--mist-dark);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.message.other .message-bubble {
  padding-right: 54px;
  border-radius: 18px 18px 18px 5px;
  color: var(--ink);
  background: var(--paper-deep);
}

.refresh-button {
  position: absolute;
  top: 27px;
  right: 8px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--plum);
  background: transparent;
  font-size: 22px;
  transition: background 150ms ease, transform 150ms ease;
}

.refresh-button:hover {
  background: rgba(88, 53, 72, 0.09);
}

.refresh-button:active {
  transform: scale(0.92);
}

.refresh-button.is-spinning span {
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.typing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
}

.typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mist);
  animation: blink 1s ease-in-out infinite;
}

.typing-dots i:nth-child(2) {
  animation-delay: 140ms;
}

.typing-dots i:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes blink {
  0%, 70%, 100% { opacity: 0.25; }
  35% { opacity: 1; }
}

.conversation-tools {
  display: flex;
  justify-content: flex-start;
  padding: 0 clamp(20px, 5vw, 46px) 24px;
}

.conversation-tools .text-button {
  color: var(--muted);
  font-size: 13px;
}

.nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 clamp(20px, 5vw, 46px) 24px;
  padding: 16px 18px;
  border: 1px solid rgba(111, 83, 107, 0.22);
  border-radius: var(--radius-sm);
  background: var(--mist-pale);
}

.nudge p {
  margin: 0;
  color: var(--plum);
  font-weight: 800;
}

.secondary-button,
.primary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 150ms ease, background 150ms ease;
}

.primary-button {
  border: 1px solid var(--plum);
  color: var(--surface);
  background: var(--plum);
}

.primary-button:hover {
  background: var(--plum-deep);
}

.secondary-button {
  border: 1px solid rgba(88, 53, 72, 0.3);
  color: var(--plum);
  background: var(--surface);
}

.secondary-button:hover {
  background: rgba(88, 53, 72, 0.07);
}

.primary-button:active,
.secondary-button:active {
  transform: scale(0.98);
}

.composer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px clamp(18px, 4vw, 28px) calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.97);
  backdrop-filter: blur(14px);
}

.composer textarea,
.field textarea,
.field input,
.custom-persona-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface-strong);
}

.composer textarea {
  min-height: 52px;
  max-height: 148px;
  resize: vertical;
  padding: 13px 15px;
  line-height: 1.5;
}

.composer textarea:focus,
.field textarea:focus,
.field input:focus,
.custom-persona-input:focus {
  border-color: var(--mist);
  outline: 3px solid rgba(135, 108, 132, 0.15);
}

.composer .primary-button {
  align-self: end;
  min-width: 90px;
}

.form-error,
.refresh-error {
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.form-error {
  grid-column: 1 / -1;
  margin: -4px 2px 0;
}

.refresh-error {
  margin: 0 clamp(20px, 5vw, 46px) 18px;
}

.custom-panel {
  padding: clamp(26px, 6vw, 56px);
}

.custom-intro {
  max-width: 570px;
  margin-bottom: 34px;
}

.custom-intro h2 {
  margin: 0;
  color: var(--plum-deep);
  font-family: "GenSen Rounded TW", "Noto Sans TC", "PingFang TC", sans-serif;
  font-size: clamp(30px, 5vw, 44px);
}

.custom-intro p {
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.custom-form {
  display: grid;
  gap: 24px;
}

.field label {
  display: block;
  margin-bottom: 9px;
  color: var(--plum-deep);
  font-weight: 800;
}

.field label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.field input {
  min-height: 54px;
  padding: 0 15px;
}

.field textarea {
  min-height: 150px;
  padding: 14px 15px;
  resize: vertical;
  line-height: 1.65;
}

.custom-form .primary-button {
  justify-self: start;
  min-width: 180px;
}

.sheet-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: rgba(42, 28, 35, 0.4);
}

.persona-sheet {
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 28px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(40, 23, 32, 0.28);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.sheet-head h2 {
  margin: 0;
  color: var(--plum-deep);
  font-family: "GenSen Rounded TW", "Noto Sans TC", "PingFang TC", sans-serif;
  font-size: 26px;
}

.sheet-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.sheet-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 50%;
  color: var(--plum);
  background: rgba(88, 53, 72, 0.07);
  font-size: 24px;
}

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

.persona-option {
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface-strong);
  text-align: left;
}

.persona-option:hover,
.persona-option[aria-pressed="true"] {
  border-color: var(--mist);
  color: var(--plum);
  background: var(--mist-pale);
}

.custom-persona {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.custom-persona label {
  color: var(--plum);
  font-size: 13px;
  font-weight: 800;
}

.custom-persona-input {
  min-height: 94px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .scenario-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scenario-card.custom-card {
    grid-column: span 3;
  }

  .demo-section {
    grid-template-columns: 1fr;
  }

  .demo-copy {
    max-width: 650px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding: 11px 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .header-links a {
    min-height: 44px;
    padding: 0 10px;
    font-size: 13px;
  }

  .header-links a:first-child {
    display: none;
  }

  .home-view,
  .flow-view {
    width: min(100% - 28px, 620px);
  }

  .home-view {
    padding-top: 54px;
  }

  .hero-copy {
    margin-bottom: 34px;
    text-align: left;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 16px;
  }

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

  .scenario-card,
  .scenario-card.custom-card {
    grid-column: auto;
    min-height: 226px;
    padding: 20px;
  }

  .scenario-card.custom-card {
    grid-column: span 2;
    min-height: 188px;
  }

  .scenario-card .card-label {
    margin-top: 14px;
    font-size: 20px;
  }

  .scenario-card q,
  .scenario-card .card-description {
    font-size: 14px;
  }

  .demo-section {
    margin-right: -14px;
    margin-left: -14px;
    padding: 28px 18px;
    border-radius: 0;
  }

  .demo-chat {
    padding: 20px;
  }

  .points-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .point {
    padding: 22px 8px;
  }

  .site-footer {
    display: block;
    padding: 38px 20px;
  }

  .site-footer nav {
    justify-content: flex-start;
    margin-top: 24px;
  }

  .flow-view {
    padding-top: 20px;
  }

  .flow-topbar {
    grid-template-columns: 92px 1fr 0;
    margin-bottom: 18px;
  }

  .flow-topbar h1 {
    font-size: 19px;
  }

  .flow-topbar .preview-badge {
    display: none;
  }

  .chat-panel {
    margin-right: -14px;
    margin-left: -14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .messages {
    min-height: 350px;
    padding-top: 26px;
  }

  .message {
    max-width: 90%;
  }

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

  .nudge .secondary-button {
    width: 100%;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  .composer .primary-button {
    width: 100%;
  }

  .custom-panel {
    padding: 28px 20px;
  }

  .custom-form .primary-button {
    width: 100%;
  }

  .sheet-backdrop {
    padding: 0;
  }

  .persona-sheet {
    max-height: 86vh;
    padding: 24px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
}

@media (max-width: 390px) {
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .scenario-card,
  .scenario-card.custom-card {
    grid-column: auto;
    min-height: 202px;
  }

  .scenario-card.custom-card {
    min-height: 190px;
  }

  .persona-options {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
