/* Insurance & Financing — /financing-options/
   Scoped to body.page-financial. Page hero, sec-head, stick, accordion and buttons are shared (site.css).
   The accepted plans come first, then three steps for using insurance here, then financing on ink (its drawing shows
   a lump sum easing into a run of even monthly payments), then the FAQ. */

/* ---------- Hero: the title set on two staggered lines ---------- */
.page-financial .fin-hero__line { display: block; padding-left: 1.08em; }
.page-financial .fin-hero .page-hero__title em { font-weight: 300; color: var(--ink-3); }

/* ---------- Accepted dental plans: the heading and the phone note beside a two-column list of plans ---------- */
.page-financial .fin-plans__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 104px); align-items: start;
}
.page-financial .fin-plans__head { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

.page-financial .fin-plans__body { display: flex; flex-direction: column; padding-top: 14px; }
.page-financial .fin-ledger__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); grid-auto-flow: column;
  column-gap: clamp(24px, 3.2vw, 56px); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong);
}
.page-financial .fin-ledger__list li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 15px 0 14px; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: clamp(1.15rem, 1.5vw, 1.45rem); font-weight: 400; line-height: 1.25; letter-spacing: -.01em;
}
/* A small sun ring before each plan, as in the home page's list. */
.page-financial .fin-ledger__list li::before {
  content: ""; flex: none; width: 7px; height: 7px; box-sizing: border-box; border: 1px solid var(--sun-deep); border-radius: 50%; transform: translateY(-.18em);
}

.page-financial .fin-callout {
  align-self: stretch; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px;
  margin-top: clamp(12px, 2vw, 28px); padding: clamp(28px, 3vw, 40px); background: var(--enamel); border: 1px solid var(--line);
}
.page-financial .fin-callout__body { flex: 1 1 260px; }
.page-financial .fin-callout__title { margin-bottom: 10px; font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 300; line-height: 1.1; letter-spacing: -.015em; }
.page-financial .fin-callout__body p { margin: 0; color: var(--muted); text-wrap: balance; }
.page-financial .fin-callout__btn { flex: none; }
.page-financial .fin-callout__btn span { font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) {
  .page-financial .fin-ledger__list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .page-financial .fin-ledger__list li { padding: 14px 0 13px; }
}
@media (max-width: 900px) {
  .page-financial .fin-plans__grid { grid-template-columns: minmax(0, 1fr); }
  .page-financial .fin-plans__head { position: static; }
  .page-financial .fin-ledger__list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); grid-auto-flow: column; }
}
@media (max-width: 640px) {
  .page-financial .fin-ledger__list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .page-financial .fin-ledger__list li { gap: 14px; padding: 14px 0 13px; }
  .page-financial .fin-callout { padding: 24px 20px; }
  .page-financial .fin-callout__btn { flex: 1 1 100%; }
}

/* ---------- How it works: three numbered steps along one hairline ---------- */
.page-financial .fin-how__head { margin-bottom: clamp(40px, 4.4vw, 64px); }
.page-financial .fin-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 3.6vw, 64px); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.page-financial .fin-step { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: clamp(24px, 2.6vw, 36px); }
.page-financial .fin-step__num { font-family: var(--f-display); font-size: clamp(2.4rem, 3.6vw, 3.4rem); font-weight: 300; line-height: .9; letter-spacing: -.03em; color: var(--ink-3); }
.page-financial .fin-step__title { margin-top: 8px; font-family: var(--f-display); font-size: var(--fs-h4); font-weight: 400; line-height: 1.25; }
.page-financial .fin-step__text { margin: 0; max-width: 36ch; color: var(--muted); }
@media (max-width: 900px) {
  .page-financial .fin-steps { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .page-financial .fin-step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; padding: 24px 0 26px; border-top: 1px solid var(--line-strong); }
  .page-financial .fin-step__num { grid-row: span 2; font-size: 2.4rem; }
  .page-financial .fin-step__title { margin-top: 2px; }
}

/* ---------- Payment plans (ink): the drawing, then one plate per plan ---------- */
.page-financial .fin-pay { overflow: hidden; }
.page-financial .fin-pay__head { margin-bottom: clamp(40px, 5vw, 80px); }

/* A lump sum eases down along a sunset line into a level run of monthly payments that carries on past the edge;
   the first payment is picked out in sun. */
