:root {
  --ink: #17212b;
  --muted: #5d6976;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --line: #dce2df;
  --teal: #0f766e;
  --teal-dark: #075e59;
  --green: #2f6f4e;
  --coral: #cf5d4f;
  --amber: #b88625;
  --blue: #2b67a0;
  --shadow: 0 20px 50px rgba(23, 33, 43, 0.12);
  --radius: 8px;
  --font-scale: 1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: calc(16px * var(--font-scale));
  line-height: 1.55;
}

body.large-text {
  --font-scale: 1.13;
}

body.high-contrast {
  --ink: #050505;
  --muted: #1c1c1c;
  --paper: #ffffff;
  --panel: #ffffff;
  --line: #111111;
  --teal: #005c56;
  --coral: #a72416;
  --blue: #003e78;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #fff;
  background: var(--teal-dark);
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(220, 226, 223, 0.82);
  background: rgba(247, 248, 245, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-weight: 700;
  margin-left: auto;
}

.main-nav a,
.urgent-link,
.text-link {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--teal-dark);
  text-decoration: underline;
}

.urgent-link {
  padding: 10px 14px;
  color: #fff;
  background: #9f1d1d;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--paper);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay {
  display: none;
}

.hero-actions-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 20px clamp(18px, 4vw, 48px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.secondary-outline {
  color: var(--teal);
  border: 1px solid var(--teal);
  background: transparent;
}

.secondary-outline:hover,
.secondary-outline:focus-visible {
  background: rgba(15, 118, 110, 0.05);
}

.hero-content {
  position: relative;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 76px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #f4cb69;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--coral);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.08rem, 2.2vw, 1.4rem);
}

.hero-actions,
.tool-buttons,
.prompt-chips,
.chat-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.button,
.icon-button,
.send-button,
.prompt-chips button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.button {
  padding: 12px 16px;
}

.primary {
  color: #fff;
  background: var(--teal);
}

.primary:hover,
.primary:focus-visible {
  background: var(--teal-dark);
}

.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
}

.access-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.access-strip strong,
.access-strip span {
  display: block;
}

.access-strip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.icon-button {
  padding: 10px 12px;
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.icon-button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.section-band {
  padding: clamp(48px, 7vw, 82px) clamp(18px, 4vw, 48px);
}

.support-band {
  background: #fff;
}

.participation-band {
  background: #edf3ef;
}

.assistant-band {
  background: #fbf3ee;
}

.application-band {
  background: #f7f8f5;
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:last-child {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.support-grid,
.assistant-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.support-form,
.support-summary,
.api-panel,
.chat-panel,
.application-grid article,
.module-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(23, 33, 43, 0.06);
}

.support-form,
.support-summary,
.api-panel,
.application-grid article,
.module-card {
  padding: 22px;
}

fieldset {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

legend,
.field span {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfa;
  font-weight: 700;
  text-align: center;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented label:has(input:checked) {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid #b8c2bd;
  border-radius: var(--radius);
  background: #fff;
}

textarea {
  resize: vertical;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--teal);
}

.status-pill {
  display: inline-flex;
  padding: 6px 10px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.support-summary h3 {
  margin: 18px 0 8px;
  font-size: 1.8rem;
  line-height: 1.12;
}

.support-summary p {
  color: var(--muted);
}

.calm-box,
.notice {
  margin-top: 20px;
  padding: 16px;
  border-left: 5px solid var(--coral);
  background: #fff6f3;
}

.calm-box p,
.notice p {
  margin: 6px 0 0;
}

.module-grid,
.application-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  min-height: 245px;
}

.module-card svg {
  width: 34px;
  height: 34px;
  color: var(--teal);
}

.module-card h3,
.application-grid h3 {
  margin: 18px 0 8px;
  font-size: 1.24rem;
  line-height: 1.2;
}

.module-card p,
.application-grid p {
  color: var(--muted);
}

meter {
  width: 100%;
  height: 12px;
  margin-top: 12px;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(300px, 1fr) auto auto;
  overflow: hidden;
}

.chat-tabs {
  display: flex;
  background: rgba(247, 248, 245, 0.5);
  border-bottom: 1px solid var(--line);
}

.chat-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 800;
  transition: all 0.2s ease;
  border-radius: 0;
  min-height: 48px;
}

.chat-tab:hover {
  background: rgba(15, 118, 110, 0.05);
  color: var(--teal);
}

.chat-tab.active {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
  background: #ffffff;
}

#tabSpecial.active {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.tab-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--coral);
}

.chat-log {
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: 470px;
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at 15% 15%, rgba(15, 118, 110, 0.16), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(207, 93, 79, 0.16), transparent 28%);
}

