:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f5f9ff;
  --surface-strong: #e5efff;
  --surface-stronger: #d6e7ff;
  --text: #0f2140;
  --muted: #4c648d;
  --accent: #2b65d1;
  --accent-dark: #1f4a9a;
  --border: rgba(43, 101, 209, 0.12);
  --shadow: 0 20px 50px rgba(15, 33, 64, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #fdfdff 0%, #eef4ff 100%);
  color: var(--text);
  line-height: 1.65;
}

.page-shell {
  min-height: 100vh;
}

button,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-secondary {
  background: rgba(43, 101, 209, 0.08);
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4.5rem 4rem 3rem;
  align-items: center;
  max-width: 1260px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 640px;
}

.site-address {
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.7rem, 4vw, 4.5rem);
  line-height: 1.02;
}

.hero-subtitle {
  margin: 0 2rem 2rem 0;
  max-width: 36rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-media {
  min-height: 360px;
  border-radius: 32px;
  background: linear-gradient(180deg, #e7f0ff 0%, #ffffff 100%);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.video-wrapper {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: black;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.content {
  max-width: 1180px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.section {
  margin-bottom: 3rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 2.5vw, 2.6rem);
  color: var(--text);
}

.section p {
  margin: 0 0 1rem;
}

.highlight {
  background: var(--surface-strong);
  border-left: 6px solid var(--accent);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.goals-grid,
.feature-grid,
.testimonial-list,
.recommendation-list {
  display: grid;
  gap: 1.5rem;
}

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

.goal-card,
.feature-card,
.testimonial-card,
.recommendation-card,
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.7rem;
  box-shadow: var(--shadow);
}

.goal-card h3,
.feature-card h3,
.testimonial-card h3,
.recommendation-card h2,
.faq-item h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  color: var(--accent-dark);
}

.section-note {
  margin-top: 1rem;
  font-size: 0.96rem;
  color: var(--muted);
}

.testimonials {
  padding-top: 1rem;
}

.testimonial-list {
  grid-template-columns: 1fr;
}

.testimonial-card {
  min-height: 170px;
}

.testimonial-author {
  margin: 1rem 0 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.faqs .faq-item {
  border-left: 4px solid rgba(43, 101, 209, 0.2);
}

.recommendations-header {
  max-width: 840px;
  margin: 3rem auto 2rem;
  padding: 0 2rem;
}

.recommendations-content {
  max-width: 980px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.recommendation-card a {
  color: var(--accent);
  font-weight: 700;
}

.recommendation-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.recommendation-card summary {
  padding: 1.4rem 1.6rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-dark);
  list-style: none;
  position: relative;
  background: var(--surface-strong);
}

.recommendation-card summary::-webkit-details-marker {
  display: none;
}

.recommendation-card summary::after {
  content: '+';
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--accent);
}

.recommendation-card[open] summary::after {
  content: '-';
}

.recommendation-card summary strong {
  display: block;
  font-size: 1.02rem;
  color: var(--accent-dark);
  margin-bottom: 0.4rem;
}

.rec-summary-text {
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
}

.recommendation-card-body {
  padding: 0 1.6rem 1.6rem;
  display: grid;
  gap: 1rem;
}

.recommendation-card-body img {
  width: 100%;
  border-radius: 20px;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

.recommendation-card[open] .recommendation-card-body img {
  max-height: 720px;
}

.image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 33, 64, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
}

.image-overlay.open {
  display: flex;
}

.image-overlay img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 3.5rem);
  max-height: calc(100vh - 3.5rem);
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.image-overlay .overlay-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-dark);
  font-size: 1.4rem;
  cursor: pointer;
}

.image-overlay .overlay-close:hover {
  background: white;
}

.faq-item {
  margin-bottom: 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--accent-dark);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: left;
  font-size: 1.25rem;
  transform: rotate(0deg);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item p {
  margin: 0;
  padding: 0 1.4rem 1.4rem;
  color: var(--muted);
}

.contact {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border-radius: 32px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem 3rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 700;
}

.legal-hero {
  padding-bottom: 2rem;
}

.contact h2 {
  margin-bottom: 1rem;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 2rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-subtitle {
    margin: 0 0 1.5rem 0;
  }

  .goals-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    gap: 2rem;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .page-shell {
    padding-top: 1rem;
  }

  .content {
    padding: 0 1rem;
  }

  .section {
    margin-bottom: 2.2rem;
  }

  .goal-card,
  .feature-card,
  .testimonial-card,
  .recommendation-card {
    padding: 1.3rem;
  }

  button:not(.carousel-control),
  a.button {
    width: 100%;
    justify-content: center;
  }

  .carousel-control {
    width: 3.2rem;
    max-width: 3.2rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

/* Accessibility Button & Panel */
.accessibility-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(43, 101, 209, 0.25);
  transition: all 0.2s ease;
}

.accessibility-btn:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(43, 101, 209, 0.35);
}

