/* ===== FONTS ===== */
/* DM Serif Display + DM Sans via Google (in layout head) */

/* ===== TOKENS ===== */
:root {
  --bg: #FAFAF5;
  --bg-alt: #F2F0EB;
  --fg: #1A1A1A;
  --fg-soft: #64748B;
  --accent: #0D9488;
  --accent-hover: #0F766E;
  --accent-pale: #CCFBF1;
  --amber: #D97706;
  --amber-pale: #FEF3C7;
  --slate: #1E293B;
  --border: #E2E0DA;
  --radius: 10px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--slate);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 12px;
  color: var(--fg-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

/* Language switcher in nav */
.nav-lang-switcher {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-btn {
  color: var(--fg-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.lang-btn:hover,
.lang-btn.active {
  color: var(--accent);
}
.lang-sep {
  margin: 0 0.2rem;
  color: var(--border);
}

/* ===== HERO ===== */
.hero {
  padding: 80px 40px 100px;
  overflow: hidden;
}
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  color: var(--slate);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 16px;
  color: var(--fg-soft);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 460px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}
.stat:first-child { padding-left: 0; }
.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--slate);
  line-height: 1.2;
}
.stat-label {
  font-size: 11px;
  color: var(--fg-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ===== LENS DISPLAY (Hero right) ===== */
.hero-right {
  display: flex;
  justify-content: center;
}
.lens-display {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.lens-shell {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lens-outer-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.2;
}
.lens-inner-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.4;
  background: radial-gradient(circle, rgba(13,148,136,0.04) 0%, transparent 70%);
}
.lens-core {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #CCFBF1, #0D9488);
  box-shadow: 0 0 24px rgba(13,148,136,0.35), inset 0 0 12px rgba(255,255,255,0.4);
}
.lens-crosshair-h, .lens-crosshair-v {
  position: absolute;
  background: rgba(13,148,136,0.15);
}
.lens-crosshair-h { width: 200px; height: 1px; top: 50%; transform: translateY(-50%); }
.lens-crosshair-v { width: 1px; height: 200px; left: 50%; transform: translateX(-50%); }
.lens-ticks .tick {
  position: absolute;
  font-size: 9px;
  color: var(--accent);
  opacity: 0.5;
  font-weight: 600;
}
.t1 { top: 0; left: 50%; transform: translateX(-50%) translateY(-6px); }
.t2 { right: 0; top: 50%; transform: translateY(-50%) translateX(6px); }
.t3 { bottom: 0; left: 50%; transform: translateX(-50%) translateY(6px); }
.t4 { left: 0; top: 50%; transform: translateY(-50%) translateX(-6px); }
.lens-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lens-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--bg-alt);
}
.lens-info-row:last-child { border-bottom: none; }
.lens-label {
  font-size: 11px;
  color: var(--fg-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.lens-val {
  font-size: 13px;
  color: var(--slate);
  font-weight: 500;
}

/* ===== SHARED SECTION ===== */
.section-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--slate);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 56px;
}

/* ===== HOW IT WORKS ===== */
.howitworks {
  background: var(--slate);
  padding: 80px 40px;
}
.howitworks-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.howitworks .section-label { color: #5EEAD4; }
.howitworks .section-title { color: white; margin-bottom: 60px; }
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 28px 28px;
  width: 280px;
  flex-shrink: 0;
}
.step-number {
  font-family: 'DM Serif Display', serif;
  font-size: 42px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
  opacity: 0.6;
}
.step-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.step-connector {
  padding: 0 20px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ===== CAPABILITIES ===== */
.capabilities { padding: 80px 40px; }
.capabilities-inner { max-width: 1100px; margin: 0 auto; }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cap-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cap-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.cap-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.cap-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 10px;
}
.cap-desc {
  font-size: 13.5px;
  color: var(--fg-soft);
  line-height: 1.65;
}

/* ===== LENS SHOWCASE ===== */
.lensshowcase {
  background: var(--bg-alt);
  padding: 80px 40px;
}
.lensshowcase-inner { max-width: 900px; margin: 0 auto; }
.showcase-header { text-align: center; }
.search-demo {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}
.search-input-row { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.search-icon { display: flex; align-items: center; flex-shrink: 0; }
.search-placeholder {
  flex: 1;
  font-size: 13px;
  color: var(--fg-soft);
  font-style: italic;
}
.search-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.search-btn:hover { background: var(--accent-hover); }
.results-table { width: 100%; }
.results-header {
  display: grid;
  grid-template-columns: 40px 1fr 70px 60px 140px 60px 70px;
  padding: 10px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.result-row {
  display: grid;
  grid-template-columns: 40px 1fr 70px 60px 140px 60px 70px;
  padding: 14px 20px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background 0.15s;
}
.result-row:last-child { border-bottom: none; }
.result-row:hover { background: var(--bg); }
.result-primary { background: rgba(13,148,136,0.04); }
.col-rank { color: var(--fg-soft); font-weight: 500; }
.col-lens { display: flex; flex-direction: column; gap: 2px; }
.lens-name { font-weight: 600; color: var(--slate); }
.lens-maker { font-size: 11px; color: var(--fg-soft); }
.col-bc, .col-dia, .col-dk { color: var(--fg-soft); font-size: 13px; }
.col-mat { font-size: 12px; color: var(--fg-soft); }
.score-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.score-high { background: #DCFCE7; color: #166534; }
.score-mid { background: #FEF9C3; color: #854D0E; }
.score-low { background: #F1F5F9; color: #475569; }
.score-discont { background: #F1F5F9; color: #94A3B8; }
.discontinued-text { color: #94A3B8; text-decoration: line-through; }
.showcase-caption {
  text-align: center;
  font-size: 13.5px;
  color: var(--fg-soft);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}

/* Supply chain / lead time — surfaced per-lens in match result cards */
.result-supply { font-size: 0.78rem; color: #5a6778; margin-bottom: 0.4rem; }
.result-supply-status { font-weight: 600; }
.status-in_stock   { color: #065f46; }
.status-low_stock  { color: #854d0e; }
.status-backorder  { color: #9a3412; }
.status-lab_order  { color: #1e40af; }

/* Price tier badge — sibling to the lead-time / availability line on a match card */
.price-badge {
  display: inline-block;
  background: #ede9fe;
  color: #5b21b6;
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ===== CLOSING ===== */
.closing { padding: 100px 40px; }
.closing-inner { max-width: 1100px; margin: 0 auto; }
.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-pale);
  border: 1px solid rgba(13,148,136,0.2);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}
.closing-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 4.5vw, 56px);
  color: var(--slate);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 28px;
}
.closing-body {
  font-size: 17px;
  color: var(--fg-soft);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 60px;
}
.closing-rule {
  width: 80px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--slate);
  padding: 40px 40px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: white;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ===== HERO SEARCH ===== */
.hero-search { margin-top: 32px; }
.hero-search-form { width: 100%; }
.hero-search-wrap {
  display: flex;
  align-items: center;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  gap: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  max-width: 480px;
}
.hero-search-icon { flex-shrink: 0; }
.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--fg);
  background: transparent;
}
.hero-search-input::placeholder { color: var(--fg-soft); }
.hero-search-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.hero-search-btn:hover { background: var(--accent-hover); }
.hero-cta-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.hero-cta-link:hover { text-decoration: underline; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 80px 40px; background: white; }
.testimonials-inner { max-width: 1100px; margin: 0 auto; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-quote {
  font-size: 14.5px;
  color: var(--fg);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
}
.testimonial-role {
  font-size: 12px;
  color: var(--fg-soft);
}

/* ===== CLOSING CTA BUTTON ===== */
.closing-cta-btn {
  display: inline-block;
  margin-bottom: 40px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s;
}
.closing-cta-btn:hover { background: var(--accent-hover); }

/* ===== FOOTER LANGUAGE SWITCHER ===== */
.footer-lang {
  margin-top: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.footer-lang-btn {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-lang-btn:hover,
.footer-lang-btn.active { color: var(--accent); }
.footer-lang-sep {
  margin: 0 0.3rem;
  color: rgba(255,255,255,0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .steps { flex-direction: column; gap: 16px; }
  .step-connector { transform: rotate(90deg); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .results-header, .result-row { grid-template-columns: 32px 1fr 60px; }
  .col-mat, .col-dk, .col-score { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav { padding: 0 20px; }
  .hero { padding: 60px 20px 80px; }
  .cap-grid { grid-template-columns: 1fr; }
  .howitworks, .capabilities, .lensshowcase, .closing { padding: 60px 20px; }
  .footer { padding: 32px 20px; }
  .testimonials { padding: 60px 20px; }
  .hero-search-wrap { max-width: 100%; }
}
