:root {
  --ink: #0f2a2a;
  --ink-soft: #1b3d3d;
  --sand: #f5efe6;
  --mist: #edf6f2;
  --surface: #fffaf4;
  --coral: #e76d5b;
  --sun: #f4b468;
  --teal: #0c4b4a;
  --mint: #c8e7dd;
  --border: rgba(15, 42, 42, 0.12);
  --shadow: 0 30px 80px rgba(15, 42, 42, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background: linear-gradient(140deg, #f6eee4 0%, #eef6f2 45%, #fef1e6 100%);
  position: relative;
  display: flex;
  flex-direction: column;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20% auto auto -20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle at 30% 30%, rgba(244, 180, 104, 0.28), transparent 60%);
  z-index: 0;
  animation: drift 24s ease-in-out infinite;
}

body::after {
  inset: auto -25% -25% auto;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle at 60% 60%, rgba(12, 75, 74, 0.22), transparent 60%);
  animation-delay: -8s;
}

.site-shell {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

.grid-container {
  max-width: 1200px;
}

.hero-band {
  padding: 1rem 0 4rem;
}

.site-header {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 0.3rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

.brand:visited,
.brand:hover,
.brand:focus {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  background: none;
  box-shadow: 0 12px 24px rgba(12, 75, 74, 0.22);
}

.brand-name {
  font-family: inherit;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.nav-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  margin-left: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.account-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  margin-top: -0.9rem;
  flex-wrap: wrap;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.language-label {
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.2;
}

.language-current {
  color: var(--ink);
}

.language-select {
  border: 1px solid var(--border);
  background: var(--mist);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-top: 0.08rem;
  appearance: none;
  color-scheme: light;
}

.language-select:hover,
.language-select:active,
.language-select:focus,
.language-select:focus-visible {
  background: var(--mist);
  color: var(--ink);
  border-color: rgba(12, 75, 74, 0.3);
  outline: none;
}

.language-select option {
  background: var(--surface);
  color: var(--ink);
}

.site-nav a,
.site-nav .nav-link-button,
.account-nav a,
.account-nav .nav-link-button {
  color: var(--ink);
  text-decoration: none;
  position: relative;
}

.account-nav a,
.account-nav .nav-link-button {
  color: var(--ink-soft);
}

.site-nav .nav-inline-form,
.account-nav .nav-inline-form {
  margin: 0;
}

.site-nav .nav-link-button,
.account-nav .nav-link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.site-nav a::after,
.site-nav .nav-link-button::after,
.account-nav a::after,
.account-nav .nav-link-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus::after,
.site-nav .nav-link-button:hover::after,
.site-nav .nav-link-button:focus::after,
.account-nav a:hover::after,
.account-nav a:focus::after,
.account-nav .nav-link-button:hover::after,
.account-nav .nav-link-button:focus::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}


.hero {
  padding: 2rem 0 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.hero-title {
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  margin: 0.6rem 0 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.8rem 1.6rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: var(--coral);
  color: var(--surface);
  box-shadow: 0 16px 30px rgba(231, 109, 91, 0.25);
}

.button.primary:hover,
.button.primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(231, 109, 91, 0.3);
}

.button-rainbow {
  position: relative;
  color: #fff;
  border: 2px solid #fff;
  background-image: linear-gradient(120deg, #d53a3a, #d2771b, #c7a13e, #3ea27a, #2f6f9b, #7a3ea6, #d53a3a);
  background-size: 220% 220%;
  animation: rainbow-flash 2.6s linear infinite;
}

.button-rainbow:hover,
.button-rainbow:focus {
  color: #fff;
}

@keyframes rainbow-flash {
  0% {
    background-image: linear-gradient(120deg, #ff4d4d, #ff9f1c, #ffe66d, #6bffb7, #5dade2, #b16cea, #ff4d4d);
    background-position: 0% 50%;
    border-color: transparent;
  }
  40% {
    background-image: linear-gradient(120deg, #ff4d4d, #ff9f1c, #ffe66d, #6bffb7, #5dade2, #b16cea, #ff4d4d);
    background-position: 100% 50%;
    border-color: transparent;
  }
  55% {
    background-image: linear-gradient(135deg, #0b0b0b, #1a1a1a);
    background-position: 50% 50%;
    border-color: #fff;
  }
  70% {
    background-image: linear-gradient(135deg, #0b0b0b, #1a1a1a);
    background-position: 50% 50%;
    border-color: #fff;
  }
  100% {
    background-image: linear-gradient(120deg, #ff4d4d, #ff9f1c, #ffe66d, #6bffb7, #5dade2, #b16cea, #ff4d4d);
    background-position: 0% 50%;
    border-color: transparent;
  }
}

.button.secondary.clear {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.button-muted {
  color: var(--ink-soft);
}

.button.tiny,
.tiny {
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}


.chat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 42, 42, 0.08);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 6px rgba(244, 180, 104, 0.2);
  flex-shrink: 0;
}

.chat-title {
  font-weight: 600;
}

.chat-status {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.chat-badge {
  padding: 0.3rem 0.8rem;
  background: rgba(12, 75, 74, 0.1);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.chat-body {
  display: grid;
  gap: 0.8rem;
}

.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-bubble p {
  margin: 0;
}

.chat-bubble p + p {
  margin-top: 0.65rem;
}

.chat-bubble.user {
  background: rgba(12, 75, 74, 0.1);
  justify-self: flex-end;
}

.chat-bubble.ai {
  background: rgba(231, 109, 91, 0.1);
  justify-self: flex-start;
}

.chat-bubble.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 1rem;
  border-right: 2px solid rgba(15, 42, 42, 0.65);
  margin-left: 0.2rem;
  animation: chat-caret-blink 1s steps(1) infinite;
}

@keyframes chat-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.chat-input {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.section-band {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.6);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.section-heading p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.card {
  background: var(--surface);
  border-radius: 22px;
  padding: 1.6rem;
  border: 1px solid rgba(15, 42, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 42, 42, 0.08);
  height: 100%;
}

.card-soft {
  background: rgba(255, 255, 255, 0.85);
}

.card-number {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  color: var(--coral);
}

.safety-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.safety-list li {
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.privacy-panel {
  background: linear-gradient(135deg, rgba(12, 75, 74, 0.1), rgba(231, 109, 91, 0.12));
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(15, 42, 42, 0.1);
}

.privacy-tiles {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.privacy-tiles div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
}

.tile-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--teal);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  background: var(--surface);
  border-radius: 22px;
  padding: 1.6rem;
  border: 1px solid rgba(15, 42, 42, 0.08);
}

.cta-band {
  padding-bottom: 5rem;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(231, 109, 91, 0.18), rgba(12, 75, 74, 0.12));
  border: 1px solid rgba(15, 42, 42, 0.12);
}

 

.error-page {
  max-width: 620px;
  margin: 4rem auto;
  text-align: center;
  padding: 2.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.session-page {
  padding: 2rem 0 4rem;
  max-width: 760px;
  width: 100%;
}

.session-title {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.session-copy {
  color: var(--ink-soft);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.session-form {
  display: grid;
  gap: 1.2rem;
}

.chat-shell {
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid rgba(15, 42, 42, 0.08);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.chat-composer {
  width: 100%;
}

.chat-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.chat-actions .session-error {
  margin: 0;
  width: 100%;
}

.chat-reset {
  margin-top: 0.6rem;
}

.chat-reset-link {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.chat-reset-link:hover,
.chat-reset-link:focus {
  color: var(--ink);
}

.session-submit:disabled {
  opacity: 0.75;
  filter: saturate(0.85);
}

.session-submit {
  width: 100%;
}

.session-textarea {
  width: 100%;
  min-height: 260px;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background-color: var(--mist);
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  caret-color: var(--ink);
  resize: vertical;
}

.session-textarea::placeholder {
  color: var(--ink-soft);
}

.session-textarea:focus {
  outline: 2px solid rgba(231, 109, 91, 0.35);
  border-color: rgba(231, 109, 91, 0.6);
  background-color: var(--mist);
  color: var(--ink);
  caret-color: var(--ink);
}

.session-textarea:focus-visible,
.session-textarea:active {
  background-color: var(--mist);
  color: var(--ink);
}

.chat-input-field {
  background-color: rgba(12, 75, 74, 0.1);
  border: 1px solid rgba(12, 75, 74, 0.16);
}

.chat-input-field:focus,
.chat-input-field:focus-visible,
.chat-input-field:active {
  background-color: rgba(12, 75, 74, 0.12);
  border-color: rgba(12, 75, 74, 0.3);
}

.chat-transcript {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 0;
  border: none;
  background: transparent;
  margin-bottom: 0;
  min-height: 220px;
}

.chat-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-align: center;
}

.chat-disclaimer-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.chat-empty {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 2rem 0;
}

.chat-message {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.chat-message-hidden {
  display: none;
}

.chat-message-ghost {
  visibility: hidden;
}

[data-chat-messages] .chat-message {
  margin-bottom: 0.5rem;
}

[data-chat-messages] .chat-message:last-child {
  margin-bottom: 0;
}

.chat-message-user {
  align-items: flex-end;
}

.chat-message-assistant {
  align-items: flex-start;
}

.chat-message-user .chat-bubble {
  align-self: flex-end;
}

.chat-message-assistant .chat-bubble {
  align-self: flex-start;
}

.chat-loading-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(12, 75, 74, 0.12);
  border: 1px solid rgba(12, 75, 74, 0.2);
}

.chat-loading-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(12, 75, 74, 0.7);
  animation: chat-loading-bounce 0.9s ease-in-out infinite;
}

.chat-loading-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-loading-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-loading-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(-0.25rem);
    opacity: 1;
  }
}

.chat-guidance {
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  background: rgba(231, 109, 91, 0.08);
  border: 1px solid rgba(231, 109, 91, 0.2);
  color: var(--ink);
  max-width: 520px;
}

.chat-message.chat-flow .chat-guidance,
.chat-message.chat-flow .chat-choices {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-flow-hidden {
  opacity: 0;
  transform: translateY(6px);
}

.chat-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.choice-pill {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.choice-pill:hover,
.choice-pill:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 42, 42, 0.12);
}

.chat-anchor {
  height: 1px;
}

.session-error {
  color: #b02828;
  font-weight: 600;
}

.subscription-gate {
  margin-top: 1.4rem;
  padding: 1.4rem 1.6rem;
  border-radius: 18px;
  border: 1px solid rgba(231, 109, 91, 0.2);
  background: rgba(231, 109, 91, 0.08);
  display: grid;
  gap: 0.8rem;
}

.chat-reset-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 75, 74, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}

.chat-reset-modal[hidden] {
  display: none;
}

.chat-reset-dialog {
  width: min(100%, 440px);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
  color: var(--ink);
}

.chat-reset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.chat-input-area[hidden] {
  display: none;
}

.subscription-gate[hidden] {
  display: none;
}

.subscription-shell {
  padding: 3rem 0 5rem;
  display: flex;
  justify-content: center;
}

.subscription-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.6rem;
  border: 1px solid rgba(15, 42, 42, 0.08);
  box-shadow: var(--shadow);
  width: min(640px, 100%);
}

.subscription-title {
  font-family: "Fraunces", serif;
  margin-bottom: 0.6rem;
}

.subscription-lede {
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.subscription-form {
  display: grid;
  gap: 1.4rem;
}

.subscription-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  align-items: start;
}

.subscription-fieldset legend {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.subscription-select {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.subscription-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.subscription-tab {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.subscription-tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.subscription-tab span {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--mist);
  font-weight: 600;
}

.subscription-tab input:checked + span {
  background: rgba(12, 75, 74, 0.12);
  border-color: rgba(12, 75, 74, 0.3);
}

.subscription-select select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--mist);
  font-family: "Sora", sans-serif;
  color: var(--ink);
  color-scheme: light;
  appearance: none;
}

.subscription-select select:focus,
.subscription-select select:focus-visible {
  border-color: rgba(12, 75, 74, 0.3);
  outline: none;
}

.subscription-select select option {
  background: var(--surface);
  color: var(--ink);
}

.subscription-price-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.subscription-price-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.6rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--mist);
  cursor: pointer;
}

.subscription-price-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.subscription-price-card input:checked ~ .subscription-price-header {
  color: var(--ink);
}

.subscription-price-card:has(input:checked) {
  border-color: rgba(12, 75, 74, 0.35);
  box-shadow: 0 16px 32px rgba(12, 75, 74, 0.12);
}

.subscription-price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.subscription-price-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.subscription-price-amount {
  font-weight: 700;
  font-size: 1.2rem;
}

.subscription-price-badge {
  background: rgba(12, 75, 74, 0.12);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.subscription-price-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.subscription-benefits {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.4rem;
}

.subscription-options {
  display: grid;
  gap: 0.9rem;
}

.subscription-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--mist);
  cursor: pointer;
}

.subscription-option input {
  margin: 0;
}

.subscription-option-label {
  font-weight: 600;
}

.subscription-checkout {
  margin-top: 1.6rem;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 42, 42, 0.08);
  background: rgba(12, 75, 74, 0.06);
  display: grid;
  gap: 0.8rem;
}

.subscription-reference {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.site-footer {
  flex-shrink: 0;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(15, 42, 42, 0.08);
  background: transparent;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.footer-link {
  display: block;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 0.3rem;
}

.footer-link:hover,
.footer-link:focus {
  text-decoration: underline;
}

.footer-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.policy-shell {
  padding: 3rem 0 5rem;
  display: flex;
  justify-content: center;
}

.policy-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.6rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: min(900px, 100%);
}

.policy-card h1,
.policy-card h2 {
  font-family: "Fraunces", serif;
  margin-top: 0;
  color: var(--ink);
}

.policy-card h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.policy-card p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.policy-updated {
  margin-top: 0.4rem;
  margin-bottom: 1.6rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.policy-list {
  color: var(--ink-soft);
  margin: 0 0 1.6rem 1.4rem;
  padding: 0;
  line-height: 1.7;
}

.policy-list li {
  margin-bottom: 0.6rem;
}

.contact-shell {
  padding: 3rem 0 5rem;
  display: flex;
  justify-content: center;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.6rem;
  border: 1px solid rgba(15, 42, 42, 0.08);
  box-shadow: var(--shadow);
  width: min(720px, 100%);
}

.identity-shell {
  padding: 2.5rem 0 4rem;
  display: flex;
  justify-content: center;
}

.identity-card {
  width: min(720px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 42, 42, 0.08);
  box-shadow: var(--shadow);
  padding: 2.6rem;
}

.identity-card h1,
.identity-card h2,
.identity-card h3 {
  font-family: "Fraunces", serif;
  margin-top: 0;
}

.identity-card p {
  color: var(--ink-soft);
}

.identity-card .grid-x {
  margin: 0;
}

.identity-card .cell {
  padding: 0;
}

.identity-card form {
  display: grid;
  gap: 1rem;
}

.identity-card .form-field {
  display: grid;
  gap: 0.35rem;
}

.identity-card label {
  position: static;
  transform: none;
  font-weight: 600;
  color: var(--ink-soft);
}

.identity-card input,
.identity-card select,
.identity-card textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  background: var(--surface);
  font-family: "Sora", sans-serif;
  color: var(--ink);
}

.identity-card input::placeholder,
.identity-card textarea::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.identity-card input:focus,
.identity-card select:focus,
.identity-card textarea:focus {
  outline: 2px solid rgba(231, 109, 91, 0.35);
  border-color: rgba(231, 109, 91, 0.6);
  background: var(--mist);
  color: var(--ink);
}

.identity-card .expanded {
  width: 100%;
}

.identity-card .button.clear {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--ink);
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}

.identity-card .form-error,
.identity-card .validation-summary-errors {
  color: #b02828;
  font-size: 0.9rem;
}

.identity-card hr {
  border-color: rgba(15, 42, 42, 0.12);
}

.identity-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0 0 1.8rem;
}

.identity-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.9rem;
}

