/**
 * The Dinner Table: custom styles (Tailwind handles most UI via CDN).
 * Animations, focus rings, landing helpers, and utilities not covered by Tailwind alone.
 */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes wildContinueFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.anim-fade-in {
  animation: fadeIn 0.3s ease-in-out forwards;
}
.anim-fade-in-300 {
  animation: fadeIn 0.3s ease-in-out forwards;
}
.anim-fade-in-400 {
  animation: fadeIn 0.4s ease-in-out forwards;
}
.anim-card-enter {
  animation: fadeIn 0.3s ease-in-out forwards;
  opacity: 0;
}

.progress-fill {
  transition: width 400ms ease-in-out;
}

/* Touch targets (accessibility) */
.touch-min {
  min-height: 44px;
  min-width: 44px;
}

/* Landing page body scale (primary sans body; keep for CTAs and legacy) */
.land-body {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/**
 * Landing typography: four treatments only (serif headings, sans body, sans label, sans muted).
 * Use these on the landing screen and expanded "learn more" band for visual consistency.
 */
.land-type-serif-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  color: #2d2d2a;
  font-weight: 400;
}

.land-type-sans-body {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #2d2d2a;
  font-weight: 400;
}

.land-type-sans-label {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #2d2d2a;
  font-weight: 500;
}

.land-type-sans-muted {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #8a8580;
  font-weight: 400;
}

/* Landing: product wordmark (H1), smaller than hero H2 */
.land-wordmark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  color: #2d2d2a;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .land-wordmark {
    font-size: 28px;
  }
}

/* Landing: main emotional headline (H2), regular weight */
.land-landing-hero-h2 {
  font-weight: 400;
  font-style: normal;
}

.land-landing-shell header h2.land-landing-hero-h2 {
  font-weight: 400;
}

/* Trust line: breathing room before supporting copy */
.land-landing-shell header h2 + p.land-type-sans-muted {
  margin-bottom: 12px;
}

/* Landing: shared horizontal shell (above-fold + details) */
.land-landing-shell {
  box-sizing: border-box;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .land-landing-shell {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* Show details / Hide details */
.land-details-toggle-wrap {
  margin-top: 24px;
  border-top: 1px solid #e8e4de;
  padding-top: 20px;
}

.land-details-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #8a8580;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.land-details-toggle:hover {
  color: #2d2d2a;
}

.land-details-toggle__chevron {
  display: inline-flex;
  flex-shrink: 0;
  color: currentColor;
  transition: transform 0.2s ease;
}

.land-details-toggle[aria-expanded='true'] .land-details-toggle__chevron {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .land-details-toggle__chevron {
    transition: none;
  }
}

.land-landing-details-inner {
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .land-landing-details-inner {
    padding-bottom: 3rem;
  }
}

.land-landing-details-inner > :first-child {
  margin-top: 32px;
}

/* Landing details: wide banner illustrations (decorative, below fold) */
.land-illustration {
  margin: 0;
  padding: 0;
  max-width: 42rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.land-illustration--wide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 168px;
  object-fit: cover;
  object-position: center;
}

.land-illustration--table {
  margin-bottom: 1.25rem;
}

.land-illustration--door {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .land-illustration--wide img {
    max-height: 200px;
  }

  .land-illustration--door {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
  }
}

.land-landing-details-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232, 228, 222, 0.9);
}

@media (min-width: 768px) {
  .land-landing-details-block {
    margin-top: 3rem;
    padding-top: 2rem;
  }
}

/* Session length options: equal height on desktop */
.land-session-option {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

@media (min-width: 768px) {
  .land-session-option {
    min-height: 110px;
  }
}

@media (max-width: 767px) {
  .land-session-option {
    min-height: auto;
  }
}

/* Landing: section headings (How it works, Why structure helps, What's next) */
.land-landing-section-heading,
.land-landing-chapter-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  color: #2d2d2a;
  line-height: 1.25;
  margin: 0;
}

/* What's next: "This is just the beginning." (same treatment as section headings) */
#panel-acc-where > div.mt-6 > p.land-type-sans-label:first-of-type {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  color: #2d2d2a;
  line-height: 1.25;
  margin: 0;
}

