/* All-on-4 / All-on-6 page only (flagship). Shared blocks are styled in pages.css. */

/* ---------- Arch diagram (hand-made SVG, see the template) ---------- */
.dia { display: block; width: 100%; height: auto; overflow: visible; }
.dia__gum-edge { fill: none; stroke: rgba(184, 154, 103, .5); stroke-width: 60; stroke-linecap: round; stroke-linejoin: round; }
.dia__gum { fill: none; stroke: #F5EEE3; stroke-width: 58; stroke-linecap: round; stroke-linejoin: round; }
.dia__gum-mid { fill: none; stroke: rgba(184, 154, 103, .35); stroke-width: .8; stroke-dasharray: 1.5 5; }
.dia__tooth { fill: #fff; fill-opacity: .92; stroke: rgba(31, 59, 50, .34); stroke-width: 1.1; }
.dia__ring { fill: rgba(217, 196, 154, .22); stroke: #B89A67; stroke-width: 1.2; }
.dia__head { fill: var(--c-forest); }
.dia__dot { fill: #D9C49A; }
.dia__body { stroke: rgba(31, 59, 50, .5); stroke-width: 7; stroke-linecap: round; }
.dia__imp { transform-box: fill-box; transform-origin: center; }
.dia__grid { stroke: rgba(46, 82, 69, .28); stroke-width: .7; }
.dia__sweep { fill: #B89A67; opacity: .75; }
.dia__plan { fill: none; stroke: var(--c-forest-2); stroke-width: 1.2; stroke-dasharray: 3 3.5; }
.dia__cross { fill: none; stroke: #B89A67; stroke-width: 1.2; stroke-linecap: round; }
.dia__badge { fill: var(--c-forest); }
.dia__tick { fill: none; stroke: #D9C49A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Who it is for ---------- */
.a46-who { background: var(--c-ivory); }
.a46-who__inner { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.a46-who__media { position: relative; aspect-ratio: 4 / 5; max-width: 470px; border-radius: 240px 240px var(--r-xl) var(--r-xl); overflow: hidden; background: var(--c-cream); box-shadow: 18px 18px 0 -1px rgba(184, 154, 103, .16), 0 40px 70px -40px rgba(21, 42, 35, .4); }
.a46-who__media::after { content: ""; position: absolute; inset: 10px; border-radius: 232px 232px 24px 24px; border: 1px solid rgba(255, 255, 255, .55); pointer-events: none; }
.a46-who__img { width: 100%; height: 100%; object-fit: cover; }
.a46-who__lead { margin: 20px 0 30px; max-width: 560px; font-size: var(--fs-lead); color: var(--c-stone); }
.a46-who__list { display: grid; border-top: 1px solid var(--c-line); }
.a46-who__list li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--c-line); }
.a46-who__num { font-family: var(--f-display); font-size: 2rem; font-style: italic; line-height: 1; color: #9A7640; }
.a46-who__list h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.32rem; line-height: 1.25; color: var(--c-forest-deep); margin-bottom: 4px; }
.a46-who__list p { font-size: .94rem; color: var(--c-stone); }
.a46-who__note { display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; max-width: 560px; font-size: .9rem; color: var(--c-stone); }
.a46-who__note .i { width: 22px; height: 22px; margin-top: 1px; color: var(--c-gold-deep); }

/* ---------- Benefits ---------- */
.a46-ben { background: var(--c-paper); }
.a46-ben__big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.a46-ben__card { position: relative; overflow: hidden; display: grid; align-content: start; gap: 16px; padding: clamp(30px, 3.4vw, 52px); border-radius: 30px; background: linear-gradient(160deg, #FBF8F2 0%, var(--c-cream) 100%); border: 1px solid rgba(184, 154, 103, .25); }
.a46-ben__card::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 210px; height: 182px; background: url(../img/tooth/tooth-outline-gold.svg) center / contain no-repeat; opacity: .22; pointer-events: none; }
.a46-ben__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(184, 154, 103, .55); color: var(--c-gold-deep); background: rgba(255, 255, 255, .7); }
.a46-ben__icon .i { width: 24px; height: 24px; }
.a46-ben__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-gold-ink); }
.a46-ben__card blockquote p { position: relative; max-width: 520px; font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 1.05rem + 1.1vw, 2.05rem); line-height: 1.32; color: var(--c-forest-deep); }
.a46-ben__small { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--c-line); }
.a46-ben__small li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 28px 22px 4px; border-left: 1px solid var(--c-line); }
.a46-ben__small li:first-child { border-left: 0; padding-left: 0; }
.a46-ben__mini { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(184, 154, 103, .5); color: var(--c-gold-deep); }
.a46-ben__mini .i { width: 20px; height: 20px; }
.a46-ben__small h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; line-height: 1.25; color: var(--c-forest-deep); margin-bottom: 4px; }
.a46-ben__small p { font-size: .86rem; line-height: 1.55; color: var(--c-stone); }