.message {
  width: min(84%, 620px);
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.message.user {
  justify-self: end;
  color: #fff;
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.message-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--coral);
  background: #fff;
}

.message.special-bot {
  border-left: 4px solid var(--coral);
  background: #fffefd;
}

.message p {
  margin: 6px 0 0;
}

.prompt-chips {
  padding: 12px 16px 0;
}

.prompt-chips button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--teal-dark);
  border-color: #a9ccc7;
  background: #eef8f6;
}

.chat-form {
  align-items: stretch;
  padding: 16px;
}

.chat-form textarea {
  flex: 1 1 260px;
  min-height: 66px;
  margin: 0;
}

.send-button {
  flex: 0 0 auto;
  padding: 0 16px;
  color: #fff;
  background: var(--coral);
}

.check-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 0 18px;
  font-weight: 700;
}

.check-field input {
  width: 20px;
  min-height: 20px;
  margin-top: 3px;
}

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

.text-link {
  color: var(--teal-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 48px);
  color: #fff;
  background: #17212b;
}

.site-footer span {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.78);
}

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

:focus-visible {
  outline: 3px solid #f4cb69;
  outline-offset: 3px;
}

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

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    margin-left: 0;
  }

  .support-grid,
  .assistant-layout,
  .module-grid,
  .application-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .access-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions-bar {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  .segmented,
  .support-grid,
  .assistant-layout,
  .module-grid,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .icon-button,
  .send-button {
    width: 100%;
  }

  .chat-log {
    max-height: 390px;
  }

  .message {
    width: 100%;
  }
}

/* WhatsApp Floating Button */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  background-color: #20ba5a;
  color: #fff;
}

.whatsapp-btn:focus-visible {
  outline: 3px solid #f4cb69;
  outline-offset: 3px;
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* WhatsApp Tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: 76px;
  background-color: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(10px);
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--ink);
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Accessibility / High Contrast Settings */
body.high-contrast .whatsapp-btn {
  background-color: #000;
  border: 2px solid #fff;
}

body.high-contrast .whatsapp-tooltip {
  background-color: #000;
  border: 1px solid #fff;
  color: #fff;
}

body.high-contrast .whatsapp-tooltip::after {
  border-color: transparent transparent transparent #000;
}

body.reduce-motion .whatsapp-btn {
  transition: none !important;
  animation: none !important;
}

body.reduce-motion .whatsapp-tooltip {
  transition: none !important;
}

/* Background utilities */
.bg-light {
  background-color: #f7fafc;
}

/* Intro Section Layout */
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.intro-main h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--teal-dark);
  line-height: 1.1;
  margin: 12px 0 20px;
}

.lead-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 20px;
}

.quote-box {
  background: #f0fdf4;
  border-left: 4px solid var(--green);
  padding: 16px 20px;
  border-radius: 4px;
  margin: 24px 0;
  font-size: 1.1rem;
}

.intro-features {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.intro-features h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: var(--ink);
  border-bottom: 2px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}

.check-mark {
  color: var(--green);
  font-weight: 900;
}

/* Info Centered Layout */
.info-content-centered {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.info-content-centered h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: 16px;
}

.lead-text-center {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.45;
  margin-bottom: 20px;
}

/* Support Topics List */
.support-topics-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 8px;
}

.support-topics-list li {
  font-weight: 700;
  color: var(--ink);
}

.card-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

/* Solidarity Section */
.solidarity-band {
  background: #f0fdfa;
}