/* Hero supporting line (below H2): quieter than headline */
.land-landing-hero-supporting {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: #8a8580;
  margin-top: 0;
}

/* Landing: Why structure helps (three equal columns on desktop) */
.land-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .land-why-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }

  .land-why-col {
    text-align: left;
  }
}

.land-why-col {
  text-align: center;
}

.land-why-col__head {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: #2d2d2a;
  margin: 0 0 8px;
  line-height: 1.35;
  text-wrap: balance;
}

.land-why-col__body {
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #8a8580;
  line-height: 1.6;
  margin: 0;
  text-wrap: balance;
}

/* Landing: What's next (roadmap card) */
.land-next-sub {
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #8a8580;
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 16px;
  width: 100%;
}

/* How it works numbered list card */
.land-how-it-works-card {
  background-color: #f2f5f2;
}

/* How it works: numbered step circles (28px) */
.land-how-it-works-card ul li > span.rounded-full.bg-sage {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  font-size: 0.75rem !important;
  line-height: 1 !important;
}

.land-next-card {
  border-radius: 12px;
  border: 1px solid #e8e4de;
  background-color: #fff;
  padding: 0 20px;
}

/* What's next: email signup card (match roadmap card shell) */
.land-landing-shell #panel-acc-where > div.mt-6.rounded-2xl {
  background-color: #ffffff;
  border: 1px solid #e8e4de;
  border-radius: 12px;
}

@media (min-width: 640px) {
  .land-next-card {
    padding: 0 24px;
  }
}

.land-next-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #e8e4de;
}

.land-next-item:last-child {
  border-bottom: none;
}

.land-next-item__text {
  flex: 1;
  min-width: 0;
}

.land-next-item__headline {
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #2d2d2a;
  margin: 0 0 4px;
  line-height: 1.35;
}

.land-next-item__body {
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #8a8580;
  line-height: 1.5;
  margin: 0;
}

.land-next-badge {
  flex-shrink: 0;
  background-color: #d4a843;
  color: #2d2d2a;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  line-height: 1.2;
}

/* Sticky "Begin" bar (landing) */
.sticky-begin-wrap {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.sticky-begin-wrap.sticky-begin-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.focus-ring:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #f7f4ef, 0 0 0 4px #7a9e7e;
}

.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;
}

/* -------------------------------------------------------------------------- */
/* Conversation: layout, header, chapter label, progress, question card         */
/* -------------------------------------------------------------------------- */

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

button:not(:disabled),
[role='button']:not([aria-disabled='true']),
a[href],
label[for],
select:not(:disabled) {
  cursor: pointer;
}

.card-category-label {
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a9e7e;
  display: block;
  margin-bottom: 8px;
}

.card-category-label--wildcard {
  color: rgba(45, 45, 42, 0.5);
}

.conv-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 800ms ease-in-out;
}

.conv-layout--r1 {
  background-color: #f7f4ef;
}
.conv-layout--r2 {
  background-color: #f5f0e8;
}
.conv-layout--r3 {
  background-color: #f3ede3;
}

.conv-header {
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background-color: #f7f4ef;
  border: none;
  border-bottom: none;
  box-shadow: none;
  outline: none;
}

.conv-header::before,
.conv-header::after {
  content: none;
  display: none;
  border: none;
  box-shadow: none;
}

.conv-wordmark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #2d2d2a;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.conv-wordmark__dot {
  color: #c9963a;
  font-size: 18px;
  line-height: 1;
  margin-right: 6px;
}

.conv-wordmark__text {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.conv-chapter-label {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #8a8580;
  text-align: right;
  padding-right: 0;
  line-height: 1.3;
}

.conv-chapter-label__desktop {
  display: none;
}

.conv-chapter-label__mobile {
  display: inline;
}

@media (min-width: 768px) {
  .conv-chapter-label {
    font-size: 13px;
  }

  .conv-chapter-label__desktop {
    display: inline;
  }

  .conv-chapter-label__mobile {
    display: none;
  }
}

.conv-progress-track {
  height: 3px;
  width: 100%;
  flex-shrink: 0;
  margin: 0;
  margin-top: 0;
  border: none;
  border-top: none;
  box-shadow: none;
  outline: none;
  /* Match header so no gray rule; sage fill still reads as the progress bar */
  background-color: #f7f4ef;
}

.conv-progress-track__fill {
  height: 100%;
  width: 0;
  background-color: #7a9e7e;
  transition: width 400ms ease-in-out;
}

.conv-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 55px);
  min-width: 0;
  padding: 24px 0 32px;
}

