/* =========================================================
   HCMS — Components
   ========================================================= */

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--evergreen);
  --btn-ink: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: var(--fs-300);
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-spring),
              box-shadow var(--dur) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-ink); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--primary { --btn-bg: var(--cta); --btn-ink: var(--cta-ink); box-shadow: var(--shadow-cta); }
.btn--primary:hover { --btn-bg: var(--cta-hover); }

.btn--secondary { --btn-bg: var(--evergreen); --btn-ink: #fff; }
.btn--secondary:hover { --btn-bg: var(--evergreen-deep); }

.btn--ghost {
  --btn-bg: transparent; --btn-ink: var(--evergreen-deep);
  border-color: var(--line-strong); box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--surface); border-color: var(--evergreen); box-shadow: var(--shadow-sm); }

.btn--on-dark { --btn-bg: #fff; --btn-ink: var(--evergreen-deep); }
.btn--on-dark.btn--ghost { --btn-bg: transparent; --btn-ink: #fff; border-color: rgba(255,255,255,.4); }
.btn--on-dark.btn--ghost:hover { --btn-bg: rgba(255,255,255,.1); border-color: #fff; }

.btn--lg { min-height: 58px; padding: 1rem 1.9rem; font-size: var(--fs-400); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 650; text-decoration: none; color: var(--text-accent);
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--evergreen-tint);
  color: var(--on-tint);
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.pill--clay { background: var(--clay-tint); color: var(--on-clay-tint); }
.pill--sage { background: var(--sage); color: var(--on-tint); }
.pill--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--ivory) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--ivory) 94%, transparent);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  transition: min-height var(--dur) var(--ease-out);
}
.site-header.is-scrolled .header-inner { min-height: 68px; }

/* Brand / logo */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 44px; height: 44px; flex: none; color: var(--text-accent); transition: transform var(--dur) var(--ease-spring); }
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.04); }
.brand__mark .pulse { color: var(--clay-text); }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name .b1 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--text-accent); text-transform: uppercase; letter-spacing: 0; text-align: justify; text-align-last: justify; text-justify: inter-character; }
.brand__name .b2 { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }

/* Primary nav */
.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  position: relative;
  padding: 0.55rem 0.7rem;
  border-radius: var(--r-sm);
  font-size: 0.98rem;
  font-weight: 550;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.34rem;
  height: 2px; border-radius: 2px; background: var(--clay-deep);
  transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.nav__link:hover { color: var(--text-link-hover); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); opacity: 1; }
.nav__link[aria-current="page"] { color: var(--text-link-hover); font-weight: 650; }

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  align-items: center; justify-content: center;
  color: var(--on-tint);
  border: 1px solid var(--line);
  background: var(--surface);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Mobile nav panel ---------- */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  z-index: var(--z-dropdown);
  background: var(--ivory);
  padding: 1.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mobile-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav a.m-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0.5rem; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-nav a.m-link:hover { color: var(--text-link-hover); }
.mobile-nav .m-actions { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.85rem; }
body.nav-open { overflow: hidden; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--sage-deep); }

/* Service card */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card__icon {
  width: 58px; height: 58px; flex: none;
  display: grid; place-items: center;
  border-radius: 18px 18px 18px 6px;
  background: linear-gradient(150deg, var(--evergreen-tint), color-mix(in srgb, var(--sage) 60%, var(--evergreen-tint)));
  color: var(--on-tint);
  margin-bottom: 1.1rem;
  transition: transform var(--dur) var(--ease-spring), background var(--dur) var(--ease-out);
}
.service-card__icon svg { width: 30px; height: 30px; }
.service-card--hover:hover .service-card__icon, .card--hover:hover .service-card__icon { transform: rotate(-4deg) scale(1.06); }
.service-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--ink-soft); font-size: var(--fs-300); }
.service-card .link-arrow { margin-top: auto; padding-top: 1.1rem; }

/* Step (how it works) */
.step { position: relative; }
.step__num {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; background: var(--clay-tint); color: var(--on-clay-tint);
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: var(--fs-300); }

/* Stat */
.stat__num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
  line-height: 1; color: var(--text-accent);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.stat__num .suffix { color: var(--clay-text); }
.stat__label { margin-top: 0.5rem; color: var(--ink-soft); font-weight: 550; font-size: var(--fs-300); }

/* ---------- Arch / media ---------- */
.media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; background: var(--sage); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--arch { border-radius: var(--arch); }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 3 / 2; }
.media--band { aspect-ratio: auto; }

/* decorative blobs / shapes */
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.5; pointer-events: none; z-index: 0; }

