/* EYRA Solutions — linen brand */
:root {
  --canvas: #f7f3ea;
  --bg: #f3eee4;
  --card: #fffdf8;
  --side: #efe6d6;
  --ink: #2c261c;
  --title: #3a2718;
  --muted: #7d7366;
  --line: #e3d7c4;
  --gold: #a8843e;
  --btn-start: #f0c56a;
  --btn-end: #c4923e;
  --btn-bar: #e7c27a;
  --on-gold: #fffaf3;
  --green-dot: #3d9a5f;
  --header-h: 72px;
  --max: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 12px 40px rgb(58 39 24 / 6%);
  --btn-shadow: 0 10px 24px rgb(196 146 62 / 35%);
  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--title);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  color: var(--title);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2.5rem, 720px);
  margin-inline: auto;
}

/* —— Wordmark —— */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--title);
  line-height: 1;
  gap: 0.22rem;
}

.wordmark__eyra {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  padding-right: 0.28em; /* optical balance for tracking */
}

.wordmark__solutions {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--muted);
  text-transform: uppercase;
  padding-right: 0.34em;
}

.wordmark--footer .wordmark__eyra {
  font-size: 1.15rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.45rem;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--gold {
  color: var(--on-gold);
  background:
    linear-gradient(180deg, rgb(255 250 243 / 22%), transparent 42%),
    linear-gradient(180deg, var(--btn-start), var(--btn-end));
  box-shadow: var(--btn-shadow);
  border: 1px solid rgb(255 250 243 / 35%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cover__brand::after {
  content: "";
  display: block;
  width: min(220px, 55vw);
  height: 1px;
  margin: 1.15rem auto 0;
  background: linear-gradient(90deg, transparent, #e7c27a, transparent);
  box-shadow: 0 0 18px rgb(240 197 106 / 55%);
}

.btn--gold:hover {
  color: var(--on-gold);
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn--gold:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.btn--ghost {
  color: var(--title);
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn--ghost:hover {
  color: var(--title);
  background: var(--side);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgb(247 243 234 / 88%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(227 215 196 / 70%);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--title);
  cursor: pointer;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--title);
  border-radius: 2px;
}

@media (min-width: 860px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* Mobile sheet */
.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgb(44 38 28 / 35%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-sheet.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-sheet__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 360px);
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding: 1.25rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(12px);
  transition: transform 0.2s ease;
  box-shadow: -20px 0 60px rgb(58 39 24 / 10%);
}

.nav-sheet.is-open .nav-sheet__panel {
  transform: translateX(0);
}

.nav-sheet__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-sheet__close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--title);
  font-size: 1.25rem;
  cursor: pointer;
}

.nav-sheet__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-sheet__links a {
  display: block;
  padding: 0.85rem 0.4rem;
  color: var(--title);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.nav-sheet__links a.is-active {
  color: var(--gold);
}

.nav-sheet__enter {
  margin-top: auto;
}

/* —— Main offset —— */
.site-main {
  padding-top: var(--header-h);
  min-height: 70vh;
}

/* —— Cover —— */
.cover {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--canvas);
}

.cover__waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: var(--canvas);
  background-image:
    linear-gradient(180deg, rgb(247 243 234 / 28%), rgb(243 238 228 / 42%)),
    url("../assets/eyra-hero-linen.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: linenDrift 28s ease-in-out infinite alternate;
}

@media (max-width: 720px) {
  .cover__waves {
    background-image:
      linear-gradient(180deg, rgb(247 243 234 / 22%), rgb(243 238 228 / 48%)),
      url("../assets/eyra-hero-linen-mobile.jpg");
  }
}

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

@keyframes linenDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, 0.8%, 0); }
}

.cover__waves::before,
.cover__waves::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cover__waves::before {
  background:
    radial-gradient(90% 55% at 12% 18%, rgb(240 197 106 / 18%), transparent 55%),
    radial-gradient(70% 45% at 88% 12%, rgb(168 132 62 / 10%), transparent 50%);
}

.cover__waves::after {
  background: linear-gradient(180deg, transparent 55%, rgb(243 238 228 / 55%));
}

.cover__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3.5rem 1.25rem 4rem;
  width: min(100%, 820px);
}

.cover__brand {
  margin-bottom: 2.25rem;
}

.cover__brand .wordmark {
  align-items: center;
}

