

/* ==============================
   HOME.CSS - HOME PAGE SECTIONS
================================ */

.home-section {
  padding: 60px 24px;
}

/* ==============================
   UCOS HIFU CARTRIDGES
================================ */
.cartridges-section {
  padding: 90px 24px;
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.cartridges-container {
  max-width: 1200px;
  margin: 0 auto;
}

.cartridges-intro {
  max-width: 680px;
  margin: 0 0 46px;
  text-align: left;
}


.cartridges-intro .eyebrow {
  margin-bottom: 10px;
}

.cartridges-intro h2 {
  margin: 0 0 14px;
  color: #0a2540;
}

.cartridges-intro > p:last-child {
  margin: 0;
  color: #526273;
  line-height: 1.6;
}

.cartridge-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(31, 106, 225, 0.14);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(10, 37, 64, 0.08);
}

.cartridge-target {
  padding: 38px 42px 32px;
}

.cartridge-target-label,
.cartridge-selector-label {
  margin: 0 0 7px;
  color: #1f6ae1;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cartridge-target h3 {
  margin: 0;
  color: #0a2540;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.cartridge-target-image {
  display: grid;
  min-height: 270px;
  margin: 20px 0;
  place-items: center;
  background: #fff;
  border-radius: 14px;
}

.cartridge-target-image img {
  width: 100%;
  max-height: 290px;
  object-fit: contain;
}

.cartridge-target-description {
  margin: 0;
  color: #526273;
  line-height: 1.6;
}

.cartridge-selector {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: #f5f9ff;
  border-left: 1px solid rgba(31, 106, 225, 0.12);
}

.cartridge-product-stage {
  display: grid;
  min-height: 250px;
  margin-bottom: 26px;
  place-items: center;
}

.cartridge-product-stage img {
  width: min(100%, 300px);
  max-height: 220px;
  object-fit: contain;
}

.cartridge-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.cartridge-button {
  padding: 12px 7px;
  border: 1px solid #cbdcf2;
  border-radius: 9px;
  background: #fff;
  color: #1f6ae1;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cartridge-button span {
  font-size: 0.7rem;
  font-weight: 600;
}

.cartridge-button:hover,
.cartridge-button:focus-visible {
  border-color: #1f6ae1;
  transform: translateY(-2px);
}

.cartridge-button.active {
  border-color: #1f6ae1;
  background: #1f6ae1;
  color: #fff;
}

.cartridge-button--body {
  color: #167856;
}

.cartridge-button--body:hover,
.cartridge-button--body:focus-visible {
  border-color: #2fae7a;
}

.cartridge-button--body.active {
  border-color: #2fae7a;
  background: #2fae7a;
}

/* ==============================
   PRECLINICAL RESEARCH
================================ */
.research-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px;
}

.research-intro {
  max-width: 680px;
  margin-bottom: 46px;
}

.research-intro .eyebrow {
  margin-bottom: 10px;
}

.research-intro h2 {
  margin: 0 0 14px;
  color: #0a2540;
}

.research-intro > p:last-child {
  margin: 0;
  color: #526273;
  line-height: 1.6;
}

.research-day + .research-day {
  margin-top: 42px;
}

.research-day-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 17px;
  color: #0a2540;
  font-size: 1.2rem;
  font-weight: 700;
}

.research-day-heading::after {
  height: 1px;
  flex: 1;
  background: #d8e3ef;
  content: "";
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  justify-content: center;
  gap: 16px;
}

.research-figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #e2eaf3;
  border-radius: 12px;
}

.research-figure img {
  width: 80%;
  margin: 0 auto; 
  aspect-ratio: 1.56 / 1;
  object-fit: cover;
  border-radius: 7px;
}