.solidarity-card {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.solidarity-card h2 {
  color: var(--teal-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.solidarity-quote {
  font-size: 1.3rem;
  color: var(--teal);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Footer layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--teal);
}

.col-about p {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.footer-contact a:hover {
  text-decoration: underline;
  color: var(--teal);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.9rem;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* High Contrast Settings for Custom Elements */
body.high-contrast .quote-box {
  background: #000;
  border-left-color: #fff;
  border: 1px solid #fff;
  border-left-width: 4px;
}

body.high-contrast .solidarity-band {
  background: #000;
}

body.high-contrast .solidarity-card {
  background: #000;
  border: 1px solid #fff;
}

body.high-contrast .solidarity-quote {
  color: #fff;
  border-top-color: #fff;
}

body.high-contrast .intro-features {
  background: #000;
  border: 1px solid #fff;
}

body.high-contrast .intro-features h3 {
  border-bottom-color: #fff;
}

body.high-contrast .footer-col h3::after {
  background-color: #fff;
}

/* Responsive Grid layouts */
@media (max-width: 980px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 680px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .solidarity-card {
    padding: 24px 16px;
  }
}

/* AI Chat Popup Widget (Sol Alt) */
.ai-widget-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
}

.ai-widget-toggle-btn {
  width: 60px;
  height: 60px;
  background-color: var(--teal);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-widget-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  background-color: var(--teal-dark);
}

.ai-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* AI Tooltip */
.ai-widget-tooltip {
  position: absolute;
  left: 76px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  background-color: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ai-widget-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  border-width: 5px 5px 5px 0;
  border-style: solid;
  border-color: transparent var(--ink) transparent transparent;
}

.ai-widget-toggle-btn:hover .ai-widget-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* AI Chat Popup Window */
.ai-chat-popup {
  position: absolute;
  bottom: 76px;
  left: 0;
  width: 380px;
  height: 550px;
  max-height: 80vh;
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transform-origin: bottom left;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ai-chat-popup.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.ai-popup-header {
  background-color: var(--teal);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
}

.ai-icon-small {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ai-popup-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: opacity 0.2s ease;
}

.ai-popup-close-btn:hover {
  opacity: 0.8;
}

/* Adjustments for Tabbed chat log inside popup */
.ai-chat-popup .chat-panel {
  display: flex;
  flex-direction: column;
  height: calc(100% - 50px);
}

.ai-chat-popup .chat-log {
  flex: 1;
  max-height: none;
  background: #fcfcfc;
}

.ai-chat-popup .message {
  width: 90%;
}

.ai-chat-popup .chat-form {
  padding: 12px;
}

.ai-chat-popup .chat-form textarea {
  min-height: 48px;
}

.ai-chat-popup .prompt-chips {
  padding: 8px 12px 0;
  gap: 6px;
}

.ai-chat-popup .prompt-chips button {
  min-height: 30px;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Accessibility / High Contrast Settings for Popup */
body.high-contrast .ai-widget-toggle-btn {
  background-color: #000;
  border: 2px solid #fff;
}

body.high-contrast .ai-chat-popup {
  border: 2px solid #fff;
  background-color: #000;
}

body.high-contrast .ai-popup-header {
  background-color: #000;
  border-bottom: 2px solid #fff;
}

body.high-contrast .ai-popup-close-btn {
  color: #fff;
}

body.high-contrast .ai-widget-tooltip {
  background-color: #000;
  border: 1px solid #fff;
  color: #fff;
}

body.high-contrast .ai-widget-tooltip::after {
  border-color: transparent #fff transparent transparent;
}

/* Responsive popup */
@media (max-width: 480px) {
  .ai-chat-popup {
    width: calc(100vw - 48px);
    height: 480px;
    bottom: 80px;
  }
}

/* AI Info Bar inside Popup */
.ai-info-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: #f0fdfa;
  border-bottom: 1px solid var(--line);
}

.ai-info-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--teal);
}

.ai-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.ai-info-text strong {
  font-size: 0.9rem;
  color: var(--teal-dark);
}

.ai-info-text span {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
}

/* High Contrast Mode for Info Bar */
body.high-contrast .ai-info-bar {
  background-color: #000;
  border-bottom: 1px solid #fff;
}

body.high-contrast .ai-info-avatar {
  border-color: #fff;
}

body.high-contrast .ai-info-text strong,
body.high-contrast .ai-info-text span {
  color: #fff;
}

/* Founder Section styles */
.founder-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.founder-card-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #ffffff;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.founder-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s ease;
}

.founder-card-visual:hover .founder-img {
  transform: scale(1.05);
}

.founder-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(to top, rgba(7, 94, 89, 0.95) 20%, rgba(15, 118, 110, 0.4) 70%, transparent 100%);
  text-align: center;
}

.founder-badge {
  margin-bottom: 20px;
}

.badge-role {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
}

