@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: #f1ede5;
  --paper-deep: #e6ded2;
  --surface: #fdfaf5;
  --surface-strong: #ffffff;
  --plum: #263d35;
  --plum-deep: #172b25;
  --ink: #252823;
  --muted: #6f7068;
  --mist: #71877c;
  --mist-dark: #445f53;
  --mist-pale: #dfe7e1;
  --coral: #b87355;
  --coral-pale: #ead7ca;
  --line: #d6cec2;
  --focus: #537c69;
  --danger: #9a4d49;
  --shadow-soft: 0 18px 48px rgba(28, 43, 37, 0.09);
  --radius-lg: 28px;
  --radius-md: 20px;
  --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;
  }
}

/* Editorial website redesign — warm ivory, forest green, cinematic role photography. */

body {
  background:
    radial-gradient(circle at 8% 18%, rgba(184, 115, 85, 0.08), transparent 28rem),
    radial-gradient(circle at 94% 45%, rgba(69, 95, 83, 0.09), transparent 32rem),
    var(--paper);
}

:focus-visible {
  outline-color: rgba(83, 124, 105, 0.58);
}

.site-header {
  position: sticky;
  top: 0;
  min-height: 72px;
  padding: 12px clamp(20px, 4.6vw, 72px);
  border-color: rgba(23, 43, 37, 0.09);
  background: rgba(244, 240, 233, 0.92);
}

.brand {
  color: var(--plum-deep);
}

.brand strong {
  letter-spacing: 0.12em;
}

.brand small {
  color: #77766f;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: var(--plum-deep);
  box-shadow: 0 8px 22px rgba(23, 43, 37, 0.16);
}

.brand-stem,
.brand-leaf {
  position: absolute;
  display: block;
}

.brand-stem {
  left: 19px;
  bottom: 8px;
  width: 1px;
  height: 21px;
  background: #e8e2d8;
  transform: rotate(5deg);
  transform-origin: bottom;
}

.brand-leaf {
  width: 11px;
  height: 16px;
  border: 1.5px solid #e8e2d8;
  border-radius: 100% 0 100% 0;
}

.brand-leaf-one {
  top: 10px;
  left: 9px;
  transform: rotate(-27deg);
}

.brand-leaf-two {
  top: 17px;
  right: 7px;
  transform: rotate(52deg) scale(0.82);
}

.header-links a {
  color: var(--plum-deep);
}

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

.header-links .header-plan {
  border-color: var(--plum-deep);
  color: #f8f4ed;
  background: var(--plum-deep);
}

.header-links .header-plan:hover {
  color: white;
  background: #355448;
}

.home-view {
  width: 100%;
  padding: 0 0 70px;
}

.editorial-hero {
  position: relative;
  min-height: min(780px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  margin: 0 auto;
  overflow: hidden;
  color: #f7f2ea;
  background: #15241f;
}

.hero-photo,
.finale-section > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo {
  object-position: center 57%;
  transform: scale(1.005);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 19, 16, 0.91) 0%, rgba(14, 24, 20, 0.76) 34%, rgba(14, 24, 20, 0.22) 67%, rgba(14, 24, 20, 0.3) 100%),
    linear-gradient(180deg, rgba(13, 22, 18, 0.2), rgba(13, 22, 18, 0.42));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(650px, calc(100% - 48px));
  max-width: none;
  margin: 0 0 118px clamp(24px, 8vw, 132px);
  text-align: left;
}