.cover__brand .wordmark__eyra {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  letter-spacing: 0.34em;
}

.cover__brand .wordmark__solutions {
  font-size: clamp(0.72rem, 2vw, 0.9rem);
  letter-spacing: 0.42em;
  margin-top: 0.45rem;
}

.cover__phrase {
  margin: 0 0 1.1rem;
}

.cover__phrase [data-reveal-line] {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(1.65rem, 5.2vw, 2.75rem);
  font-weight: 500;
  color: var(--title);
  letter-spacing: 0.04em;
  line-height: 1.18;
}

.reveal-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  animation: charIn 0.55s ease forwards;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal-char {
    opacity: 1;
    transform: none;
    animation: none;
  }
  [data-reveal-line].is-revealed {
    opacity: 1;
  }
}

.cover__support {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 28rem;
  margin: 0 auto 1.75rem;
}

.cover__cta {
  margin-bottom: 1.35rem;
}

.secure-line {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.secure-line__icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.secure-line__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-dot);
  box-shadow: 0 0 0 3px rgb(61 154 95 / 18%);
  flex-shrink: 0;
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section--side {
  background: var(--side);
}

.section--bg {
  background: var(--bg);
}

.section__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  margin-bottom: 0.75rem;
}

.section__lead {
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section__lead {
  margin-inline: auto;
}

/* —— Cards grid —— */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.45rem 1.7rem;
  box-shadow: var(--shadow-soft);
}

.card__label {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--title);
  margin-bottom: 0.35rem;
}

.card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.card p {
  color: var(--ink);
  font-size: 0.98rem;
}

/* —— Steps —— */
.steps {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--side);
  border: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--font-title);
  font-weight: 600;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.step p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— Wide brand block —— */
.brand-band {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(2rem, 5vw, 3.25rem);
  box-shadow: var(--shadow-soft);
}

.brand-band__q {
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  color: var(--title);
  margin-bottom: 0.85rem;
}

.brand-band p {
  color: var(--muted);
  max-width: 40rem;
  font-size: 1.05rem;
}

/* —— Plans —— */
.plans-access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--side);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.35rem;
}

.plans-access__title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--title);
  margin: 0 0 0.2rem;
}

.plans-access__meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.plans-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .plans-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.plan--premium {
  border-color: var(--gold);
  box-shadow: 0 14px 36px rgb(168 132 62 / 16%);
}

.plan__badge {
  position: absolute;
  top: -0.65rem;
  right: 1rem;
  background: linear-gradient(180deg, var(--btn-start), var(--btn-end));
  color: var(--on-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.plan__name {
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.plan__price {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--title);
  margin-bottom: 0.15rem;
}

.plan__price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.plan__note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.plan__list {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  flex: 1;
}

.plan__list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.plan .btn {
  margin-top: auto;
}

.plans-footnote {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* —— Closing band —— */
.closing {
  text-align: center;
  padding: 4rem 0 4.5rem;
  background: var(--side);
  border-top: 1px solid var(--line);
}

.closing__q {
  font-family: var(--font-title);
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  color: var(--title);
  margin-bottom: 1.35rem;
}

.closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.1rem;
}

.closing__mail {
  color: var(--muted);
  font-size: 0.95rem;
}

.closing__mail a {
  color: var(--gold);
}

/* —— Product feature blocks —— */
.feature {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: none;
}

.feature h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--ink);
  max-width: 42rem;
}

.feature .muted {
  color: var(--muted);
}

.feature__chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

/* —— Page hero (inner) —— */
.page-hero {
  padding: 3.25rem 0 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.55rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.08rem;
}

/* —— Acceso —— */
.acceso-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft);
  max-width: 640px;
  margin: 2.5rem auto 3rem;
}

.acceso-card ol {
  margin: 0 0 1.75rem;
  padding-left: 1.2rem;
}