.founder-badge h3 {
  margin-top: 15px;
  margin-bottom: 0;
  font-size: 2.2rem;
  color: #ffffff;
}

.founder-moto {
  font-style: italic;
  font-size: 1.15rem;
  opacity: 0.95;
  margin: 0;
  line-height: 1.4;
}

.founder-bio h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

/* Donation and Contact grids */
.donation-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
  gap: 30px;
  align-items: stretch;
}

.donation-card-contact {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: 0 10px 30px rgba(23, 33, 43, 0.04);
}

.donation-card-contact h3 {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.donation-contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.donation-contact-list li {
  font-size: 1.05rem;
}

.donation-contact-list a {
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 700;
}

.donation-contact-list a:hover {
  text-decoration: underline;
  color: var(--teal);
}

.status-pill-success {
  background-color: var(--green);
}

/* High Contrast Settings for Founder / Donation Sections */
body.high-contrast .founder-card-visual {
  background: #000;
  border: 2px solid #fff;
  color: #fff;
  box-shadow: none;
}

body.high-contrast .founder-img {
  opacity: 0.3;
}

body.high-contrast .founder-overlay {
  background: #000;
  border-top: 1px solid #fff;
}

body.high-contrast .founder-badge h3 {
  color: #fff;
}

body.high-contrast .badge-role {
  background: #000;
  border: 1px solid #fff;
}

body.high-contrast .donation-card-contact {
  background: #000;
  border: 2px solid #fff;
  box-shadow: none;
}

body.high-contrast .donation-contact-list a {
  color: #fff;
  text-decoration: underline;
}

/* Responsive configurations for custom layout grids */
@media (max-width: 980px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .donation-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ========================================
   Destekçiler (Supporters) Section
   ======================================== */

.supporters-band {
  background: linear-gradient(180deg, #f7fafc 0%, #edf3ef 100%);
}

.supporters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.supporter-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(23, 33, 43, 0.06);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s ease;
}

.supporter-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.14);
  border-color: var(--teal);
}

.supporter-logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: linear-gradient(135deg, #f8fffe 0%, #f0f7f6 100%);
  border-bottom: 1px solid var(--line);
  min-height: 120px;
}

.supporter-logo {
  max-height: 72px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.supporter-card:hover .supporter-logo {
  transform: scale(1.06);
}

.supporter-info {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.supporter-info h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.2;
}

.supporter-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}

.supporter-link-text {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-weight: 800;
  font-size: 0.92rem;
  transition: color 0.2s ease, gap 0.2s ease;
  margin-top: auto;
}

.supporter-card:hover .supporter-link-text {
  color: var(--teal-dark);
  letter-spacing: 0.3px;
}

/* Discount Badge */
.supporter-badge-discount {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}

.supporter-badge-discount span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #cf5d4f 0%, #e07843 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(207, 93, 79, 0.35);
  animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(207, 93, 79, 0.35);
  }
  50% {
    box-shadow: 0 4px 20px rgba(207, 93, 79, 0.55);
  }
}

/* Discount Detail Box */
.supporter-discount-detail {
  background: linear-gradient(135deg, #fff6f3 0%, #fef0eb 100%);
  border: 1px solid rgba(207, 93, 79, 0.2);
  border-left: 4px solid var(--coral);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.5;
}

.supporter-discount-detail strong {
  color: var(--coral);
}

/* High Contrast - Supporters */
body.high-contrast .supporters-band {
  background: #000;
}

body.high-contrast .supporter-card {
  background: #000;
  border: 2px solid #fff;
  box-shadow: none;
}

body.high-contrast .supporter-card:hover {
  box-shadow: 0 0 0 2px #fff;
}

body.high-contrast .supporter-logo-area {
  background: #111;
  border-bottom-color: #fff;
}

body.high-contrast .supporter-info h3,
body.high-contrast .supporter-desc,
body.high-contrast .supporter-link-text {
  color: #fff;
}

body.high-contrast .supporter-badge-discount span {
  background: #a72416;
  border: 1px solid #fff;
  box-shadow: none;
  animation: none;
}

body.high-contrast .supporter-discount-detail {
  background: #111;
  border-color: #fff;
  color: #fff;
}

body.high-contrast .supporter-discount-detail strong {
  color: #ff9999;
}

/* Responsive - Supporters */
@media (max-width: 680px) {
  .supporters-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

