/* THEMATIC CSS VARIABLES (Avoiding prohibited terms like --primary-color) */
:root {
  --vis-main-bg: #0d1117;
  --vis-panel-bg: #161b22;
  --vis-light-zone: #f8f9fa;
  --vis-light-border: #e1e4e6;
  --vis-primary-glow: #00d2d3;        /* Vivid Teal */
  --vis-accent-touch: #ff9f43;         /* Warm Orange */
  --vis-text-solid-light: #f1f2f6;
  --vis-text-muted-light: #a4b0be;
  --vis-text-solid-dark: #1e272e;
  --vis-text-muted-dark: #57606f;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --vis-border-radius-soft: 16px;
  --vis-shadow-raised: 0 10px 30px rgba(0, 0, 0, 0.25);
  --vis-shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* GENERAL STYLING */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.vis-lifestyle-body {
  font-family: var(--font-body);
  background-color: var(--vis-main-bg);
  color: var(--vis-text-solid-light);
  line-height: 1.6;
}

/* CONTAINER REPLACEMENT */
.gaze-shell {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* SCROLL PROGRESS INDICATOR (CSS only with scroll-driven animation) */
.vis-progress-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--vis-primary-glow);
  width: 0%;
  z-index: 10000;
  animation: vis-grow-bar linear;
  animation-timeline: scroll();
}

@keyframes vis-grow-bar {
  to { width: 100%; }
}

/* HEADER (Sticky setup - Preset A Dark) */
.vision-header-shell {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background-color: var(--vis-panel-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  z-index: 999;
}

.vision-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.optic-brand-anchor {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--vis-text-solid-light);
}

.optic-brand-icon {
  width: 32px;
  height: 32px;
  color: var(--vis-primary-glow);
}

.optic-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.pupil-nav-bar {
  display: flex;
  align-items: center;
  gap: 28px;
}

.pupil-nav-link {
  text-decoration: none;
  color: var(--vis-text-muted-light);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.pupil-nav-link:hover,
.pupil-nav-link.active {
  color: var(--vis-primary-glow);
}

/* Hamburger mobile trigger */
.nav-toggle-trigger {
  display: none;
}

.nav-toggle-button {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle-button span {
  width: 26px;
  height: 3px;
  background-color: var(--vis-text-solid-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* HERO (Fullscreen Preset A) */
.iris-gate-screen {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.iris-gate-screen.minimal-hero {
  height: 45vh;
  min-height: 350px;
}

.iris-gate-inner {
  max-width: 800px;
  z-index: 2;
}

.iris-gate-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 24px;
  color: #ffffff;
}

.iris-gate-desc {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--vis-text-muted-light);
  margin-bottom: 36px;
  max-width: 650px;
}

/* BUTTONS / LINKS */
.iris-action-trigger {
  display: inline-block;
  padding: 14px 34px;
  background-color: var(--vis-accent-touch);
  color: #000000;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 999px; /* Pill shape */
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 159, 67, 0.4);
  border: none;
  cursor: pointer;
}

.iris-action-trigger:hover {
  transform: translateY(-2px);
  background-color: #ffb167;
  box-shadow: 0 6px 20px rgba(255, 159, 67, 0.5);
}

/* FLOATING STAT-BAR (Preset A -60px offset) */
.focus-stat-deck {
  position: relative;
  margin-top: -65px;
  z-index: 10;
}

.focus-stat-deck.static-stat-deck {
  margin-top:-65px;
  margin-bottom: 40px;
}

.focus-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.focus-stat-tile {
  background-color: var(--vis-panel-bg);
  padding: 30px;
  border-radius: var(--vis-border-radius-soft);
  box-shadow: var(--vis-shadow-raised);
  border-top: 3px solid var(--vis-primary-glow);
  text-align: center;
}

.focus-stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--vis-primary-glow);
  margin-bottom: 8px;
}

.focus-stat-label {
  font-size: 0.95rem;
  color: var(--vis-text-muted-light);
  line-height: 1.4;
}

/* ZIG-ZAG CONTENT SECTION (Preset A Light content zones) */
.retina-feature-row {
  background-color: var(--vis-light-zone);
  color: var(--vis-text-solid-dark);
  padding: 10dvh 0;
}

.retina-feature-row.alternate-bg {
  background-color: #ffffff;
}

.retina-split-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.retina-skew-image-holder {
  flex: 1;
  max-width: 50%;
  overflow: hidden;
  border-radius: var(--vis-border-radius-soft);
  box-shadow: var(--vis-shadow-soft);
}