/* Conversation flow: readable line length, centered */
.conv-flow {
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.conv-flow--stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.conv-flow--stack.screen-intro-flow {
  gap: 0;
  max-width: 580px;
}

.screen-intro-flow > .screen-orientation {
  margin-bottom: 20px;
}

.screen-intro-flow > .screen-intro-serif:not(.screen-intro-serif--line2) {
  margin-bottom: 20px;
}

.screen-intro-flow > .screen-intro-serif--line2 {
  margin-bottom: 20px;
}

.screen-intro-comfort {
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #8a8580;
  text-align: center;
  text-wrap: balance;
  max-width: 420px;
  margin: 0 auto 8px;
}

.screen-intro-safety {
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #8a8580;
  text-align: center;
  text-wrap: balance;
  max-width: 420px;
  margin: 0 auto 24px;
}

.screen-intro-begin-btn {
  margin-top: 0;
}

.conv-flow--stack-wild {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.conv-cta-below-stack {
  margin-top: 48px;
}

.screen-orientation {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: #8a8580;
  text-align: center;
  text-wrap: balance;
  margin: 0;
  max-width: 100%;
}

.end-screen-shell {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 3rem;
  padding-bottom: 4rem;
  box-sizing: border-box;
  background-color: #f7f4ef;
}

.end-screen-shell h3.end-screen-whatnext__title {
  font-weight: 400;
  font-synthesis: none;
}

/* Staggered entrance (Peak-End); reduced motion handled in JS + media query */
.end-screen-element {
  opacity: 0;
  transform: translateY(12px);
}

.end-screen-element.end-screen-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 600ms ease-out,
    transform 600ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .end-screen-element {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .end-arc-line-progress {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  .end-arc-pulse-shape {
    animation: none !important;
  }
}

.end-screen-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 36px;
  line-height: 1.2;
  color: #2d2d2a;
  text-align: center;
  text-wrap: balance;
  margin: 0;
  font-synthesis: none;
}

.end-screen-open-ack {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  font-size: 22px;
  line-height: 1.45;
  color: #2d2d2a;
  text-align: center;
  text-wrap: balance;
  max-width: 560px;
  margin: 20px auto 0;
}

.end-screen-opening-divider {
  width: 48px;
  height: 1px;
  margin: 32px auto;
  background-color: #7a9e7e;
  border: none;
  padding: 0;
}

.end-screen-whatnext {
  margin: 0 auto 48px;
  max-width: 560px;
  width: 100%;
}

.end-screen-whatnext__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  color: #2d2d2a;
  text-align: center;
  margin: 0 auto 32px;
  max-width: 480px;
  font-synthesis: none;
}

.end-screen-whatnext__item {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.end-screen-whatnext__rule {
  border-top: 1px solid #e8e4de;
  margin: 32px auto;
  max-width: 560px;
}

.end-screen-whatnext__label {
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a9e7e;
  margin: 0 0 8px;
}

.end-screen-whatnext__body {
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #2d2d2a;
  line-height: 1.6;
  margin: 0 0 12px;
}

.end-screen-whatnext__link {
  color: #7a9e7e;
  text-decoration: underline;
  text-decoration-color: rgba(122, 158, 126, 0.4);
  text-underline-offset: 2px;
  cursor: pointer;
}

.end-screen-whatnext__link:hover {
  color: #5a8a5e;
  text-decoration-color: #7a9e7e;
}

.end-screen-share {
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: center;
  padding: 32px 0;
}

.end-screen-share__headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  color: #2d2d2a;
  margin: 0 auto 20px;
  max-width: 480px;
  font-synthesis: none;
}

.end-screen-share__btn {
  background: #7a9e7e;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.end-screen-arc-wrap {
  width: 100%;
  max-width: 560px;
  margin: 16px auto 48px;
  padding-bottom: 0;
  box-sizing: content-box;
}

.end-screen-arc-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 560 / 110;
  overflow: visible;
}

