﻿/* Global accessibility enhancements */
:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 3px;
}

.skip-to-content {
  position: absolute;
  top: -48px;
  left: 0.75rem;
  background: #facc15;
  color: #111827;
  padding: 0.6rem 0.9rem;
  border-radius: 0 0 10px 10px;
  z-index: 10000;
  font-weight: 700;
}

.skip-to-content:focus {
  top: 0;
}

.a11y-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10001;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #0f172a;
  color: #f8fafc;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.a11y-panel {
  position: fixed;
  right: 1rem;
  bottom: 4.2rem;
  width: min(330px, calc(100vw - 2rem));
  z-index: 10001;
  background: #0b1220;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  padding: 0.9rem;
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.a11y-row label {
  font-size: 0.9rem;
}

.a11y-row select,
.a11y-row button {
  background: #111827;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 0.86rem;
}

.a11y-row button[aria-pressed="true"] {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
}

html[data-text-size="large"] {
  font-size: 112.5%;
}

html[data-text-size="x-large"] {
  font-size: 125%;
}

html[data-font="readable"] body,
html[data-font="readable"] button,
html[data-font="readable"] input,
html[data-font="readable"] select,
html[data-font="readable"] textarea {
  font-family: Verdana, Tahoma, Arial, sans-serif !important;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="light"] {
  background: #edf3fb !important;
}

html[data-theme="light"] body {
  background: radial-gradient(circle at top, #f8fbff 0, #eef2ff 45%, #dbe6f5 100%) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .section-alt {
  background: linear-gradient(180deg, #eff4fb 0%, #e5edf8 100%) !important;
}

html[data-theme="light"] .site-header {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82), transparent) !important;
  border-bottom-color: rgba(15, 23, 42, 0.18) !important;
}

html[data-theme="light"] .site-footer {
  background: #eaf0fa !important;
  border-top-color: rgba(15, 23, 42, 0.18) !important;
  color: #475569 !important;
}

html[data-theme="light"] :is(.product-card, .product-side, .about-card, .contact-box, .step, .faq-item, .demo-video, .trust-box, .buy-card, .buy-side, .demo-form, .interest-form) {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] :is(
  body, h1, h2, h3, h4, p, li, span, strong, summary,
  .logo-name, .logo-tagline, .hero-trust, .section-intro, .muted,
  .product-main p, .product-tagline, .payment-note, .price-note, .contact-list li, .testimonial-role, .testimonial-text
) {
  color: #0f172a !important;
}

html[data-theme="light"] .main-nav a,
html[data-theme="light"] .footer-links a,
html[data-theme="light"] .contact-list a {
  color: #1e3a8a !important;
}

html[data-theme="light"] .btn.primary {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 52%, #7c3aed 100%) !important;
  color: #ffffff !important;
  border-color: #4338ca !important;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.28) !important;
}

html[data-theme="light"] .btn.primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 52%, #6d28d9 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(67, 56, 202, 0.32) !important;
}

html[data-theme="light"] .btn.secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%) !important;
  border-color: #4f46e5 !important;
  color: #312e81 !important;
}

html[data-theme="light"] .btn.secondary:hover {
  background: #eef2ff !important;
  border-color: #4338ca !important;
  color: #1e1b4b !important;
}

html[data-theme="light"] .status {
  background: rgba(217, 119, 6, 0.13) !important;
  color: #92400e !important;
  border-color: rgba(146, 64, 14, 0.35) !important;
}

html[data-theme="light"] :is(.demo-form label, .interest-message, .demo-form-message) {
  color: #334155 !important;
}

html[data-theme="light"] :is(.demo-form input, .interest-email) {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.28) !important;
}

html[data-theme="light"] :is(.demo-form-key) {
  background: #f8fbff !important;
  border-color: rgba(37, 99, 235, 0.4) !important;
}

html[data-theme="light"] .intro {
  color: #334155 !important;
}

html[data-theme="light"] .app-chip {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: rgba(15, 23, 42, 0.22) !important;
}

html[data-theme="light"] .app-chip.active {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.45) !important;
}

html[data-theme="light"] .feature-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .flat-icon {
  background: #eef2ff !important;
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
}

html[data-theme="light"] .a11y-toggle,
html[data-theme="light"] .a11y-panel {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.24) !important;
}

html[data-theme="light"] .a11y-row select,
html[data-theme="light"] .a11y-row button {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.3) !important;
}

html[data-theme="light"] .ai-logos-items {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
}

html[data-theme="light"] .ai-logos-label {
  color: #475569 !important;
}

html[data-theme="light"] .pill-soon {
  background: rgba(217, 119, 6, 0.12) !important;
  color: #92400e !important;
  border-color: rgba(146, 64, 14, 0.3) !important;
}

html[data-theme="light"] .price {
  color: #0f172a !important;
}

