:root {
  --ink: #26302f;
  --muted: #707b76;
  --line: #d9dfd9;
  --soft-line: #e8ece7;
  --paper: #f7f8f3;
  --panel: #ffffff;
  --sage: #dfe8dd;
  --sage-dark: #426159;
  --gold: #d7aa40;
  --gold-dark: #aa7b15;
  --gold-soft: #f7edcf;
  --danger-soft: #fff2ee;
  --shadow: 0 16px 42px rgba(46, 58, 53, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
textarea,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  height: 64px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  border-bottom: 1px solid var(--soft-line);
  box-shadow: 0 8px 24px rgba(42, 57, 51, 0.045);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-logo,
.modal-logo,
.assistant-avatar {
  color: var(--gold);
  font-family: Georgia, serif;
}

.brand-logo {
  width: 31px;
  height: 31px;
  display: block;
  flex: 0 0 31px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0 auto;
}

.nav-link,
.quiet-button,
.site-footer button,
.form-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
}

.nav-link {
  height: 64px;
  display: inline-flex;
  align-items: center;
  position: relative;
  font-size: 13px;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 3px;
  right: 3px;
  bottom: 0;
  background: var(--gold);
}

.session-user {
  color: var(--muted);
  font-size: 13px;
}

.top-actions a {
  text-decoration: none;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quiet-button {
  font-size: 13px;
  padding: 9px 2px;
}

.primary-button,
.send-button {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fffdf5;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover,
.send-button:hover {
  background: var(--gold-dark);
  box-shadow: 0 8px 20px rgba(170, 123, 21, 0.18);
  transform: translateY(-1px);
}

.primary-button.small {
  padding: 11px 15px;
  border-radius: 6px;
  font-size: 12px;
}

.site-shell {
  min-height: auto;
  background: var(--paper);
}

.page-grid {
  width: min(1380px, 90vw);
  margin: 0 auto;
  padding: 40px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.65fr);
  grid-template-areas:
    "heading heading"
    "chat context";
  grid-template-rows: auto minmax(560px, calc(100vh - 250px));
  column-gap: 36px;
  row-gap: 22px;
  align-items: stretch;
}

.chat-heading {
  grid-area: heading;
  display: flex;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 0;
}

.chat-heading > div:first-child {
  min-width: 0;
}

.chat-area {
  grid-area: chat;
  min-height: 0;
  height: 100%;
  display: flex;
}

.eyebrow,
.panel-kicker {
  color: var(--gold-dark);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: #25322e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 43px;
  line-height: 1.05;
  font-weight: 500;
  white-space: nowrap;
}


.chat-heading h1 {
  max-width: 980px;
  white-space: normal;
  text-wrap: balance;
}
.heading-copy {
  max-width: none;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

.privacy-note {
  flex: 0 0 auto;
  margin-top: 9px;
  height: fit-content;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  white-space: nowrap;
}

.privacy-dot {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: #7eaa87;
  box-shadow: 0 0 0 4px #e5f0e3;
}

.conversation-panel,
.context-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.conversation-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.conversation-toolbar {
  height: 58px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--soft-line);
  box-shadow: 0 8px 24px rgba(42, 57, 51, 0.045);
  background: #fbfcf9;
}

.toolbar-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.session-label {
  color: var(--muted);
  font-size: 11px;
}

.privacy-session {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.privacy-session {
  border: 0;
  padding: 0;
  background: transparent;
  color: #53645d;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.privacy-lock {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: #7eaa87;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-help {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d5dfd3;
  border-radius: 50%;
  color: #8f690b;
  font-size: 10px;
  line-height: 1;
  background: #fffdf5;
}

.privacy-session:hover .privacy-help,
.privacy-session:focus-visible .privacy-help {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215, 170, 64, 0.12);
}

.messages {
  min-height: 0;
  flex: 1 1 auto;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 24px 25px 17px;
  background: #fff;
}

.message-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 26px;
}

.message-row.user {
  justify-content: flex-end;
}

.avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 18px;
}

.assistant-avatar {
  margin-top: 19px;
  background: #fbf4dc;
}

.user-avatar {
  margin-top: 19px;
  background: var(--sage);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 700;
}

.message-content {
  max-width: min(78%, 670px);
}

.message-row.user .message-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.message-author {
  margin: 0 0 7px 4px;
  color: var(--muted);
  font-size: 10px;
}

.message-row.user .message-author {
  margin-left: 0;
  margin-right: 4px;
}

.message-bubble {
  padding: 15px 17px;
  border: 1px solid var(--line);
  color: #35423d;
  font-size: 14px;
  line-height: 1.65;
}

.spiritual-reference {
  color: #8f690b;
  font-size: 0.96em;
  font-weight: 700;
}

.message-row.assistant .message-bubble {
  border-radius: 3px 12px 12px 12px;
  background: #f8faf6;
}

.message-row.user .message-bubble {
  border-color: #d1dfcf;
  border-radius: 12px 3px 12px 12px;
  background: var(--sage);
  color: #304941;
}

.composer-wrap {
  padding: 12px 19px 14px;
  border-top: 1px solid var(--soft-line);
  background: #fbfcf9;
}

.usage-banner {
  min-height: 31px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--gold-soft);
  color: #84651f;
  font-size: 11px;
}

.usage-banner strong {
  color: #654b10;
}

.usage-banner button {
  border: 0;
  background: transparent;
  color: var(--gold-dark);
  font-size: 11px;
  white-space: nowrap;
}

.composer {
  margin-top: 10px;
  display: flex;
  gap: 9px;
}