.page-financial .fin-fig { position: relative; margin: 0 0 var(--space-block); }
.page-financial .fin-fig__svg {
  display: block; width: 100%; height: auto; aspect-ratio: 1200 / 270;
  -webkit-mask-image: linear-gradient(90deg, #000 58%, transparent 97%); mask-image: linear-gradient(90deg, #000 58%, transparent 97%);
}
.page-financial .fin-fig__svg path, .page-financial .fin-fig__svg rect, .page-financial .fin-fig__svg circle { --sw: 1; }
.page-financial .fin-fig__base { fill: none; stroke: var(--line-ink-strong); stroke-width: var(--sw); }
.page-financial .fin-fig__fill { fill: var(--line-ink); }
.page-financial .fin-fig__lump { fill: none; stroke: var(--on-ink); stroke-width: calc(var(--sw) * 1.2); }
.page-financial .fin-fig__col { fill: var(--line-ink); stroke: var(--on-ink-muted); stroke-width: var(--sw); }
.page-financial .fin-fig__marker { fill: var(--sun); stroke: var(--sun); stroke-width: var(--sw); }
.page-financial .fin-fig__curve { fill: none; stroke: var(--sun); stroke-width: calc(var(--sw) * 1.4); }
.page-financial .fin-fig__node { fill: var(--ink); stroke: var(--sun); stroke-width: calc(var(--sw) * 1.2); }
.page-financial .fin-fig__t { font-family: var(--f-sans); font-size: 12px; font-weight: 560; font-stretch: 118%; letter-spacing: .16em; text-transform: uppercase; fill: var(--on-ink-muted); }

/* Build: the outlines draw (shared .draw), the block fills, the run rises column by column, then the first
   payment lights up. */
.page-financial .fin-fig__fill { transition: opacity 1.2s var(--ease-out) .9s; }
.page-financial .fin-fig__col { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1s var(--ease-out); transition-delay: calc(1.2s + var(--i, 0) * 70ms); }
.page-financial .fin-fig__node { transition: opacity .8s var(--ease-out) 1.6s; }
.page-financial .fin-fig__marker { transition: opacity .8s var(--ease-out) 2.6s; }
.page-financial .fin-fig__t { transition: opacity 1s var(--ease-out) 1.4s; }
.js .page-financial .fin-fig:not(.is-visible) .fin-fig__fill,
.js .page-financial .fin-fig:not(.is-visible) .fin-fig__node,
.js .page-financial .fin-fig:not(.is-visible) .fin-fig__marker,
.js .page-financial .fin-fig:not(.is-visible) .fin-fig__t { opacity: 0; }
.js .page-financial .fin-fig:not(.is-visible) .fin-fig__col { transform: scaleY(0); }

/* Plates: the plan's name and promise, then the copy and the button */
.page-financial .fin-offers { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line-ink); }
.page-financial .fin-offer { border-top: 1px solid var(--line-ink); }
.page-financial .fin-offer__card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head body";
  gap: clamp(28px, 3.6vw, 64px); align-items: start; padding-block: clamp(28px, 3.4vw, 48px);
}
.page-financial .fin-offer__head { grid-area: head; display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.page-financial .fin-offer__title { font-family: var(--f-display); font-size: clamp(2.5rem, 4.4vw, 4.25rem); font-weight: 300; line-height: .95; letter-spacing: -.035em; }
.page-financial .fin-offer__sub { margin: 0; font-family: var(--f-display); font-style: italic; font-size: var(--fs-h4); font-weight: 300; line-height: 1.3; color: var(--sea); }
.page-financial .fin-offer__body { grid-area: body; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding-top: 10px; }
.page-financial .fin-offer__text { margin: 0; max-width: 48ch; color: var(--on-ink-muted); }

@media (max-width: 1080px) {
  /* Below desktop the drawing keeps a fixed height and crops at the right (the run fades out there anyway),
     so the captions and hairlines stay legible instead of shrinking with the width. */
  .page-financial .fin-fig__svg { aspect-ratio: auto; height: 232px; }
  .page-financial .fin-fig__svg path, .page-financial .fin-fig__svg rect, .page-financial .fin-fig__svg circle { --sw: 1.2; }
  .page-financial .fin-fig__t { font-size: 13px; }
}
@media (max-width: 640px) {
  .page-financial .fin-fig__svg { aspect-ratio: auto; height: 152px; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 99%); mask-image: linear-gradient(90deg, #000 70%, transparent 99%); }
  /* The drawing is shown at roughly 0.56 scale here, so hairlines and captions are drawn thicker and larger. */
  .page-financial .fin-fig__svg path, .page-financial .fin-fig__svg rect, .page-financial .fin-fig__svg circle { --sw: 1.8; }
  .page-financial .fin-fig__t { font-size: 19px; }
  .page-financial .fin-offer__card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "body"; row-gap: 26px; }
  .page-financial .fin-offer__body { gap: 26px; padding-top: 0; }
  .page-financial .fin-offer__btn { width: 100%; }
}
