:root {
  --paper: #f6f1e6;
  --paper-deep: #ece3d1;
  --ink: #17221f;
  --ink-soft: #47534e;
  --coral: #e96555;
  --teal: #2f7468;
  --teal-soft: #d7e8df;
  --yellow: #f1c75b;
  --white: #fffaf0;
  --line: rgba(23, 34, 31, 0.16);
  --shadow: 0 24px 80px rgba(34, 47, 42, 0.13);
  --radius-lg: 34px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --serif: Georgia, "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Avenir Next", "Segoe UI", "Noto Sans TC", "PingFang TC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(241, 199, 91, 0.16), transparent 30rem),
    radial-gradient(circle at 90% 40%, rgba(47, 116, 104, 0.14), transparent 32rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(20px, 5vw, 72px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.brand-mark i {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
}

.brand-mark i:nth-child(1) {
  transform: translate(0, -8px);
}

.brand-mark i:nth-child(2) {
  background: var(--teal);
  transform: translate(8px, 6px);
}

.brand-mark i:nth-child(3) {
  background: var(--yellow);
  transform: translate(-8px, 6px);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.pill-button {
  min-width: 54px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.08em;
}

main {
  min-height: calc(100vh - 170px);
}

.screen {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0 64px;
  animation: screen-in 420ms ease both;
}

.screen.narrow {
  width: min(760px, calc(100% - 40px));
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  min-height: 78vh;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.06;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(50px, 7vw, 96px);
  letter-spacing: -0.045em;
}

.hero-intro {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2.1vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

.primary-button {
  gap: 18px;
  min-height: 58px;
  padding: 0 24px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  font-weight: 700;
}

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

.secondary-button {
  min-height: 50px;
  padding: 0 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}

.text-button {
  padding: 12px 4px;
  background: transparent;
  border-bottom: 1px solid currentColor;
}

.text-button.danger {
  color: #9b3d32;
}

.icon-button {
  width: 42px;
  height: 42px;
  background: rgba(23, 34, 31, 0.06);
  border-radius: 50%;
  font-size: 20px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 0;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  list-style: none;
}

.trust-list li::before {
  margin-right: 8px;
  color: var(--teal);
  content: "●";
  font-size: 7px;
  vertical-align: 2px;
}

.sample-stack {
  position: relative;
  min-height: 540px;
  perspective: 1200px;
}

.sample-card {
  position: absolute;
  width: min(390px, 90vw);
  border: 1px solid rgba(23, 34, 31, 0.18);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.sample-main {
  z-index: 3;
  top: 46px;
  left: 5%;
  min-height: 430px;
  padding: 30px;
  background:
    linear-gradient(155deg, rgba(255, 250, 240, 0.94), rgba(217, 235, 226, 0.94)),
    var(--white);
  transform: rotate(-3deg);
}

.sample-main > p:first-of-type {
  margin: 52px 0 2px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.sample-main h2 {
  margin: 0;
  font-size: 46px;
}

.sample-tagline {
  max-width: 290px;
  margin: 16px 0 26px;
  color: var(--teal);
  font-weight: 600;
}

.sample-topline {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.sample-axes {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px 12px;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sample-axes i {
  position: relative;
  height: 4px;
  background: rgba(23, 34, 31, 0.12);
  border-radius: 4px;
}

.sample-axes i::after {
  position: absolute;
  top: -4px;
  left: var(--v);
  width: 12px;
  height: 12px;
  background: var(--coral);
  border-radius: 50%;
  content: "";
}

.sample-back,
.sample-note {
  min-height: 420px;
  padding: 28px;
}

.sample-back {
  top: 20px;
  right: 0;
  color: var(--white);
  background: var(--teal);
  transform: rotate(9deg);
  opacity: 0.82;
}

.sample-note {
  z-index: 4;
  right: -16px;
  bottom: 10px;
  min-height: auto;
  padding: 22px 26px;
  background: var(--yellow);
  border-radius: 18px;
  transform: rotate(4deg);
  font-family: var(--serif);
  font-size: 18px;
}

.hero-orbit span {
  position: absolute;
  pointer-events: none;
}

.orbit {
  border: 1px solid rgba(23, 34, 31, 0.12);
  border-radius: 50%;
}

.orbit-a {
  top: -160px;
  left: -220px;
  width: 520px;
  height: 520px;
}

.orbit-b {
  right: -130px;
  bottom: -270px;
  width: 680px;
  height: 680px;
}

.orbit-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-a {
  top: 120px;
  left: 42%;
  background: var(--coral);
}

.dot-b {
  right: 3%;
  top: 32%;
  background: var(--yellow);
}

.dot-c {
  bottom: 10%;
  left: 4%;
  background: var(--teal);
}

.how-section {
  grid-column: 1 / -1;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.how-section h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.step-grid article {
  min-height: 230px;
  padding: 26px;
  background: rgba(255, 250, 240, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.step-grid article > span {
  color: var(--coral);
  font-family: var(--serif);
  font-size: 32px;
}

.step-grid h3 {
  margin: 34px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
}

.step-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.privacy-panel {
  grid-column: 1 / -1;
  padding: 24px 0 6px;
  border-top: 1px solid var(--line);
}

.privacy-panel summary {
  cursor: pointer;
  font-weight: 700;
}

.privacy-panel p {
  max-width: 850px;
  color: var(--ink-soft);
}

.invite-letter {
  padding: clamp(30px, 7vw, 66px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.invite-letter h1,
.result-header h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 74px);
  letter-spacing: -0.035em;
}

.lead {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.consent-grid {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.consent-grid article {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border-radius: var(--radius-sm);
}

.consent-grid span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--teal-soft);
  border-radius: 50%;
  font-weight: 800;
}

.consent-grid p {
  margin: 1px 0 0;
}

.quiz-screen {
  padding-top: 56px;
}

.quiz-meta {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.progress-track {
  height: 5px;
  margin: 18px 0 42px;
  overflow: hidden;
  background: rgba(23, 34, 31, 0.1);
  border-radius: 999px;
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
  border-radius: inherit;
  transition: width 260ms ease;
}

.question-card {
  min-height: 470px;
  padding: clamp(28px, 6vw, 58px);
  background: rgba(255, 250, 240, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.question-number {
  margin: 0;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.question-card h1 {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.18;
}

.question-hint,
.microcopy {
  color: var(--ink-soft);
  font-size: 13px;
}

.question-hint {
  margin-top: 22px;
}

.answer-options {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.answer-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
}

.answer-options button:hover,
.answer-options button:focus-visible,
.answer-options button.is-selected {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
  outline: 0;
}

.answer-options button span:last-child {
  opacity: 0.46;
}

.result-screen,
.pair-screen {
  width: min(980px, calc(100% - 40px));
}

.result-header {
  max-width: 820px;
  margin-bottom: 38px;
}

.persona-panel {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  color: var(--white);
  background:
    radial-gradient(circle at 10% 20%, rgba(241, 199, 91, 0.28), transparent 18rem),
    var(--teal);
  border-radius: var(--radius-lg);
}

.persona-emblem {
  position: relative;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255, 250, 240, 0.5);
  border-radius: 50%;
}

.persona-emblem::before,
.persona-emblem::after {
  position: absolute;
  border: 1px solid rgba(255, 250, 240, 0.45);
  border-radius: 50%;
  content: "";
}

.persona-emblem::before {
  inset: 18px;
}

.persona-emblem::after {
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  background: var(--yellow);
  border: 0;
  transform: translate(-50%, -50%);
}

.panel-label {
  margin: 0 0 8px;
  color: color-mix(in srgb, var(--teal) 75%, var(--ink));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.persona-panel .panel-label {
  color: var(--yellow);
}

.persona-panel p:last-child {
  max-width: 680px;
  margin: 0;
  font-size: 18px;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}

.insight-grid article,
.free-reading article {
  padding: 26px;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.insight-grid span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.insight-grid p,
.free-reading p {
  margin: 14px 0 0;
}

.axis-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 54px;
}

.axis-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  background: rgba(255, 250, 240, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.axis-row span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.axis-row span:last-child {
  text-align: right;
}

.axis-line {
  position: relative;
  height: 7px;
  background: linear-gradient(90deg, var(--coral) 0 50%, var(--teal) 50% 100%);
  border-radius: 999px;
  opacity: 0.65;
}

.axis-line i {
  position: absolute;
  top: 50%;
  left: var(--v);
  width: 17px;
  height: 17px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.atlas-history {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
  margin: 0 0 24px;
  padding: clamp(26px, 5vw, 46px);
  background:
    radial-gradient(circle at 100% 0, rgba(241, 199, 91, 0.28), transparent 16rem),
    rgba(255, 250, 240, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.atlas-history h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 46px);
}

.atlas-history > div > p:last-child {
  color: var(--ink-soft);
}

.atlas-list {
  display: grid;
  gap: 10px;
}

.atlas-entry {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.atlas-entry-copy {
  min-width: 0;
}

.atlas-entry-copy strong,
.atlas-entry-copy span {
  display: block;
}

.atlas-entry-copy strong {
  font-family: var(--serif);
  font-size: 20px;
}

.atlas-entry-copy span {
  color: var(--ink-soft);
  font-size: 12px;
}

.atlas-entry button {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.atlas-entry button[data-action="delete"] {
  color: #9b3d32;
}

.invite-builder {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(28px, 6vw, 54px);
  background: var(--yellow);
  border-radius: var(--radius-lg);
}

.invite-builder h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 48px);
}

.invite-builder p {
  color: rgba(23, 34, 31, 0.74);
}

#invite-form {
  display: grid;
  gap: 10px;
  align-content: start;
}

label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(23, 34, 31, 0.2);
  border-radius: 14px;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--coral) 48%, transparent);
  outline-offset: 2px;
}

#invite-form .primary-button {
  margin-top: 8px;
}

.invite-output {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 34, 31, 0.18);
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.pair-personas {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin: 30px 0;
}

.pair-personas article {
  display: grid;
  gap: 7px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.pair-personas span {
  color: var(--ink-soft);
  font-size: 13px;
}

.pair-personas strong {
  font-family: var(--serif);
  font-size: clamp(25px, 4vw, 38px);
}

.pair-symbol {
  color: var(--coral);
  font-family: var(--serif);
  font-size: 38px;
}

.facet-list {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.facet-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) 2fr 44px;
  gap: 18px;
  align-items: center;
}

.facet-row strong {
  min-width: 0;
  padding-right: 6px;
  font-size: 14px;
  line-height: 1.2;
}

.facet-row output {
  text-align: right;
  font-weight: 800;
}

.facet-track {
  height: 12px;
  overflow: hidden;
  background: rgba(23, 34, 31, 0.09);
  border-radius: 999px;
}

.facet-track i {
  display: block;
  width: var(--v);
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
}

.facet-track i[data-band="attention"] {
  background: var(--coral);
}

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

.feedback-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 28px;
  align-items: center;
  margin-top: 18px;
  padding: 22px 26px;
  background: var(--teal-soft);
  border-radius: var(--radius-md);
}

.feedback-card p {
  margin: 0;
}

.feedback-card .panel-label {
  margin-bottom: 6px;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-actions button {
  min-height: 42px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.feedback-actions button:disabled {
  opacity: 0.5;
  cursor: default;
}

.feedback-card > .microcopy {
  grid-column: 1 / -1;
}

.ai-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 28px;
  align-items: center;
  margin-top: 18px;
  padding: 26px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-md);
}

.ai-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
}

.ai-card .section-kicker {
  color: var(--yellow);
}

.ai-card > p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 250, 240, 0.7);
}

.ai-output {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.ai-output article {
  padding: 16px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 14px;
}

.ai-output strong {
  display: block;
  margin-bottom: 6px;
  color: var(--yellow);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.ai-output p {
  margin: 0;
  color: rgba(255, 250, 240, 0.9);
}

.paywall-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  margin-top: 34px;
  padding: clamp(28px, 5vw, 46px);
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-lg);
}

.paywall-card h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 46px);
}

.paywall-card .section-kicker {
  color: var(--yellow);
}

.paywall-card ul {
  padding-left: 20px;
  color: rgba(255, 250, 240, 0.76);
}

.paywall-card li + li {
  margin-top: 8px;
}

.price-box {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 26px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: var(--radius-md);
}

.price-box strong {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 500;
}

.price-box span {
  color: rgba(255, 250, 240, 0.66);
  font-size: 13px;
}

.price-box .primary-button {
  margin-top: 12px;
  color: var(--ink);
  background: var(--yellow);
}

.disclaimer {
  padding: 22px;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 60px auto 0;
  padding: 26px 0 40px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: var(--ink-soft);
}

.toast {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .landing {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sample-stack {
    width: min(500px, 100%);
    min-height: 500px;
    margin: 0 auto;
  }

  .step-grid,
  .free-reading {
    grid-template-columns: 1fr;
  }

  .step-grid article {
    min-height: 0;
  }

  .invite-builder,
  .paywall-card,
  .atlas-history,
  .feedback-card,
  .ai-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand-copy small {
    display: none;
  }

  .screen,
  .screen.narrow,
  .result-screen,
  .pair-screen {
    width: min(100% - 28px, 980px);
    padding-top: 34px;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 15vw, 70px);
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions > * {
    width: 100%;
  }

  .copy-row {
    grid-template-columns: 1fr 1fr;
  }

  .copy-row input {
    grid-column: 1 / -1;
  }

  .sample-stack {
    min-height: 430px;
  }

  .sample-main {
    left: 0;
    width: calc(100% - 34px);
    padding: 24px;
  }

  .sample-main h2 {
    font-size: 38px;
  }

  .sample-note {
    right: 0;
  }

  .question-card {
    min-height: 500px;
    padding: 28px 20px;
  }

  .quiz-meta {
    grid-template-columns: 44px 1fr;
  }

  #quiz-section {
    grid-column: 1 / -1;
    padding-left: 4px;
  }

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

  .persona-emblem {
    width: 92px;
    height: 92px;
  }

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

  .axis-row {
    grid-template-columns: 62px 1fr 62px;
    gap: 10px;
    padding: 16px 12px;
  }

  .axis-row span {
    font-size: 10px;
  }

  .invite-builder {
    padding: 26px 20px;
  }

  .atlas-history {
    padding: 24px 18px;
  }

  .atlas-entry {
    grid-template-columns: 1fr auto;
  }

  .atlas-entry button[data-action="delete"] {
    grid-column: 2;
  }

  .pair-personas {
    grid-template-columns: 1fr;
  }

  .pair-symbol {
    text-align: center;
  }

  .facet-row {
    grid-template-columns: 108px 1fr 34px;
    gap: 10px;
  }

  .facet-row strong {
    font-size: 13px;
  }

  .free-reading {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
