/* =========================================================
   HOYA Lenses — page styles. Shared lens-page components (chapter bar,
   finder, range tiers, segmented controls, compare slider, sources) come
   from zeiss.css; this file adds the HOYA-only pieces.
   ========================================================= */

/* ---------- Hero ---------- */
.zs-hero__frame .hy-hero__tag { padding: 0 18px 0 0; gap: 16px; }
.hy-hero__logo { display: block; padding: 14px 16px; border-right: 1px solid rgba(247,243,236,.25); line-height: 0; }
.zs-hero__frame .hy-hero__tag img { display: block; width: 86px; height: auto; aspect-ratio: auto; background: none; position: static; }

/* ---------- Chapter bar ---------- */
.hy-chapters .zs-chapters__track { justify-content: safe center; }
.hy-chapters .zs-chapters__mark img { width: 64px; height: auto; }
.hy-chapters.is-stuck .zs-chapters__mark { width: 64px; }

/* ---------- Numbers ---------- */
.hy-stats::before {
  aspect-ratio: 168 / 38.5; bottom: -6%;
  -webkit-mask-image: url(/images/hoya/hoya-logo.svg); mask-image: url(/images/hoya/hoya-logo.svg);
}
.zs-stat__num small { font-size: .42em; letter-spacing: .02em; }

/* ---------- Finder ---------- */
.rec .hy-rec__seal { top: 26px; width: 64px; height: auto; filter: none; }
.rec__actions .text-link { font-size: 12px; }

/* ---------- Range: two extra grades ---------- */
.tier--standard { --tc: #5f7466; }
.tier--essential { --tc: var(--sand-deep); }
.hy .fam__new { position: static; justify-self: start; margin-bottom: -2px; }
.fam:target { box-shadow: inset 0 3px 0 var(--tc), 0 18px 40px -20px rgba(31,31,31,.25); }

/* ---------- Viewers (image stack + tabs) ---------- */
.hy-viewer { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hy-viewer--wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
.hy-viewer--office { align-items: start; }
.hy-stack { display: grid; box-shadow: 0 30px 60px -34px rgba(31,31,31,.5); background: #d8d2c8; }
.hy-stack__item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), visibility 0s .6s; }
.hy-stack__item.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease-out); }
.hy-stack img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hy-viewer__copy .seg { margin-bottom: 24px; }
.hy-viewer__copy .section__title { margin-bottom: 14px; }
.hy-panel { animation: hyPanel .55s var(--ease-out) both; }
@keyframes hyPanel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hy-panel[hidden] { display: none; }
.hy-panel p + p { margin-top: 10px; }
.hy-panel p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.hy-panel .hy-panel__grade { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); line-height: 1.4; }
.hy-panel .hy-panel__name { margin-top: 6px; font-family: var(--font-title); font-weight: 300; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; color: var(--ink); }
.hy-panel .hy-panel__for { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gold-soft); font-size: 14px; }
.hy-panel .hy-panel__for strong { color: var(--teal-deep); font-weight: 600; }
.hy-panel .rec__points { margin-top: 14px; }
.hy-panel__wearer { margin-bottom: 20px; }
.hy-panel__wearer img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hy-viewer .rec__note { margin-top: 22px; }

/* ---------- Single vision ---------- */
.hy-sv .hy-stack { max-width: 560px; }
.hy-sv .zonemap__schematic { text-align: left; max-width: 560px; }

/* ---------- Compare slider (Sync III, EnRoute) ---------- */
.hy-compare { max-width: 820px; margin-inline: auto; aspect-ratio: 1360 / 1071; background: #d8d2c8; }
.hy-compare .compare__layer--before .compare__img, .hy-compare .compare__layer--after .compare__img { filter: none; }
.hy-compare + .compare__note { margin-inline: auto; max-width: 820px; }
.hy-compare--drive { aspect-ratio: 837 / 518; max-width: 1080px; background: #05080d; }
.hy-compare--drive + .compare__note { max-width: 1080px; }
.hy-compare .hy-drive__img { opacity: 0; transition: opacity .5s var(--ease-out); }
.hy-compare .hy-drive__img.is-on { opacity: 1; }
.hy-drive__controls { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; margin: 0 auto 22px; }
.seg--light { border-color: rgba(247,243,236,.55); }
.seg--light .seg__btn { color: var(--cream-2); border-color: rgba(247,243,236,.55); }
.seg--light .seg__btn:hover { color: var(--gold-soft); }
.seg--light .seg__btn.is-active { background: var(--cream-2); color: var(--ink); }

/* ---------- Sync III boost ---------- */
.hy-boost { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); background: var(--white); }
.hy-boost__lens svg { width: 100%; height: auto; display: block; }
.hy-boost__line { fill: none; stroke: var(--teal); stroke-width: 2; stroke-dasharray: 6 6; }
.hy-boost__txt { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; fill: var(--ink-soft); }
.hy-boost__txt--boost { font-family: var(--font-title); font-size: 26px; font-weight: 300; letter-spacing: 0; text-transform: none; fill: var(--teal-deep); }
.hy-boost__name { margin-top: 22px; font-family: var(--font-title); font-weight: 300; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; color: var(--teal-deep); }
.hy-boost__text { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); min-height: 1.6em; }
.hy-boost__text--soft { font-size: 13.5px; transition: opacity .3s; }
.hy-boost:not(.is-ultra) .hy-boost__text--soft { opacity: .55; }
.hy-boost__ultra { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.hy-boost__ultra input { width: 18px; height: 18px; accent-color: var(--teal); }

/* ---------- Varifocals ---------- */
.hy-dirs { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--gold-soft); }
.hy-dirs__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.hy-panel .hy-dirs__text { margin-top: 12px; font-size: 14px; min-height: 3.2em; }