.composer textarea {
  min-height: 48px;
  flex: 1;
  resize: vertical;
  border: 1px solid #cdd5ce;
  border-radius: 2px;
  padding: 16px 14px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.composer textarea:focus,
.select-wrap:focus-within,
.modal-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215, 170, 64, 0.14);
}

.composer textarea::placeholder {
  color: #9aa49e;
}

.send-button {
  align-self: stretch;
  min-width: 93px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
}

.send-arrow {
  font-size: 17px;
  line-height: 1;
}

.composer-hint {
  margin: 8px 0 0;
  color: #9aa49e;
  font-size: 10px;
  text-align: right;
}
.composer-examples {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.composer-examples button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #d8e1d6;
  border-radius: 999px;
  background: #fff;
  color: #5d6d66;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.composer-examples button:hover,
.composer-examples button:focus-visible {
  border-color: var(--gold);
  background: #fff8e6;
  color: #84651f;
}

.context-panel {
  grid-area: context;
  height: 100%;
  min-height: 0;
  padding: 18px 20px 16px;
  border-top: 3px solid var(--gold);
  background: #f4f7f1;
}

.panel-intro h2,
.plans-band h2 {
  margin-bottom: 10px;
  color: #30443c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 500;
}

.panel-intro p {
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.control-section {
  padding: 12px 0;
  border-top: 1px solid #dce4db;
}

.section-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #53645d;
  font-size: 12px;
  font-weight: 700;
}

.section-icon {
  width: 17px;
  color: var(--gold-dark);
  font-size: 17px;
  line-height: 1;
  text-align: center;
}

.select-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #ccd7ca;
  border-radius: 3px;
  background: #fff;
  color: #53645d;
}

.select-wrap select {
  width: 100%;
  appearance: none;
  border: 0;
  outline: 0;
  padding: 12px;
  background: transparent;
  color: #3e5149;
  cursor: pointer;
  font-size: 12px;
}

.select-wrap > span:last-child {
  padding-right: 13px;
  color: var(--gold-dark);
  pointer-events: none;
}

.alignment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.alignment-chip {
  min-height: 35px;
  padding: 7px 5px;
  border: 1px solid #cbd8c9;
  border-radius: 3px;
  background: #fff;
  color: #63736c;
  font-size: 10px;
  line-height: 1.2;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.alignment-chip:hover,
.alignment-chip.is-selected {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: #84651f;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.focus-chip {
  min-height: 37px;
  border: 1px solid #cbd8c9;
  border-radius: 3px;
  background: #fff;
  color: #63736c;
  font-size: 11px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.focus-chip:hover,
.focus-chip.is-selected {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: #84651f;
}

.suggestions-section {
  padding-bottom: 16px;
}

.suggestions-list {
  display: grid;
  gap: 7px;
}

.suggestion {
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 11px;
  border: 1px solid #d5dfd3;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.72);
  color: #61716a;
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
}

.suggestion span {
  flex: 0 0 auto;
  color: var(--gold-dark);
  font-size: 16px;
  line-height: 1;
}

.suggestion:hover {
  border-color: var(--gold);
  background: #fff;
}

.aside-footnote {
  padding-top: 14px;
  display: flex;
  gap: 9px;
  border-top: 1px solid #dce4db;
}

.footnote-mark {
  color: var(--gold);
  font-size: 15px;
}

.aside-footnote p {
  margin: 0;
  color: #87948d;
  font-size: 10px;
  line-height: 1.5;
}

.info-band,
.plans-band {
  width: min(1380px, 90vw);
  margin: 0 auto 54px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.info-grid span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
}

.info-grid h3 {
  margin-bottom: 8px;
  color: #30443c;
  font-size: 15px;
}

.info-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.plans-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.plans-band h2 {
  max-width: 430px;
}

.plans-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
}

.plan-card {
  min-width: 180px;
  padding: 18px;
  display: grid;
  gap: 5px;
  border: 1px solid #d5dfd3;
  border-radius: 3px;
  background: #fbfcf9;
  color: var(--ink);
  text-align: left;
}

.plan-card.featured,
.plan-card:hover {
  border-color: var(--gold);
  background: #fffaf0;
}

.plan-card span {
  color: #53645d;
  font-size: 11px;
  font-weight: 700;
}

.plan-card strong {
  color: #314b40;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.plan-card small {
  color: #829088;
  font-size: 11px;
}

.site-footer {
  width: min(1380px, 90vw);
  margin: 0 auto;
  padding: 21px 0 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: #929c96;
  font-size: 10px;
}

.legal-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.legal-links a,
.legal-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #929c96;
  font-size: 10px;
  text-decoration: none;
}

.legal-links a:hover,
.legal-links button:hover {
  color: var(--gold-dark);
}

.site-footer button {
  padding: 0;
  font-size: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(30, 42, 38, 0.43);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(100%, 460px);
  padding: 38px 38px 31px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(23, 33, 29, 0.22);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 17px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #89958e;
  font-size: 24px;
  line-height: 1;
}

.modal-logo {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}

.modal h2 {
  margin-bottom: 12px;
  color: #30443c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1.1;
  font-weight: 500;
}

.modal-copy {
  margin-bottom: 23px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.modal-form {
  display: grid;
  gap: 13px;
}

.modal-form label {
  display: grid;
  gap: 6px;
  color: #53645d;
  font-size: 11px;
  font-weight: 700;
}

.modal-form input {
  width: 100%;
  border: 1px solid #ccd7ca;
  border-radius: 3px;
  padding: 12px;
  outline: none;
  color: var(--ink);
  font-size: 12px;
}

.modal-form input::placeholder {
  color: #a6afaa;
}

.primary-button.full {
  width: 100%;
  margin-top: 5px;
  padding: 13px 15px;
  border-radius: 3px;
  font-size: 12px;
}

.form-switch {
  margin: 18px 0 0;
  color: #8b9791;
  font-size: 11px;
  text-align: center;
}

.form-switch button,
.form-switch a {
  padding: 0;
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-switch a {
  text-decoration: none;
}

.form-switch-link {
  display: inline-block;
  margin-bottom: 7px;
}

.email-highlight {
  color: #30443c;
  font-weight: 700;
}

.email-confirmation-steps {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding: 1px 0 0;
}

.email-confirmation-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid #e6ebe5;
}

.email-confirmation-step span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
}