.research-figure figcaption strong {
  width: 80%;
  margin: 0 auto;
  display: block;
  margin-bottom: 7px;
  color: #1f6ae1;
  font-size: 0.83rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.research-figure figcaption p {
  margin: 0;
  color: #526273;
  font-size: 0.83rem;
  line-height: 1.5;
}

.research-summary {
  grid-column: 1 / -1;   /* Span across all columns */
  margin-top: 12px;
  color: #526273;
  font-size: 0.95rem;
  line-height: 1.7;
}


/* ==============================
   EVALUATION RESULTS
================================ */

.evaluation-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px;
}

.evaluation-intro {
  max-width: 680px;
  margin-bottom: 46px;
}

.evaluation-intro .eyebrow {
  margin-bottom: 10px;
}

.evaluation-intro h2 {
  margin: 0 0 14px;
  color: #0a2540;
}

.evaluation-intro p:last-child {
  margin: 0;
  color: #526273;
  line-height: 1.6;
}

.evaluation-day + .evaluation-day {
  margin-top: 42px;
}

.evaluation-day-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: #0a2540;
  font-size: 1.2rem;
  font-weight: 700;
}

.evaluation-day-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d8e3ef;
}

.evaluation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 450px));
  justify-content: center;
  gap: 24px;
}

.evaluation-item {
  margin: 0;
}

.evaluation-item img {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  display: block;
}

.evaluation-item figcaption {
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
  color: #0a2540;
}

.evaluation-summary {
  grid-column: 1 / -1;
  margin-top: 8px;
  color: #526273;
  line-height: 1.7;
}

.evaluation-site {
  display: block;
  margin-top: 20px;
  color: #526273;
  font-size: .7rem;
}

/* ==============================
   DEPTH MAPPING
================================ */
.depth-mapping-section {
  padding: 90px 24px;
  background: #f5f9ff;
}

.depth-mapping-intro {
  max-width: 680px;
  margin: 0 auto 42px;
  text-align: center;
}

.depth-mapping-intro .eyebrow {
  margin-bottom: 10px;
}

.depth-mapping-intro h2 {
  margin: 0 0 14px;
  color: #0a2540;
}

.depth-mapping-intro > p:last-child {
  margin: 0;
  color: #526273;
  line-height: 1.6;
}

.depth-mapping-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.depth-mapping-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe9f5;
  border-radius: 14px;
}

.depth-mapping-card > img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center bottom;
}

.depth-mapping-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1;
  color: #e85b2a;
  font-size: 1.1rem;
  font-weight: 700;
}

.depth-mapping-badge span,
.body-depth-band li span {
  font-size: 0.65em;
  font-weight: 600;
}