/* ---------- Office ratings ---------- */
.hy-ratings { margin-top: 20px; display: grid; gap: 10px; }
.hy-ratings div { display: grid; grid-template-columns: 140px auto 1fr; gap: 14px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hy-ratings dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.hy-ratings dd { display: contents; }
.hy-ratings dd > span:last-child { font-size: 13px; color: var(--ink-soft); }
.pips { display: inline-flex; gap: 5px; }
.pips i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--teal-deep); }
.pips i.on { background: var(--teal-deep); }
.js .hy-panel .pips i.on { animation: pipIn .5s var(--ease-out) both; }
.js .hy-panel .pips i:nth-child(2) { animation-delay: .06s; } .js .hy-panel .pips i:nth-child(3) { animation-delay: .12s; }
.js .hy-panel .pips i:nth-child(4) { animation-delay: .18s; } .js .hy-panel .pips i:nth-child(5) { animation-delay: .24s; }
@keyframes pipIn { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- EnRoute ---------- */
.hy-drive__grid { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hy-drive__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hy-drive__cards { display: grid; gap: 14px; }
.hy-dcard { padding: 20px 22px; border: 1px solid rgba(247,243,236,.2); }
.hy-dcard__name { font-family: var(--font-title); font-weight: 300; font-size: 24px; color: var(--gold-soft); margin-bottom: 8px; }
.hy-dcard li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.55; opacity: .9; }
.hy-dcard li + li { margin-top: 4px; }
.hy-dcard li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--gold-soft); }

/* ---------- Materials: thickness comparison ---------- */
.thick { padding: clamp(22px, 4vw, 48px); background: var(--white); }
.thick__controls { text-align: center; }
.thick__seg { max-width: 100%; }
.thick__hint { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--ink-soft); min-height: 1.6em; }
.thick__rows { margin-top: clamp(20px, 3vw, 32px); display: grid; }
.trow { display: grid; grid-template-columns: 74px minmax(0, 1fr) 220px; gap: clamp(12px, 2.4vw, 32px); align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.trow:last-child { border-bottom: 1px solid var(--line); }
.trow__idx { font-family: var(--font-title); font-weight: 300; font-size: 30px; line-height: 1; color: var(--teal-deep); }
.trow__idx small { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.trow svg { display: block; width: 100%; height: 76px; overflow: visible; }
.trow__lens { fill: rgba(14,107,107,.22); stroke: var(--teal); stroke-width: 1.5; transition: d .7s var(--ease-out); }
.trow:first-child .trow__lens { fill: rgba(14,107,107,.42); }
.trow__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 12px; color: var(--ink-soft); }
.trow__nums b { display: block; font-family: var(--font-title); font-weight: 300; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.trow__save { grid-column: 1 / -1; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--teal); min-height: 1.3em; }
.mat-cards { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.mat-card { padding: 20px 18px; background: var(--cream-2); border-top: 2px solid var(--teal); }
.mat-card__idx { font-family: var(--font-title); font-weight: 300; font-size: 34px; line-height: 1; color: var(--teal-deep); margin-bottom: 12px; }
.mat-card li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.mat-card li + li { margin-top: 6px; }
.mat-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: var(--gold); }

/* ---------- Coatings ---------- */
.hy-coat__panel { display: grid; grid-template-columns: 170px minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 52px); align-items: center; }
.hy-coat__lens p { margin-top: 10px; font-size: 12px; letter-spacing: .08em; color: var(--ink-soft); text-align: center; }
.hy-coat__panel .hy-coat__guarantee { margin-top: 14px; display: inline-block; padding: 7px 12px; background: var(--cream-2); font-size: 12.5px; font-weight: 600; color: var(--teal-deep); }
.hy-coat__list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hy-coat__lab { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.hy-coat__ticks { margin-top: 14px; display: grid; gap: 6px; }
.hy-coat__ticks li { position: relative; padding-left: 26px; font-size: 13px; line-height: 1.4; }
.hy-coat__ticks li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); }
.hy-coat__ticks li.on::before { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 100% no-repeat; border-color: var(--teal); }
.hy-coat__ticks li.off { color: var(--ink-soft); opacity: .55; text-decoration: line-through; text-decoration-color: rgba(31,31,31,.3); }

