/* ========================================
   otrip.pl Landing Page - Style Sheet
   ======================================== */

/* --- Custom Properties --- */
:root {
  --navy: #2A3A54;
  --navy-light: #3a4f6f;
  --sky-blue: #4DA1DE;
  --sky-light: #C8EDF1;
  --orange: #D43A1C;
  --orange-light: #B85C0A;
  --gold: #F9DF6F;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --gray-700: #334155;
  --gray-900: #0F172A;

  --font-body: 'Outfit', sans-serif;
  --font-brand: 'Grape Nuts', cursive;

  --max-width: 1200px;
  --header-height: 72px;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);

  --transition: 0.3s ease;
}

/* --- Skip Link (WCAG 2.4.1) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.5rem;
}

/* --- Focus Indicators (WCAG 2.4.7) --- */
:focus-visible {
  outline: 3px solid var(--sky-blue);
  outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--sky-blue);
  outline-offset: 2px;
}

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

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1a6fad;
  text-decoration: underline;
  text-decoration-color: rgba(26, 111, 173, 0.4);
  text-underline-offset: 2px;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section--gray {
  background: var(--gray-50);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3,
.section--navy p {
  color: var(--white);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section__header p {
  font-size: 1.125rem;
  color: var(--gray-500);
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(212, 58, 28, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 58, 28, 0.4);
  color: var(--white);
}

.btn--secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--gray-200);
}

.btn--secondary:hover {
  border-color: #1a6fad;
  color: #1a6fad;
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.8);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--navy);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-height);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  color: var(--navy);
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-brand);
  font-size: 1.75rem;
  color: var(--navy);
  line-height: 1;
}

.header__nav {
  display: none;
  gap: 2rem;
}

.header__nav a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.header__nav a:hover,
.header__nav a.active {
  color: #1a6fad;
}

.header__cta {
  display: none;
}

.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu a:hover {
  color: #1a6fad;
}

.mobile-menu .btn {
  margin-top: 1rem;
  text-align: center;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #1B4F72, #206d94);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__demo-credentials {
  font-size: 0.9rem;
  color: var(--white);
  margin-top: 1rem;
  margin-bottom: 0;
}

/* --- Feature Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--sky-blue), var(--sky-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.25rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Steps (How it works) --- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  max-width: 300px;
  margin: 0 auto;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 4rem 0;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* --- Feature Sections (funkcje.html) --- */
.feature-section {
  padding: 4rem 0;
}

.feature-section:nth-child(even) {
  background: var(--gray-50);
}

.feature-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.feature-section__content h2 {
  margin-bottom: 1rem;
}

.feature-section__content p {
  font-size: 1.05rem;
}

.feature-section__content ul {
  margin-top: 1rem;
}

.feature-section__content li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--gray-700);
}

.feature-section__content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: #1a6fad;
  border-radius: 50%;
}

.feature-section__visual {
  background: linear-gradient(135deg, var(--sky-blue), var(--sky-light));
  border-radius: var(--radius);
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.feature-section__visual svg {
  width: 80px;
  height: 80px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Pricing (cennik.html) --- */
.pricing-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 5rem 0;
  text-align: center;
}

.pricing-hero h1 {
  color: var(--white);
}

.pricing-hero p {
  color: var(--white);
  font-size: 1.125rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: -3rem;
  position: relative;
  z-index: 1;
  align-items: start;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-color: var(--primary);
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .pricing-card--featured {
    transform: none;
  }
}

.pricing-card__badge {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.pricing-card--featured .pricing-card__badge {
  background: var(--primary);
  color: var(--white);
}

.pricing-card__price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-600);
}

.pricing-card__price--custom {
  font-size: 2rem;
}

.pricing-card__period {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.pricing-card h2 {
  margin-bottom: 0.75rem;
}

.pricing-card .pricing-features {
  flex-grow: 1;
}

.pricing-card .btn {
  margin-top: auto;
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--primary);
  color: var(--white);
}

.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #1a6fad;
  font-weight: 700;
}

/* --- FAQ Accordion --- */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--gray-200);
}