.accessibility-btn:focus {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

.accessibility-btn:active {
  transform: scale(0.98);
}

.accessibility-panel {
  position: fixed;
  bottom: 5rem;
  left: 2rem;
  z-index: 9998;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 8px 24px rgba(15, 33, 64, 0.12);
  width: 260px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.accessibility-panel.open {
  opacity: 1;
  transform: translateY(-8px);
  pointer-events: auto;
}

.accessibility-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.accessibility-panel-header h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.accessibility-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accessibility-close:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.accessibility-panel-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.a11y-option {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.a11y-option label {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.a11y-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  accent-color: var(--accent);
}

.a11y-option input[type="checkbox"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.text-size-controls {
  display: flex;
  gap: 0.5rem;
}

.text-size-btn {
  flex: 1;
  padding: 0.5rem;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.text-size-btn:hover {
  background: var(--surface-strong);
  border-color: var(--accent);
}

.text-size-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.text-size-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.size-display {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* High Contrast Mode */
body.high-contrast {
  --bg: #000000;
  --surface: #1a1a1a;
  --surface-strong: #333333;
  --surface-stronger: #4d4d4d;
  --text: #ffffff;
  --muted: #cccccc;
  --accent: #ffff00;
  --accent-dark: #cccc00;
  --border: rgba(255, 255, 255, 0.2);
  background: var(--bg) !important;
  color: var(--text) !important;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast p,
body.high-contrast span,
body.high-contrast label,
body.high-contrast li,
body.high-contrast a {
  color: var(--text) !important;
}

body.high-contrast a {
  color: var(--accent) !important;
}

body.high-contrast .accessibility-btn {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 4px 16px rgba(255, 255, 0, 0.4);
}

body.high-contrast .accessibility-btn:focus {
  outline-color: var(--accent);
}

body.high-contrast .accessibility-panel {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--text);
}

body.high-contrast .accessibility-panel-header {
  background: var(--bg);
  color: var(--text);
  border-bottom-color: var(--accent);
}

body.high-contrast .accessibility-panel-header h2 {
  color: var(--text) !important;
}

body.high-contrast .a11y-option label {
  color: var(--text) !important;
}

body.high-contrast .text-size-btn {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--text);
}

body.high-contrast .text-size-btn:hover {
  background: var(--surface-strong);
  border-color: var(--accent);
}

body.high-contrast .text-size-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

body.high-contrast .size-display {
  color: var(--muted) !important;
}

body.high-contrast .accessibility-close {
  color: var(--accent);
  background: transparent;
}

body.high-contrast .accessibility-close:focus {
  outline-color: var(--accent);
}

/* High contrast mode - sections and cards */
body.high-contrast .section {
  background: var(--bg) !important;
}

body.high-contrast .highlight {
  background: var(--surface-strong) !important;
  border-left-color: var(--accent) !important;
}

body.high-contrast .goal-card,
body.high-contrast .feature-card,
body.high-contrast .testimonial-card,
body.high-contrast .recommendation-card {
  background: var(--surface-strong) !important;
  color: var(--text) !important;
  border-color: var(--accent) !important;
}

body.high-contrast .goal-card h3,
body.high-contrast .feature-card h3,
body.high-contrast .testimonial-card p,
body.high-contrast .recommendation-card strong {
  color: var(--text) !important;
}

body.high-contrast .testimonial-author {
  color: var(--muted) !important;
}

body.high-contrast details.faq-item {
  background: var(--surface-strong) !important;
  border-color: var(--accent) !important;
}

body.high-contrast details.faq-item summary {
  color: var(--text) !important;
  background: var(--surface) !important;
}

body.high-contrast details.faq-item p {
  color: var(--text) !important;
  background: var(--surface-strong) !important;
}

body.high-contrast .hero {
  background: var(--bg) !important;
}

body.high-contrast .hero-media {
  background: var(--surface-strong) !important;
  border-color: var(--accent) !important;
}

body.high-contrast button:not(.carousel-control),
body.high-contrast a.button {
  color: var(--bg) !important;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

body.high-contrast button:hover:not(.carousel-control),
body.high-contrast a.button:hover {
  background: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
}

body.high-contrast .button-secondary {
  background: var(--surface-strong) !important;
  color: var(--accent) !important;
  border: 2px solid var(--accent) !important;
}

body.high-contrast .button-secondary:hover {
  background: var(--surface) !important;
}

/* Dyslexia-Friendly Font */
body.dyslexia-font {
  font-family: 'Courier New', 'Courier', monospace;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

body.dyslexia-font h1,
body.dyslexia-font h2,
body.dyslexia-font h3,
body.dyslexia-font h4 {
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .accessibility-btn {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 3.5rem !important;
    height: 3.5rem;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    position: fixed;
  }

  .accessibility-btn::before {
    content: '♿';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding-bottom: 0.08rem;
    font-size: 1.5rem;
    font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
    line-height: 1;
  }

  .accessibility-panel {
    bottom: 4.2rem;
    left: 1.5rem;
    right: 1.5rem;
    width: auto;
  }
}