/* ---------- Sensity ---------- */
.sens__tabs { margin-bottom: clamp(22px, 3vw, 34px); }
.sens__panel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); align-items: center; }
.sens__strip img { display: block; width: 100%; height: auto; }
.sens__arrow { display: flex; justify-content: space-between; margin-top: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); position: relative; }
.sens__arrow::before { content: ""; position: absolute; left: 92px; right: 112px; top: 50%; height: 1px; background: linear-gradient(90deg, var(--gold-soft), var(--teal-deep)); }
.sens__swlabel { margin-top: 20px; margin-bottom: 10px; }
.sens__swatches { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.sens__swatches li { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.sens__dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 55%), var(--c); box-shadow: 0 0 0 1px rgba(31,31,31,.15); }

/* ---------- Sun ---------- */
.sunfacts { margin-bottom: clamp(28px, 4vw, 44px); }
.sunfacts__list { list-style: none; padding: 0; counter-reset: f; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; }
.sunfacts__list li { counter-increment: f; position: relative; padding-left: 42px; font-size: 14.5px; line-height: 1.5; min-height: 30px; }
.sunfacts__list li::before { content: counter(f); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: var(--white); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.sun-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sun-card { padding: 20px 20px 24px; background: var(--white); }
.sun-card__img { aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: 14px; }
.sun-card__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; mix-blend-mode: multiply; }
.sun-card__kicker { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.sun-card__name { margin: 6px 0 8px; font-family: var(--font-title); font-weight: 300; font-size: 24px; line-height: 1.15; }
.sun-card p:last-child { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.hy-polar { margin-top: clamp(56px, 8vw, 96px); }
.hy-polar .split__media .frame img { aspect-ratio: auto; }
.hy-polcheck { margin-top: 10px; border-color: var(--gold-soft); }
.hy-polcheck__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hy-polcheck__list button { padding: 9px 14px; border: 1px solid var(--ink); font-size: 12.5px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.hy-polcheck__list button:hover { border-color: var(--teal); color: var(--teal); }
.hy-polcheck__list button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.hy-polcheck .drive-check__out { color: var(--teal-deep); }
.hy-polcheck .drive-check__out a { color: var(--teal); }

/* ---------- MiYOSMART ---------- */
.miyo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 6px 0 22px; }
.miyo-stats > div { padding-top: 14px; border-top: 2px solid var(--teal); }
.miyo-stats__num { font-family: var(--font-title); font-weight: 300; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.miyo-stats p:last-child { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.miyo-cards { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.miyo-card { background: var(--cream-2); }
.miyo-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.miyo-card__body { padding: 20px 22px 24px; }
.miyo-card__name { font-family: var(--font-title); font-weight: 300; font-size: 24px; margin-bottom: 8px; }
.miyo-card p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .mat-cards { grid-template-columns: repeat(3, 1fr); }
  .sun-cards { grid-template-columns: repeat(2, 1fr); }
  .hy-coat__panel { grid-template-columns: 150px 1fr; }
  .hy-coat__meters { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hy-viewer, .hy-viewer--wide { grid-template-columns: 1fr; }
  .hy-sv .hy-stack, .hy-sv .zonemap__schematic { max-width: none; }
  .hy-boost { grid-template-columns: 1fr; }
  .hy-boost__lens { max-width: 260px; margin-inline: auto; }
  .hy-drive__grid { grid-template-columns: 1fr; }
  .sens__panel { grid-template-columns: 1fr; }
  .sunfacts__list { grid-template-columns: 1fr 1fr; }
  .miyo-cards { grid-template-columns: 1fr; }
  .trow { grid-template-columns: 60px minmax(0, 1fr); }
  .trow__nums { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .thick__seg { display: flex; flex-wrap: wrap; border: 0; gap: 6px; justify-content: center; }
  .thick__seg .seg__btn { border: 1px solid var(--ink); flex: 0 0 auto; padding-inline: 12px; }
  .hy-coat__panel { grid-template-columns: 1fr; }
  .hy-coat__lens svg { max-width: 120px; }
  .hy-ratings div { grid-template-columns: 1fr auto; }
  .hy-ratings dd > span:last-child { grid-column: 1 / -1; margin-top: -6px; }
}
@media (max-width: 560px) {
  .mat-cards { grid-template-columns: 1fr 1fr; }
  .sun-cards, .sunfacts__list { grid-template-columns: 1fr; }
  .miyo-stats { grid-template-columns: 1fr; }
  .hy-drive__controls .seg { width: 100%; }
  .sens__arrow::before { left: 80px; right: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .hy-panel, .js .hy-panel .pips i.on { animation: none; }
  .hy-stack__item, .hy-compare .hy-drive__img, .trow__lens { transition: none; }
}