/* ---------- Avatars (monogram, swap for real headshots) ---------- */
.avatar {
  width: var(--avatar-size, 76px); height: var(--avatar-size, 76px);
  flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; color: #fff;
  font-size: calc(var(--avatar-size, 76px) * 0.34);
  background: linear-gradient(145deg, var(--evergreen-soft), var(--evergreen-deep));
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.25);
  user-select: none;
}
.avatar--clay { background: linear-gradient(145deg, var(--clay-soft), var(--clay-deep)); }
.avatar--sage { background: linear-gradient(145deg, var(--sage-deep), var(--evergreen-soft)); }

/* ---------- Facepile (overlapping avatar row) ---------- */
.facepile { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.facepile__avatars { display: flex; }
.facepile .avatar {
  border: 2px solid var(--ivory);
  cursor: default;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.facepile .avatar + .avatar { margin-left: -12px; }
.facepile .avatar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); position: relative; z-index: 1; }
.facepile__label { font-size: var(--fs-200); color: var(--ink-soft); line-height: 1.25; max-width: 14ch; }
.facepile__label b { color: var(--text-accent); }
.facepile:hover .facepile__label { text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .facepile .avatar { transition: none; }
  .facepile .avatar:hover { transform: none; }
}

/* ---------- Team card ---------- */
.member { text-align: left; }
.member__top { display: flex; align-items: flex-start; gap: 1rem; }
.member__top > div { min-width: 0; }
.member__name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--ink); line-height: 1.2; overflow-wrap: anywhere; }
.member__role { color: var(--clay-text); font-weight: 600; font-size: var(--fs-200); }
.member__bio { color: var(--ink-soft); font-size: var(--fs-300); margin-top: 0.9rem; }
.member__tags { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ---------- Testimonial ---------- */
.quote-mark { font-family: var(--font-display); font-size: 4rem; line-height: 0.6; color: var(--sage-deep); }
.testimonial p.quote { font-family: var(--font-display); font-size: var(--fs-500); line-height: 1.45; color: var(--ink); font-weight: 500; }
.stars { display: inline-flex; gap: 2px; color: var(--gold-deep); }
.stars svg { width: 1.1rem; height: 1.1rem; }
.testimonial__by { margin-top: 1rem; font-weight: 600; color: var(--ink); }
.testimonial__meta { color: var(--stone); font-size: var(--fs-200); }

/* Band with image + scrim */
.band {
  position: relative; border-radius: var(--r-2xl); overflow: hidden;
  color: #fff; isolation: isolate;
}
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(7,56,51,.92) 0%, rgba(7,56,51,.7) 45%, rgba(7,56,51,.35) 100%);
}
.band h2, .band h3 { color: #fff; }

/* ---------- FAQ (native details) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0.25rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-500);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--text-link-hover); }
.faq summary .chev {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--evergreen-tint); color: var(--on-tint);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.faq details[open] summary .chev { transform: rotate(45deg); background: var(--clay-tint); color: var(--on-clay-tint); }
.faq__body { padding: 0 0.25rem 1.4rem; color: var(--ink-soft); max-width: 70ch; }
.faq details[open] .faq__body { animation: faqIn var(--dur-slow) var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); box-shadow: var(--shadow-md); }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.15rem; }
.field > label { font-weight: 600; font-size: var(--fs-300); color: var(--ink); }
.field .req { color: var(--clay-text); }
.field .hint { font-size: var(--fs-200); color: var(--stone); }
.input, .textarea, .select {
  width: 100%; min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--ivory);
  font-size: var(--fs-300);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235B6A63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.75rem; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--evergreen); background: var(--surface); box-shadow: 0 0 0 4px var(--evergreen-tint); }
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--stone) 80%, transparent); }

.field--error .input, .field--error .textarea, .field--error .select { border-color: var(--error); background: color-mix(in srgb, var(--error) 5%, var(--ivory)); }
.field__error { display: none; color: var(--error); font-size: var(--fs-200); font-weight: 550; align-items: center; gap: 0.35rem; }
.field--error .field__error { display: flex; }

.form-grid { display: grid; gap: 0 1.25rem; grid-template-columns: 1fr 1fr; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.form-success {
  display: none; text-align: center; padding: 1rem 0;
}
.form-success.is-shown { display: block; animation: faqIn var(--dur-slow) var(--ease-out); }
.form-success__icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; background: color-mix(in srgb, var(--success) 14%, var(--ivory)); color: var(--success); display: grid; place-items: center; }
.form-success__icon svg { width: 38px; height: 38px; }

.form-note { font-size: var(--fs-200); color: var(--stone); }
.demo-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--fs-100); font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--on-clay-tint); background: var(--clay-tint);
  padding: 0.25rem 0.6rem; border-radius: var(--r-pill);
}

/* ---------- Area checker ---------- */
.area-check { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.area-check .input { max-width: 220px; flex: 1 1 160px; }
.area-result { margin-top: 1rem; font-weight: 600; display: none; align-items: flex-start; gap: 0.5rem; }
.area-result.is-shown { display: flex; animation: faqIn var(--dur) var(--ease-out); }
.area-result--yes { color: var(--success-text); }
.area-result--maybe { color: var(--clay-text); }

/* ---------- AI widget (mocked demo) ---------- */
.ai-launcher {
  position: fixed; right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: var(--z-widget);
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.25rem 0.85rem 1rem;
  border-radius: var(--r-pill);
  background: var(--evergreen-deep); color: #fff;
  box-shadow: var(--shadow-lg);
  font-weight: 650;
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-out), background var(--dur-fast);
}
.ai-launcher:hover { transform: translateY(-3px); color: #fff; background: var(--evergreen); }
.ai-launcher svg { width: 1.4em; height: 1.4em; }
.ai-launcher .sparkle-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 0 color-mix(in srgb, var(--clay) 70%, transparent); animation: dotPulse 2.4s var(--ease-out) infinite; }
@keyframes dotPulse { 0%{ box-shadow: 0 0 0 0 color-mix(in srgb, var(--clay) 60%, transparent);} 70%{ box-shadow: 0 0 0 10px transparent;} 100%{ box-shadow: 0 0 0 0 transparent;} }
.ai-launcher.is-hidden { opacity: 0; visibility: hidden; transform: scale(0.8); }

.ai-panel {
  position: fixed; right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: var(--z-modal);
  width: min(380px, calc(100vw - 2rem));
  height: min(560px, calc(100dvh - 2rem));
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform-origin: bottom right;
  transform: translateY(16px) scale(0.96); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring), visibility var(--dur);
}
.ai-panel.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.ai-head { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; background: linear-gradient(120deg, var(--evergreen-deep), var(--evergreen)); color: #fff; }
.ai-head__avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.ai-head__avatar svg { width: 22px; height: 22px; }
.ai-head__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.1; }
.ai-head__sub { font-size: 0.72rem; opacity: 0.85; display: inline-flex; align-items: center; gap: 0.35rem; }
.ai-head__sub::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: #7FE0A8; }
.ai-close { margin-left: auto; color: #fff; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background var(--dur-fast); }
.ai-close:hover { background: rgba(255,255,255,.16); }
.ai-close svg { width: 20px; height: 20px; }

.ai-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.75rem; background: var(--ivory); scroll-behavior: smooth; }
.msg { max-width: 84%; padding: 0.75rem 0.95rem; border-radius: 16px; font-size: 0.95rem; line-height: 1.45; }
.msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); }
.msg--user { align-self: flex-end; background: var(--evergreen); color: #fff; border-bottom-right-radius: 5px; }
.msg a { color: inherit; text-decoration: underline; }
.msg--bot a { color: var(--text-link-hover); }
.msg b { font-weight: 650; }
.ai-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 0.85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-deep); animation: typing 1.2s infinite ease-in-out; }
.ai-typing span:nth-child(2){ animation-delay: 0.15s; } .ai-typing span:nth-child(3){ animation-delay: 0.3s; }
@keyframes typing { 0%,60%,100%{ transform: translateY(0); opacity:.5;} 30%{ transform: translateY(-5px); opacity:1;} }