.identity-nav-link.active {
  background: var(--teal);
  color: var(--surface);
  border-color: transparent;
}

.identity-nav-link:hover,
.identity-nav-link:focus {
  border-color: rgba(12, 75, 74, 0.35);
}

.imessage-card {
  margin-top: 2.5rem;
  padding: 2.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 42, 42, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.imessage-card h2 {
  font-family: "Fraunces", serif;
  margin-top: 0;
}

.imessage-steps {
  margin: 1rem 0 1.6rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.imessage-form {
  display: grid;
  gap: 0.8rem;
}

.imessage-upload {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.imessage-upload input[type="file"] {
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  font-family: "Sora", sans-serif;
  color: var(--ink);
}

.imessage-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.imessage-actions .help-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.contact-card h1 {
  font-family: "Fraunces", serif;
  margin-bottom: 0.6rem;
}

.contact-lede {
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.contact-form {
  display: grid;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  margin-top: 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.8rem 1rem;
  font-family: "Sora", sans-serif;
  background: var(--surface);
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
}

.form-error {
  color: #b02828;
  font-size: 0.85rem;
}

.validation-summary-errors {
  color: #b02828;
  font-weight: 600;
}


.page-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 4rem;
}

.chat-center {
  width: min(880px, 100%);
}

.mode-holding {
  max-width: 680px;
  padding: 3rem 0 5rem;
}

.mode-holding h1 {
  font-family: "Fraunces", serif;
  margin-bottom: 0.6rem;
}

.mode-holding p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.dashboard-shell {
  padding: 3rem 0 5rem;
}

.dashboard-title {
  font-family: "Fraunces", serif;
  margin-bottom: 0.4rem;
}

.dashboard-lede {
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.dashboard-grid {
  display: grid;
  gap: 2rem;
}

.dashboard-card {
  background: transparent;
  border-radius: var(--radius);
  padding: 2.4rem;
  border: 1px solid rgba(12, 75, 74, 0.2);
  box-shadow: 0 24px 60px rgba(12, 75, 74, 0.16);
}

.dashboard-card h2 {
  margin-top: 0;
}

.dashboard-empty {
  color: var(--ink-soft);
  margin: 0;
}

.dashboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.dashboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(12, 75, 74, 0.18);
  background: transparent;
}

.dashboard-item-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.dashboard-item-title {
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.dashboard-item-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.dashboard-item-meta + .dashboard-item-meta {
  margin-top: 0.35rem;
}

.dashboard-start-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.dashboard-start-card {
  padding: 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(12, 75, 74, 0.18);
  background: transparent;
  display: grid;
  gap: 0.6rem;
}

.dashboard-start-card h3 {
  margin: 0;
}

.dashboard-start-card p {
  margin: 0;
  color: var(--ink-soft);
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(15, 42, 42, 0.08);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.dashboard-header h1 {
  font-family: "Fraunces", serif;
  margin-bottom: 0.5rem;
}

.dashboard-subtitle {
  color: var(--ink-soft);
  max-width: 520px;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logout-form {
  margin: 0;
}

.session-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(15, 42, 42, 0.08);
  box-shadow: var(--shadow);
}

.session-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.session-chip {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(231, 109, 91, 0.16);
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.session-chat {
  display: grid;
  gap: 0.8rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(12, 75, 74, 0.05);
  border: 1px solid rgba(12, 75, 74, 0.08);
}

.session-input {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.6rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.session-input p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.session-sidebar {
  display: grid;
  gap: 1.4rem;
}

.session-notes {
  margin-top: 3rem;
  padding: 2.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 42, 42, 0.08);
}

.session-notes h2 {
  font-family: "Fraunces", serif;
  margin-bottom: 1.5rem;
}

.notes-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.notes-grid h4 {
  margin-bottom: 0.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(40px, -30px, 0);
  }
}

@media (max-width: 900px) {
  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .session-input {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 1rem;
  }

  .site-header {
    align-items: flex-start;
  }

  .account-nav {
    margin-top: 0;
  }

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

  .chat-card {
    margin-top: 2rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf5f2;
    --ink-soft: #c9d7d4;
    --sand: #0f1c1c;
    --mist: #101f1f;
    --surface: #122222;
    --border: rgba(237, 245, 242, 0.15);
    --shadow: 0 30px 70px rgba(5, 10, 10, 0.6);
  }

  body {
    background: linear-gradient(140deg, #0b1717 0%, #102222 50%, #0a1717 100%);
  }

  .section-alt {
    background: rgba(18, 34, 34, 0.6);
  }

  .identity-nav-link.active {
    color: var(--ink);
  }
}

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

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  body::before,
  body::after {
    animation: none;
  }
}