.hero-kicker {
  margin: 0 0 24px;
  color: rgba(247, 242, 234, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.hero-display {
  margin: 0;
  font-family: "GenSen Rounded TW", "Noto Sans TC", "PingFang TC", sans-serif;
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.02;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

.hero-copy h1 {
  width: fit-content;
  margin: 30px 0 0;
  padding-top: 21px;
  border-top: 1px solid rgba(247, 242, 234, 0.44);
  color: #f7f2ea;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.hero-subtitle {
  max-width: 530px;
  margin: 17px 0 0;
  color: rgba(247, 242, 234, 0.74);
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions button,
.finale-copy button,
.dark-section-cta {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.hero-primary {
  border: 1px solid #f4eee5;
  color: var(--plum-deep);
  background: #f4eee5;
}

.hero-secondary {
  border: 1px solid rgba(247, 242, 234, 0.45);
  color: #f7f2ea;
  background: rgba(247, 242, 234, 0.06);
  backdrop-filter: blur(8px);
}

.hero-actions button:hover {
  transform: translateY(-2px);
}

.hero-side-note {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 7vw, 112px);
  top: 14%;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: rgba(247, 242, 234, 0.75);
}

.hero-side-note span {
  padding-top: 3px;
  color: rgba(247, 242, 234, 0.45);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.hero-side-note p {
  margin: 0;
  padding-left: 15px;
  border-left: 1px solid rgba(247, 242, 234, 0.34);
  font-size: 13px;
  letter-spacing: 0.14em;
  line-height: 1.8;
}

.hero-role-strip {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(76px, 1fr));
  padding: 14px clamp(16px, 5vw, 82px) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(247, 242, 234, 0.23);
  background: rgba(10, 19, 15, 0.56);
  backdrop-filter: blur(16px);
}

.hero-role-strip button {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  border: 0;
  border-right: 1px solid rgba(247, 242, 234, 0.13);
  color: rgba(247, 242, 234, 0.84);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.hero-role-strip button:last-child {
  border-right: 0;
}

.hero-role-strip button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.hero-role-strip img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.18));
}

.editorial-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(88px, 10vw, 140px) 0 0;
  scroll-margin-top: 88px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 36px;
}

.section-heading .eyebrow,
.demo-copy .eyebrow,
.finale-copy .eyebrow {
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.section-heading h2 {
  margin: 0;
  color: var(--plum-deep);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

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

.scenario-card {
  min-height: 0;
  display: block;
  padding: 0;
  border: 1px solid rgba(23, 43, 37, 0.12);
  border-radius: 16px;
  background: rgba(250, 247, 241, 0.88);
  box-shadow: none;
}

.scenario-card::before {
  display: none;
}

.scenario-card:hover {
  border-color: rgba(23, 43, 37, 0.34);
  background: #fffdf9;
  box-shadow: 0 22px 48px rgba(28, 43, 37, 0.13);
}

.scenario-card.custom-card {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) 1.28fr;
  background: rgba(250, 247, 241, 0.88);
}

.scenario-photo-wrap {
  position: relative;
  height: 220px;
  display: block;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background: #23352f;
}

.custom-card .scenario-photo-wrap {
  height: 190px;
  border-radius: 15px 0 0 15px;
}

.scenario-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.scenario-card:hover .scenario-photo {
  transform: scale(1.035);
}

.scenario-photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 20, 16, 0.76) 100%);
}

.scenario-icon-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(250, 247, 241, 0.85);
  box-shadow: 0 8px 20px rgba(10, 18, 15, 0.16);
  backdrop-filter: blur(8px);
}

.card-symbol {
  width: 29px;
  height: 29px;
  margin: 0;
  object-position: center;
  filter: none;
}