.end-screen-arc-svg text {
  font-family: Inter, system-ui, sans-serif;
}

.end-arc-label-top {
  font-size: 12px;
  font-weight: 600;
  fill: #2d2d2a;
}

.end-arc-label-bottom {
  font-size: 11px;
  font-weight: 400;
  fill: #8a8580;
}

.end-arc-line-progress {
  transition: stroke-dashoffset 1200ms ease-in-out;
}

.end-arc-line-progress.end-screen-arc-draw {
  stroke-dashoffset: 0;
}

@keyframes endArcPulseRing {
  0% {
    transform: scale(1);
    opacity: 0.35;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.end-arc-pulse-shape {
  transform-origin: center;
  transform-box: fill-box;
  animation: endArcPulseRing 2s ease-out infinite;
}

.end-arc-ring {
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
}

@keyframes endArcRingsOnce {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  100% {
    transform: scale(2.5714);
    opacity: 0;
  }
}

.end-screen-arc-svg.end-screen-arc-rings-on .end-arc-ring--1 {
  animation: endArcRingsOnce 600ms ease-out 0ms 1 both;
}

.end-screen-arc-svg.end-screen-arc-rings-on .end-arc-ring--2 {
  animation: endArcRingsOnce 600ms ease-out 200ms 1 both;
}

.end-screen-arc-svg.end-screen-arc-rings-on .end-arc-ring--3 {
  animation: endArcRingsOnce 600ms ease-out 400ms 1 both;
}

/* (Removed) end-screen next steps list replaced by end-screen-whatnext */

.end-screen-skipped {
  margin: 0 0 48px;
}

.end-screen-skipped__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  color: #2d2d2a;
  margin: 0 0 8px;
  text-align: left;
  font-synthesis: none;
}

.end-screen-skipped__hint {
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #8a8580;
  margin: 0 0 12px;
  text-align: left;
}

.end-screen-skipped[data-skipped-collapsed='true'] .end-screen-skipped__item--extra {
  display: none;
}

.end-screen-skipped__toggle {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #8a8580;
  text-align: left;
  cursor: pointer;
}

.end-screen-skipped__toggle:hover {
  color: #2d2d2a;
}

.end-screen-skipped ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.end-screen-skipped li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #8a8580;
  margin-top: 12px;
}

.end-screen-skipped li:first-child {
  margin-top: 0;
}

.end-screen-closing-wrap {
  margin: 0;
}

.end-screen-closing-pre {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
  line-height: 1.35;
  color: #2d2d2a;
  text-align: center;
  text-wrap: balance;
  max-width: 480px;
  margin: 0 auto 12px;
  font-synthesis: none;
}

.end-screen-closing {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: #8a8580;
  text-align: center;
  text-wrap: balance;
  max-width: 480px;
  margin: 0 auto 40px;
}

/* End screen: wide banner (same language as landing details illustrations) */
.end-screen-illustration {
  margin: 0 auto;
  padding: 0;
  max-width: 560px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.end-screen-illustration--wide {
  margin: 0 auto 48px;
}

.end-screen-illustration--wide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 168px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .end-screen-illustration--wide img {
    max-height: 200px;
  }
}

/* End screen: reflection + shareable card (Pass 2) */
.end-screen-reflection {
  margin: 0 auto 48px;
  max-width: 560px;
  width: 100%;
  background: transparent;
}

.end-screen-reflection__prompt {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.35;
  color: #2d2d2a;
  text-align: center;
  text-wrap: balance;
  max-width: 480px;
  margin: 0 auto 20px;
}