.acceso-card li {
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.acceso-card li strong {
  color: var(--title);
  font-weight: 600;
}

.acceso-reassure {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.35rem;
  align-items: flex-start;
}

/* —— Legal —— */
.legal {
  padding: 2.5rem 0 4rem;
}

.legal h2 {
  font-size: 1.55rem;
  margin-top: 2.5rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.legal h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
}

.legal p,
.legal li {
  color: var(--ink);
  font-size: 1rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.45rem;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2.75rem;
}

.site-footer__inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.site-footer__phrase {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.85rem;
  max-width: 22rem;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.site-footer__links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__links a:hover {
  color: var(--gold);
}

.site-footer__mail {
  font-size: 0.98rem;
}

/* —— Utility —— */
.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;
}

.inside-app {
  margin-top: 2.5rem;
  background: var(--side);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}

.inside-app h2 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.inside-app p {
  color: var(--muted);
  margin-bottom: 0.65rem;
}

/* —— Asistente EYRA (widget comercial) —— */
.eyra-chat {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  font-family: var(--font-body);
}

.eyra-chat__fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  cursor: pointer;
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--btn-start), var(--btn-end));
  box-shadow: var(--btn-shadow);
  border-radius: 999px;
  padding: 0.85rem 1.15rem 0.85rem 0.95rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.eyra-chat__fab:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.eyra-chat__fab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.eyra-chat__fab-icon {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
}

.eyra-chat__fab-label {
  font-size: 0.95rem;
}

.eyra-chat.is-open .eyra-chat__fab-label {
  display: none;
}

.eyra-chat.is-open .eyra-chat__fab {
  padding: 0.85rem;
  border-radius: 50%;
}

.eyra-chat__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(380px, calc(100vw - 1.6rem));
  max-height: min(560px, calc(100vh - 6.5rem));
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft), 0 20px 50px rgb(58 39 24 / 12%);
  overflow: hidden;
}

.eyra-chat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  background: var(--side);
  border-bottom: 1px solid var(--line);
}

.eyra-chat__badge {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyra-chat__head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--title);
}

.eyra-chat__sub {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.eyra-chat__close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
}

.eyra-chat__close:hover {
  color: var(--title);
  background: rgb(58 39 24 / 5%);
}

.eyra-chat__log {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--canvas);
  min-height: 180px;
}

.eyra-chat__msg {
  max-width: 92%;
}

.eyra-chat__msg--user {
  align-self: flex-end;
  background: linear-gradient(180deg, var(--btn-start), var(--btn-end));
  color: var(--on-gold);
  border-radius: 14px 14px 4px 14px;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
}

.eyra-chat__msg--user p {
  margin: 0;
}

.eyra-chat__msg--bot {
  align-self: flex-start;
}

.eyra-chat__bubble {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  color: var(--ink);
  box-shadow: 0 4px 14px rgb(58 39 24 / 4%);
}

.eyra-chat__bubble p {
  margin: 0 0 0.55rem;
}

.eyra-chat__bubble p:last-of-type {
  margin-bottom: 0.45rem;
}

.eyra-chat__bubble ul {
  margin: 0 0 0.55rem;
  padding-left: 1.1rem;
  color: var(--ink);
}

.eyra-chat__bubble li {
  margin: 0.2rem 0;
}

.eyra-chat__cta {
  display: inline-flex;
  margin-top: 0.55rem;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
}

.eyra-chat__cta-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
  text-decoration: none;
}

.eyra-chat__cta-link:hover {
  color: var(--title);
  text-decoration: underline;
}

.eyra-chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem 0.35rem;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.eyra-chat__chip {
  border: 1px solid var(--line);
  background: var(--side);
  color: var(--title);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.eyra-chat__chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.eyra-chat__form {
  display: flex;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem 0.35rem;
  background: var(--card);
}

.eyra-chat__input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.92rem;
  background: var(--canvas);
  color: var(--ink);
}

.eyra-chat__input:focus {
  outline: 2px solid rgb(168 132 62 / 35%);
  border-color: var(--gold);
}

.eyra-chat__send {
  border: 0;
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--btn-start), var(--btn-end));
  cursor: pointer;
  white-space: nowrap;
}

.eyra-chat__send:hover {
  filter: brightness(1.03);
}

.eyra-chat__foot {
  margin: 0;
  padding: 0.35rem 0.9rem 0.7rem;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--card);
  text-align: center;
}

@media (max-width: 480px) {
  .eyra-chat {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .eyra-chat__panel {
    width: calc(100vw - 1.5rem);
    max-height: min(70vh, 520px);
  }

  .eyra-chat__fab-label {
    display: none;
  }

  .eyra-chat__fab {
    padding: 0.9rem;
    border-radius: 50%;
  }
}