/* ---------- All-on-4 vs All-on-6 ---------- */
.a46-cmp { background: var(--c-cream); }
.a46-cmp__legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin: -18px 0 30px; font-size: .82rem; color: var(--c-stone); }
.a46-cmp__legend li { display: inline-flex; align-items: center; gap: 10px; }
.a46-cmp__key { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1.2px solid #B89A67; background: rgba(217, 196, 154, .22); }
.a46-cmp__key::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--c-forest); }
.a46-cmp__key--tilt { margin-left: 16px; }
.a46-cmp__key--tilt::before { content: ""; position: absolute; right: 10px; top: 7px; width: 22px; height: 7px; border-radius: 4px; background: rgba(31, 59, 50, .5); transform: rotate(-24deg); transform-origin: right center; }
.a46-cmp__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: stretch; }
.a46-cmp__card { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 40px); border-radius: 30px; background: var(--c-paper); border: 1px solid rgba(184, 154, 103, .25); box-shadow: 0 30px 60px -40px rgba(21, 42, 35, .35); transition: box-shadow .6s var(--ease), translate .6s var(--ease); }
.a46-cmp__card:hover { translate: 0 -4px; box-shadow: 0 40px 70px -40px rgba(21, 42, 35, .42), inset 0 0 0 1px rgba(184, 154, 103, .35); }
.a46-cmp__card:target { box-shadow: 0 0 0 2px var(--c-champagne), 0 40px 70px -40px rgba(21, 42, 35, .42); }
.a46-cmp__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(184, 154, 103, .35); }
.a46-cmp__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1; letter-spacing: -.02em; color: var(--c-forest-deep); }
.a46-cmp__sub { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-gold-ink); }
.a46-cmp__dia { padding: 26px 6% 10px; }
.a46-cmp__dia .dia { max-width: 520px; margin-inline: auto; }
.a46-cmp__rows { display: grid; margin: 10px 0 0; }
.a46-cmp__rows > div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; border-top: 1px dashed rgba(28, 31, 30, .12); }
.a46-cmp__rows dt { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold-ink); padding-top: 3px; }
.a46-cmp__rows dd { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--c-graphite); }
.a46-cmp__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--c-line); }
.a46-cmp__price { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 1.18rem; color: var(--c-forest); }
.a46-cmp__price .i { width: 20px; height: 20px; color: var(--c-champagne); }
.a46-cmp__or { position: absolute; left: 50%; top: 158px; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; margin-left: -32px; border-radius: 50%; background: var(--c-forest); color: var(--c-champagne-light); font-family: var(--f-display); font-style: italic; font-size: 1.3rem; box-shadow: 0 0 0 8px var(--c-cream), 0 16px 30px -12px rgba(21, 42, 35, .5); }
.a46-cmp__common { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 28px; margin-top: clamp(28px, 3vw, 40px); padding: 18px 26px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .55); border: 1px solid rgba(184, 154, 103, .28); }
.a46-cmp__common-title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-gold-ink); }
.a46-cmp__common ul { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.a46-cmp__common li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--c-forest-deep); }
.a46-cmp__common .i { width: 18px; height: 18px; color: var(--c-gold-deep); }
.a46-cmp__choose { display: flex; gap: 14px; align-items: flex-start; max-width: 820px; margin: 26px auto 0; font-size: .95rem; color: var(--c-stone); }
.a46-cmp__choose strong { color: var(--c-forest-deep); font-weight: 600; }
.a46-cmp__choose .i { width: 40px; height: 40px; padding: 9px; border-radius: 50%; border: 1px solid rgba(184, 154, 103, .5); color: var(--c-gold-deep); }