/* Skew clip paths */
.retina-skew-image-holder.left-skew {
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.retina-skew-image-holder.right-skew {
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.retina-fluid-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.retina-text-side {
  flex: 1;
}

.retina-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--vis-accent-touch);
  background-color: rgba(255, 159, 67, 0.1);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.retina-section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--vis-text-solid-dark);
}

.text-center {
  text-align: center;
}

.retina-paragraph {
  font-size: 1.05rem;
  color: var(--vis-text-muted-dark);
  margin-bottom: 20px;
}

/* SCROLL REVEAL VIEW ANIMATIONS */
.vis-reveal-scroll {
  animation: vis-scroll-fade-in linear both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

@keyframes vis-scroll-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FEATURES SECTION (Preset A Grid 2x2 with left border) */
.macula-feature-grid-section {
  background-color: var(--vis-panel-bg);
  padding: 10dvh 0;
}

.macula-grid-header {
  max-width: 700px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.macula-grid-header .retina-section-title {
  color: var(--vis-text-solid-light);
}

.macula-grid-subtitle {
  color: var(--vis-text-muted-light);
  font-size: 1.1rem;
}

.macula-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.macula-feature-tile {
  background-color: var(--vis-main-bg);
  padding: 40px;
  border-radius: var(--vis-border-radius-soft);
  border-left: 4px solid var(--vis-primary-glow);
  box-shadow: var(--vis-shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.macula-feature-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--vis-shadow-raised);
}

.macula-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--vis-border-radius-soft);
  background-color: rgba(0, 210, 211, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.macula-svg-icon {
  width: 24px;
  height: 24px;
  color: var(--vis-primary-glow);
}

.macula-tile-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--vis-text-solid-light);
}

.macula-tile-text {
  color: var(--vis-text-muted-light);
  font-size: 1rem;
}

/* HOW IT WORKS (Timeline Vertical Preset A) */
.optic-flow-section {
  background-color: var(--vis-light-zone);
  padding: 10dvh 0;
}

.optic-flow-section .retina-section-title {
  color: var(--vis-text-solid-dark);
}

.optic-flow-section .macula-grid-subtitle {
  color: var(--vis-text-muted-dark);
  margin-bottom: 60px;
}

.optic-flow-line {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Central vertical line */
.optic-flow-line::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--vis-light-border);
  transform: translateX(-50%);
}

.optic-flow-node {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  position: relative;
}

.optic-flow-node:last-child {
  margin-bottom: 0;
}

.optic-node-content {
  flex: 1;
  padding: 30px;
  background-color: #ffffff;
  border-radius: var(--vis-border-radius-soft);
  box-shadow: var(--vis-shadow-soft);
}

.optic-node-content.empty-content {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
}

.optic-node-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--vis-primary-glow);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  z-index: 2;
  margin: 0 40px;
  box-shadow: 0 0 15px rgba(0, 210, 211, 0.4);
}

.optic-node-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--vis-text-solid-dark);
}

.optic-node-text {
  font-size: 0.95rem;
  color: var(--vis-text-muted-dark);
}

/* CTA STRIP (Preset A bg fix overlay) */
.cornea-action-strip {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 12dvh 0;
  text-align: center;
  position: relative;
}

.cornea-action-inner {
  max-width: 800px;
  margin: 0 auto;
}

.cornea-action-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  margin-bottom: 20px;
  color: #ffffff;
}

.cornea-action-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--vis-text-muted-light);
  margin-bottom: 30px;
}

/* FORM STYLING (reserve.html) */
.cataract-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 50px;
  border-radius: var(--vis-border-radius-soft);
  box-shadow: var(--vis-shadow-soft);
  color: var(--vis-text-solid-dark);
}

.cataract-form-wrapper .retina-section-title {
  margin-bottom: 6px;
}

.cataract-form-wrapper .macula-grid-subtitle {
  color: var(--vis-text-muted-dark);
  margin-bottom: 40px;
}

.cataract-form-element {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cataract-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cataract-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--vis-text-solid-dark);
}

.cataract-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--vis-light-border);
  border-radius: var(--vis-border-radius-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.cataract-input:focus {
  border-color: var(--vis-primary-glow);
}

.cataract-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cataract-checkbox {
  margin-top: 4px;
}

.cataract-checkbox-label {
  font-size: 0.9rem;
  color: var(--vis-text-muted-dark);
}

.cataract-checkbox-label a {
  color: var(--vis-primary-glow);
  text-decoration: underline;
}

.full-width-btn {
  width: 100%;
}

.cataract-contact-details {
  margin-top: 30px;
  border-top: 1px solid var(--vis-light-border);
  padding-top: 24px;
}

.cataract-contact-text {
  font-size: 0.9rem;
  color: var(--vis-text-muted-dark);
}

.cataract-email-link {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--vis-primary-glow);
  text-decoration: none;
}