.ai-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0 1.1rem 0.5rem; }
.ai-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 0.9rem; border-radius: var(--r-pill); background: var(--evergreen-tint); color: var(--on-tint); font-size: 0.82rem; font-weight: 600; border: 1px solid transparent; transition: background var(--dur-fast), transform var(--dur-fast); }
.ai-chip:hover { background: var(--sage); transform: translateY(-1px); }
.ai-foot { padding: 0.75rem 0.9rem 0.9rem; border-top: 1px solid var(--line); background: var(--surface); }
.ai-compose { display: flex; gap: 0.5rem; align-items: flex-end; }
.ai-compose textarea { flex: 1; min-height: 44px; max-height: 90px; padding: 0.65rem 0.85rem; border: 1.5px solid var(--line-strong); border-radius: 14px; resize: none; font-size: 0.95rem; background: var(--ivory); }
.ai-compose textarea:focus { outline: none; border-color: var(--evergreen); box-shadow: 0 0 0 3px var(--evergreen-tint); }
.ai-send { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--cta); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: background var(--dur-fast), transform var(--dur-fast); }
.ai-send:hover { background: var(--cta-hover); transform: translateY(-1px); }
.ai-send svg { width: 20px; height: 20px; }
.ai-disclaimer { margin-top: 0.55rem; font-size: 0.68rem; color: var(--stone); text-align: center; line-height: 1.4; }

@media (max-width: 480px) {
  .ai-panel { right: 0; bottom: 0; width: 100vw; height: 88dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
}

/* ---------- Header responsive ---------- */
@media (max-width: 1120px) {
  .nav__link { padding-inline: 0.5rem; font-size: 0.93rem; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .header-cta-text { display: none; }
  .header-cta { width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; }
}
