:root {
  --stone: #ebe4d6;
  --stone-deep: #d8cfc0;
  --vault: #24363c;
  --vault-ink: #152226;
  --iris: #3d7a82;
  --iris-pale: #8ec4c8;
  --glass: #f7f4ee;
  --text: #1c2628;
  --quiet: #5a6664;
  --fault: #8c2f2a;
  --good: #2c5e4a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body.optic-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 12% 18%, rgba(142, 196, 200, 0.28), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(36, 54, 60, 0.08), transparent 22%),
    var(--stone);
  color: var(--text);
  font-family: Figtree, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.7rem;
  color: var(--vault-ink);
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
p { margin: 0 0 1rem; }

.skip-iris {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: var(--vault);
  color: var(--glass);
  padding: 8px 12px;
  font-size: 13px;
  text-decoration: none;
  border-radius: 999px;
}

.skip-iris:focus { top: 14px; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 3px; }

.chart-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 8vw 6px;
  color: var(--vault);
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.28em;
  user-select: none;
}

.chart-top span:nth-child(1) { font-size: 2.1rem; }
.chart-top span:nth-child(2) { font-size: 1.45rem; opacity: 0.8; }
.chart-top span:nth-child(3) { font-size: 1.05rem; opacity: 0.65; }
.chart-top span:nth-child(4) { font-size: 0.82rem; opacity: 0.5; }

.stone-lintel {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 8vw 8px;
  padding: 14px 22px;
  background: var(--glass);
  border: 1px solid var(--stone-deep);
  border-radius: 999px;
}

.vault-word {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--vault-ink);
  white-space: nowrap;
}

.vault-word i {
  font-style: italic;
  color: var(--iris);
}

.iris-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.iris-toggle::before,
.iris-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border: 2px solid var(--vault);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.iris-toggle::before { width: 22px; height: 22px; }
.iris-toggle::after { width: 10px; height: 10px; background: var(--iris); }

.iris-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.iris-nav a {
  text-decoration: none;
  color: var(--quiet);
  font-size: 15px;
  font-weight: 500;
}

.iris-nav a[aria-current="page"],
.iris-nav a:hover { color: var(--vault-ink); }

.clinic-dot {
  font-size: 13px;
  font-weight: 600;
  color: var(--good);
  padding: 6px 12px;
  border: 1px solid #b7d4c4;
  border-radius: 999px;
  background: #eef6f1;
}

.clinic-dot.is-closed {
  color: var(--quiet);
  border-color: var(--stone-deep);
  background: var(--stone);
}

.sclera-wrap {
  width: min(1120px, calc(100% - 10vw));
  margin: 18px auto 48px;
}

.lens-kicker {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--iris);
  margin: 0 0 10px;
}

.glass-lede {
  max-width: 64ch;
  font-size: 1.06rem;
}

.iris-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto auto;
  gap: 0 36px;
  align-items: center;
  margin: 28px 0 40px;
}

.pupil-shot {
  grid-column: 1;
  grid-row: 1 / 3;
  width: min(100%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 14px solid var(--glass);
  box-shadow:
    0 0 0 1px var(--stone-deep),
    0 18px 40px rgba(21, 34, 38, 0.12);
  background: var(--vault);
}

.pupil-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pupil-shot figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.iris-copy { grid-column: 2; grid-row: 1; padding-top: 12px; }

.rx-chip {
  grid-column: 2;
  grid-row: 2;
  background: var(--glass);
  border: 1px solid var(--stone-deep);
  border-radius: 24px;
  padding: 18px 20px 10px;
  max-width: 420px;
}

.caption-line {
  font-size: 14px;
  color: var(--quiet);
  margin: 8px 0 0;
  text-align: center;
}

.ring-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin: 12px 0 36px;
}

.ring-card {
  width: min(100%, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--stone-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 28px 26px 20px;
  box-shadow: inset 0 0 0 10px rgba(61, 122, 130, 0.08);
}

.ring-card h2 { margin-bottom: 0.4rem; }
.ring-card p { margin: 0; font-size: 15px; color: var(--quiet); }

.bifocal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.stone-slab {
  background: var(--glass);
  border: 1px solid var(--stone-deep);
  border-radius: 28px;
  padding: 22px;
}

.wide-lens {
  margin: 0 0 18px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--stone-deep);
}

.wide-lens figcaption {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--quiet);
  background: var(--stone);
}

.fee-list {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 22px;
}

.fee-list th,
.fee-list td {
  text-align: left;
  padding: 11px 8px;
  border-bottom: 1px solid var(--stone-deep);
}

.fee-list th {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: var(--vault);
}

.fee-list td:last-child { white-space: nowrap; color: var(--iris); font-weight: 600; }

.iris-cta {
  display: inline-block;
  text-decoration: none;
  background: var(--vault);
  color: var(--glass);
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
}

.rx-pad {
  display: grid;
  gap: 13px;
  background: var(--glass);
  border: 1px dashed var(--iris);
  border-radius: 28px;
  padding: 22px;
}

.rx-pad label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vault);
  font-weight: 600;
}

.rx-pad input,
.rx-pad textarea {
  width: 100%;
  border: 1px solid var(--stone-deep);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font: 16px/1.4 Figtree, sans-serif;
}

.rx-pad textarea { min-height: 118px; resize: vertical; }

.rx-agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
}

.rx-agree input { width: auto; margin-top: 4px; }

.hint { display: none; color: var(--fault); font-size: 14px; margin: 0; }
.rx-bad .hint { display: block; }
.rx-bad input,
.rx-bad textarea { border-color: var(--fault); }

.send-iris {
  justify-self: start;
  background: var(--iris);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font: 600 15px Figtree, sans-serif;
  cursor: pointer;
}

.ok-iris {
  background: var(--good);
  color: #f3fff8;
  border-radius: 28px;
  padding: 22px;
}

.vault-foot {
  margin-top: auto;
  background: var(--vault);
  color: #d5e0e2;
  padding: 36px 8vw 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  font-size: 15px;
}

.vault-foot h3 {
  color: var(--iris-pale);
  font-size: 1.25rem;
}

.vault-foot a { color: #fff; }

.cookie-iris {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: 340px;
  background: var(--glass);
  color: var(--text);
  padding: 16px 16px 14px;
  border: 1px solid var(--stone-deep);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(21, 34, 38, 0.12);
  font-size: 15px;
}

.cookie-iris p { margin: 0 0 12px; }
.cookie-iris a { color: var(--iris); }

.cookie-iris button {
  font: 600 13px Figtree, sans-serif;
  margin-right: 8px;
  border: 1px solid var(--stone-deep);
  background: transparent;
  color: var(--vault);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.cookie-iris [data-cookie="accepted"] {
  background: var(--vault);
  border-color: var(--vault);
  color: var(--glass);
}

body.iris-lock { overflow: hidden; }

@media (max-width: 880px) {
  .chart-top { padding: 8px 18px 4px; }
  .stone-lintel {
    margin: 0 16px 8px;
    border-radius: 22px;
    flex-wrap: wrap;
  }

  .iris-toggle { display: block; }

  .iris-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding: 8px 4px 6px;
  }

  .iris-nav.iris-open { display: flex; }

  .clinic-dot { display: none; }

  .sclera-wrap { width: calc(100% - 32px); margin: 12px auto 36px; }

  .iris-stage,
  .bifocal,
  .vault-foot { grid-template-columns: 1fr; }

  .iris-stage { gap: 18px; }
  .pupil-shot { grid-row: auto; width: min(86vw, 360px); }
  .iris-copy,
  .rx-chip { grid-column: 1; }

  .vault-foot { padding: 28px 18px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