.depth-mapping-card--30 .depth-mapping-badge { color: #8551b8; }
.depth-mapping-card--45 .depth-mapping-badge { color: #1f6ae1; }

.depth-mapping-copy {
  padding: 20px 22px 22px;
  border-top: 1px solid #e8eef5;
}

.depth-mapping-copy h3 {
  margin: 0 0 8px;
  color: #0a2540;
  font-size: 1.05rem;
}

.depth-mapping-copy p {
  margin: 0;
  color: #526273;
  font-size: 0.9rem;
  line-height: 1.5;
}

.body-depth-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1000px;
  margin: 28px auto 0;
  padding: 22px 28px;
  background: #fff;
  border: 1px solid #dfe9f5;
  border-radius: 14px;
}

.body-depth-band p {
  margin: 0 0 4px;
  color: #2fae7a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.body-depth-band strong {
  color: #0a2540;
  font-size: 0.96rem;
}

.body-depth-band ul {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.body-depth-band li {
  min-width: 72px;
  padding: 11px 8px;
  border-radius: 8px;
  background: #e5f5ee;
  color: #167856;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 950px) {
  .cartridge-explorer {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .cartridge-selector {
    border-top: 1px solid rgba(31, 106, 225, 0.12);
    border-left: 0;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .depth-mapping-grid {
    max-width: 640px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cartridges-section {
    padding: 64px 20px;
  }

  .cartridges-intro {
    margin-bottom: 32px;
  }

  .cartridge-target,
  .cartridge-selector {
    padding: 26px 20px;
  }

  .cartridge-target-image {
    min-height: 210px;
  }

  .cartridge-product-stage {
    min-height: 190px;
    margin-bottom: 20px;
  }

  .research-section {
    padding: 64px 20px;
  }

  .research-intro {
    margin-bottom: 32px;
  }

  .research-figure {
    grid-template-columns: 38% 1fr;
    gap: 12px;
    padding: 11px;
  }

  .depth-mapping-section {
    padding: 64px 20px;
  }

  .depth-mapping-intro {
    margin-bottom: 30px;
  }

  .depth-mapping-card > img {
    height: 270px;
  }

  .body-depth-band {
    display: block;
    padding: 20px;
  }

  .body-depth-band ul {
    margin-top: 16px;
  }

  .body-depth-band li {
    min-width: 0;
    flex: 1;
  }
}

strong {
  color: #1F6AE1; /* any color you want */
}



/* =========================
   HERO LAYOUT
   Text left, static image right
========================= */

.hero {
    position: relative;
    min-height: clamp(600px, 80vh, 1000px);
    overflow: hidden;
  } 
  
  .hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end; /* keeps image anchored to bottom */
  }
  
  .hero-visual img {
    width: 120%;
    height: 100%;
    object-fit: cover;
    object-position: bottom left;
    max-width: none;
    display: block;
  
    transform: translateX(-15%);  /* moves image left */
  }
  
  .hero-inner {
    position: relative;
    z-index: 2;
  
    max-width: 1400px;
    padding: 90px 24px 60px;
    width: 100%;
    margin: 0 auto;  /* centers container on large screens */
    padding-bottom: 0; /* or reduce it */
    margin-bottom: 0;
  
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: flex-start;
    text-align: left;
    color: #fff;
  
    align-items: center;   /* centers text vertically */
  }
  
  .hero-text {
    margin-top: -100px;
    color: #333;
  }
  
  .hero-title {
    font-size: clamp(2.6rem, 3.5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 0;
  }
  
  .hero-title .title-line-1 {
    font-size: clamp(3rem, 4.8vw, 7rem);
  }
  
  .hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 3rem);
    line-height: 1.15;
    margin-top: 15px;
    margin-bottom: 2rem;
  }  
  
  .hero-body {
    font-size: clamp(1.05rem, 1vw, 1.4rem);
    line-height: 1.5;
    max-width: 500px;
    margin-bottom: 2rem;
  }
  
  .hero-divider {
    max-width: 1200px;                   /* desired maximum width */
    width: 98%;
    height: 1px;
    position: relative;
    z-index: 2;
    margin: 0 auto;                   /* center it horizontally */
    padding: 0 24px;
  }
  
  .hero-divider::before {
    content: "";
    display: block;
    height: 1px;
    background: rgba(27, 27, 27, 0.5);
  }



/* ==============================
   TECHNOLOGY INTRO
================================ */

.technology-section {
  padding: 100px 24px;
}


.technology-container {
  max-width: 1200px;
  margin: 0 auto;
}


/* Header */
.technology-header {
  max-width: 760px;
  margin-bottom: 60px;
}

.technology-header .eyebrow {
  margin-bottom: 12px;
}

.technology-header h2 {
  margin: 0 0 20px;
  color: #0a2540;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.15;
}


.technology-header p:last-child {
  margin: 0;
  color: #526273;
  font-size: 1.05rem;
  line-height: 1.8;
}


/* Feature cards */
.technology-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.technology-card {
  background: var(--bg-white);
  padding: 15px 15px;
  border-radius: 12px;
  border: 1px solid #000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.technology-number {
  margin-bottom: 18px;
  color: #1f6ae1;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.technology-card h3 {
  margin: 0 0 12px;
  color: #0a2540;
  font-size: 1.25rem;
}


.technology-card p {
  margin: 0;
  color: #526273;
  line-height: 1.7;
}


/* Mobile */
@media (max-width: 800px) {
  .technology-features {
    grid-template-columns: 1fr;
  }
}



/* =========================
   CAROUSEL
========================= */
/* Section */
.carousel-section {
  padding: 80px 0; 
}

.carousel-section .eyebrow {
  text-align: center;
}

/* Title */
.carousel-title {
  margin-bottom: 60px;
  text-align: center;
}

/* Tabs */
.carousel-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  justify-content: center;
}

.carousel-tabs .tab {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: #8f9ca3;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 6px 10px;
  text-align: center;
}

.carousel-tabs .tab.active {
  color: #0a2472;
  border-bottom: 2px solid #0a2472;
}

.carousel-tabs .tab-icon {
  width: 45px;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.carousel-tabs .tab.active .tab-icon {
  opacity: 1;
  filter: none;
  transform: translateY(-2px);
}

/* Carousel wrapper */
.carousel-wrapper {
  overflow: hidden;
}

/* Track */
.carousel-track {
  display: flex;
  gap: 32px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  align-items: stretch; /* important */
} 

/* Slide width = SAME AS FEATURE CARDS */
.carousel-slide {
  flex: 0 0 360px;
  display: flex;         /* important */
  align-items: stretch;  /* important */
}

/* Card */
.carousel-card {
  text-align: left;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  max-width: 450px;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%; /* THIS is usually what people forget */
}

/* Title */
.carousel-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Paragraph spacing */
.carousel-card p {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 14px;
  color: #444;
}

.highlight-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.highlight-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  min-width: 80px;
}

.highlight-row p {
  margin: 0;
  font-size: 14px;
}

/* Cool Clinical Blue */
.highlight-1 {
  color: #D85A5A;
}

/* Technology Teal */
.highlight-2 {
  color: #1F6AE1;
}

/* Deep Energy Indigo */
.highlight-3 {
  color: #2FAE7A;
}



/* Optional: different spacing for description */
.description {
  margin-bottom: 10px;
}

/* Image + Caption Layout */
.image-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.image-row img {
  width: 60px;
  height: auto;
  border-radius: 8px;
}

.image-row p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

/* Indications section spacing */
.indications {
  margin-top: 8px;
  font-size: 14px;
}

/* Selected card highlight */
.carousel-slide.active .carousel-card {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  background: #d2e1f9;
}

.carousel-slide.active .carousel-card p {
  color: var(--text-primary);
}


/* ==============================
   CARD SECTION
================================ */

/* SECTION */
.info-section {
  padding: 60px 24px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* SECTION TITLE */
.info-section-title {
  text-align: left;
}

/* CARD WRAPPER */
.card-wrapper {
  display: flex;
  gap: 50px;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* CARD */
.card {
  background: #ffffff;
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  min-height: 400px;
}


/* CARD CONTENT */
.card-content {
  padding: 30px;
}

.card-content h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #111827;
}

.card-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

/* CARD IMAGE */
.card-image {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff; /* optional subtle background */
}

.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* BULLET LIST */
.card-content ul {
  margin: 0;
  padding-left: 20px;   /* space for bullets */
}

.card-content li {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;   /* spacing between bullet points */
}


/* ==============================
   B/A SECTION
================================ */

.before-after-section {
  padding: 18px 20px;
  text-align: center;
}

.section-title {
  font-size: 3rem;
  letter-spacing: 1px;
}

.section-subtitle {
  margin: 12px 0 40px;
}

/* Container */
.before-after-wrapper {
  display: flex;
  justify-content: center;
}

.ba-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 12px;
  width: 500px;
  max-width: 86vw;
}

.ba-slides {
  width: 100%;
  position: relative;
  display: grid;
  min-width: 0;
}

.ba-slide {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.ba-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.img-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 6px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px; /* small spacing between images */
  overflow: hidden;
}

/* Remove fixed aspect ratio */
.img-container {
  aspect-ratio: auto;
}

/* Make images fully visible */
.img-container img {
  position: relative !important;
  width: 100%;
  height: auto; /* KEY FIX */
  object-fit: contain; /* show entire image */
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.img-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #b6bdd5;
  transform: translateX(-50%);
}

.img-after {
  clip-path: none !important;
}

.slider,
.slider-handle {
  display: none !important;
}


/* Labels */
.label {
  position: absolute;
  bottom: 10px;
  padding: 4px 8px;
  font-size: 12px;
  background: black;
  color: white;
}

.before-label {
  left: 10px;
}

.after-label {
  right: 10px;
}

.ba-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--brand-primary);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ba-arrow svg {
  width: 20px;
  height: 20px;
}

.ba-arrow:hover {
  background: rgb(65, 65, 65);
}

.ba-arrow.prev {
  left: -74px;
}

.ba-arrow.next {
  right: -74px;
}

.ba-arrow:focus {
  outline: none;
}

.ba-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
  min-width: 0;
}