/* ---------- How it works (sticky diagram on desktop) ---------- */
.a46-how { background: var(--c-ivory); }
.a46-how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.a46-how__visual { position: sticky; top: calc(var(--header-h) + 32px); }
.a46-how__stage { padding: clamp(28px, 3vw, 48px) clamp(22px, 3vw, 44px) clamp(18px, 2vw, 28px); border-radius: 32px; background: radial-gradient(90% 90% at 50% 30%, #FFFFFF 0%, #FBF8F2 60%, #F4EDE2 100%); border: 1px solid rgba(184, 154, 103, .28); box-shadow: 0 40px 80px -50px rgba(21, 42, 35, .4); }
.a46-how__cap { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; font-size: .95rem; color: var(--c-stone); }
.a46-how__cap b { font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; line-height: 1; color: #9A7640; }
.a46-how__of { margin-right: 10px; font-size: .8rem; letter-spacing: .1em; }
.a46-how__cap [data-how-title] { font-family: var(--f-display); font-size: 1.3rem; color: var(--c-forest-deep); }
.a46-how__bar { display: block; height: 1px; margin-top: 14px; background: var(--c-line); }
.a46-how__bar i { display: block; height: 100%; background: #B89A67; transform-origin: left; transform: scaleX(1); transition: transform .8s var(--ease); }
.a46-how__steps { display: grid; }
.a46-how__step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: clamp(26px, 7vh, 72px) 0; border-top: 1px solid var(--c-line); transition: opacity .6s var(--ease); }
.a46-how__step:last-child { border-bottom: 1px solid var(--c-line); }
.a46-how__num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(184, 154, 103, .55); font-family: var(--f-display); font-size: 1.05rem; color: var(--c-gold-deep); background: var(--c-paper); transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease); }
.a46-how__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 1.2rem + .6vw, 1.85rem); line-height: 1.2; color: var(--c-forest-deep); margin: 8px 0 8px; }
.a46-how__text { max-width: 460px; color: var(--c-stone); }
.a46-how.is-live .a46-how__step { opacity: .34; }
.a46-how.is-live .a46-how__step.is-active { opacity: 1; }
.a46-how__step.is-active .a46-how__num { background: var(--c-forest); color: #D9C49A; border-color: var(--c-forest); }

/* Diagram states: the markup ships with data-step="6" (final state); JS steps through 1–6 on desktop. */
.dia--story .l-scan, .dia--story .l-plan, .dia--story .l-check { transition: opacity .7s var(--ease); }
.dia--story .dia__imp { transition: opacity .6s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.dia--story .dia__tooth { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease), fill-opacity .8s var(--ease), stroke-opacity .4s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.a46-how__visual .l-scan, .a46-how__visual .l-plan { opacity: 0; }
.a46-how__visual[data-step="2"] .l-scan, .a46-how__visual[data-step="3"] .l-plan { opacity: 1; }
.a46-how__visual:is([data-step="1"], [data-step="2"], [data-step="3"]) .dia__imp { opacity: 0; transform: scale(.3); }
.a46-how__visual:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]) .dia__tooth { stroke-dashoffset: 1; fill-opacity: 0; stroke-opacity: 0; }
.a46-how__visual:not([data-step="6"]) .l-check { opacity: 0; }
.a46-how__visual[data-step="2"] .dia__sweep { animation: a46-sweep 2.8s ease-in-out infinite alternate; }
@keyframes a46-sweep { from { transform: translateY(0); } to { transform: translateY(214px); } }