.end-screen-reflection__field {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.end-screen-reflection__textarea {
  display: block;
  width: 100%;
  min-height: 100px;
  box-sizing: border-box;
  resize: vertical;
  background: #fff;
  border: 1px solid #c8c4be;
  border-radius: 10px;
  padding: 16px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #2d2d2a;
  line-height: 1.6;
  outline: none;
}

.end-screen-reflection__textarea::placeholder {
  color: #8a8580;
}

.end-screen-reflection__textarea:focus {
  border-color: #7a9e7e;
  box-shadow: 0 0 0 3px rgba(122, 158, 126, 0.15);
}

.end-screen-reflection__counter {
  margin-top: 6px;
  text-align: right;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #8a8580;
}

.end-screen-reflection__counter--warn {
  color: #c9963a;
}

.end-screen-reflection__submit {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  background: #7a9e7e;
  color: #fff;
  box-sizing: border-box;
}

.end-screen-reflection__submit:disabled {
  background: #e8e4de;
  color: #8a8580;
  cursor: not-allowed;
  border: none;
}

.end-screen-reflection__post {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 400ms ease-in-out;
  background: transparent;
}

.end-screen-reflection__post--in {
  opacity: 1;
}

/* html2canvas capture target */
#reflection-card.end-screen-reflection-card,
.end-screen-reflection-card {
  background: #2d2d2a;
  border-radius: 14px;
  padding: 32px 36px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.end-screen-reflection-card__label {
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 20px;
}

.end-screen-reflection-card__text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: #f7f4ef;
  margin: 0 0 24px;
  white-space: pre-wrap;
  word-break: break-word;
}

.end-screen-reflection-card__rule {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(122, 158, 126, 0.5);
  margin: 0 0 20px;
}

.end-screen-reflection-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.end-screen-reflection-card__date {
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.end-screen-reflection-card__brand {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  text-align: right;
  flex-shrink: 0;
}

.end-screen-reflection__save-btn {
  display: block;
  margin: 16px auto 0;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  background: #7a9e7e;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

.end-screen-reflection__share-table-btn {
  display: block;
  margin: 8px auto 0;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid rgba(122, 158, 126, 0.4);
  background: transparent;
  color: #2d2d2a;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

.end-screen-reflection__edit-link {
  display: block;
  margin: 16px auto 0;
  padding: 8px;
  border: none;
  background: none;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #8a8580;
  text-align: center;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .end-screen-reflection__save-btn,
  .end-screen-reflection__share-table-btn {
    width: auto;
    max-width: none;
  }

  .end-screen-reflection__edit-link {
    width: auto;
    max-width: none;
  }
}

/* Growth loop: annual reminder + professional network */
.end-screen-coming-badge {
  display: inline-block;
  background: #d4a843;
  color: #2d2d2a;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.2;
}

.end-screen-remind-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  margin-top: 12px;
  max-width: 560px;
}

.end-screen-remind-input {
  flex: 1;
  min-width: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  color: #2d2d2a;
  border: 1px solid #c8c4be;
  border-radius: 6px;
  padding: 8px 12px;
  box-sizing: border-box;
  outline: none;
  background: #fff;
}

.end-screen-remind-input:focus {
  border-color: #7a9e7e;
  box-shadow: 0 0 0 2px rgba(122, 158, 126, 0.15);
}

.end-screen-remind-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.end-screen-remind-btn {
  background: #e8e4de;
  color: #8a8580;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: not-allowed;
  white-space: nowrap;
}

.end-screen-remind-note {
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #8a8580;
  margin: 8px 0 0;
  line-height: 1.4;
}

.end-screen-card__headline-network {
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #2d2d2a;
  margin: 0 0 6px;
  line-height: 1.45;
}

.end-screen-card__body-network {
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #8a8580;
  line-height: 1.5;
  margin: 0 0 12px;
}

.end-screen-network-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.end-screen-network-btn {
  margin-top: 0;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #c8c4be;
  border-radius: 8px;
  background: transparent;
  color: #8a8580;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .end-screen-remind-row {
    flex-direction: column;
    align-items: stretch;
  }

  .end-screen-remind-aside {
    align-items: stretch;
    width: 100%;
  }

  .end-screen-remind-btn {
    width: 100%;
    white-space: normal;
  }

  .end-screen-network-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .end-screen-network-btn {
    width: 100%;
  }
}

.end-screen-restart-wrap {
  margin-top: 48px;
  text-align: center;
}

.end-screen-restart-btn {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.6;
  padding: 14px 32px;
  min-height: 44px;
  border: none;
  border-radius: 12px;
  background-color: #7a9e7e;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(45, 45, 42, 0.08);
}


.conv-body--wildcard {
  background-color: #d4a843;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  flex: 1;
  min-height: 0;
}

/* Question card */
.q-card {
  width: 68vw;
  max-width: 680px;
  min-width: 320px;
  margin: 16px auto;
  padding: 32px 36px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 2px 16px rgba(45, 45, 42, 0.07),
    0 1px 4px rgba(45, 45, 42, 0.04);
  position: relative;
  box-sizing: border-box;
}

.q-card__host {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  color: #8a8580;
  text-align: left;
  margin: 0 0 20px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.q-card__primary {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  text-align: center;
  color: #2d2d2a;
  text-wrap: balance;
  max-width: 100%;
  margin: 0 auto;
}

.q-card__alternate {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  text-align: center;
  color: #8a8580;
  max-width: 100%;
  margin: 16px auto 0;
}

.q-card__q1-hint {
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  text-align: center;
  color: #8a8580;
  margin: 14px 0 0;
}

.q-card__round-progress {
  width: 100%;
  margin-top: 16px;
  margin-bottom: 0;
}

.q-card__round-progress__track {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background-color: #e8e4de;
  overflow: hidden;
}

.q-card__round-progress__fill {
  height: 100%;
  border-radius: 2px;
  background-color: #7a9e7e;
  transition: width 350ms ease-out;
}

.q-card__footer {
  border-top: 1px solid #e8e4de;
  padding-top: 20px;
  padding-bottom: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.q-card__skip {
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #8a8580;
  background: none;
  border: none;
  padding: 12px 8px;
  text-decoration: none;
}

.q-card__next {
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background-color: #7a9e7e;
  border: none;
  border-radius: 10px;
  padding: 14px 36px;
  min-width: 100px;
  min-height: 44px;
}

.q-card__footer--q18 {
  justify-content: center;
  border-top: 1px solid #e8e4de;
  padding-top: 20px;
  padding-bottom: 16px;
}

/* Onboarding & round intro */
.screen-intro-serif {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 30px;
  line-height: 1.35;
  text-align: center;
  color: #2d2d2a;
  text-wrap: balance;
  max-width: 100%;
  margin: 0;
  font-synthesis: none;
}

.screen-intro-serif--line2 {
  margin-top: 0;
  font-weight: 400;
  font-synthesis: none;
}

.round-intro-line--l1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  line-height: 1.3;
  text-align: center;
  color: #2d2d2a;
  text-wrap: balance;
  margin: 0;
}

.round-intro-line--l2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  line-height: 1.4;
  text-align: center;
  color: rgba(45, 45, 42, 0.8);
  text-wrap: balance;
  margin: 0;
}

.round-transition-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  line-height: 1.4;
  text-align: center;
  color: #2d2d2a;
  text-wrap: balance;
  margin: 0;
}

.q18-moment-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  line-height: 1.4;
  text-align: center;
  color: #2d2d2a;
  text-wrap: balance;
  margin: 0;
}