.ba-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #9da7c7;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ba-dot.active {
  background: #0a2472;
  transform: scale(1.2);
}

.ba-caption {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: #0a2472;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.ba-caption-title {
  font-size: 1.1em;
  font-weight: 600;
}

.ba-caption-credit {
  margin-left: 0.4em;
  font-size: 0.78em;
  color: rgb(147, 147, 147);
}


  

  /* ==============================
     CTA
  ================================ */
  .productcta-section {
    display: flex;
    justify-content: center;
    padding: 10px 24px;
    margin-bottom: 50px;
    background-color: #f9f9f9;
  }

  .productcta-section .cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background-color: #f9f9f9;
  }

  .productcta-section .cta-title {
    margin: 0;
    text-align: center;
  }  
  
/* ==============================
 REFERENCE
================================ */
/* symbol styling */
.note-symbol {
  font-size: 0.65em;
  vertical-align: super;
  margin-left: 2px;
  font-weight: 500;
}

/* wrapper controls page width */
.notes-wrap {
  max-width: 1200px;
  margin: 60px auto 0 auto;
  padding-top: 20px;
}

/* minimal typography */
.notes p {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #8f9ca3;
  font-weight: 300;
  letter-spacing: 0.2px;
}




  /* ==============================
     MEDIA QUERIES
  ================================ */

  @media (min-width: 1200px) {
    .hero-text {
      max-width: 1200px;
      margin-left: 60px;
    }

    .device-features {
      margin-top: -40px;
    }
  }
  
    