.scenario-card .card-label {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  margin: 0;
  color: white;
  font-size: 24px;
  letter-spacing: 0.05em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.scenario-card-copy {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.custom-card .scenario-card-copy {
  min-height: 190px;
  justify-content: center;
  padding: 28px 34px;
}

.scenario-card q,
.scenario-card .card-description {
  color: #676861;
  font-size: 14px;
  line-height: 1.75;
}

.card-arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  color: var(--plum);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.compact-heading {
  margin-bottom: 28px;
}

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

.practice-row {
  min-height: 94px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 19px;
  border: 1px solid rgba(23, 43, 37, 0.12);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(250, 247, 241, 0.88);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.practice-row:hover {
  transform: translateX(4px);
  border-color: rgba(23, 43, 37, 0.34);
  box-shadow: 0 12px 26px rgba(28, 43, 37, 0.08);
}

.practice-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #f8f4ed;
  background: #35584b;
  font-size: 21px;
}

.practice-icon-hand {
  background: #af702c;
}

.practice-icon-heart {
  background: #b65f5d;
}

.practice-icon-break {
  background: #765691;
}

.practice-icon-chat {
  background: #557ea3;
}

.practice-icon-shield {
  background: #47745d;
}

.practice-row strong,
.practice-row small {
  display: block;
}

.practice-row strong {
  color: var(--plum-deep);
  font-size: 17px;
}

.practice-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.practice-arrow {
  color: var(--plum);
  font-size: 21px;
}

.demo-section {
  width: min(1280px, calc(100% - 48px));
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
  gap: clamp(42px, 7vw, 92px);
  margin: clamp(90px, 11vw, 150px) auto 0;
  padding: clamp(40px, 6vw, 84px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(118, 147, 131, 0.21), transparent 24rem),
    #172b25;
  box-shadow: 0 28px 70px rgba(23, 43, 37, 0.16);
}

.demo-copy h2 {
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.demo-copy p {
  color: rgba(246, 242, 234, 0.66);
  font-size: 14px;
}

.dark-section-cta {
  margin-top: 26px;
  border: 1px solid rgba(247, 242, 234, 0.35);
  color: #f8f4ed;
  background: transparent;
}

.dark-section-cta:hover {
  border-color: #f8f4ed;
  background: rgba(255, 255, 255, 0.07);
}

.demo-chat {
  padding: 16px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  background: #ece9e4;
  box-shadow: 0 26px 70px rgba(4, 12, 9, 0.32);
}

.demo-chat-head {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 6px 4px 18px;
  border-bottom: 1px solid rgba(23, 43, 37, 0.09);
}

.demo-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f8f4ed;
  background: var(--plum-deep);
  font-weight: 800;
}

.demo-chat-head strong,
.demo-chat-head small {
  display: block;
}

.demo-chat-head strong {
  color: var(--plum-deep);
  font-size: 14px;
}

.demo-chat-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.demo-menu {
  color: var(--muted);
  letter-spacing: 0.14em;
}

.demo-message {
  max-width: 82%;
  margin-top: 20px;
  margin-bottom: 0;
}

.demo-message span {
  color: #73746e;
}

.demo-message p {
  color: var(--plum-deep);
  background: #cbd5c5;
}

.demo-message.other p {
  background: #faf8f3;
}

.demo-refresh {
  top: 29px;
  color: var(--plum);
}

.demo-hint {
  margin: 18px 4px 0;
  padding-top: 15px;
  border-top: 1px solid rgba(23, 43, 37, 0.08);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.tone-section {
  color: #f6f1e8;
}

.tone-section::before {
  position: absolute;
  z-index: -1;
  right: 0;
  left: 0;
  height: 720px;
  margin-top: -72px;
  content: "";
  background: #1a3029;
}

.tone-section {
  position: relative;
  z-index: 0;
  width: min(1280px, calc(100% - 48px));
  margin-top: clamp(90px, 11vw, 150px);
  padding: clamp(48px, 6vw, 76px);
  border-radius: 24px;
  background: #1a3029;
}

.tone-heading {
  align-items: start;
}

.tone-section::before {
  display: none;
}

.tone-heading h2 {
  color: #f7f1e8;
}

.tone-prompt {
  padding: 17px 18px;
  border: 1px solid rgba(246, 241, 232, 0.18);
  border-radius: 14px;
  background: rgba(246, 241, 232, 0.08);
}

.tone-prompt span,
.tone-prompt q {
  display: block;
}

.tone-prompt span {
  margin-bottom: 7px;
  color: rgba(246, 241, 232, 0.55);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.tone-prompt q {
  color: #f7f1e8;
  font-size: 14px;
  line-height: 1.65;
}

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

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

.tone-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid rgba(246, 241, 232, 0.16);
  border-radius: 16px;
  color: #f6f1e8;
  background: rgba(246, 241, 232, 0.08);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tone-card:hover,
.tone-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(246, 241, 232, 0.5);
  background: rgba(246, 241, 232, 0.14);
}

.tone-symbol {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(246, 241, 232, 0.22);
  border-radius: 50%;
  color: #e3c08a;
  font-size: 27px;
}

.tone-card strong {
  font-size: 21px;
}

.tone-card small {
  margin-top: 7px;
  color: rgba(246, 241, 232, 0.57);
}

.tone-card q {
  margin-top: auto;
  padding-top: 28px;
  color: rgba(246, 241, 232, 0.85);
  font-size: 13px;
  line-height: 1.75;
}

.strength-control {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 17px 20px;
  border: 1px solid rgba(246, 241, 232, 0.14);
  border-radius: 14px;
  color: rgba(246, 241, 232, 0.54);
  background: rgba(246, 241, 232, 0.06);
  font-size: 11px;
}

.strength-control > span:first-child {
  margin-right: 10px;
  color: #f6f1e8;
  font-weight: 800;
}

.strength-track {
  position: relative;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #81a174 0 58%, rgba(246, 241, 232, 0.2) 58%);
}

.strength-track i {
  position: absolute;
  top: 50%;
  left: 58%;
  width: 14px;
  height: 14px;
  border: 3px solid #1a3029;
  border-radius: 50%;
  background: #f6f1e8;
  transform: translate(-50%, -50%);
}

.memory-section {
  padding-top: 162px;
}

.memory-board {
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(23, 43, 37, 0.14);
  border-radius: 18px;
  background: rgba(250, 247, 241, 0.92);
  box-shadow: 0 24px 60px rgba(28, 43, 37, 0.11);
}

.memory-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

.memory-tabs span {
  padding: 17px;
  color: var(--muted);
  text-align: center;
}

.memory-tabs .is-active {
  color: var(--plum-deep);
  background: #fffdf9;
  font-weight: 800;
}

.memory-list {
  padding: 8px 20px 20px;
}

.memory-list button {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid rgba(23, 43, 37, 0.09);
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.memory-list button:last-child {
  border-bottom: 0;
}

.memory-list button:hover {
  padding-right: 10px;
  padding-left: 10px;
  border-radius: 12px;
  background: rgba(38, 61, 53, 0.05);
}

.memory-list strong,
.memory-list small {
  display: block;
}

.memory-list strong {
  color: var(--plum-deep);
  font-size: 14px;
}

.memory-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.memory-list button > span:last-child {
  color: #c58c3f;
}

.memory-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f8f4ed;
  background: #35584b;
  font-size: 12px;
  font-weight: 800;
}

.memory-colleague {
  background: #557ea3;
}

.memory-partner {
  background: #a95f61;
}

.memory-family {
  background: #8a674e;
}

.finale-section {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  margin-top: clamp(100px, 12vw, 170px);
  overflow: hidden;
  color: #f8f3eb;
  background: #172b25;
}

.finale-section > img {
  object-position: center;
}

.finale-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 26, 21, 0.87), rgba(15, 26, 21, 0.25) 65%),
    linear-gradient(180deg, transparent 60%, rgba(15, 26, 21, 0.75));
}

