/* Inner pages (results, start, privacy). Builds on styles.css tokens. */
.nav-links a[aria-current="page"] { color: var(--spruce); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.page-hero { padding: 40px var(--pad) 28px; display: grid; gap: 14px; }
.page-hero .display { font-size: clamp(2.8rem, 12vw, 6.4rem); max-width: 13ch; }
.page-hero .lede { max-width: 46ch; }

.sec { padding: 56px var(--pad) 0; display: grid; gap: 20px; }
.sec-head { display: grid; gap: 10px; max-width: 60ch; }
.sec-head p { color: var(--muted); }

/* how to start: numbered path */
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); counter-reset: n; }
.path li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: grid; gap: 6px; }
.path h3 { font-weight: 500; font-size: 1.15rem; color: var(--spruce); }
.path p { color: var(--muted); font-size: 0.95rem; }
.path .ch-n { color: var(--accent-text); font-weight: 600; font-size: 0.85rem; }

/* photo guide */
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.shot { margin: 0; display: grid; gap: 10px; }
.shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md); background: var(--cream-2); }
.shot b { display: flex; gap: 8px; align-items: baseline; font-weight: 500; color: var(--spruce); }
.shot b span { color: var(--accent-text); font-size: 0.85rem; font-weight: 600; }
.shot p { color: var(--muted); font-size: 0.9rem; }
.tips { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.tip { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; background: var(--paper); }
.tip img { width: 112px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.tip ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink); font-size: 0.95rem; }
.callout { background: var(--spruce); color: var(--on-dark); border-radius: var(--r-lg); padding: 24px 22px; display: grid; gap: 8px; }
.callout p { color: var(--on-dark-muted); }
.callout b { color: var(--on-dark); font-weight: 500; }

/* quote form on the start page */
.quote { margin: 56px var(--pad) 0; }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.85rem; color: var(--on-dark-muted); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent-ink); }
.consent a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }

/* results: bare photos on the marble, captions underneath, generous room between cases */
.cases { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.case { margin: 0; display: grid; gap: 14px; align-content: start; } /* a taller neighbour in the row must not push this caption down */
.case[hidden] { display: none; }
.case figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 3px; align-items: baseline; }
.case figcaption .num { grid-row: span 2; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.case figcaption b { font-size: 1.05rem; font-weight: 500; color: var(--spruce); }
.case figcaption span:not(.num) { color: var(--muted); font-size: 0.9rem; max-width: 46ch; }
.cases-ed { gap: 56px; }
.more-wrap { display: flex; justify-content: center; padding-top: 8px; }
.more { border: 1px solid var(--line); }
.ba { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--cream-2); touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; --p: 50%; box-shadow: 0 1px 2px rgba(12, 30, 70, 0.06), 0 18px 40px -24px rgba(12, 30, 70, 0.35); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 var(--p)); }
.ba .ba-line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 0.5px rgba(12, 30, 70, 0.18); pointer-events: none; }
.ba .ba-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316346e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: 0 6px 18px rgba(12, 30, 70, 0.28); }
.ba .ba-tag { position: absolute; top: 12px; padding: 4px 9px; border-radius: 99px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(251, 250, 248, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--spruce); pointer-events: none; }
.ba .ba-tag:first-of-type { left: 12px; }
.ba .ba-tag.r { right: 12px; background: rgba(184, 40, 42, 0.9); color: #fff; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.ba input:focus-visible + .ba-line::after { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
/* the four portraits get their own navy band, so the page changes pace halfway down */
.faces-band { margin: 72px var(--pad) 0; padding: 36px 18px 24px; border-radius: var(--r-lg); background: var(--spruce-deep); color: var(--on-dark); display: grid; gap: 24px; }
.band-title { font-weight: 300; font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1; letter-spacing: -0.035em; color: var(--on-dark); }
.faces-band .ba { box-shadow: none; }
@media (max-width: 899px) { .cases-faces .ba .ba-tag { top: 8px; padding: 3px 7px; font-size: 0.6rem; letter-spacing: 0.06em; } .cases-faces .ba .ba-tag:first-of-type { left: 8px; } .cases-faces .ba .ba-tag.r { right: 8px; } .cases-faces .ba .ba-line::after { width: 36px; height: 36px; margin: -18px; background-size: 17px; } }
.sec-fine { padding-top: 28px; }
@media (min-width: 900px) {
  /* desktop: the phone layout, two up. One shared photo shape so every row lines up; the teeth sit centred in each crop */
  .cases-ed { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 72px; }
  .cases-ed .ba { aspect-ratio: 2 / 1 !important; }
  .more-wrap { padding-top: 32px; }
  .faces-band { margin: 128px 40px 0; padding: 64px 48px 48px; gap: 36px; }
  .sec-fine { padding-top: 40px; }
}
.empty { border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 24px 22px; display: grid; gap: 8px; }
.empty p { color: var(--muted); max-width: 60ch; }
.fine { font-size: 0.85rem; color: var(--muted); max-width: 70ch; }

/* privacy */
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); }
.promise { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: grid; gap: 8px; }
.promise h3 { font-weight: 500; font-size: 1.15rem; color: var(--spruce); display: flex; gap: 10px; align-items: center; }
.promise h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.promise p { color: var(--muted); font-size: 0.95rem; }
.proc { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.proc th, .proc td { text-align: left; padding: 14px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.proc thead th { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.proc td { color: var(--muted); }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; font-size: 0.95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

@media (min-width: 900px) {
  .page-hero { padding: 96px 40px 40px; }
  .sec { padding: 96px 40px 0; gap: 28px; }
  .path { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(4, 1fr); }
  .tips { grid-template-columns: 1fr 1fr; }
  .quote { margin: 96px 40px 0; display: grid; grid-template-columns: 1fr 1fr; }
  .quote .book-media { height: auto; }
  .quote .book-media img { height: 100%; }
  #illus { grid-template-columns: 1fr 1fr; }
  .promises { grid-template-columns: repeat(3, 1fr); }
}

/* a patient's own before/after photo, shown as taken (already a composite) */
.cases-faces { grid-template-columns: 1fr 1fr; }
.cases-faces .ba img { object-position: 50% 25%; }
.case-photo img { width: 100%; height: auto; border-radius: var(--r-md); background: var(--cream-2); display: block; }
@media (min-width: 900px) { .cases-faces { grid-template-columns: repeat(4, 1fr); column-gap: 20px; } }
.empty[hidden] { display: none; }

/* legal hub */
.legal-nav { position: sticky; top: 64px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 10px var(--pad); margin-top: 28px; background: var(--cream); border-block: 1px solid var(--line); scrollbar-width: none; }
.legal-nav a { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 99px; background: var(--paper); color: var(--spruce); font-weight: 500; font-size: 0.9rem; }
.legal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.legal + .legal { margin-top: -10px; }
.legal summary { cursor: pointer; list-style: none; padding: 18px 20px; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 500; color: var(--spruce); font-size: 1.05rem; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: "+"; color: var(--accent-text); font-size: 1.4rem; line-height: 1; transition: transform 0.25s var(--ease); }
.legal[open] summary::after { transform: rotate(45deg); }
.legal-body { padding: 0 20px 20px; display: grid; gap: 12px; color: var(--ink); max-width: 75ch; }
.legal-body ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-body a { color: var(--spruce); text-decoration: underline; text-underline-offset: 3px; }
.legal-body .proc { margin-top: 4px; }
section[id] { scroll-margin-top: 140px; }
@media (min-width: 900px) { .legal-nav { padding: 12px 40px; top: 72px; } }