/* Tablets / iPad portrait (768px – 1024px) */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.3fr 0.7fr; /* same as laptop, keep horizontal */
    text-align: left;                   /* align text to left */
    gap: 1.5rem;                        /* reduce gap a little for smaller width */
    padding: 160px 24px 0; /* increase top padding */
  }

  .hero-visual {
    margin-top: 0;                      /* remove extra top margin */
    display: flex;
    justify-content: flex-start;        /* keep image on the right */
    align-items: flex-end;              /* anchor image to bottom */
  }

  .hero-visual img {
    max-width: 400px;                    /* shrink image slightly for tablet */
    margin-left: 40px;
  }

  .hero-divider {
    width: 95%;                          /* scale divider width */
  }

  .hero-bg {
    background-size: contain;   /* ensures entire image fits within hero */
    background-position: center top; /* align to top for portrait */
    background-repeat: no-repeat;    /* prevents tiling */
  }

  .wavelength-pin {
    height: auto;
  }

  .wavelength-section {
    position: relative;
    padding: 70px 0;
  }

  .wavelength-container {
    position: relative;
    top: auto;
    min-height: auto;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    padding: 0 24px;
  }

  .wavelength-section .ktp-wrapper {
    margin-top: 20px;
    padding: 0 24px;
  }

  .text {
    padding-top: 0;
    text-align: center;
  }

  .wavelength-icons {
    justify-content: center;
    gap: 60px;
  }

  .pin-column {
    position: relative;
    top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .pin-wrapper {
    position: relative;
    top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .skin-image {
    max-width: 420px;
  }

  .beam-caption {
    display: block;
    opacity: 1;
    pointer-events: none;
    width: 120px;
    text-align: center;
  }

  .caption1 { left: 30%; transform: translate(-50%, -6px); }
  .caption2 { left: 60%; transform: translate(-50%, -6px); }


  .device-container {
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }

  /* Feature card on top */
  .feature-panel {
    order: 1;
    width: 100%;
    max-width: 720px;
  }

  /* Device image below */
  .device-image-wrapper {
    order: 2;
    flex: none;
    width: 320px;
    margin: 0 auto;
  }

  .device-image {
    width: 100%;
    height: auto;
  }

  /* Card sizing for tablet readability */
  .feature-card {
    height: auto;
    min-height: 420px;
    padding: 36px 36px 90px;
  }

  .feature-card h3 {
    font-size: 22px;
  }

  .feature-card p {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Navigation spacing */
  .feature-nav {
    left: 36px;
    bottom: 28px;
  }

  /* Slightly larger touch targets */
  .feature-arrow {
    width: 44px;
    height: 44px;
  }


  .carousel-section {
    padding: 80px 0 90px;
  }

  .carousel-tabs {
    gap: 18px;
    flex-wrap: wrap;
  }

  .carousel-tabs .tab {
    font-size: 0.95rem;
  }

  .carousel-tabs .tab-icon {
    width: 38px;
  }

  .carousel-track {
    gap: 24px;
  }

  .carousel-slide {
    flex: 0 0 350px;
  }

  .carousel-card {
    padding: 20px;
  }

  .carousel-arrow-group {
    justify-content: center;
    margin-right: 0;
  }

  .carousel-track {
    gap: 24px;
  }

  .carousel-card h3 {
    font-size: 18px;
  }

  .carousel-card p {
    font-size: 13px;
  }

  .image-row img {
    width: 50px;
  }

  .carousel-arrow-group {
    justify-content: center;
    margin-right: 0;
  }

  .before-after-section {
    padding: 100px 20px;
  }

  .section-title {
    font-size: 2.6rem;
  }

  .ba-carousel {
    width: 500px;
  }

  .img-container {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ba-arrow.prev {
    left: -60px;
  }

  .ba-arrow.next {
    right: -60px;
  }

  .ba-caption {
    font-size: 0.95rem;
  }

  .info-section {
    padding: 80px 32px;
  }

  .card-wrapper {
    gap: 40px;
  }

  .card {
    flex: 1 1 45%;   /* two per row */
    min-height: 420px;
  }

  .card-content {
    padding: 28px;
  }

  .card-image {
    height: 240px;
  }
  
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero {
    min-height: clamp(620px, 70vh, 820px);
  }

  .hero-inner {
    padding: 130px 24px 0;
  }

  .wavelength-section {
    padding-top: 24px;
  }
}


/* Small screens / phones (under 768px) */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr; /* single column */
    text-align: center;
    padding: 80px 16px 0;
  }

  .hero-text {
    margin-top: 0;
  }

  .hero-title {
    font-size: clamp(2rem, 3vw, 2rem);
  }

  .hero-title .title-line-1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.6rem);
  }

  .hero-body {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Center the device image */
  .hero-visual {
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center;
    height: auto;
    margin-top: 1.5rem;      /* space between text and image */
  }

  .hero-visual img {
    width: auto;
    height: auto;
    max-width: 250px;
    margin: 0;               /* remove previous left margin */
    object-position: center;
    transform: none;
  }

  .hero-divider {
    width: 90%; /* relative width for mobile */
    margin-top: 12px;
  }

  .wavelength-section {
    padding: 80px 0;
  }

  .text h2 {
    font-size: 2rem;
  }

  .text p {
    font-size: 0.95rem;
  }

  .wavelength-icons {
    flex-direction: column;
    gap: 24px;
  }

  .wavelength-icons img {
    width: 70px;
  }

  .skin-image {
    max-width: 320px;
  }

  .beam {
    width: 10px;
  }

  .beam-caption {
    display: block;
    text-align: right;
  }

  .caption1 { left: 15%; transform: translate(-110%, -6px); }
  .caption2 { left: 50%; transform: translate(-110%, -6px); }


  .device-container {
    flex-direction: column;
    gap: 40px; /* tighter spacing for mobile */
  }

  /* Ensure feature card appears first */
  .feature-panel {
    order: 1;
    width: 100%;
  }

  /* Device image appears below */
  .device-image-wrapper {
    order: 2;
    flex: none;
    width: 220px;      /* scale image for mobile */
    margin: 0 auto;    /* center image */
  }

  .device-image {
    width: 100%;
    height: auto;
  }

  /* Improve card usability on small screens */
  .feature-card {
    height: 500px;
    padding: 28px 24px 80px;
  }

  .feature-card h3 {
    font-size: 20px;
  }

  .feature-card p {
    font-size: 15px;
    line-height: 1.55;
  }

  .feature-nav {
    left: 24px;
    bottom: 20px;
  }

  .carousel-section {
    padding: 60px 0 80px;
  }

  .carousel-title {
    margin-bottom: 40px;
  }

  .carousel-tabs {
    gap: 14px;
    margin-bottom: 32px;
  }

  .carousel-tabs .tab {
    font-size: 0.85rem;
    padding: 6px 4px 8px;
  }

  .carousel-tabs .tab-icon {
    width: 32px;
  }

  .carousel-track {
    gap: 20px;
  }

  .carousel-slide {
    flex: 0 0 80%;
  }

  .carousel-card {
    padding: 20px;
  }

  .carousel-card img {
    width: 140px;
  }

  .carousel-card h3 {
    height: auto;
    font-size: 1rem;
  }

  .carousel-card p {
    font-size: 0.9rem;
  }

  .carousel-arrow-group {
    justify-content: center;
    margin-bottom: 16px;
  }

  .carousel-arrow {
    width: 32px;
    height: 32px;
  }

  .carousel-track {
    gap: 20px;
  }

  .carousel-card h3 {
    font-size: 17px;
  }

  .carousel-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  .highlight-text {
    font-size: 22px;
    min-width: 75px;
  }

  .image-row {
    gap: 12px;
  }

  .image-row img {
    width: 45px;
  }

  .carousel-arrow-group {
    justify-content: center;
    margin-bottom: 16px;
  }

  .carousel-arrow {
    width: 32px;
    height: 32px;
  }

  .before-after-section {
    padding: 80px 16px;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .section-subtitle {
    margin-bottom: 28px;
  }

  .ba-carousel {
    width: 100%;
    max-width: 300px;
  }

  .label {
    font-size: 11px;
    padding: 3px 6px;
  }

  .ba-arrow {
    width: 32px;
    height: 32px;
  }

  .ba-arrow.prev {
    left: -36px;
  }

  .ba-arrow.next {
    right: -36px;
  }

  .ba-dots {
    margin-top: 6px;
  }

  .ba-caption {
    font-size: 0.9rem;
    max-width: 260px;
  }

  .info-section {
    padding: 60px 20px;
  }

  .card-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .card {
    flex: 1 1 100%;
    min-height: auto;
  }

  .card-content {
    padding: 24px;
  }

  .card-content h3 {
    font-size: 18px;
  }

  .card-content p {
    font-size: 14px;
  }

  .card-image {
    height: 220px;
  }
}