html[data-theme="light"] .step-number {
  background: #e0f2fe !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

html[data-theme="light"] .product-features li::before {
  color: #2563eb !important;
}

html[data-theme="light"] .product-main h3,
html[data-theme="light"] .feature-card h3 {
  color: #0f172a !important;
}

html[data-theme="light"] .product-side {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.22) !important;
}

/* Light theme – anonymization demo card */
html[data-theme="light"] .anon-demo-window {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15) !important;
  color: #1e293b !important;
}

html[data-theme="light"] .anon-demo-window :is(p, span, .anon-demo-title) {
  color: #475569 !important;
}

html[data-theme="light"] .anon-demo-window .sensitive.is-detected {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

html[data-theme="light"] .anon-demo-window::before {
  color: #64748b !important;
  border-bottom-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .anon-demo-window .anon-demo-logo {
  filter: none !important;
}

html[data-theme="light"] .anon-demo-window .sensitive.is-redacted {
  background: #000000 !important;
  color: #000000 !important;
  transition: background-color 0.2s;
}

html[data-theme="light"] .anon-demo-window .sensitive.is-redacted:hover {
  background: #cbd5e1 !important;
  color: #1e293b !important;
  cursor: help;
}

/* Light theme – Anonimyzer purchase page */
html[data-theme="light"] :is(
  .ano-panel, .ano-section, .ano-card, .plan-card, .purchase-form-shell,
  .verify-block, .process-steps li, .promo-zone, .promo-card, .promo-price-row,
  .ano-side, .ano-faq details, .review-shell, .reviews-score-card,
  .public-review-card, .public-reviews-viewport,
  .promo-banner, .verify-modal-dialog
) {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.22) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .promo-zone-top {
  background: linear-gradient(180deg, #fff7d6 0%, #fff1b8 100%) !important;
  border-color: #f59e0b !important;
}

html[data-theme="light"] .plan-card.standard {
  background: linear-gradient(160deg, #e0f2fe 0%, #dbeafe 100%) !important;
  border-color: rgba(37, 99, 235, 0.45) !important;
}

html[data-theme="light"] .plan-card.demo {
  background: linear-gradient(160deg, #dcfce7 0%, #bbf7d0 100%) !important;
  border-color: rgba(22, 163, 74, 0.45) !important;
}

html[data-theme="light"] .plan-card .plan-badge {
  background: #eff6ff !important;
  color: #1e3a8a !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
}

html[data-theme="light"] .plan-card.demo .plan-badge {
  background: #dcfce7 !important;
  color: #14532d !important;
  border-color: rgba(22, 163, 74, 0.4) !important;
}

html[data-theme="light"] :is(
  .ano-sub, .ano-copy, .ano-intro, .ano-muted, .ano-tag, .plan-rate-label, .plan-meta,
  .plan-note, .purchase-intro, .purchase-summary, .selected-plan-chip, .checkout-trust span,
  .process-steps li, .promo-description, .promo-legal, .promo-code, .promo-dates,
  .ano-hero-links, .review-shell p, .reviews-score-meta,
  .public-reviews-status, .public-review-text, .review-message, .review-rating-help,
  .verify-modal-intro, .verify-modal-note, .verify-modal-message
) {
  color: #1e293b !important;
}

html[data-theme="light"] .ano-hero-links a {
  color: #1e3a8a !important;
}

html[data-theme="light"] :is(.ano-side li, .checkout-trust span, .purchase-summary) {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
}

html[data-theme="light"] .ano-side :is(h2, p, li) {
  color: #0f172a !important;
}

html[data-theme="light"] .ano-side a {
  color: #1e3a8a !important;
}

html[data-theme="light"] .ano-faq summary {
  color: #0f172a !important;
}

html[data-theme="light"] .ano-faq p {
  color: #334155 !important;
}

html[data-theme="light"] :is(
  .purchase-form-shell input, .purchase-form-shell select, .purchase-form-shell textarea,
  .review-form input, .review-form textarea,
  .verify-modal-content input
) {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.28) !important;
}

html[data-theme="light"] :is(.reviews-score-value, .public-review-author, .public-review-date, .review-form label, .review-rating-fieldset legend) {
  color: #0f172a !important;
}

html[data-theme="light"] :is(.reviews-score-stars, .public-review-rating) {
  color: #a16207 !important;
}

html[data-theme="light"] .review-stars label {
  color: #64748b !important;
}

html[data-theme="light"] .review-stars input:checked ~ label,
html[data-theme="light"] .review-stars label:hover,
html[data-theme="light"] .review-stars label:hover ~ label {
  color: #d97706 !important;
}

html[data-theme="light"] .reviews-carousel-controls .btn {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.35) !important;
}

html[data-theme="light"] .reviews-carousel-controls .btn:hover {
  background: #e2e8f0 !important;
  border-color: rgba(15, 23, 42, 0.5) !important;
}

html[data-theme="light"] .review-stars input:focus-visible + label {
  outline-color: #1d4ed8 !important;
}

html[data-theme="light"] .verify-modal-backdrop {
  background: rgba(15, 23, 42, 0.45) !important;
}

html[data-theme="light"] .verify-modal-content label {
  color: #334155 !important;
}

html[data-theme="light"] .verify-modal-content input::placeholder {
  color: #64748b !important;
  opacity: 1;
}

html[data-theme="light"] .verify-modal-close,
html[data-theme="light"] .back-home-btn {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.3) !important;
}

html[data-theme="light"] :is(
  .purchase-form-shell label, .promo-apply-shell label, .purchase-message,
  .purchase-price-row, .purchase-price-row strong, .confirm-modal-summary p, .confirm-modal-summary strong
) {
  color: #0f172a !important;
}

html[data-theme="light"] :is(.purchase-pricing, .confirm-modal-summary) {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.28) !important;
}

html[data-theme="light"] .purchase-price-row.total {
  border-top-color: rgba(15, 23, 42, 0.32) !important;
}

html[data-theme="light"] .purchase-price-row.discount strong {
  color: #166534 !important;
}

html[data-theme="light"] .promo-field-help {
  color: #334155 !important;
}

html[data-theme="light"] .promo-field-help.error,
html[data-theme="light"] :is(.purchase-message, .verify-modal-message).is-error {
  color: #b91c1c !important;
}

/* High Contrast Theme */
html[data-theme="contrast"] {
  color-scheme: dark;
  background: #000 !important;
}

html[data-theme="contrast"] body {
  background: #000 !important;
  color: #fff !important;
}

html[data-theme="contrast"] .section,
html[data-theme="contrast"] .section-alt,
html[data-theme="contrast"] .hero {
  background: #000 !important;
}

html[data-theme="contrast"] .site-header,
html[data-theme="contrast"] .site-footer,
html[data-theme="contrast"] .product-card,
html[data-theme="contrast"] .product-side,
html[data-theme="contrast"] .product-main,
html[data-theme="contrast"] .price-block,
html[data-theme="contrast"] .buy-card,
html[data-theme="contrast"] .buy-side,
html[data-theme="contrast"] .about-card,
html[data-theme="contrast"] .contact-box,
html[data-theme="contrast"] .step,
html[data-theme="contrast"] .faq-item,
html[data-theme="contrast"] .demo-video,
html[data-theme="contrast"] .demo-form,
html[data-theme="contrast"] .interest-form,
html[data-theme="contrast"] .trust-box,
html[data-theme="contrast"] .feature-card {
  background: #000 !important;
  border-color: #fff !important;
  box-shadow: none !important;
}

html[data-theme="contrast"] :is(
  body, h1, h2, h3, h4, p, li, span, strong, summary, label,
  .muted, .logo-name, .logo-tagline, .hero-trust, .section-intro,
  .price-note, .payment-note, .contact-list li, .testimonial-role, .testimonial-text
) {
  color: #fff !important;
}

html[data-theme="contrast"] a {
  color: #a8d1ff !important;
  text-decoration: underline !important;
}

html[data-theme="contrast"] .btn.primary {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
}

html[data-theme="contrast"] .btn.secondary {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

html[data-theme="contrast"] .a11y-toggle,
html[data-theme="contrast"] .a11y-panel,
html[data-theme="contrast"] .a11y-row select,
html[data-theme="contrast"] .a11y-row button {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

html[data-theme="contrast"] .ai-logos-items {
  background: #000 !important;
  border-color: #fff !important;
}

/* High contrast – anonymization demo card */
html[data-theme="contrast"] .anon-demo-window {
  background: #000 !important;
  border-color: #fff !important;
  box-shadow: none !important;
}

html[data-theme="contrast"] .anon-demo-window :is(p, span, .anon-demo-title) {
  color: #fff !important;
}

html[data-theme="contrast"] .scan-line {
  background: #00ffff !important;
  box-shadow: 0 0 0 2px #00ffff !important;
}

html[data-theme="contrast"] .anon-demo-window .sensitive.is-detected {
  background: #ffff00 !important;
  border-color: #ffff00 !important;
  color: #000 !important;
}

html[data-theme="contrast"] .anon-demo-window .sensitive.is-redacted {
  background: #000 !important;
  color: #000 !important;
}

html[data-theme="contrast"] .ai-logos-label,
html[data-theme="contrast"] .price,
html[data-theme="contrast"] .status,
html[data-theme="contrast"] .pill-soon {
  color: #fff !important;
  border-color: #fff !important;
  background: #000 !important;
}

html[data-theme="contrast"] .app-chip {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

html[data-theme="contrast"] span.step-number {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
  font-weight: 800;
}

html[data-theme="contrast"] .flat-icon {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

html[data-theme="contrast"] .feature-card h3 {
  color: #fff !important;
}

/* High contrast – Anonimyzer purchase page */
html[data-theme="contrast"] :is(
  .ano-panel, .ano-section, .ano-card, .plan-card, .purchase-form-shell,
  .verify-block, .process-steps li, .promo-zone, .promo-card, .promo-price-row,
  .ano-side, .ano-faq details, .review-shell, .reviews-score-card,
  .public-reviews-viewport, .public-review-card,
  .promo-banner, .verify-modal-dialog
) {
  background: #000 !important;
  border-color: #fff !important;
  box-shadow: none !important;
}

html[data-theme="contrast"] :is(
  .plan-card .plan-badge, .plan-card.standard .plan-badge, .plan-card.demo .plan-badge,
  .selected-plan-chip
) {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
}

html[data-theme="contrast"] :is(.ano-side li, .checkout-trust span, .purchase-summary) {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

html[data-theme="contrast"] :is(
  .promo-code, .promo-dates, .promo-before, .promo-after, .promo-savings,
  .promo-urgency, .promo-description, .promo-legal, .ano-hero-links
) {
  color: #fff !important;
  border-color: #fff !important;
  background: #000 !important;
}

html[data-theme="contrast"] .verify-modal-backdrop {
  background: rgba(0, 0, 0, 0.88) !important;
}

html[data-theme="contrast"] .verify-modal-close,
html[data-theme="contrast"] .back-home-btn {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

html[data-theme="contrast"] .verify-modal-content label {
  color: #fff !important;
}

html[data-theme="contrast"] .verify-modal-content input::placeholder {
  color: #d1d5db !important;
  opacity: 1;
}

html[data-theme="contrast"] :is(
  .purchase-form-shell label, .promo-apply-shell label, .purchase-message,
  .purchase-price-row, .purchase-price-row strong, .confirm-modal-summary p, .confirm-modal-summary strong,
  .promo-field-help, .review-form label, .review-rating-fieldset legend,
  .review-shell p, .reviews-score-meta, .public-reviews-status,
  .public-review-author, .public-review-date, .public-review-text, .review-message, .review-rating-help
) {
  color: #fff !important;
}

html[data-theme="contrast"] :is(.purchase-pricing, .confirm-modal-summary) {
  background: #000 !important;
  border: 2px solid #fff !important;
}

html[data-theme="contrast"] .purchase-price-row.total {
  border-top-color: #fff !important;
}

html[data-theme="contrast"] .purchase-price-row.discount strong {
  color: #00ffff !important;
}

html[data-theme="contrast"] .promo-field-help.error,
html[data-theme="contrast"] :is(.purchase-message, .verify-modal-message).is-error {
  color: #ff8080 !important;
}

html[data-theme="contrast"] .reviews-score-value {
  color: #fff !important;
}

html[data-theme="contrast"] :is(.reviews-score-stars, .public-review-rating) {
  color: #ffff00 !important;
}

html[data-theme="contrast"] .review-stars label {
  color: #9ca3af !important;
}

html[data-theme="contrast"] .review-stars input:checked ~ label,
html[data-theme="contrast"] .review-stars label:hover,
html[data-theme="contrast"] .review-stars label:hover ~ label {
  color: #ffff00 !important;
}

html[data-theme="contrast"] .review-stars input:focus-visible + label {
  outline-color: #00ffff !important;
}

html[data-theme="contrast"] .reviews-carousel-controls .btn {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

html[data-theme="contrast"] .reviews-carousel-controls .btn:hover {
  background: #111 !important;
}

html[data-theme="contrast"] input,
html[data-theme="contrast"] select,
html[data-theme="contrast"] textarea {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

html[data-theme="contrast"] .product-tagline,
html[data-theme="contrast"] .intro {
  color: #fff !important;
}

html[data-theme="contrast"] .ai-logo {
  filter: brightness(0) invert(1) !important;
}

html[data-theme="contrast"] .product-features li::before {
  color: #fff !important;
}

html[data-theme="contrast"] *::before,
html[data-theme="contrast"] *::after {
  background: transparent !important;
}

html[data-underline-links="true"] a {
  text-decoration: underline !important;
  text-underline-offset: 0.14em;
}

html[data-underline-links="true"] .main-nav a::after {
  display: none !important;
}

html[data-reduce-motion="true"] *,
html[data-reduce-motion="true"] *::before,
html[data-reduce-motion="true"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

@media (max-width: 700px) {
  .a11y-toggle {
    right: 0.7rem;
    bottom: 0.7rem;
    padding: 0.5rem 0.85rem;
  }

  .a11y-panel {
    right: 0.7rem;
    bottom: 3.7rem;
  }
}