/* FAQ ACCORDION SUMMARY */
.retina-faq-accordion-section {
  padding: 10dvh 0;
  background-color: var(--vis-light-zone);
  color: var(--vis-text-solid-dark);
}

.retina-faq-accordion-section .retina-section-title {
  color: var(--vis-text-solid-dark);
}

.retina-faq-accordion-section .macula-grid-subtitle {
  color: var(--vis-text-muted-dark);
  margin-bottom: 50px;
}

.retina-faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: #ffffff;
  border-radius: var(--vis-border-radius-soft);
  box-shadow: var(--vis-shadow-soft);
  padding: 18px 24px;
}

.faq-question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--vis-text-solid-dark);
  cursor: pointer;
  outline: none;
  list-style: none; /* Removes native arrow */
}

.faq-question::-webkit-details-marker {
  display: none; /* Saf-specific arrow removal */
}

.faq-answer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--vis-light-border);
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--vis-text-muted-dark);
}

/* LEGAL PAGES */
.legal-terms-container {
  color: var(--vis-text-solid-light);
}

.legal-heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--vis-text-muted-light);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.legal-section {
  margin-bottom: 30px;
}

.legal-subheading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--vis-primary-glow);
}

.legal-paragraph {
  color: var(--vis-text-muted-light);
  margin-bottom: 16px;
  font-size: 1rem;
}

/* FOOTER (Combined structures Preset A) */
.vision-footer-shell {
  background-color: var(--vis-panel-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 40px 0;
  color: var(--vis-text-muted-light);
}

.vision-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}

.vision-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vision-brand-desc {
  font-size: 0.95rem;
  color: var(--vis-text-muted-light);
  max-width: 500px;
}

.vision-footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vision-footer-header {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--vis-text-solid-light);
  margin-bottom: 10px;
}

.vision-footer-link {
  text-decoration: none;
  color: var(--vis-text-muted-light);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.vision-footer-link:hover {
  color: var(--vis-primary-glow);
}

.vision-footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  margin-top: 30px;
}

.disclaimer-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--vis-text-muted-light);
  margin-bottom: 20px;
}

.copyright-text {
  font-size: 0.85rem;
  color: var(--vis-text-muted-light);
}

/* COOKIE BANNER */
.cookie-banner-box {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--vis-panel-bg);
  border-top: 2px solid var(--vis-primary-glow);
  padding: 24px 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cookie-banner-text {
  font-size: 0.9rem;
  color: var(--vis-text-solid-light);
}

.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
}

.cookie-accept-btn {
  background-color: var(--vis-primary-glow);
  color: #000000;
}

.cookie-decline-btn {
  background-color: transparent;
  color: var(--vis-text-muted-light);
  border: 1px solid var(--vis-text-muted-light);
}

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
  .retina-split-layout {
    flex-direction: column;
    gap: 40px;
  }

  .retina-skew-image-holder {
    max-width: 100%;
  }

  .retina-skew-image-holder.left-skew,
  .retina-skew-image-holder.right-skew {
    clip-path: none; /* Fallback safe on mobile */
  }

  .optic-flow-line::before {
    left: 20px;
  }

  .optic-flow-node {
    flex-direction: row-reverse;
    justify-content: flex-end;
  }

  .optic-node-content.empty-content {
    display: none;
  }

  .optic-node-badge {
    margin: 0 20px 0 0;
    flex-shrink: 0;
  }

  .vision-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .pupil-nav-bar {
    position: fixed;
    top: 73px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    background-color: var(--vis-panel-bg);
    flex-direction: column;
    padding-top: 50px;
    gap: 30px;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .nav-toggle-button {
    display: flex;
  }

  /* Hamburger menu state logic (CSS only) */
  .nav-toggle-trigger:checked ~ .pupil-nav-bar {
    left: 0;
  }

  .nav-toggle-trigger:checked ~ .nav-toggle-button span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle-trigger:checked ~ .nav-toggle-button span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-trigger:checked ~ .nav-toggle-button span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .focus-stat-grid {
    grid-template-columns: 1fr;
  }

  .focus-stat-deck {
    margin-top: -30px;
  }

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

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    text-align: center;
  }

  .cookie-banner-buttons {
    justify-content: center;
  }

  .cataract-form-wrapper {
    padding: 30px 20px;
  }
}