.faq summary {
  padding: 1.25rem 2rem 1.25rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  position: relative;
  list-style: none;
  color: var(--navy);
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gray-500);
  transition: transform var(--transition);
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details .faq__answer {
  padding: 0 0 1.25rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--sky-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-credentials {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

.contact-form {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.375rem;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--sky-blue);
  box-shadow: 0 0 0 3px rgba(77, 161, 222, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.form-status--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --- Legal Pages --- */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.legal h1 {
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal p,
.legal li {
  color: var(--gray-700);
  line-height: 1.8;
}

.legal ul {
  margin: 0.75rem 0 1.25rem 1.5rem;
  list-style: disc;
}

.legal ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  list-style: decimal;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  margin-bottom: 1rem;
}

.footer__logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__logo-text {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  color: var(--white);
}

.footer__brand p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.footer__heading {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer__links a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 0.25rem 0;
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 2px;
}

.footer__links a:hover {
  color: var(--white);
  text-decoration-color: rgba(255,255,255,0.6);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

.footer__bottom a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.5);
  text-underline-offset: 2px;
}

.footer__bottom a:hover {
  color: var(--white);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  z-index: 200;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.cookie-banner.active {
  display: block;
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.cookie-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.cookie-banner a {
  color: var(--sky-light);
  text-decoration: underline;
}

.cookie-banner__btn {
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  white-space: nowrap;
}

.cookie-banner__btn:hover {
  background: var(--sky-light);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Page Header (subpages) --- */
.page-header {
  background: linear-gradient(135deg, #1B4F72, #206d94);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--white);
  font-size: 1.125rem;
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet (768px+) */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }

  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

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

  .hero {
    padding: 6rem 0 5rem;
  }

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

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

  .feature-section:nth-child(even) .feature-section__inner {
    direction: rtl;
  }

  .feature-section:nth-child(even) .feature-section__inner > * {
    direction: ltr;
  }

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

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --- Accessibility Panel --- */
.a11y-toggle {
  position: fixed;
  left: 0;
  top: 120px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.a11y-toggle:hover {
  background: var(--navy-light);
}

.a11y-toggle svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.a11y-panel {
  position: fixed;
  left: -320px;
  top: 0;
  bottom: 0;
  width: 300px;
  z-index: 10000;
  background: var(--white);
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.a11y-panel.active {
  transform: translateX(320px);
}

.a11y-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--navy);
  color: var(--white);
}

.a11y-panel__header h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--white);
}

.a11y-panel__close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.a11y-panel__close:hover {
  opacity: 0.7;
}

.a11y-panel__body {
  padding: 1rem 1.5rem;
  flex: 1;
}

.a11y-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.a11y-option:last-child {
  border-bottom: none;
}

.a11y-option__label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
}

.a11y-option__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.a11y-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.a11y-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.a11y-switch__slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.a11y-switch__slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
}

.a11y-switch input:checked + .a11y-switch__slider {
  background: var(--sky-blue);
}

.a11y-switch input:checked + .a11y-switch__slider::before {
  transform: translateX(20px);
}

.a11y-switch input:focus-visible + .a11y-switch__slider {
  outline: 3px solid var(--sky-blue);
  outline-offset: 2px;
}

.a11y-panel__reset {
  margin: 1rem 1.5rem 1.5rem;
  padding: 0.625rem 1rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-body);
}

.a11y-panel__reset:hover {
  background: var(--gray-200);
}

.a11y-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 9998;
  display: none;
}

.a11y-overlay.active {
  display: block;
}

/* Accessibility modes */
html.a11y-high-contrast body {
  filter: contrast(1.4);
}

html.a11y-high-contrast body > .a11y-toggle,
html.a11y-high-contrast body > .a11y-panel,
html.a11y-high-contrast body > .a11y-overlay {
  filter: contrast(0.71);
}

html.a11y-high-contrast img,
html.a11y-high-contrast svg,
html.a11y-high-contrast video {
  filter: contrast(0.7);
}

html.a11y-large-font {
  font-size: 20px !important;
}

html.a11y-readable-font body,
html.a11y-readable-font body * {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.03em;
}

html.a11y-highlight-links a {
  outline: 2px solid var(--orange) !important;
  outline-offset: 2px;
  background: rgba(240, 62, 30, 0.08);
}

html.a11y-big-cursor body,
html.a11y-big-cursor body * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M5 2l18 14h-11l6 12-4 2-6-12-3 9z' fill='black' stroke='white' stroke-width='1'/%3E%3C/svg%3E") 4 2, auto !important;
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  h1 { font-size: 3.25rem; }

  .header__nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .header__hamburger {
    display: none;
  }

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

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

  .hero {
    padding: 7rem 0 6rem;
  }
}
