:root {
  --bg: #f7f5ff;
  --bg-2: #efecfb;
  --card: rgba(255, 255, 255, 0.92);
  --card-solid: #ffffff;
  --card-muted: #faf8ff;
  --ink: #171735;
  --muted: #707296;
  --line: #e8e5f6;
  --accent: #7052f2;
  --accent-2: #8d6dff;
  --accent-soft: #f1ecff;
  --accent-soft-2: #ebe5ff;
  --success: #42b46b;
  --shadow: 0 24px 70px rgba(73, 54, 124, 0.10);
  --shadow-soft: 0 14px 34px rgba(73, 54, 124, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --header-h: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 15%, rgba(168, 146, 255, 0.14), transparent 28%),
    radial-gradient(circle at 88% 7%, rgba(177, 200, 255, 0.20), transparent 18%),
    linear-gradient(180deg, #fbfaff 0%, #f7f5ff 42%, #f4f2fc 100%);
}

a { color: inherit; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.page-shell {
  width: min(1360px, calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.site-header {
  position: static;
  z-index: 20;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding-left: 20px;
  overflow: hidden;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.session-date-chip {
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #241b52;
}

.header-button,
.primary-button,
.ghost-button {
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-button,
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 34px rgba(112, 82, 242, 0.24);
}

.header-button {
  height: 44px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
}

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

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 0;
}

.workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, 1fr);
  gap: 28px;
  align-items: stretch;
  min-width: 0;
  padding-top: 48px;
  min-height: calc(100vh - var(--header-h) - 110px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 0 8px 12px 24px;
}

.hero-copy,
.chat-card {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
}

.eyebrow,
.section-caption,
.muted-label {
  display: inline-block;
  color: #7a78ad;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 740px;
  margin: 8px 0 14px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 510px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.birth-form-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.birth-form-card.is-attention {
  border-color: rgba(112, 82, 242, 0.7);
  box-shadow: 0 0 0 5px rgba(112, 82, 242, 0.12), var(--shadow-soft);
  animation: birth-form-attention 0.45s ease;
}

.privacy-box {
  grid-column: 1 / -1;
}

.birth-input-block label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

input[type='date'] {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #ddd7f3;
  border-radius: 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type='date']:focus {
  border-color: #8b78e2;
  box-shadow: 0 0 0 4px rgba(112, 82, 242, 0.12);
}

.primary-button {
  height: 56px;
  padding: 0 28px;
  border-radius: 15px;
  font-weight: 800;
}

.privacy-box {
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #faf8ff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.privacy-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #f2eeff;
}

.form-error {
  margin: 12px 0 0;
  color: #b04868;
  font-size: 13px;
  font-weight: 700;
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  align-items: flex-end;
}

.hero-quote {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  color: #9290b7;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-quote span {
  position: relative;
  max-width: 210px;
  line-height: 1.55;
}

.hero-quote span::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  margin-bottom: 16px;
  background: #d3cdef;
}

.hero-preview-card {
  width: min(500px, 100%);
  padding: 22px;
  border: 1px solid rgba(232, 227, 247, 0.96);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.preview-header strong { display: block; font-size: 16px; }
.preview-header span { color: var(--muted); font-size: 12px; }

.assistant-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f3ff, #efe9ff);
  box-shadow: 0 10px 24px rgba(112, 82, 242, 0.15);
}

.assistant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-avatar { width: 52px; height: 52px; }

.preview-bubble {
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.55;
}

.assistant-bubble {
  margin-bottom: 14px;
  color: #393757;
  background: #f3effd;
}

.user-bubble {
  margin: 14px 0 12px auto;
  width: fit-content;
  max-width: 82%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.preview-highlight-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-chip,
.preview-actions span,
.section-badge,
.progress-badge,
.ghost-button {
  border-radius: 999px;
}

.mini-chip {
  padding: 9px 12px;
  color: #5d5a88;
  background: #f8f6ff;
  font-size: 12px;
  font-weight: 700;
}

.preview-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-actions span {
  padding: 9px 13px;
  border: 1px solid #ddd6f7;
  color: #5d5a88;
  font-size: 12px;
  font-weight: 700;
}

.session-layout {
  display: contents;
}

.session-details {
  min-width: 0;
}

body.session-active .workspace {
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
  min-height: calc(100vh - var(--header-h) - 24px);
}

body.session-active .session-details {
  grid-column: 1;
  grid-row: 1;
}

body.session-active .chat-card {
  grid-column: 2;
  grid-row: 1;
}

body.session-active {
  background: #f7f5ff;
}

body.session-active .page-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

body.session-active .site-header {
  width: 100%;
  padding: 0 24px 0 20px;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

body.session-active main {
  flex: 1 1 auto;
  gap: 0;
  padding: 8px 24px 24px;
  background:
    radial-gradient(circle at 10% 15%, rgba(168, 146, 255, 0.10), transparent 28%),
    linear-gradient(180deg, #fbfaff 0%, #f7f5ff 100%);
}

.profile-card,
.chat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.result-card,
.profile-section-card {
  border: 1px solid #ece7fb;
  border-radius: 22px;
  background: #fff;
}

.result-card { padding: 22px; }

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-date {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ghost-button {
  padding: 10px 16px;
  color: #625e8d;
  background: #f6f2ff;
  font-size: 13px;
  font-weight: 800;
}

.destiny-summary {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8f5ff 0%, #f4efff 100%);
  border: 1px solid #e6defb;
}

.subsection-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.subsection-title span {
  font-size: 16px;
  font-weight: 800;
}

.subsection-title small {
  color: var(--muted);
  font-size: 11px;
}

.subsection-pythagoras {
  margin-top: 4px;
  margin-bottom: 12px;
}

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

.destiny-item {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.destiny-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.destiny-item strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

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

.matrix-cell {
  min-height: 136px;
  padding: 16px 14px;
  border-radius: 18px;
  background: var(--card-muted);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.matrix-value {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.matrix-label {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 800;
}

.matrix-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-section-card { padding: 20px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-badge {
  padding: 7px 12px;
  color: #6d65aa;
  background: #f1ecff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlight-list {
  display: grid;
  gap: 12px;
}

.highlight-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: 16px;
  background: #faf8ff;
}

.highlight-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: #f1ecff;
  font-size: 17px;
}

.highlight-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.highlight-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.engine-note {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fbfaff;
  border: 1px dashed #ddd7f4;
}

.engine-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.engine-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
}

.chat-card {
  width: 100%;
  min-width: 0;
  min-height: 560px;
  height: auto;
  max-height: min(720px, calc(100vh - var(--header-h) - 32px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: sticky;
  top: 8px;
  align-self: stretch;
}

body:not(.session-active) .chat-card {
  cursor: pointer;
}

body:not(.session-active) .chat-card:focus-visible {
  outline: 3px solid rgba(112, 82, 242, 0.28);
  outline-offset: 3px;
}

.chat-header {
  flex: 0 0 auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.chat-header-copy { min-width: 0; }
.chat-title { margin: 0 0 3px; font-size: 17px; font-weight: 800; }
.chat-header-copy span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.chat-header-copy i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

.progress-badge {
  margin-left: auto;
  padding: 9px 13px;
  color: #645fa0;
  background: #f0ebff;
  font-size: 12px;
  font-weight: 800;
}

.chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  padding: 18px 16px 12px;
}

.message-row {
  display: flex;
  margin-bottom: 14px;
  animation: message-in 0.24s ease both;
}

.message-row.user { justify-content: flex-end; }

.message {
  max-width: 88%;
  padding: 15px 17px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.62;
}

.message.assistant {
  color: #3b3857;
  background: #f3effd;
  border-bottom-left-radius: 8px;
}

.message.user {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-bottom-right-radius: 8px;
}

.final-loader {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(310px, 88%);
}

.final-loader-spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 3px solid #ddd6f7;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: final-loader-spin 0.8s linear infinite;
}

.final-loader-copy,
.final-loader-copy strong,
.final-loader-copy > span {
  display: block;
}

.final-loader-copy strong {
  color: var(--ink);
  font-size: 13px;
}

.final-loader-copy > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.summary-card {
  max-width: 100%;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid #e8e2f8;
  background: linear-gradient(180deg, #fff 0%, #faf7ff 100%);
}

.summary-card h3 { margin: 0 0 14px; font-size: 21px; letter-spacing: -0.02em; }
.summary-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.summary-card li { padding: 11px 0; border-bottom: 1px solid #efeafb; color: #5e5a84; font-size: 14px; line-height: 1.55; }
.summary-card li:last-child { border-bottom: 0; }
.summary-card strong { color: var(--ink); }
.summary-conclusion { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid #ebe6fa; color: #4e4a73; font-size: 14px; line-height: 1.62; }
.summary-end { margin-top: 12px; color: #6c63a8; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.chat-footer {
  flex: 0 0 auto;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.progress-track {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.progress-track-bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  flex: 1;
}

.progress-track-bars span {
  height: 6px;
  border-radius: 999px;
  background: #ece8fb;
}

.progress-track-bars span.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

#progress-label {
  flex: 0 0 auto;
  color: #645fa0;
  font-size: 12px;
  font-weight: 800;
}

.answer-button.preview {
  display: grid;
  place-items: center;
  pointer-events: none;
}

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

.answer-button {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ddd6f6;
  border-radius: 14px;
  color: #5e597f;
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.18s ease;
}

.answer-button:hover {
  border-color: #baaef0;
  color: var(--accent);
  background: #faf8ff;
  transform: translateY(-1px);
}

.answer-button:disabled { opacity: 0.5; cursor: default; transform: none; }

.answer-options.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.answer-hint { margin: 10px 0 0; color: #9793b8; font-size: 11px; }

.seo-content {
  width: 100%;
  margin: 72px 0 24px;
  display: grid;
  gap: 24px;
}

.seo-section,
.seo-disclaimer {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.seo-kicker {
  display: block;
  margin-bottom: 10px;
  color: #7a78ad;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.seo-section h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.seo-section p,
.seo-disclaimer p {
  margin: 0;
  color: #666888;
  font-size: 15px;
  line-height: 1.75;
}

.seo-section p + p {
  margin-top: 14px;
}

.seo-lead {
  max-width: 880px;
  font-size: 17px !important;
}

.steps-list {
  counter-reset: steps;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  counter-increment: steps;
  min-width: 0;
  padding: 18px 16px;
  border-radius: 18px;
  background: #f8f6ff;
}

.steps-list li::before {
  content: counter(steps);
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 12px;
  font-weight: 800;
}

.steps-list strong,
.steps-list span {
  display: block;
}

.steps-list strong {
  margin-bottom: 7px;
  font-size: 14px;
}

.steps-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

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

.method-summary-grid > div {
  min-width: 0;
}

.method-summary-grid > div + div {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.method-summary-grid h3 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.analysis-example {
  margin-top: 26px;
  padding: 26px;
  border: 1px solid #e5defa;
  border-radius: 20px;
  background: linear-gradient(180deg, #faf8ff 0%, #f5f1ff 100%);
}

.analysis-example > span {
  display: block;
  margin-bottom: 8px;
  color: #8985aa;
  font-size: 11px;
  font-weight: 700;
}

.analysis-example h3 {
  margin-bottom: 14px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.analysis-example > strong {
  display: block;
  margin-top: 16px;
  color: #5e5798;
  font-size: 13px;
}

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

.faq-item {
  border: 1px solid #ebe7f8;
  border-radius: 16px;
  background: #fbfaff;
}

.faq-item summary {
  padding: 18px 48px 18px 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.faq-item p {
  padding: 0 18px 18px;
  font-size: 13px;
}

.seo-disclaimer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 22px 26px;
  box-shadow: none;
}

.seo-disclaimer strong {
  color: #625d91;
  font-size: 13px;
}

.seo-disclaimer p {
  font-size: 12px;
  line-height: 1.6;
}

.metrics-consent {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  z-index: 1000;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid #ddd6f6;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 60px rgba(53, 45, 105, 0.2);
  backdrop-filter: blur(14px);
}

.metrics-consent-copy {
  min-width: 0;
}

.metrics-consent-copy strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
}

.metrics-consent-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.metrics-consent-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.consent-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #dcd5f5;
  border-radius: 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.consent-button.secondary {
  color: #625d86;
  background: #f8f6ff;
}

.consent-button.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.consent-button:hover {
  transform: translateY(-1px);
}

.consent-button:focus-visible {
  outline: 3px solid rgba(111, 87, 231, 0.24);
  outline-offset: 2px;
}

.site-footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #9692b5;
  font-size: 11px;
}

body.session-active .site-footer {
  padding: 0 24px;
  background: #fff;
  border-top: 1px solid var(--line);
}

[hidden] { display: none !important; }

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

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

@keyframes birth-form-attention {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(4px); }
  70% { transform: translateX(-4px); }
}

@media (max-width: 1023px) {
  .workspace {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 16px;
    padding-top: 20px;
  }

  body.session-active .workspace {
    grid-template-columns: 1fr;
  }

  body.session-active .session-details,
  body.session-active .chat-card {
    grid-column: auto;
    grid-row: auto;
  }

  .chat-card {
    position: static;
    min-height: 480px;
    max-height: none;
  }

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

  .method-summary-grid {
    grid-template-columns: 1fr;
  }

  .method-summary-grid > div + div {
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 767px) {
  .page-shell { width: min(100% - 24px, 960px); }
  .site-header {
    height: var(--header-h);
    padding: 0;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 18px; }
  .header-button { height: 40px; padding: 0 14px; }
  .session-date-chip { font-size: 12px; padding: 6px 10px; max-width: 34vw; }
  .hero-copy { padding: 8px 16px 0; }
  .eyebrow { line-height: 1.55; }
  .hero-copy h1 {
    margin: 14px 0 20px;
    font-size: clamp(32px, 10vw, 48px);
    line-height: 1.08;
  }
  .hero-text { font-size: 15px; line-height: 1.65; margin-bottom: 22px; }
  .birth-form-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .primary-button,
  .privacy-box { width: 100%; }
  .chat-card {
    width: calc(100% - 32px);
    min-height: 420px;
    margin-inline: 16px;
  }
  .answer-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .answer-options.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .answer-hint { text-align: center; }
  .destiny-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix-cell { min-height: 110px; }
  .site-footer { padding: 20px 0 28px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .metrics-consent {
    padding: 16px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .metrics-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .seo-content {
    width: calc(100% - 32px);
    margin: 48px auto 24px;
    gap: 16px;
  }
  .seo-section { padding: 22px; }
  .seo-section h2 { font-size: 27px; }
  .seo-lead { font-size: 15px !important; }
  .steps-list { grid-template-columns: 1fr; }
  .analysis-example { padding: 20px; }
  .seo-disclaimer {
    grid-template-columns: 1fr;
    padding: 20px 22px;
  }

  body.session-active .page-shell {
    width: 100%;
    padding: 0;
  }

  body.session-active .site-header {
    padding: 0 14px;
  }

  body.session-active main {
    padding: 8px 12px 12px;
    min-height: 0;
  }

  body.session-active .workspace {
    gap: 12px;
    padding-top: 0;
  }

  body.session-active .chat-card {
    order: 1;
    width: 100%;
    height: calc(100dvh - var(--header-h) - 24px);
    max-height: calc(100dvh - var(--header-h) - 24px);
    min-height: 0;
    margin: 0;
    border-radius: 22px;
  }

  body.session-active .chat-messages {
    max-height: none;
    flex: 1 1 auto;
  }

  body.session-active .chat-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
  }

  body.session-active .session-details {
    order: 2;
    margin-top: 4px;
  }

  body.session-active .profile-card {
    padding: 14px;
    gap: 12px;
  }

  body.session-active .result-card,
  body.session-active .profile-section-card {
    padding: 14px;
  }

  body.session-active .site-footer {
    display: none;
  }
}

@media (max-width: 620px) {
  .page-shell { width: 100%; }
  .site-header { padding: 0 14px; }
  .profile-card { padding: 14px; }
  .result-card { padding: 16px; }
  .profile-date { font-size: 22px; }
  .chat-header { min-height: 56px; }
  .message { max-width: 92%; font-size: 13px; }
  .answer-button { padding: 10px 8px; font-size: 12px; }
}

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