.email-confirmation-step p {
  margin: 0;
  color: #64736b;
  font-size: 12px;
  line-height: 1.55;
}

.auth-feedback {
  min-height: 17px;
  margin: 11px 0 0;
  color: #7a8780;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.auth-feedback.is-success {
  color: #49785c;
}

.auth-feedback.is-error {
  color: #a44334;
}
.plans-grid {
  display: grid;
  gap: 9px;
}

.plan-option {
  position: relative;
  padding: 16px 17px;
  display: grid;
  gap: 6px;
  border: 1px solid #d5dfd3;
  border-radius: 3px;
  background: #fbfcf9;
  color: var(--ink);
  text-align: left;
}

.plan-option:hover,
.plan-option.featured {
  border-color: var(--gold);
  background: #fffaf0;
}

.plan-name {
  color: #53645d;
  font-size: 11px;
  font-weight: 700;
}

.plan-option strong {
  color: #314b40;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
}

.plan-option small {
  color: #829088;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
}

.plan-detail,
.modal-legal {
  color: #89958e;
  font-size: 10px;
}

.plan-badge {
  position: absolute;
  top: 14px;
  right: 15px;
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.modal-legal {
  margin: 17px 0 0;
  text-align: center;
}
.support-contact-card {
  padding: 17px;
  display: grid;
  gap: 9px;
  border: 1px solid #d9dfd9;
  border-top: 3px solid var(--gold);
  background: #fbfcf9;
}

.support-contact-card span {
  color: #7c8f84;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-contact-card strong {
  color: #30443c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.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;
}

@media (max-width: 1020px) {
  .topbar {
    padding: 0 4vw;
  }

  .page-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "chat"
      "context";
    grid-template-rows: auto auto auto;
    width: min(760px, 90vw);
  }

  .chat-area {
    height: auto;
  }

  .conversation-panel {
    min-height: 560px;
    height: min(680px, calc(100vh - 220px));
  }

  .context-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 27px;
  }

  .panel-intro,
  .aside-footnote {
    grid-column: 1 / -1;
  }

  .suggestions-section {
    border-top: 1px solid #dce4db;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 14px 5vw;
  }

  .brand {
    margin-right: auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .nav-link {
    height: 31px;
    font-size: 11px;
  }

  .nav-link.is-active::after {
    bottom: -2px;
  }

  .quiet-button {
    font-size: 11px;
  }

  .primary-button.small {
    padding: 9px 11px;
    font-size: 11px;
  }

  .page-grid {
    width: 90vw;
    padding-top: 32px;
  }

  .chat-heading {
    display: block;
    margin-bottom: 0;
  }

  h1 {
    font-size: 36px;
    white-space: normal;
  }

  .heading-copy {
    white-space: normal;
  }

  .privacy-note {
    margin-top: 18px;
  }

  .conversation-toolbar {
    padding: 0 16px;
  }

  .conversation-panel {
    min-height: 520px;
    height: min(640px, calc(100vh - 190px));
  }

  .messages {
    min-height: 0;
    padding: 22px 15px 16px;
  }

  .message-content {
    max-width: calc(100% - 43px);
  }

  .message-bubble {
    padding: 13px 14px;
    font-size: 13px;
  }

  .composer-wrap {
    padding: 12px 13px 14px;
  }

  .usage-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .composer {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .send-button {
    min-width: 76px;
  }

  .send-button span:first-child {
    display: none;
  }

  .context-panel {
    display: block;
    padding: 18px 18px 20px;
  }

  .control-section {
    padding: 19px 0;
  }

  .info-grid,
  .plans-band,
  .plans-inline {
    grid-template-columns: 1fr;
    display: grid;
  }

  .site-footer {
    width: 90vw;
    align-items: flex-start;
    flex-direction: column;
  }

  .modal {
    padding: 33px 22px 25px;
  }
}

.onboarding-modal {
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
}

.onboarding-modal h2 {
  margin-bottom: 10px;
  font-size: 27px;
  white-space: nowrap;
}

.onboarding-modal .modal-copy {
  max-width: 360px;
  margin-bottom: 20px;
}

.onboarding-modal .modal-form {
  gap: 11px;
}

.onboarding-modal .modal-logo {
  margin-bottom: 8px;
}
.usage-actions {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}

.usage-actions button {
  padding: 0;
}

.usage-actions button + button {
  color: #53645d;
}
.usage-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.usage-copy small {
  color: #987a2d;
  font-size: 10px;
  line-height: 1.35;
}
.heading-meta {
  flex: 0 0 auto;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.heading-meta .privacy-note {
  margin-top: 0;
}

.perseverance-home {
  min-width: 150px;
  padding: 10px 13px;
  border-left: 2px solid var(--gold);
  background: #fffaf0;
  color: #80652a;
}

.perseverance-home span,
.perseverance-home small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.perseverance-home strong {
  display: block;
  margin: 3px 0 2px;
  color: #30443c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

.perseverance-home small {
  color: #927846;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 1020px) {
  .heading-meta {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 18px;
  }
}

@media (max-width: 520px) {
  .heading-meta {
    display: block;
  }

  .perseverance-home {
    margin-top: 14px;
  }
}
/* Cartao e acesso da Perseveranca na pagina de conversa. */
.perseverance-home {
  width: clamp(306px, 22vw, 332px);
  min-width: 306px;
  padding: 10px 11px 10px 10px;
  display: grid;
  grid-template-columns: 92px minmax(0, max-content);
  gap: 10px;
  align-items: center;
  border: 1px solid #e1c36d;
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  background: linear-gradient(135deg, #fffaf0 0%, #fffdf8 100%);
  box-shadow: 0 8px 20px rgba(78, 67, 39, 0.08);
  overflow: hidden;
}

.perseverance-home-image {
  width: 92px;
  height: 92px;
  object-fit: contain;
  opacity: 0.86;
  filter: sepia(0.28) saturate(0.82) contrast(1.06) drop-shadow(0 8px 11px rgba(128, 101, 42, 0.14));
}

.perseverance-home-content {
  min-width: 0;
}

.perseverance-home-content > span:first-child {
  display: inline-block;
  color: #80652a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.perseverance-home .perseverance-home-mark {
  display: inline-block;
  margin-left: 7px;
  color: var(--gold);
  font-size: 13px;
}

.perseverance-home strong {
  margin-top: 4px;
  font-size: 20px;
}

.perseverance-home small {
  margin-bottom: 7px;
  color: #6f6244;
  font-size: 11px;
}


.perseverance-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b99648;
  font-size: 11px;
}

.perseverance-actions > span {
  color: #d0b06a;
  font-size: 10px;
}

.perseverance-actions a.perseverance-info-link {
  display: inline-flex;
  align-items: center;
}
.perseverance-info-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #98701b;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.perseverance-info-link:hover,
.perseverance-info-link:focus-visible {
  color: #5c4512;
}
.message-row.is-typing .message-bubble {
  min-width: 74px;
  padding-top: 17px;
  padding-bottom: 17px;
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 16px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #b58a25;
  opacity: 0.35;
  animation: typingPulse 1.15s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.16s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes typingPulse {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-4px);
    opacity: 0.95;
  }
}
/* 20260806 mobile polish */
@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .topbar {
    min-height: 58px;
    padding: 10px 16px;
    gap: 8px 12px;
  }

  .brand {
    max-width: none;
    min-width: 0;
    flex: 0 0 auto;
    gap: 8px;
    font-size: 14px;
  }

  .brand span {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }

  .brand-logo {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .main-nav {
    display: none;
  }

  .top-actions {
    margin-left: auto;
    gap: 10px;
  }

  .session-user {
    display: none;
  }

  .quiet-button,
  .account-link {
    font-size: 12px;
  }

  .primary-button.small {
    padding: 9px 10px;
    border-radius: 5px;
    font-size: 11px;
  }

  .page-grid {
    width: 100%;
    padding: 24px 14px 22px;
    row-gap: 14px;
  }

  .chat-heading {
    padding: 0 2px;
  }

  .eyebrow,
  .panel-kicker {
    margin-bottom: 8px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 8px;
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.04;
  }

  .heading-copy {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.45;
  }

  .heading-meta {
    margin-top: 12px;
  }

  .perseverance-home {
    width: 100%;
    min-width: 0;
    margin-top: 12px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
  }

  .perseverance-home-content > span:first-child,
  .perseverance-home .perseverance-home-mark {
    grid-row: 1;
  }

  .perseverance-home strong,
  .perseverance-home small,
  .perseverance-actions {
    grid-column: 1 / -1;
  }

  .conversation-panel {
    min-height: 0;
    height: min(620px, calc(100svh - 205px));
    border-radius: 0;
  }

  .conversation-toolbar {
    height: 46px;
    padding: 0 13px;
  }

  .toolbar-title {
    font-size: 12px;
  }

  .session-label {
    font-size: 10px;
  }

  .messages {
    padding: 16px 13px 12px;
  }

  .message-row {
    gap: 8px;
    margin-bottom: 18px;
  }

  .avatar {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 15px;
  }

  .assistant-avatar,
  .user-avatar {
    margin-top: 18px;
  }

  .message-content {
    max-width: calc(100% - 34px);
  }

  .message-bubble {
    padding: 12px 13px;
    font-size: 13px;
    line-height: 1.55;
  }

  .composer-wrap {
    padding: 10px 11px 12px;
  }

  .usage-banner {
    min-height: 0;
    padding: 8px 9px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .usage-copy strong {
    font-size: 11px;
  }

  .usage-copy small {
    font-size: 9px;
  }

  .usage-actions {
    gap: 10px;
    white-space: nowrap;
  }

  .usage-actions button {
    font-size: 10px;
  }

  .composer {
    gap: 7px;
  }

  .composer textarea {
    min-height: 50px;
    max-height: 112px;
    padding: 13px 12px;
    font-size: 13px;
  }

  .send-button {
    min-width: 52px;
    padding: 0 13px;
  }

  .send-arrow {
    font-size: 19px;
  }

  .composer-hint {
    display: none;
  }

  .context-panel {
    padding: 15px 14px 16px;
    border-radius: 0;
  }

  .panel-intro h2 {
    margin-bottom: 0;
    font-size: 20px;
  }

  .control-section {
    padding: 14px 0;
  }

  .alignment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .alignment-chip {
    min-height: 36px;
    padding: 7px 6px;
    font-size: 10px;
  }

  .suggestions-list {
    gap: 6px;
  }

  .suggestion {
    padding: 10px 11px;
    font-size: 10px;
  }

  .aside-footnote {
    padding-top: 15px;
  }

  .site-footer {
    width: calc(100% - 28px);
    padding: 17px 0 22px;
    gap: 10px;
  }

  .legal-links {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 7px;
    font-size: 13px;
  }

  .brand span {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }

  .brand-logo {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .top-actions {
    gap: 7px;
  }

  .quiet-button {
    padding: 8px 0;
    font-size: 11px;
  }

  .primary-button.small {
    padding: 8px 8px;
    font-size: 11px;
  }

  .conversation-panel {
    height: min(590px, calc(100svh - 195px));
  }

  .usage-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .usage-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .modal {
    width: min(100%, 360px);
    padding: 28px 20px 23px;
  }

  .modal h2,
  .onboarding-modal h2 {
    white-space: normal;
    font-size: 24px;
  }
}
/* 20260806 mobile chat first */
@media (max-width: 760px) {
  .page-grid {
    padding: 12px 12px 20px;
    grid-template-areas:
      "chat"
      "context";
    grid-template-rows: auto auto;
    row-gap: 12px;
  }

  .chat-heading,
  .heading-meta,
  .perseverance-home {
    display: none !important;
  }

  .conversation-panel {
    height: min(650px, calc(100svh - 92px));
  }

  .composer textarea,
  .select-wrap select,
  .modal-form input,
  .modal-form select {
    font-size: 16px;
  }

  .composer textarea {
    line-height: 1.35;
  }
}

@media (max-width: 420px) {
  .conversation-panel {
    height: min(630px, calc(100svh - 88px));
  }
}
/* 20260806 mobile send button polish */
@media (max-width: 760px) {
  .send-button {
    min-width: 56px;
    width: 56px;
    padding: 0;
    border-radius: 4px;
    box-shadow: none;
  }

  .send-button:hover {
    transform: none;
  }

  .send-arrow {
    position: relative;
    width: 20px;
    height: 20px;
    display: inline-block;
    font-size: 0;
    line-height: 0;
  }

  .send-arrow::before,
  .send-arrow::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    background: currentColor;
    transform-origin: center;
  }

  .send-arrow::before {
    width: 17px;
    height: 2px;
    border-radius: 999px;
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .send-arrow::after {
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    background: transparent;
    transform: translate(-18%, -82%);
  }
}
/* Mobile composer: keep the writing area above the virtual keyboard. */
@media (max-width: 760px) {
  .composer textarea {
    resize: none;
    overflow-y: auto;
  }

  body.chat-input-active {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.chat-input-active .chat-area {
    position: fixed;
    z-index: 80;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: var(--chat-visual-height, 100dvh);
    padding: max(6px, env(safe-area-inset-top)) 7px 0;
    transform: translateY(var(--chat-visual-offset, 0px));
    background: var(--paper);
  }

  body.chat-input-active .conversation-panel {
    height: 100%;
    min-height: 0;
    border: 0;
    box-shadow: none;
  }

  body.chat-input-active .conversation-toolbar {
    height: 43px;
    flex: 0 0 43px;
    padding: 0 12px;
  }

  body.chat-input-active .messages {
    padding: 13px 11px 8px;
    scroll-padding-bottom: 12px;
  }

  body.chat-input-active .composer-wrap {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding: 8px 9px max(8px, env(safe-area-inset-bottom));
    background: #fbfcf9;
    box-shadow: 0 -10px 24px rgba(42, 57, 51, 0.08);
  }

  body.chat-input-active .usage-banner {
    display: none;
  }

  body.chat-input-active .composer {
    margin-top: 0;
    align-items: stretch;
  }

  body.chat-input-active .composer textarea {
    min-height: 50px;
    max-height: 104px;
    padding: 13px 12px;
  }

  body.chat-input-active .send-button {
    min-height: 50px;
  }
}
.modal-action-link {
  display: block;
  text-align: center;
  text-decoration: none;
}

.journey-page {
  min-height: 100vh;
  background: var(--paper);
}

.journey-ambient {
  display: none;
}

.journey-ambient-image {
  position: absolute;
  width: min(16vw, 270px);
  max-height: 58vh;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  filter: saturate(0.92) contrast(1.02) drop-shadow(0 20px 36px rgba(170, 123, 21, 0.1));
  animation: journeyAmbientFade 60s ease-in-out infinite;
  animation-delay: calc(var(--step) * 6s);
}

.journey-ambient-image.is-left {
  --ambient-enter: -14px;
  --ambient-exit: 8px;
  left: max(22px, calc(50vw - 850px));
  top: 56%;
}

.journey-ambient-image.is-right {
  --ambient-enter: 14px;
  --ambient-exit: -8px;
  right: max(22px, calc(50vw - 850px));
  top: 54%;
}

@keyframes journeyAmbientFade {
  0%, 100% {
    opacity: 0;
    transform: translate3d(var(--ambient-enter), -50%, 0) scale(0.985);
  }

  5%, 15% {
    opacity: 0.34;
    transform: translate3d(0, -50%, 0) scale(1);
  }

  22% {
    opacity: 0;
    transform: translate3d(var(--ambient-exit), -50%, 0) scale(1.012);
  }
}

@media (min-width: 1320px) {
  .journey-page {
    overflow-x: hidden;
  }

  .journey-ambient {
    position: fixed;
    inset: 64px 0 0;
    display: block;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
  }

  .journey-shell {
    position: relative;
    z-index: 1;
  }
}

@media (min-width: 1700px) {
  .journey-ambient-image {
    width: min(15vw, 300px);
  }

  .journey-ambient-image.is-left {
    left: max(42px, calc(50vw - 910px));
  }

  .journey-ambient-image.is-right {
    right: max(42px, calc(50vw - 910px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-ambient-image {
    animation: none;
  }
}

.journey-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(34px, 6vh, 72px) 0 54px;
}

.journey-hero {
  display: grid;
  grid-template-columns: minmax(0, 690px) minmax(330px, 390px);
  justify-content: space-between;
  column-gap: clamp(32px, 7vw, 96px);
  row-gap: 24px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.journey-hero > div {
  min-width: 0;
  max-width: 760px;
}

.journey-hero h1 {
  max-width: 720px;
  margin: 8px 0 12px;
  color: #30443c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 3.7vw, 54px);
  line-height: 1.03;
  font-weight: 500;
  text-wrap: balance;
}

.journey-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.journey-status {
  width: clamp(330px, 29vw, 390px);
  justify-self: end;
  box-sizing: border-box;
  padding: 10px 14px 10px 10px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px solid #e3d6b3;
  border-left: 2px solid var(--gold);
  background: linear-gradient(135deg, #fffaf0 0%, #fffdf8 100%);
  box-shadow: 0 12px 28px rgba(78, 67, 39, 0.08);
  overflow: hidden;
}

.journey-status-image {
  width: 92px;
  height: 92px;
  object-fit: contain;
  opacity: 0.86;
  filter: sepia(0.28) saturate(0.82) contrast(1.06) drop-shadow(0 8px 11px rgba(128, 101, 42, 0.14));
}

.journey-status-content {
  min-width: 0;
}

.journey-status span,
.achievement-copy span {
  color: #9a7118;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journey-status strong {
  display: block;
  margin: 7px 0 4px;
  color: #30443c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.journey-status small {
  color: #6f7c75;
  font-size: 12px;
  line-height: 1.5;
}

.journey-feature {
  margin: 30px 0 28px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 25px;
  align-items: center;
  border: 1px solid #dbe5da;
  background: linear-gradient(135deg, #fffdf8 0%, #f7faf4 100%);
}

.journey-feature img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(170, 123, 21, 0.22);
  box-shadow: 0 16px 36px rgba(99, 78, 34, 0.12);
}

.journey-feature h2 {
  margin: 7px 0 10px;
  color: #30443c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.07;
  font-weight: 500;
}

.journey-feature p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.achievement-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid #dbe5da;
  background: #fffdf8;
  box-shadow: 0 10px 24px rgba(42, 53, 48, 0.06);
}

.achievement-card.is-unlocked {
  border-color: rgba(170, 123, 21, 0.42);
  background: linear-gradient(180deg, #fffaf0 0%, #fffdf8 100%);
}

.achievement-image-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(54, 72, 64, 0.12);
  background: #f5f7f1;
}

.achievement-image-wrap img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
}

.achievement-card.is-locked .achievement-image-wrap img {
  filter: saturate(0.72) contrast(0.96);
}

.achievement-copy {
  padding: 11px 3px 2px;
}

.achievement-copy h2 {
  min-height: 42px;
  margin: 5px 0 6px;
  color: #30443c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.08;
  font-weight: 500;
}

.achievement-card.is-locked .achievement-copy h2 {
  color: #77847d;
}

.achievement-copy p {
  margin: 0;
  color: #6f7c75;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .journey-hero,
  .journey-feature {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .journey-status {
    width: 100%;
    grid-template-columns: 74px minmax(0, 1fr);
    padding: 9px 12px 9px 9px;
  }

  .journey-status-image {
    width: 74px;
    height: 74px;
  }

  .journey-shell {
    width: min(100% - 28px, 520px);
    padding-top: 28px;
  }

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

  .journey-feature {
    padding: 16px;
  }
}
.journey-page .topbar {
  background: #fff;
  backdrop-filter: none;
}

.journey-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.journey-nav a {
  color: #53645d;
  font-size: 13px;
  text-decoration: none;
}

.journey-nav a:hover,
.journey-nav a:focus-visible {
  color: var(--gold-dark);
}

.journey-hero h1 {
  max-width: 720px;
}

.journey-share-feedback {
  min-height: 20px;
  margin: 18px 0 0;
  color: #6a775f;
  font-size: 12px;
  text-align: center;
}

.journey-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.achievement-row {
  scroll-margin-top: 86px;
  display: grid;
  grid-template-columns: minmax(220px, 318px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: center;
  padding: clamp(16px, 2.2vw, 25px);
  border: 1px solid #dbe5da;
  border-left: 3px solid rgba(170, 123, 21, 0.52);
  background: linear-gradient(135deg, #fffdf8 0%, #f8fbf5 100%);
  box-shadow: 0 14px 34px rgba(42, 53, 48, 0.07);
}

.achievement-row.is-unlocked {
  border-color: rgba(170, 123, 21, 0.45);
  border-left-color: var(--gold);
  background: linear-gradient(135deg, #fffaf0 0%, #fffdf8 54%, #f7faf4 100%);
}

.achievement-row.is-locked {
  background: #fbfcf9;
}

.achievement-row-image {
  min-width: 0;
}

.achievement-row-image img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(170, 123, 21, 0.2);
  background: #f5f7f1;
  box-shadow: 0 16px 36px rgba(99, 78, 34, 0.12);
}

.achievement-row.is-locked .achievement-row-image img {
  filter: saturate(0.78) contrast(0.97);
  box-shadow: none;
}

.achievement-row-copy {
  min-width: 0;
}

.achievement-row-copy h2 {
  margin: 8px 0 10px;
  color: #30443c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.04;
  font-weight: 500;
}

.achievement-row.is-locked .achievement-row-copy h2 {
  color: #77847d;
}

.achievement-row-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.achievement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 19px;
}

.achievement-action {
  min-height: 38px;
  padding: 10px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d7dfd4;
  border-radius: 3px;
  background: #fffef9;
  color: #53645d;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.achievement-action-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: block;
}

.achievement-action:hover,
.achievement-action:focus-visible {
  border-color: var(--gold);
  color: #80652a;
  background: #fff8e7;
  transform: translateY(-1px);
}

.achievement-action.is-open {
  border-color: #ead59a;
  background: #fff6dc;
  color: #8a6617;
}

.achievement-action.is-open:hover,
.achievement-action.is-open:focus-visible {
  border-color: #d7aa40;
  background: #f8e8b7;
  color: #674b0f;
  box-shadow: 0 8px 18px rgba(170, 123, 21, 0.13);
}

.achievement-action.is-save {
  border-color: var(--gold);
  background: var(--gold);
  color: #fffdf5;
}

.achievement-action.is-save:hover,
.achievement-action.is-save:focus-visible {
  background: var(--gold-dark);
  color: #fffdf5;
  box-shadow: 0 8px 18px rgba(170, 123, 21, 0.18);
}

.achievement-action.is-whatsapp {
  border-color: #25d366;
  background: #25d366;
  color: #ffffff;
}

.achievement-action.is-whatsapp:hover,
.achievement-action.is-whatsapp:focus-visible {
  border-color: #1fae56;
  background: #1fae56;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.22);
}


.achievement-action.is-instagram {
  border-color: #dd2a7b;
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 48%, #8134af 100%);
  color: #ffffff;
}

.achievement-action.is-instagram:hover,
.achievement-action.is-instagram:focus-visible {
  border-color: #c42a7b;
  background: linear-gradient(135deg, #e87418 0%, #c72470 48%, #6f2da0 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(221, 42, 123, 0.22);
}

.achievement-actions.is-disabled {
  margin-top: 16px;
}


.journey-reset-note {
  max-width: 760px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(208, 217, 207, 0.72);
  color: #7d8983;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.journey-reset-note p {
  margin: 0;
}

.journey-reset-note a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
}

.journey-reset-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.achievement-actions.is-disabled span {
  padding: 10px 12px;
  border: 1px dashed #cdd8cb;
  border-radius: 3px;
  color: #7b8881;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .journey-hero {
    grid-template-columns: 1fr;
  }

  .journey-status {
    width: min(100%, 390px);
    justify-self: start;
  }

  .achievement-row {
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .achievement-row {
    grid-template-columns: 1fr;
  }

  .achievement-row-image {
    width: min(100%, 340px);
    justify-self: center;
  }

  .achievement-row-copy h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

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

@media (max-width: 460px) {
  .achievement-actions {
    grid-template-columns: 1fr;
  }
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9aa49e;
  text-decoration: none;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  color: var(--gold-dark);
  opacity: 0.95;
}

.social-link-icon {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
}

.social-link.is-tiktok .social-link-icon {
  fill: currentColor;
  stroke: none;
}

.social-link.is-instagram:hover,
.social-link.is-instagram:focus-visible,
.social-link.is-tiktok:hover,
.social-link.is-tiktok:focus-visible {
  color: var(--gold-dark);
}

@media (max-width: 760px) {
  .footer-social {
    width: 100%;
    gap: 11px;
  }

  .social-link {
    width: 28px;
    height: 28px;
  }
}
.materials-page {
  min-height: 100vh;
  background: var(--paper);
}

.materials-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(34px, 6vh, 70px) 0 54px;
}

.materials-hero {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(330px, 345px);
  justify-content: space-between;
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.materials-hero-copy h1 {
  max-width: 720px;
  margin: 8px 0 13px;
  color: #30443c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 3.8vw, 56px);
  line-height: 1.03;
  font-weight: 500;
  white-space: normal;
  text-wrap: balance;
}

.materials-hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.materials-access-card {
  justify-self: end;
  width: min(100%, 345px);
  padding: 17px 18px;
  border: 1px solid #e3d6b3;
  border-top: 3px solid var(--gold);
  background: linear-gradient(135deg, #fffaf0 0%, #fffdf8 100%);
  box-shadow: 0 14px 32px rgba(78, 67, 39, 0.08);
}

.materials-access-card span,
.material-badges span {
  color: #9a7118;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.materials-access-card strong {
  display: block;
  margin: 9px 0 7px;
  color: #30443c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 500;
  white-space: nowrap;
}

.materials-access-card small {
  display: block;
  color: #6f7c75;
  font-size: 12px;
  line-height: 1.55;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.material-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #dbe5da;
  background: #fffdf8;
  box-shadow: 0 14px 34px rgba(42, 53, 48, 0.07);
}

.material-card.is-locked,
.material-card.is-coming-soon {
  background: #fbfcf9;
}

.material-cover {
  padding: 18px 18px 0;
}

.material-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(170, 123, 21, 0.2);
  background: #f5f7f1;
  box-shadow: 0 16px 34px rgba(99, 78, 34, 0.12);
}

.material-card.is-coming-soon .material-cover img,
.material-card.is-locked .material-cover img {
  filter: saturate(0.82) contrast(0.97);
}

.material-copy {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.material-badges {
  min-height: 21px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.material-badges span {
  padding: 5px 7px;
  border: 1px solid #eadfbe;
  background: #fffaf0;
  letter-spacing: 0.08em;
  font-size: 9px;
}

.material-subtitle {
  margin: 0 0 8px;
  color: #7c8f84;
  font-size: 11px;
  font-weight: 700;
}

.material-copy h2 {
  margin: 0 0 10px;
  color: #30443c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 500;
}

.material-copy p:not(.material-subtitle) {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.material-button {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: var(--gold);
  color: #fffdf5;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.material-button:hover,
.material-button:focus-visible {
  border-color: var(--gold-dark);
  background: var(--gold-dark);
  color: #fffdf5;
  transform: translateY(-1px);
}

.material-button.is-soft {
  border-color: #e3d6b3;
  background: #fff8e7;
  color: #8a6617;
}

.material-button.is-soft:hover,
.material-button.is-soft:focus-visible {
  border-color: var(--gold);
  background: #f8e8b7;
  color: #654b10;
}

.material-button:disabled {
  cursor: not-allowed;
  border-color: #dbe5da;
  background: #eef3ec;
  color: #87948d;
  transform: none;
}

@media (max-width: 980px) {
  .materials-hero {
    grid-template-columns: 1fr;
  }

  .materials-access-card {
    justify-self: start;
  }

  .materials-access-card strong {
    white-space: normal;
  }

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

@media (max-width: 620px) {
  .materials-shell {
    width: min(100% - 28px, 520px);
    padding-top: 28px;
  }

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

  .materials-access-card {
    width: 100%;
  }
}
/* Materials mobile focus and split actions */
.material-card {
  scroll-margin-top: 86px;
}

.material-cover img {
  aspect-ratio: 50 / 57;
}

.material-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.material-actions .material-button {
  margin-top: 0;
}

.material-button-open {
  border-color: #e3c879;
  background: #fff8e4;
  color: #8a6617;
}

.material-button-open:hover,
.material-button-open:focus-visible {
  border-color: var(--gold);
  background: #f8e8b7;
  color: #654b10;
}

.material-button-save {
  border-color: var(--gold);
  background: var(--gold);
  color: #fffdf5;
}

.material-button-save:hover,
.material-button-save:focus-visible {
  border-color: var(--gold-dark);
  background: var(--gold-dark);
  color: #fffdf5;
}

.materials-mobile-link {
  display: none;
}

@media (max-width: 620px) {
  .materials-mobile-link {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }

  .materials-mobile-link span {
    font-size: 17px;
    line-height: 1;
  }
}
.question-counter {
  margin-right: 12px;
  color: #9aa49e;
  font-variant-numeric: tabular-nums;
}

.question-counter.is-near-limit {
  color: var(--gold-dark);
}


/* Internal pages mobile polish 20260820 */
@media (max-width: 760px) {
  .auth-page,
  .account-page,
  .admin-page,
  .welcome-page,
  .journey-page,
  .materials-page,
  .legal-page {
    overflow-x: hidden;
  }

  .auth-page .topbar,
  .account-page .topbar,
  .admin-page .topbar,
  .welcome-page .topbar,
  .journey-page .topbar,
  .materials-page .topbar,
  .legal-page .topbar {
    padding-right: 18px;
    padding-left: 18px;
    gap: 10px 14px;
  }

  .auth-page .brand,
  .account-page .brand,
  .admin-page .brand,
  .welcome-page .brand,
  .journey-page .brand,
  .materials-page .brand,
  .legal-page .brand {
    min-width: 0;
    white-space: normal;
  }

  .auth-page .brand span,
  .account-page .brand span,
  .admin-page .brand span,
  .welcome-page .brand span,
  .journey-page .brand span,
  .materials-page .brand span,
  .legal-page .brand span {
    white-space: normal;
    line-height: 1.12;
  }

  .auth-page .top-actions,
  .welcome-page .top-actions,
  .journey-page .top-actions,
  .materials-page .top-actions,
  .legal-page .top-actions {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .auth-page .top-actions,
  .welcome-page .top-actions,
  .journey-page .top-actions,
  .materials-page .top-actions,
  .legal-page .top-actions {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .journey-shell,
  .materials-shell {
    width: min(100% - 24px, 560px);
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .journey-hero,
  .materials-hero {
    gap: 17px;
    align-items: start;
    padding-bottom: 22px;
  }

  .journey-hero h1,
  .materials-hero-copy h1 {
    font-size: clamp(33px, 10vw, 43px);
    line-height: 1.05;
  }

  .journey-hero p,
  .materials-hero-copy p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.62;
  }

  .journey-status {
    width: 100%;
    grid-template-columns: 64px minmax(0, 1fr);
    justify-self: stretch;
    padding: 8px 11px 8px 8px;
  }

  .journey-status-image {
    width: 64px;
    height: 64px;
  }

  .journey-status strong {
    font-size: 26px;
  }

  .journey-status small,
  .materials-access-card small {
    font-size: 11px;
  }

  .journey-list {
    gap: 14px;
    margin-top: 18px;
  }

  .achievement-row {
    padding: 14px;
    gap: 16px;
  }

  .achievement-row-image {
    width: min(100%, 300px);
  }

  .achievement-row-copy h2 {
    font-size: clamp(28px, 8.6vw, 36px);
  }

  .achievement-row-copy p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.62;
  }

  .achievement-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .achievement-action {
    min-height: 42px;
    padding: 10px 8px;
    font-size: 11px;
  }

  .materials-access-card {
    width: 100%;
    justify-self: stretch;
    padding: 15px 16px;
  }

  .materials-grid {
    gap: 14px;
    margin-top: 22px;
  }

  .material-cover {
    padding: 14px 14px 0;
  }

  .material-cover img {
    aspect-ratio: 50 / 54;
  }

  .material-copy {
    padding: 16px;
  }

  .material-copy h2 {
    font-size: clamp(28px, 8.5vw, 36px);
  }

  .material-copy p:not(.material-subtitle) {
    font-size: 13px;
  }

  .material-button {
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .achievement-actions,
  .material-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .achievement-action span,
  .material-button {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .composer-examples {
    gap: 6px;
  }

  .composer-examples button {
    min-height: 28px;
    padding: 6px 9px;
    font-size: 10px;
  }

  body.chat-input-active .composer-examples {
    display: none;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 82px;
  }

  #conversa,
  .chat-area {
    scroll-margin-top: 82px;
  }
}