.finale-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 76px;
}

.finale-copy h2 {
  margin: 0;
  color: #f8f3eb;
  font-size: clamp(48px, 6vw, 78px);
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.finale-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 20px 0 0;
  color: rgba(248, 243, 235, 0.72);
  line-height: 1.8;
}

.finale-copy button {
  margin-top: 28px;
  border: 1px solid #f8f3eb;
  color: var(--plum-deep);
  background: #f8f3eb;
}

.finale-stats {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 7vw, 112px);
  bottom: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  overflow: hidden;
  border: 1px solid rgba(248, 243, 235, 0.3);
  border-radius: 14px;
  background: rgba(20, 34, 28, 0.56);
  backdrop-filter: blur(12px);
}

.finale-stats span {
  min-width: 125px;
  padding: 17px 19px;
  border-right: 1px solid rgba(248, 243, 235, 0.2);
  text-align: center;
}

.finale-stats span:last-child {
  border-right: 0;
}

.finale-stats strong,
.finale-stats small {
  display: block;
}

.finale-stats strong {
  font-size: 21px;
}

.finale-stats small {
  margin-top: 6px;
  color: rgba(248, 243, 235, 0.61);
  font-size: 10px;
}

.possibility-note {
  max-width: 720px;
  margin: 54px auto 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  text-align: center;
}

.possibility-note strong {
  margin-right: 4px;
  color: var(--plum-deep);
}

.site-footer {
  border-color: rgba(247, 242, 234, 0.12);
  color: rgba(247, 242, 234, 0.72);
  background: #12251f;
}

.footer-brand,
.site-footer nav a:hover {
  color: #f7f2ea;
}

.site-footer p,
.site-footer nav a {
  color: rgba(247, 242, 234, 0.58);
}

/* Keep conversation and custom flows visually aligned with the new website. */

.flow-view {
  width: min(880px, calc(100% - 40px));
  padding-top: 48px;
}

.flow-topbar h1,
.custom-intro h2,
.sheet-head h2 {
  color: var(--plum-deep);
}

.chat-panel,
.custom-panel {
  border-color: rgba(23, 43, 37, 0.13);
  background: rgba(250, 247, 241, 0.94);
  box-shadow: 0 24px 62px rgba(28, 43, 37, 0.1);
}

.message-bubble {
  color: #f8f4ed;
  background: var(--mist-dark);
}

.message.other .message-bubble {
  background: #e7e3da;
}

.composer {
  border-color: rgba(23, 43, 37, 0.1);
  background: rgba(250, 247, 241, 0.96);
}

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

.primary-button:hover {
  background: #355448;
}

.secondary-button {
  border-color: rgba(23, 43, 37, 0.3);
  color: var(--plum-deep);
}

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