/* Wildcard (yellow area below header) */
.wildcard-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 52px);
  padding: 24px;
  box-sizing: border-box;
}

.wild-wildcard-inner {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: #2d2d2a;
}

.wild-framing-line {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: rgba(45, 45, 42, 0.6);
  text-align: center;
  margin: 0;
}

.wildcard-screen .wild-prompt-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  line-height: 1.6;
  text-align: center;
  color: #2d2d2a;
  text-wrap: balance;
  max-width: 560px;
  margin: 0 auto;
}

.wild-action-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  margin-top: 0;
}

.wild-timer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 300ms ease-out;
}

.wild-timer-stack--exiting {
  opacity: 0;
}

.wild-timer-ring-wrap {
  position: relative;
  width: 80px;
  height: 80px;
}

.wild-timer-ring__track {
  stroke: rgba(45, 45, 42, 0.15);
}

.wild-timer-ring__progress {
  stroke: rgba(45, 45, 42, 0.7);
}

.wild-timer-ring__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  font-style: normal;
  color: #2d2d2a;
  line-height: 1;
  pointer-events: none;
}

.wild-skip-link {
  display: block;
  margin-top: 20px;
  padding: 12px 24px;
  min-height: 44px;
  min-width: 44px;
  border: none;
  background: none;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(45, 45, 42, 0.5);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.wild-continue-btn {
  opacity: 0;
  animation: wildContinueFadeIn 300ms ease-out 200ms forwards;
  margin-top: 0;
  padding: 14px 36px;
  min-height: 44px;
  min-width: 100px;
  border: none;
  border-radius: 10px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  background-color: #7a9e7e;
  color: #fff;
  cursor: pointer;
}

.wild-continue-btn--w2 {
  background-color: #2d2d2a;
  color: #d4a843;
}

.wild-w3-closing {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
  color: rgba(45, 45, 42, 0.7);
  margin: 0 0 1rem;
}

@media (max-width: 767px) {
  .conv-flow {
    max-width: calc(100vw - 48px);
  }

  .conv-flow--stack.screen-intro-flow {
    max-width: calc(100vw - 48px);
  }

  .end-screen-shell {
    max-width: calc(100vw - 48px);
    padding-left: 16px;
    padding-right: 16px;
  }

  .end-screen-element {
    transform: translateY(8px);
  }

  .end-screen-element.end-screen-visible {
    transform: translateY(0);
  }

  .end-screen-headline {
    font-size: 28px;
  }

  .end-screen-open-ack {
    font-size: 18px;
  }

  /* Keep arc labels readable on mobile (Part 3) */
  .end-arc-label-top {
    font-size: 12px;
  }

  .end-screen-closing-pre {
    font-size: 22px;
  }

  .end-screen-closing {
    font-size: 18px;
  }

  .end-screen-reflection__prompt {
    font-size: 17px;
  }

  .end-screen-reflection__textarea {
    min-height: 80px;
  }

  .end-screen-reflection {
    max-width: calc(100vw - 32px);
  }

  .end-screen-reflection__post {
    max-width: calc(100vw - 32px);
  }

  .end-screen-reflection-card {
    padding: 24px;
    max-width: calc(100vw - 32px);
  }

  .end-screen-reflection-card__text {
    font-size: 18px;
  }

  .end-screen-whatnext__title {
    font-size: 20px;
  }

  .end-screen-share__btn {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
  }

  .end-screen-reflection__submit,
  .end-screen-reflection__save-btn,
  .end-screen-reflection__share-table-btn,
  .end-screen-reflection__edit-link {
    width: 100%;
    max-width: 320px;
  }

  .conv-body {
    min-height: calc(100vh - 47px);
  }

  .wildcard-screen {
    min-height: calc(100vh - 47px);
  }

  .conv-header {
    height: 44px;
    padding: 0 16px;
    border: none;
    box-shadow: none;
  }

  .q-card {
    width: calc(100vw - 32px);
    min-width: 0;
    margin: 16px auto;
    padding: 24px;
    border-radius: 12px;
  }

  .q-card__primary {
    font-size: 24px;
  }

  .q-card__alternate {
    font-size: 17px;
  }

  .q-card__host {
    font-size: 13px;
  }

  .q-card__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .q-card__next {
    width: 100%;
    max-width: none;
  }

  .q-card__skip {
    text-align: center;
    width: 100%;
    margin-top: 12px;
  }

  .screen-intro-serif {
    font-size: 26px;
  }

  .round-intro-line--l1 {
    font-size: 26px;
  }

  .round-intro-line--l2 {
    font-size: 18px;
  }

  .wildcard-screen .wild-prompt-text {
    font-size: 22px;
  }

  .wild-timer-ring-wrap {
    width: 64px;
    height: 64px;
  }

  .wild-timer-ring {
    width: 64px;
    height: 64px;
  }

  .wild-timer-ring__num {
    font-size: 40px;
  }

  .wild-framing-line {
    font-size: 14px;
  }

  .wild-w3-closing {
    font-size: 16px;
  }

  .land-type-sans-body {
    font-size: 0.875rem;
  }

  .land-type-sans-label {
    font-size: 0.875rem;
  }

  .q18-moment-text {
    font-size: 18px;
  }

  .round-transition-text {
    font-size: 18px;
  }

  .wild-continue-btn {
    width: 100%;
    max-width: none;
  }

  .land-why-col__body {
    font-size: 14px;
  }

  .land-next-item__body {
    font-size: 13px;
  }

  .land-landing-section-heading,
  .land-landing-chapter-title {
    font-size: 20px;
  }

  #panel-acc-where > div.mt-6 > p.land-type-sans-label:first-of-type {
    font-size: 20px;
  }
}