/* ---------- Results, patient's words and the doctor ---------- */
.a46-res { background: var(--c-paper); }
.a46-res .pba-card { background: var(--c-ivory); }
.a46-res__all { display: flex; justify-content: flex-end; margin-top: -26px; }
.a46-res__trust { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; margin-top: clamp(36px, 4vw, 56px); }
.a46-res__quote { position: relative; overflow: hidden; display: grid; align-content: start; gap: 16px; padding: clamp(28px, 3.2vw, 48px); border-radius: 30px; background: var(--c-ivory); border: 1px solid rgba(184, 154, 103, .25); }
.a46-res__quote::before { content: "\201C"; position: absolute; right: 26px; top: -18px; font-family: var(--f-display); font-size: 11rem; line-height: 1; color: rgba(184, 154, 103, .2); pointer-events: none; }
.a46-res__quote .eyebrow { margin-bottom: 0; }
.a46-res__stars { display: flex; gap: 3px; color: rgba(184, 154, 103, .3); }
.a46-res__stars .i { width: 16px; height: 16px; }
.a46-res__stars .is-on { color: #C49A4E; }
.a46-res__quote blockquote p { position: relative; font-family: var(--f-display); font-style: italic; font-size: clamp(1.15rem, 1rem + .55vw, 1.45rem); line-height: 1.55; color: var(--c-forest-deep); }
.a46-res__quote figcaption { display: grid; gap: 2px; font-size: .8rem; color: var(--c-stone); }
.a46-res__quote figcaption b { font-size: 1rem; color: var(--c-forest-deep); }
.a46-res__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 16px; border-top: 1px solid var(--c-line); font-size: .86rem; color: var(--c-stone); }
.a46-res__rating > b { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; color: var(--c-forest-deep); }
.a46-res__doc { display: grid; grid-template-columns: minmax(130px, 170px) 1fr; gap: 26px; align-items: center; padding: clamp(24px, 2.6vw, 38px); border-radius: 30px; background: linear-gradient(180deg, var(--c-ivory), var(--c-cream)); }
.a46-res__doc-photo { aspect-ratio: 4 / 5; border-radius: 120px 120px 18px 18px; overflow: hidden; background: radial-gradient(70% 80% at 50% 40%, #F5F6F9 0%, #EEEFF4 55%, #E5E6EB 100%); box-shadow: inset 0 0 0 1px rgba(184, 154, 103, .35); }
.a46-res__doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.a46-res__doc .eyebrow { margin-bottom: 10px; }
.a46-res__doc-name { font-family: var(--f-display); font-weight: 400; font-size: 1.55rem; line-height: 1.15; color: var(--c-forest-deep); }
.a46-res__doc-role { margin: 4px 0 12px; font-size: .84rem; font-weight: 500; color: var(--c-gold-ink); }
.a46-res__doc-text { margin-bottom: 18px; font-size: .88rem; line-height: 1.6; color: var(--c-stone); }

/* ---------- Prices ---------- */
.a46-price { background: var(--c-ivory); }
.a46-price__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 2.4vw, 32px); align-items: stretch; margin-bottom: 26px; }
.a46-price__panel { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(30px, 3.4vw, 52px); border-radius: 30px; color: var(--c-ivory); background: radial-gradient(110% 90% at 0% 0%, var(--c-forest-2) 0%, var(--c-forest) 45%, var(--c-forest-deep) 100%); box-shadow: 0 40px 80px -40px rgba(21, 42, 35, .6); }
.a46-price__tooth { position: absolute; right: -60px; bottom: -70px; z-index: -1; width: 300px; height: auto; opacity: .16; pointer-events: none; }
.a46-price__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-champagne-light); }
.a46-price__value { margin: 14px 0 16px; font-family: var(--f-display); font-size: clamp(2rem, 1.5rem + 1.5vw, 2.9rem); line-height: 1.08; letter-spacing: -.015em; color: var(--c-ivory); }
.a46-price__text { max-width: 440px; color: rgba(247, 244, 238, .78); }
.a46-price__inc-title { margin: 26px 0 10px; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-champagne-light); }
.a46-price__inc { display: grid; gap: 8px; margin-bottom: 30px; }
.a46-price__inc li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: rgba(247, 244, 238, .9); }
.a46-price__inc .i { width: 18px; height: 18px; margin-top: 3px; color: var(--c-champagne-light); }
.a46-price__panel .btn { margin-top: auto; }
.a46-price__list { padding: clamp(24px, 2.8vw, 40px); border-radius: 30px; background: var(--c-paper); border: 1px solid rgba(184, 154, 103, .22); }
.a46-price__list-title { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; color: var(--c-forest-deep); padding-bottom: 14px; border-bottom: 1px solid rgba(184, 154, 103, .35); }
.a46-price__group { margin: 20px 0 4px; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-gold-ink); }
.a46-price__rows li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; font-size: .93rem; }
.a46-price__rows li + li { border-top: 1px dashed rgba(28, 31, 30, .1); }
.a46-price__rows i { flex: 1; min-width: 12px; }
.a46-price__rows b { font-weight: 600; color: var(--c-forest-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.a46-price__brand { font-family: var(--f-display); font-size: 1.12rem; color: var(--c-forest-deep); }
.a46-price__country { font-size: .72rem; letter-spacing: .08em; color: var(--c-stone); }
.a46-price__item { color: var(--c-graphite); }
.a46-price__more { margin-top: 18px; }
.a46-price .pinstall { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .a46-ben__small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a46-ben__small li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .a46-ben__small li:nth-child(n + 3) { border-top: 1px solid var(--c-line); margin-top: 18px; }
  .a46-res__trust { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .a46-how__grid, .a46-price__grid { grid-template-columns: 1fr; }
  .a46-how__visual { position: relative; top: 0; max-width: 560px; }
  .a46-how__cap, .a46-how__bar { display: none; }
  .a46-how__step { padding: 26px 0; }
}
@media (max-width: 860px) {
  .a46-who__inner { grid-template-columns: 1fr; }
  .a46-who__media { max-width: none; aspect-ratio: 16 / 10; border-radius: var(--r-xl); }
  .a46-who__media::after { border-radius: 24px; }
  .a46-cmp__grid { grid-template-columns: 1fr; }
  .a46-cmp__or { position: relative; left: auto; top: auto; margin: -8px auto; }
  .a46-cmp__dia .dia { max-width: 440px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .a46-ben__big { grid-template-columns: 1fr; }
  .a46-ben__small { grid-template-columns: 1fr; }
  .a46-ben__small li { border-left: 0 !important; padding-left: 0 !important; }
  .a46-ben__small li:nth-child(n + 2) { border-top: 1px solid var(--c-line); margin-top: 0; }
  .a46-cmp__rows > div { grid-template-columns: 1fr; gap: 4px; }
  .a46-cmp__common { border-radius: 24px; justify-content: flex-start; }
  .a46-cmp__common ul { flex-direction: column; }
  .a46-res__all { justify-content: flex-start; margin-top: 16px; }
  .a46-res__doc { grid-template-columns: 1fr; }
  .a46-res__doc-photo { max-width: 200px; }
  .a46-price__rows li.is-brand { flex-wrap: wrap; }
  .a46-price__country { order: 3; width: 100%; margin-top: -4px; }
  .a46-who__list li { grid-template-columns: 48px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .a46-how__visual[data-step="2"] .dia__sweep { animation: none; }
}
