/* first-visit page: own rules from home-sample/first-visit-sample-6 */
/* =================== First Visit page (sample 1) =================== */

  /* Hero: an arched window onto a treatment room that opens upward, with a visit-length tag */
  .hero--fv .wrap { min-height: min(640px, calc(100vh - 86px)); padding-bottom: 72px; }
  .hero--fv .hero-actions { gap: 26px; align-items: center; flex-wrap: wrap; }
  .arch { position: relative; margin: 0; justify-self: center; width: min(100%, 410px); }
  .arch .win {
    border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--glide);
    border: 8px solid var(--white); box-shadow: 0 0 0 2px var(--glide), 0 34px 60px -38px rgba(76,28,8,.6);
  }
  .arch img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
  .arch .time {
    position: absolute; z-index: 2; right: -28px; bottom: 46px; display: flex; align-items: center; gap: 12px;
    background: var(--white); border-radius: 18px; padding: 14px 18px 14px 14px; line-height: 1.25;
    box-shadow: 0 14px 30px -16px rgba(76,28,8,.45);
  }
  .arch .time svg { width: 36px; height: 36px; flex: none; }
  .arch .time strong { display: block; color: var(--deep); font-size: 1rem; }
  .arch .time span { display: block; font-size: .85rem; }
  .motion .arch .win { clip-path: inset(100% 0 0 0 round 999px 999px 28px 28px); transition: clip-path 1.4s var(--ease-out) .25s; }
  .motion .arch .time { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out) 1.2s, transform .9s var(--ease-out) 1.2s; }
  .hero-in .arch .win { clip-path: inset(0 0 0 0 round 999px 999px 28px 28px); }
  .hero-in .arch .time { opacity: 1; transform: none; }

  .sec-head { max-width: 660px; margin-bottom: 44px; }
  .sec-head p { margin: 16px 0 0; font-size: 1.1rem; }

  /* When to come: first tooth to first birthday */
  .when { padding: 100px 0 96px; }
  .when .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
  .when .wrap > div:first-child p { margin: 16px 0 0; font-size: 1.12rem; max-width: 52ch; }
  .when .wrap > div:first-child .lead { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 500; font-size: 1.4rem; line-height: 1.4; color: var(--deep); }
  .ms { background: var(--white); border-radius: 28px; padding: 40px 36px 32px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -44px rgba(76,28,8,.5); }
  .ms-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "a t b"; align-items: center; gap: 16px; }
  .ms-pin { display: grid; justify-items: center; gap: 10px; text-align: center; }
  .ms-pin.a { grid-area: a; } .ms-pin.b { grid-area: b; }
  .ms-ico { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; }
  .ms-ico svg { width: 38px; height: 38px; }
  .ms-pin.a .ms-ico { background: var(--glide-soft); }
  .ms-pin.b .ms-ico { background: #FFE9E2; }
  .ms-pin strong { color: var(--deep); font-size: 1rem; line-height: 1.2; }
  .ms-track { grid-area: t; height: 14px; border-radius: 999px; background: var(--glide-soft); overflow: hidden; margin-bottom: 30px; }
  .ms-track span { display: block; height: 100%; border-radius: inherit; background: var(--swell); transform-origin: left center; }
  .ms-label { margin: 22px 0 0; text-align: center; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--current); }
  .motion .ms .ms-track span { transform: scaleX(0); transition: transform 1.4s var(--ease-out) .35s; }
  .motion .ms.in .ms-track span { transform: none; }
  .motion .ms .ms-ico { transform: scale(.5); transition: transform .8s var(--ease-spring) .2s; }
  .motion .ms .ms-pin.b .ms-ico { transition-delay: 1.4s; }
  .motion .ms.in .ms-ico { transform: none; }

  /* What to expect: a path that fills in as you scroll, each stop lighting up as you reach it */
  .expect { background: var(--glide-soft); padding: 100px 0; }
  .expect .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .expect .sec-head { position: sticky; top: 140px; margin-bottom: 0; }
  .trail { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 18px; --prog: 1; }
  .trail::before, .trail::after { content: ""; position: absolute; left: 26.5px; top: 28px; bottom: 28px; width: 3px; border-radius: 3px; }
  .trail::before { background: var(--white); }
  .trail::after { background: var(--current); transform-origin: center top; transform: scaleY(var(--prog)); }
  .trail li { position: relative; z-index: 1; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
  .node {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--deep);
    font: 700 1.35rem/1 var(--display); font-variation-settings: "SOFT" 100; box-shadow: 0 0 0 3px var(--glide);
    transition: background-color .45s ease, box-shadow .45s ease, transform .6s var(--ease-spring);
  }
  .trail li.lit .node { background: var(--swell); box-shadow: 0 0 0 3px var(--current); transform: scale(1.06); }
  .step { background: var(--white); border-radius: 22px; padding: 22px 26px 24px; box-shadow: 0 0 0 1px var(--line); }
  .step h3 { font-family: var(--body); font-weight: 700; font-size: 1.2rem; line-height: 1.3; margin-top: 2px; }
  .step p { margin: 6px 0 0; }
  .motion .trail { --prog: 0; }

  /* Before you come: a checklist parents can tick off */
  .prep { position: relative; overflow: hidden; background: var(--current); color: rgba(255,255,255,.9); padding: 100px 0; }
  .prep .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
  .prep .kicker { color: var(--cream); }   /* yellow on this blue falls short of 4.5:1 at label size */
  .prep h2 { color: var(--white); }
  .prep .wrap > div > p { margin: 16px 0 0; font-size: 1.12rem; max-width: 46ch; }
  .ticks { position: relative; overflow: hidden; background: var(--cream); color: var(--deep); border-radius: 28px; padding: 18px 28px 24px; box-shadow: 0 30px 60px -36px rgba(0,0,0,.45); }
  .ticks ul { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
  .ticks li + li { border-top: 1px solid var(--line); }
  .ticks label { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; padding: 16px 0; cursor: pointer; font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
  .ticks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .ticks .box { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--glide); background: var(--white); display: grid; place-items: center; transition: background-color .25s ease, border-color .25s ease, transform .4s var(--ease-spring); }
  .ticks .box svg { width: 20px; height: 20px; color: var(--deep); }
  .ticks .box path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .35s var(--ease-out); }
  .ticks input:checked + .box { background: var(--swell); border-color: var(--swell); transform: scale(1.08); }
  .ticks input:checked + .box path { stroke-dashoffset: 0; }
  .ticks input:checked ~ .txt { color: var(--warm); }
  .ticks input:focus-visible + .box { outline: 3px solid var(--current); outline-offset: 3px; }
  .ticks .status { position: relative; z-index: 1; margin: 10px 0 0; padding-top: 16px; border-top: 2px dashed var(--line); font-weight: 700; color: var(--current); min-height: 1.5em; }
  .ticks .status.done { color: var(--ripple); }
  .ticks canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
  @media (prefers-reduced-motion: reduce) { .ticks .box, .ticks .box path, .node { transition: none; } }

  /* Questions parents ask */
  /* one column: heading on top, questions below at a comfortable reading width (no empty side column) */
  .faq { padding: 96px 0 90px; }
  .faq .wrap { max-width: 920px; }
  .faq .sec-head { margin-bottom: 32px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; max-width: none; }
  .faq .call { margin: 0; font-weight: 600; color: var(--deep); }
  .faq .call a { color: var(--current); font-weight: 700; text-underline-offset: 4px; }
  .qa details { border-bottom: 1px solid var(--line); }
  .qa details:first-child { border-top: 1px solid var(--line); }
  .qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 700; font-size: 1.15rem; line-height: 1.35; color: var(--deep); }
  .qa summary::-webkit-details-marker { display: none; }
  .qa summary:focus-visible { outline: 3px solid var(--swell); outline-offset: 4px; border-radius: 8px; }
  .qa .pm { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--glide-soft); transition: background-color .3s ease, transform .45s var(--ease-out); }
  .qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; border-radius: 2px; background: var(--deep); }
  .qa .pm::after { transform: rotate(90deg); }
  .qa details[open] .pm { background: var(--swell); transform: rotate(45deg); }
  .qa details > div { padding: 0 54px 24px 0; }
  .qa p { margin: 0; font-size: 1.08rem; max-width: 58ch; }
  .qa p + p { margin-top: 10px; }
  .qa .link { display: inline-block; margin-top: 10px; }
  .faq .more-faq { margin: 26px 0 0; font-weight: 700; }
  .faq .more-faq a { color: var(--current); text-underline-offset: 4px; }
  /* smooth open/close where the browser supports animating details */
  .motion .qa details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
  .motion .qa details[open]::details-content { block-size: auto; }
  :root { interpolate-size: allow-keywords; }

  /* Getting here */
  .visit-info { padding: 0 0 100px; }
  .irow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .irow li { background: var(--white); border-radius: 20px; box-shadow: 0 0 0 1px var(--line); padding: 24px 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
  .irow .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--glide-soft); color: var(--current); margin-bottom: 6px; }
  .irow .ico svg { width: 22px; height: 22px; }
  .irow h3 { font-family: var(--body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--current); line-height: 1.3; }
  .irow p { margin: 0; color: var(--deep); line-height: 1.5; }
  .irow a { color: var(--deep); text-decoration-color: var(--glide); text-underline-offset: 4px; }
  .irow a:hover { text-decoration-color: var(--current); }

  /* narrow desktops: keep the visit-length tag inside the screen edge */
  @media (min-width: 821px) and (max-width: 1200px) { .arch .time { right: 12px; } }
  @media (max-width: 1000px) {
    .when .wrap, .prep .wrap, .expect .wrap { grid-template-columns: 1fr; gap: 40px; }
    .expect .sec-head { position: static; }
    .irow { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 820px) {
    .arch { width: min(78%, 360px); }
    .arch .time { right: -14px; }
  }
  @media (max-width: 560px) {
    .hero--fv .wrap { padding-bottom: 56px; }
    .hero--fv .hero-actions { gap: 18px; }
    .arch .time { right: -6px; bottom: 26px; padding: 11px 14px 11px 11px; }
    .arch .time svg { width: 30px; height: 30px; }
    .when, .expect, .prep, .faq { padding: 72px 0; }
    .ms { padding: 28px 20px 22px; }
    .ms-row { grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "t t"; row-gap: 20px; }
    .ms-track { margin-bottom: 0; }
    .trail li { grid-template-columns: 46px 1fr; gap: 14px; }
    .node { width: 46px; height: 46px; font-size: 1.15rem; }
    .trail::before, .trail::after { left: 21.5px; top: 23px; bottom: 23px; }
    .step { padding: 18px 18px 20px; }
    .ticks { padding: 10px 18px 18px; }
    .qa details > div { padding-right: 0; }
    .irow { grid-template-columns: 1fr; }
    .visit-info { padding-bottom: 72px; }
  }