.sheet-backdrop {
  background: rgba(12, 24, 19, 0.48);
}

@media (max-width: 980px) {
  .hero-copy {
    margin-left: 48px;
  }

  .hero-side-note {
    display: none;
  }

  .hero-role-strip {
    grid-template-columns: repeat(7, minmax(64px, 1fr));
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-role-strip button {
    gap: 5px;
    padding: 7px;
  }

  .hero-role-strip img {
    width: 31px;
    height: 31px;
  }

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

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

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

  .tone-section::before {
    height: 780px;
  }

  .finale-stats {
    right: 28px;
    left: 28px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
  }

  .home-view {
    width: 100%;
    padding-top: 0;
  }

  .editorial-hero {
    min-height: 720px;
    align-items: flex-start;
  }

  .hero-photo {
    object-position: 57% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(10, 18, 15, 0.34) 0%, rgba(10, 18, 15, 0.82) 66%, rgba(10, 18, 15, 0.94) 100%),
      linear-gradient(90deg, rgba(10, 18, 15, 0.55), transparent);
  }

  .hero-copy {
    width: calc(100% - 36px);
    margin: 84px 18px 150px;
  }

  .hero-kicker {
    margin-bottom: 18px;
    font-size: 9px;
  }

  .hero-display {
    font-size: clamp(56px, 18vw, 76px);
  }

  .hero-copy h1 {
    margin-top: 24px;
    font-size: 17px;
  }

  .hero-subtitle {
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .hero-role-strip {
    grid-template-columns: repeat(7, minmax(66px, 1fr));
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
  }

  .hero-role-strip button {
    min-height: 62px;
    flex-direction: column;
    scroll-snap-align: start;
    font-size: 10px;
  }

  .hero-role-strip img {
    width: 27px;
    height: 27px;
  }

  .editorial-section {
    width: min(100% - 28px, 620px);
    padding-top: 82px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 25px;
  }

  .section-heading h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

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

  .scenario-card,
  .scenario-card.custom-card {
    grid-column: auto;
    display: block;
    min-height: 0;
    padding: 0;
  }

  .scenario-photo-wrap,
  .custom-card .scenario-photo-wrap {
    height: 210px;
    border-radius: 15px 15px 0 0;
  }

  .scenario-card-copy,
  .custom-card .scenario-card-copy {
    min-height: 130px;
    padding: 20px;
  }

  .practice-list {
    grid-template-columns: 1fr;
  }

  .practice-row {
    min-height: 84px;
    grid-template-columns: 48px 1fr auto;
    padding: 12px 14px;
  }

  .practice-icon {
    width: 48px;
    height: 48px;
  }

  .demo-section {
    width: 100%;
    margin-top: 88px;
    padding: 62px 18px;
    border-radius: 0;
  }

  .demo-copy h2 {
    font-size: 38px;
  }

  .demo-chat {
    padding: 14px;
  }

  .tone-section {
    width: 100%;
    margin-top: 88px;
    padding: 62px 18px;
    border-radius: 0;
  }

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

  .tone-card {
    min-height: 230px;
  }

  .strength-control {
    grid-template-columns: 1fr auto;
  }

  .strength-control > span:first-child {
    grid-column: 1 / -1;
  }

  .strength-track {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .strength-control > span:last-child {
    grid-column: 2;
    grid-row: 2;
  }

  .memory-section {
    padding-top: 138px;
  }

  .memory-list {
    padding-right: 12px;
    padding-left: 12px;
  }

  .finale-section {
    min-height: 720px;
    align-items: flex-start;
  }

  .finale-section > img {
    object-position: 64% center;
  }

  .finale-overlay {
    background: linear-gradient(180deg, rgba(15, 26, 21, 0.48), rgba(15, 26, 21, 0.89) 72%);
  }

  .finale-copy {
    width: calc(100% - 36px);
    padding-top: 70px;
  }

  .finale-copy h2 {
    font-size: 46px;
  }

  .finale-stats {
    right: 18px;
    bottom: 28px;
    left: 18px;
  }

  .finale-stats span {
    min-width: 0;
    padding: 14px 7px;
  }

  .finale-stats strong {
    font-size: 16px;
  }

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

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

@media (max-width: 390px) {
  .hero-display {
    font-size: 56px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .scenario-card,
  .scenario-card.custom-card {
    min-height: 0;
  }

  .scenario-card.custom-card {
    min-height: 0;
  }

  .finale-copy h2 {
    font-size: 40px;
  }
}
