This website uses cookies
Read our
Privacy policy
and
Terms of use
for more information.
Accept
Customize
Decline
!function(){function e(){if(document.getElementById("dfs-root"))return;var e=document.createElement("link");e.rel="stylesheet",e.href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap",document.head.appendChild(e);var t=document.createElement("style");t.textContent='/* Dental Fitness Journey. All colors live in variables so they can be swapped. */\n:root {\n /* Brand: Dental Fitness (colors from The Dental Fitness Advantage cover) */\n --brand-primary: #0E7C86; /* teal: buttons, progress, selected */\n --brand-primary-dark: #0A5F66; /* small teal text on light backgrounds */\n --brand-secondary: #1D3A46; /* navy: headings, borders */\n --brand-secondary-dark: #1D3A46; /* small navy text */\n --brand-primary-light: #E2F0F0; /* highlight: cards, Coach bubbles */\n --neutral: #A7B1B2; /* borders and dividers only */\n --bg: #F8F6F0; /* cream */\n --text: #1D2B31;\n --muted: #55636A;\n --brand-accent: #1D3A46; /* focus rings */\n /* Archetypes: red (Firefighter), blue (Upkeeper), gold (Glow Getter), green (Peak Performer) */\n --arch-firefighter: #C4412B;\n --arch-upkeeper: #1F5FAD;\n --arch-glow: #9A6B00;\n --arch-peak: #17805F;\n --radius: 14px;\n --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;\n}\n\n* { box-sizing: border-box; }\nbody.dfs-on { margin: 0; background: var(--bg); }\n#dfs-root { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; min-height: 100vh; }\n\n/* Hidden self-test page (?test=1) */\n#test-view { max-width: 900px; margin: 0 auto; padding: 24px 16px; }\n#test-view h1 { font-size: 24px; font-weight: 600; margin: 0 0 4px; }\n.test-table { width: 100%; border-collapse: collapse; font-size: 14px; }\n.test-table th, .test-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--neutral); }\n.test-table th { color: var(--brand-secondary-dark); font-weight: 600; }\n.test-pass { color: var(--arch-peak); font-weight: 700; }\n.test-fail { color: var(--arch-firefighter); font-weight: 700; }\n\n/* ---------- Layout ---------- */\n.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n#app { max-width: 480px; margin: 0 auto; padding: 20px 20px 28px; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }\n.screen { flex: 1; animation: screen-in 300ms ease-out both; }\n@keyframes screen-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }\nh1 { font-size: 28px; line-height: 1.2; font-weight: 600; margin: 8px 0 12px; }\nh1:focus { outline: none; }\np { margin: 0 0 14px; font-size: 17px; }\n.logo { display: block; margin: 8px auto 4px; padding: 12px; height: auto; } /* padding = logo clear space */\n.eyebrow { font-size: 14px; font-weight: 600; color: var(--brand-secondary-dark); margin: 0; text-align: center; }\n.screen-welcome h1 { text-align: center; }\nul.cards, ol.ladder { list-style: none; padding: 0; margin: 0 0 18px; }\n.card { background: var(--brand-primary-light); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; font-size: 16px; }\n.card strong { font-weight: 600; }\n.side-card { display: flex; align-items: center; gap: 14px; }\n.side-card svg { width: 40px; height: 40px; flex: none; }\n\n.btn { display: block; width: 100%; min-height: 56px; padding: 14px 20px; border: 0; border-radius: var(--radius); background: var(--brand-primary);\n color: #fff; font: 700 19px/1.2 var(--font); cursor: pointer; margin-top: 8px; transition: transform 120ms; }\n.btn:active { transform: scale(.98); }\n.btn-secondary { background: transparent; color: var(--brand-secondary-dark); border: 2px solid var(--brand-secondary); font-weight: 600; }\n:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; }\na { color: var(--brand-secondary-dark); }\n.prompt { color: var(--arch-firefighter); font-weight: 600; font-size: 15px; margin: 4px 0; }\n.placeholder-note { background: #FFF6D6; border-radius: var(--radius); padding: 12px 14px; font-size: 15px; }\n\n/* ---------- Screen 1: welcome ---------- */\n.coach-hero { position: relative; width: 150px; margin: 0 auto -6px; }\n.coach-hero .avatar { display: block; width: 150px; height: 160px; object-fit: cover; }\n.coach-hero svg.avatar { height: auto; clip-path: inset(0 0 22% 0 round 0 0 20px 20px); margin-bottom: -22%; }\n.coach-wave .av-arm-r { transform-box: view-box; transform-origin: 136px 172px; animation: wave 1.1s ease-in-out infinite alternate; }\n@keyframes wave { from { transform: rotate(-150deg); } to { transform: rotate(-122deg); } }\n.sparkle { position: absolute; width: 16px; height: 16px; color: #C9A227; animation: twinkle 1.6s ease-in-out infinite; }\n.sparkle svg { display: block; width: 100%; height: 100%; }\n.sparkle.s1 { right: -10px; top: 26px; }\n.sparkle.s2 { right: 8px; top: 2px; width: 11px; height: 11px; color: var(--brand-accent); animation-delay: .5s; }\n.sparkle.s3 { left: -8px; top: 40px; width: 12px; height: 12px; color: var(--brand-secondary); animation-delay: .9s; }\n@keyframes twinkle { 0%, 100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1); opacity: 1; } }\n.headshot { display: block; width: 150px; height: 150px; margin: 8px auto 12px; border-radius: 50%; object-fit: cover; border: 4px solid var(--brand-primary); }\n.byline { text-align: center; font-size: 14px; color: var(--muted); margin: -4px 0 18px; }\n.byline cite { font-style: italic; }\n.lead { font-size: 19px; font-weight: 600; color: var(--brand-secondary); }\n.definition { background: var(--brand-primary-light); border-radius: var(--radius); padding: 14px 16px; font-size: 16px; }\n.coach-row { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 15px; font-weight: 600; }\n.coach-row img { border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-primary); }\n\n/* ---------- Screen 2: archetype cards ---------- */\n.arch-card { background: #fff; border: 1px solid #DCE4E6; border-left: 10px solid var(--c); }\n.arch-card strong { color: var(--c); font-weight: 700; display: block; font-size: 18px; }\n.arch-firefighter { --c: var(--arch-firefighter); } .arch-upkeeper { --c: var(--arch-upkeeper); }\n.arch-glow { --c: var(--arch-glow); } .arch-peak { --c: var(--arch-peak); }\n.stagger .card { animation: card-in 380ms ease-out both; animation-delay: calc(250ms + var(--i) * 220ms); }\n@keyframes card-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }\n\n/* ---------- Screen 3: ladder ---------- */\n.ladder li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; margin-bottom: 10px; border-radius: var(--radius);\n font-weight: 600; font-size: 17px; background: #EDF1F1; color: var(--muted); margin-left: calc(var(--i) * 9%); margin-right: calc((2 - var(--i)) * 9%);\n animation: light-up 450ms ease-out forwards; animation-delay: calc(500ms + var(--i) * 700ms); }\n.ladder .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--neutral); color: #fff; display: grid; place-items: center; font-weight: 700;\n animation: light-num 450ms ease-out forwards; animation-delay: calc(500ms + var(--i) * 700ms); }\n@keyframes light-up { 50% { transform: scale(1.04); } to { background: var(--brand-primary-light); color: var(--text); } }\n@keyframes light-num { to { background: var(--brand-primary-dark); } }\n\n/* ---------- Screen 4: avatars ---------- */\n.avatar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }\n.avatar-option { background: var(--brand-primary-light); border: 3px solid transparent; border-radius: var(--radius); padding: 10px 8px 8px; cursor: pointer;\n font: 600 15px var(--font); color: var(--text); min-height: 48px; }\n.avatar-option svg { display: block; width: 100%; height: 118px; }\n.avatar-option.selected { border-color: var(--brand-primary); background: #fff; box-shadow: 0 0 0 3px rgba(14, 124, 134, .25); }\n.avatar-option.selected svg { animation: jump 420ms ease-out; }\n@keyframes jump { 40% { transform: translateY(-12px); } 70% { transform: translateY(2px); } }\n\n/* ---------- Footer ---------- */\n.site-footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid #DCE4E6; text-align: center; }\n.site-footer p { font-size: 12px; color: var(--muted); margin: 0 0 4px; }\n.footer-logo { display: block; margin: 0 auto 6px; padding: 8px; height: auto; }\n\n/* ---------- Screens 5a-5l: assessment ---------- */\nh2 { font-size: 22px; line-height: 1.25; font-weight: 600; margin: 14px 0 12px; }\n.screen.from-back { animation-name: screen-back; }\n@keyframes screen-back { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }\n.progress-row { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }\n.progress-count { font-weight: 600; font-size: 15px; color: var(--brand-secondary-dark); white-space: nowrap; }\n.progress { flex: 1; height: 10px; border-radius: 5px; background: #DCE4E6; overflow: hidden; }\n.progress-fill { height: 100%; border-radius: 5px; background: var(--brand-primary); transition: width 450ms ease-out; }\nh1.question { font-size: 21px; line-height: 1.35; font-weight: 600; }\n.options { display: grid; gap: 10px; margin-bottom: 14px; }\n.option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; text-align: left;\n background: #fff; border: 2px solid var(--brand-secondary); border-radius: var(--radius); font: 500 17px/1.35 var(--font); color: var(--text); cursor: pointer; }\n.option .check { width: 24px; height: 24px; flex: none; opacity: 0; transform: scale(.4); }\n.option.selected { border-color: var(--brand-primary); background: var(--brand-primary-light); animation: bounce 320ms ease-out; }\n.option.selected .check { opacity: 1; transform: scale(1); transition: transform 220ms cubic-bezier(.3, 1.6, .5, 1), opacity 120ms; }\n@keyframes bounce { 40% { transform: scale(1.03); } 70% { transform: scale(.99); } }\n.check-option { justify-content: flex-start; }\n.check-option input { width: 24px; height: 24px; flex: none; accent-color: var(--brand-primary-dark); margin: 0; }\n.check-option.selected { animation: none; }\n.back-link { background: none; border: 0; padding: 12px 4px; min-height: 48px; font: 600 16px var(--font); color: var(--brand-secondary-dark); text-decoration: underline; cursor: pointer; }\n\n/* Coach notes */\n.coach-note { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center; background: rgba(31, 42, 48, .25); animation: fade-in 200ms both; }\n.coach-note-inner { display: flex; align-items: flex-end; gap: 4px; width: 100%; max-width: 480px; padding: 0 16px 0 0; background: none; border: 0; cursor: pointer; font: inherit; text-align: left;\n animation: pop-side 380ms cubic-bezier(.3, 1.4, .5, 1) both; }\n.coach-note .avatar { width: 150px; height: auto; flex: none; margin-bottom: -40px; }\n.bubble { position: relative; background: var(--brand-primary-light); color: var(--text); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 110px; font: 600 17px/1.4 var(--font);\n box-shadow: 0 4px 16px rgba(31, 42, 48, .18); }\n.bubble::before { content: ""; position: absolute; left: -9px; bottom: 16px; border: 10px solid transparent; border-right-color: var(--brand-primary-light); border-left: 0; }\n@keyframes pop-side { from { transform: translateX(-110%); } to { transform: none; } }\n@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }\n\n/* ---------- Screen 6: waitlist ---------- */\n.tap-question { font-size: 20px; font-weight: 600; }\n.yes-no { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }\n.form-slot label { display: block; font-weight: 600; font-size: 15px; margin: 12px 0 6px; }\n.form-slot input[type=text], .form-slot input[type=email] { width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid var(--brand-secondary); border-radius: var(--radius); font: 400 17px var(--font); color: var(--text); background: #fff; }\n.form-slot input[aria-invalid=true] { border-color: var(--arch-firefighter); }\n.field-error { color: var(--arch-firefighter); font-size: 14px; font-weight: 600; margin: 6px 0 0; }\n.form-slot .btn { margin-top: 18px; }\n.form-slot label.tick { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 15px; line-height: 1.4; margin: 16px 0 0; cursor: pointer; }\n.tick input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--brand-primary-dark); }\n.btn:disabled { opacity: .6; cursor: default; }\n.consent { font-size: 14px; color: var(--muted); line-height: 1.45; margin: 16px 0 0;
}\n.small-print { font-size: 13px; color: var(--muted); margin-top: 14px; }\nmark.placeholder { background: #FFF6D6; color: var(--text); padding: 1px 4px; border-radius: 4px; }\n\n/* ---------- Calculating ---------- */\n.calculating { text-align: center; padding-top: 40px; }\n.calculating .avatar { width: 190px; height: auto; animation: bob 700ms ease-in-out infinite alternate; }\n.calculating h1 { font-size: 22px; }\n.dots i { display: inline-block; width: 10px; height: 10px; margin: 0 4px; border-radius: 50%; background: var(--brand-primary); animation: twinkle 900ms ease-in-out infinite; }\n.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }\n@keyframes bob { to { transform: translateY(-6px); } }\n\n/* ---------- Screen 7: score and archetype ---------- */\n.duo { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 0 auto 10px; }\n.duo .avatar { width: 132px; height: auto; }\n.result-card { border-radius: var(--radius); padding: 16px 18px; color: #fff; background: var(--c); animation: flip-in 600ms ease-out both; transform-origin: center; }\n.result-card p { margin: 0; font-size: 15px; font-weight: 600; }\n.result-card h1 { margin: 2px 0 0; font-size: 32px; font-weight: 700; }\n.arch-bg-firefighter { --c: var(--arch-firefighter); } .arch-bg-upkeeper { --c: var(--arch-upkeeper); }\n.arch-bg-glow { --c: var(--arch-glow); } .arch-bg-peak { --c: var(--arch-peak); }\n@keyframes flip-in { from { transform: perspective(700px) rotateY(90deg); opacity: 0; } to { transform: perspective(700px) rotateY(0); opacity: 1; } }\n.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }\n.tile { background: var(--brand-primary-light); border-radius: var(--radius); padding: 12px 14px; }\n.tile p { margin: 0; font-size: 13px; font-weight: 600; color: var(--brand-secondary-dark); }\n.tile strong { display: block; font-size: 34px; font-weight: 700; line-height: 1.2; }\n.tile .zone-name { font-size: 22px; padding-top: 8px; }\n.zones { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }\n.zones li { padding: 8px 14px; border-radius: 10px; border: 2px solid transparent; background: #EEF2F2; font-size: 15px; }\n.zones li.on { border-color: var(--brand-primary); background: #fff; font-weight: 600; }\n.message { font-size: 17px; }\n\n/* ---------- Screens 8 and 9: path and Peak Performer ---------- */\n.panels { display: flex; align-items: center; gap: 6px; margin-top: 4px; }\n.panel { flex: 1; background: var(--brand-primary-light); border-radius: var(--radius); padding: 10px 6px 8px; text-align: center; }\n.panel .avatar { width: 100%; max-width: 120px; height: auto; display: block; margin: 0 auto; }\n.panel p { margin: 4px 0 0; font-size: 13px; font-weight: 600; line-height: 1.3; }\n.arrow { font-size: 26px; font-weight: 700; color: var(--brand-secondary-dark); }\n.panel-peak .avatar { animation: celebrate 600ms ease-out 2.3s 2; }\n@keyframes celebrate { 40% { transform: translateY(-10px); } 70% { transform: translateY(2px); } }\n.path-line { display: block; width: 100%; height: auto; margin: 14px 0 4px; }\n.path-dash { stroke: var(--brand-secondary); stroke-width: 3; stroke-dasharray: 2 2.4; stroke-linecap: round; clip-path: inset(0 100% 0 0); animation: draw-line 2s ease-out .3s forwards; }\n@keyframes draw-line { to { clip-path: inset(0 0 0 0); } }\n.dot { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: dot-pop 320ms cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: calc(.3s + var(--i) * .5s); }\n.dot-start { fill: var(--brand-secondary); } .dot-habit { fill: var(--brand-primary); } .dot-end { fill: var(--brand-accent); }\n@keyframes dot-pop { to { transform: scale(1); } }\n.habits { list-style: none; padding: 0; margin: 0 0 16px; }\n.habit { display: flex; gap: 12px; align-items: flex-start; }\n.habit .num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-primary-dark); color: #fff; display: grid; place-items: center; font-weight: 700; }\n.habit strong, .inner-habit strong { display: block; font-weight: 600; }\n.habit span:not(.num), .inner-habit span { display: block; font-size: 15px; margin-top: 2px; }\n.inner-habit { background: #fff; border-radius: 10px; padding: 10px 12px; margin-top: 10px; }\n.warning-box { background: #FFF6D6; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }\n.warning-box p { font-size: 15px; margin: 0 0 8px; }\n.warning-box .warning-title { font-weight: 600; }\n.warning-box ul { margin: 0; padding-left: 20px; font-size: 15px; }\n.warning-box li { margin-bottom: 4px; }\n.booking { text-align: center; margin-top: 16px; font-weight: 600; }\n.duo-peak .avatar-peak { animation: celebrate 600ms ease-out .6s 2; }\n.coach-cheer .av-arm-l { transform-box: view-box; transform-origin: 64px 172px; animation: cheer-l 500ms ease-in-out infinite alternate; }\n.coach-cheer .av-arm-r { transform-box: view-box; transform-origin: 136px 172px; animation: cheer-r 500ms ease-in-out infinite alternate; }\n@keyframes cheer-l { from { transform: rotate(150deg); } to { transform: rotate(138deg); } }\n@keyframes cheer-r { from { transform: rotate(-150deg); } to { transform: rotate(-138deg); } }\n\n/* ---------- Print: same one-page layout as the PDF download ---------- */\n#print-sheet { display: none; }\n@media print {\n @page { size: letter; margin: 0; }\n body { background: #fff; }\n #app, #live, #test-view, .coach-note { display: none !important; }\n #print-sheet { display: block; }\n #print-image { display: block; width: 100%; height: auto; }\n}\n\n/* ---------- Small phones ---------- */\n@media (max-width: 340px) {\n #app { padding: 16px 14px 24px; }\n h1 { font-size: 25px; } .btn { font-size: 18.7px; padding: 12px 10px; }\n .result-card h1 { font-size: 28px; } .duo .avatar { width: 112px; } .coach-note .avatar { width: 120px; }\n}\n\n/* ---------- Reduced motion: simple fades only ---------- */\n@media (prefers-reduced-motion: reduce) {\n .screen, .screen.from-back { animation: fade 250ms both; }\n .stagger .card, .result-card, .coach-note-inner { animation-name: fade; }\n .coach-wave .av-arm-r, .coach-cheer .av-arm-l, .coach-cheer .av-arm-r, .sparkle, .avatar-option.selected svg, .option.selected,\n .calculating .avatar, .dots i, .panel-peak .avatar, .duo-peak .avatar-peak { animation: none; }\n .btn, .progress-fill, .option.selected .check { transition: none; }\n .ladder li { animation-name: light-up-fade; }\n .ladder .num { animation-name: light-num; }\n .path-dash { animation: none; clip-path: none; }\n .dot { animation: fade 300ms both; transform: none; }\n @keyframes fade { from { opacity: 0; } to { opacity: 1; } }\n @keyframes light-up-fade { to { background: var(--brand-primary-light); color: var(--text); } }\n}\n\n/* ---------- Screens 5a-5c: grid questions ---------- */\n.grid-prompt { font-size: 17px; color: var(--muted); font-weight: 500; margin: -4px 0 14px; }\n.grid-rows { display: flex; flex-direction: column; gap: 12px; }\n.grid-row { margin: 0; min-width: 0; padding: 14px; background: #fff; border: 1px solid #DCE4E6; border-radius: var(--radius);\n animation: card-in 380ms ease-out both; animation-delay: calc(80ms + var(--i) * 60ms); transition: border-color 200ms, box-shadow 200ms; }\n.grid-row.done { border-color: var(--brand-secondary); }\n.grid-row.needs-answer:not(.done) { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(14, 124, 134, .25); }\n.grid-row.just-done { animation: row-pop 320ms ease-out; }\n@keyframes row-pop { 40% { transform: scale(1.015); } }\n.grid-row legend { float: left; width: 100%; padding: 0; font-size: 16px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }\n.grid-help { clear: both; font-size: 14px; color: var(--muted); margin: 0 0 6px; }\n.grid-opts { clear: both; display: grid; gap: 6px; padding-top: 6px; }\n.grid-opts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }\n.grid-opts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n.grid-opt { min-height: 48px; padding: 6px 4px; border-radius: 10px; border: 2px solid var(--brand-secondary); background: #fff; color: var(--text);\n font: 600 13px/1.2 var(--font); cursor: pointer; transition: background 160ms, color 160ms, border-color 160ms, transform 120ms; }\n.grid-opt:active { transform: scale(.96); }\n.grid-opt.on { background: var(--brand-primary-dark); border-color: var(--brand-primary-dark); color: #fff; animation: bounce 320ms ease-out; }\n.grid-na { width: 100%; margin-top: 6px; font-weight: 500; }\n.grid-cta { position: sticky; bottom: 0; margin: 14px -20px 0; padding: 10px 20px 12px; background: linear-gradient(to bottom, rgba(252, 255, 247, 0), var(--bg) 22%); z-index: 2; }\n.grid-cta .btn[aria-disabled="true"] { opacity: .5; }\n.grid-note { text-align: center; font-size: 14px; color: var(--muted); margin: 6px 0 0; }\n.peak-note { font-weight: 600; color: var(--arch-peak); }\n@media (max-width: 360px) { .grid-opt { font-size: 12px; } }\n.pp-list { margin: 0 0 14px; padding-left: 22px; font-weight: 600; color: var(--brand-secondary-dark); }\n.pp-list li { margin-bottom: 6px; }\n',document.head.appendChild(t);var a=document.querySelector("meta[name=viewport]");a||((a=document.createElement("meta")).name="viewport",a.content="width=device-width, initial-scale=1",document.head.appendChild(a)),Array.prototype.forEach.call(document.body.children,function(e){"SCRIPT"!==e.tagName&&(e.style.display="none")}),document.body.classList.add("dfs-on");var r=document.createElement("div");r.id="dfs-root",r.innerHTML='<p id="live" class="sr-only" aria-live="polite"></p><main id="app"></main><section id="test-view" hidden aria-label="Scoring self-test"></section><div id="print-sheet" aria-hidden="true"><img id="print-image" alt=""></div>',document.body.appendChild(r),document.title="What's your Dental Fitness Archetype? | Dental Fitness";const n="[PRIVACY_POLICY_URL]",o="[APP_URL]",i="[OPTIONAL_BOOKING_URL]",s=!1,l="https://images.us.genpage.ai/2942/uploads/images/f4b28f220b8d4b7296d89460d21ff1b4-WhatsApp_Image_2026-01-25_at_6.27.37_PM_1_.jpeg.webp";function c(e){return"string"==typeof e&&""!==e&&"["!==e.charAt(0)}const d={Prevention:["q1","q2","q3","q5","q6","q11","q12"],Posture:["q6","q7","q8"],Protection:["q9","q10","q13"],Presentation:["q1","q2","q9","q10","q11","q12","q13"],Psychology:["q5","q15","q17"]},p=["Prevention","Posture","Protection","Presentation","Psychology"],h=["q1","q2","q3","q5","q6","q7","q8","q9","q10","q11","q12","q13","q15","q17"],u=["q9","q13","q15","q17"],f=["Firefighter","Upkeeper","Glow Getter","Peak Performer"],m={"Peak Performer":1,Upkeeper:.75,Firefighter:.25};function g(e){return e.reduce((e,t)=>e+t,0)/e.length}function b(e,t){const a=t.map(t=>e[t]).filter(e=>null!==e).map(e=>e/3);return a.length?g(a):0}function y(e){return e>=85?"Clutch":e>=70?"Consistent":e>=45?"Building":"Getting started"}function x(e){!function(e){if(h.forEach(t=>{const a=e[t];if((null!==a||!u.includes(t))&&("number"!=typeof a||a<0||a>3))throw new Error(`Invalid answer for ${t}: ${a}`)}),!f.includes(e.motivation))throw new Error("Invalid motivation")}(e);const t=function(e){const t={};return h.forEach(a=>{t[a]=e[a]}),t}(e),a=function(e){const t={};return p.forEach(a=>{const r=d[a].map(t=>e[t]).filter(e=>null!==e);t[a]=r.reduce((e,t)=>e+t,0)/(3*r.length)*100}),t}(t),r=p.reduce((e,t)=>e+a[t],0),n=Math.round(.18*r+10*function(e,t){return t in m?m[t]:b(e,["q1","q2","q5"])>=2/3-1e-9?.75:.35}(t,e.motivation)+1e-9),o=g([a.Posture/100,b(t,["q9","q10"])]),i={Firefighter:1-b(t,["q5","q15","q17"]),Upkeeper:b(t,["q1","q2","q5"]),"Glow Getter":b(t,["q11","q12","q13"]),"Peak Performer":g([n/100,o])},s={};f.forEach(t=>{s[t]=100*(.6*i[t]+.4*(e.motivation===t?1:0))});const l=Math.min(...p.map(e=>a[e])),c=n>=80&&l>=60-1e-9;let x;if(c&&"Peak Performer"===e.motivation)x="Peak Performer";else{const e=["Firefighter","Glow Getter","Upkeeper"],t=Math.max(...e.map(e=>s[e]));x=e.find(e=>s[e]>=t-3-1e-9)}const v=e=>Math.min(...p.filter(t=>d[t].includes(e)).map(e=>a[e])),k=h.filter(e=>null!==t[e]).sort((e,a)=>t[e]-t[a]||v(e)-v(a)||h.indexOf(e)-h.indexOf(a)).slice(0,"Peak Performer"===x?1:3).map(e=>e.toUpperCase());return{score:n,zone:y(n),archetype:x,habits:k,peakMindset:"Peak Performer"===e.motivation&&"Peak Performer"!==x,peakHabits:c&&"Peak Performer"!==e.motivation}}const v=[{label:"Yes",value:3},{label:"No",value:0}],k=[{title:"Your last 7 days",prompt:"In the past 7 days, on how many days did you…",options:[{label:"Every day",value:3},{label:"4–6 days",value:2},{label:"1–3 days",value:1},{label:"0 days",value:0}],rows:[{id:"q1",label:"Brush at least twice, including once before bed"},{id:"q2",label:"Clean between your teeth with floss, floss picks, interdental brushes or a water flosser"},{id:"q11",label:"Clean your
tongue",help:"With a tongue scraper or your toothbrush"},{id:"q3",label:"Limit sweets and acidic snacks or drinks to one a day",help:"Candy, pastries, soda, juice, sports drinks"},{id:"q10",label:"Use your teeth to open things, bite nails or pens, or chew ice",help:"Fewer days is better here.",reverse:!0},{id:"q12",label:"Rinse with water after coffee, tea, wine, soda, and between meals"}]},{title:"Your dental health habits",prompt:"Which of these do you practice?",options:v,rows:[{id:"q6",label:"While awake, I mostly breathe through my nose with my lips closed."},{id:"q8",label:"When my mouth is relaxed, my tongue rests against the roof of my mouth.",help:"Not sure? Close your lips, swallow, and notice where your tongue settles."},{id:"q9",label:"I wear a mouthguard or nightguard every time I do something that could hit or strain my teeth.",help:"Contact or ball sports, biking, skating, or grinding at night",na:"Doesn’t apply"},{id:"q13",label:"When I whiten or straighten my teeth, I use my dentist’s guidance or dentist-recommended products.",help:"Products recommended by a dentist or a dental organization count.",na:"Haven’t done this"}]},{title:"Your dental care",prompt:"In the past 12 months, is this true for you?",options:v,rows:[{id:"q5",label:"I’m up to date on checkups.",help:"Seen in the past 6 months, or booked in the next 3 months."},{id:"q7",label:"A dental professional checked my jaw and bite."},{id:"q15",label:"I completed, or scheduled, most of the treatment my dental team recommended.",na:"Does not apply"},{id:"q17",label:"At my last visit, I asked at least one question, shared any health or medication changes, or left knowing my next steps.",na:"No visit"}]}],w={title:"Last question",prompt:"What do you want most from your mouth? Pick one.",options:[{label:"I just want to avoid pain",value:"Firefighter"},{label:"I want optimal oral health that supports whole-body health, energy, and confidence",value:"Peak Performer"},{label:"I want straight, healthy teeth and gums",value:"Upkeeper"},{label:"I just want to feel confident about my smile and breath",value:"Glow Getter"}]},q={Q1:{habit:"Brush twice a day, including right before bed",drill:"Keep your toothbrush next to something you use every night, like your phone charger."},Q2:{habit:"Clean between your teeth once a day",drill:"Keep floss picks where you relax in the evening and do one round each night."},Q3:{habit:"Limit sweets and acidic snacks or drinks to one a day",drill:"Have your one treat with a meal instead of snacking or sipping through the day."},Q5:{habit:"Stay up to date on checkups",drill:"Book your next visit before you leave the last one, or confirm when your dental team wants to see you."},Q6:{habit:"Breathe through your nose with your lips closed while awake",drill:"Set 3 reminders a day to check: lips together, breathing through your nose."},Q7:{habit:"Get your jaw and bite checked",drill:"At your next visit, ask your dental team for a quick jaw and bite check."},Q8:{habit:"Rest your tongue on the roof of your mouth",drill:'Say "n" and notice where your tongue lands. That\'s the resting spot. Check it whenever you sit down to work.'},Q9:{habit:"Wear your guard every time you need it",drill:"Keep your sports guard in your gym bag and your nightguard next to your toothbrush."},Q10:{habit:"Use tools, not teeth",drill:"Keep scissors where you open packages, and swap ice for cold water."},Q11:{habit:"Clean your tongue every day",drill:"After you brush, add 5 gentle strokes with a tongue scraper or your toothbrush."},Q12:{habit:"Rinse with water after drinks and between meals",drill:"Keep a water bottle next to your coffee or tea, and swish with water after you eat."},Q13:{habit:"Ask before you whiten or straighten",drill:"Check with your dentist before trying a product or trend, and use ones a dentist recommends."},Q15:{habit:"Finish the care your team recommends",drill:"Ask your dental team to help you plan or phase any treatment you've put off."},Q17:{habit:"Speak up at your visits",drill:"Bring one question and any health or medication changes to your next appointment."}},P=[],$={Firefighter:"You take care of your teeth when something goes wrong. That's a common starting point. Your next step is training before there's a problem, so fewer things catch you off guard.",Upkeeper:"You value prevention and keep a steady routine. To become a Peak Performer, add the habits that support your whole body and help your mouth hold up under pressure.","Glow Getter":"Your smile and breath matter to you, and that's a great motivator. Peak Performers care about how their mouth looks and about what's happening beneath it: the habits that keep it healthy and strong.","Peak Performer":"You care for your smile, your health and your whole body, and your mouth holds up under pressure. That's what a Peak Performer looks like. Staying there takes training."},F={mindset:"You have a Peak Performer mindset. These Peak Performer Habits will get you there.",habits:"Your habits are already at Peak Performer level. Make whole-body health and performance your goal, and you're there."},S={0:"Nice start. Honest answers make the best Playbook.",1:"Halfway there. Keep going!",2:"One more, and then your results."},C=[{name:"Clutch",range:"85–100"},{name:"Consistent",range:"70–84"},{name:"Building",range:"45–69"},{name:"Getting started",range:"0–44"}];const A={orange:"#0E7C86",orangeDark:"#0A5F66",slate:"#2F5566",slateDark:"#1D3A46",light:"#E2F0F0",grey:"#A7B1B2",white:"#FFFFFF",ink:"#1D2B31",purple:"#1F5FAD",purpleLight:"#E3EDF9",mouth:"#7E2B34"},D={skin:"#9EBECB",shade:"#84A9B8",mouth:"#2F4753"},E=[{id:"teen-f",group:"Teen",label:"Teen",alt:"a teen with long hair in an teal hoodie wearing a backpack",hair:"#1F2A30",hairStyle:"long",top:"hoodie",topColor:A.orange,dark:A.orangeDark,accent:A.slateDark,sleeve:56,pants:A.slateDark,shoes:A.white,item:"backpack"},{id:"teen-m",group:"Teen",label:"Teen",alt:"a teen with short swept hair in a navy hoodie wearing a backpack",hair:"#B8540F",hairStyle:"swoop",top:"hoodie",topColor:A.slate,dark:A.slateDark,accent:A.orange,sleeve:56,pants:A.ink,shoes:A.white,item:"backpack"},{id:"pro-f",group:"Professional",label:"Professional",alt:"a professional with a bob in a blazer carrying a briefcase",hair:"#3F5F6E",hairStyle:"bob",top:"blazer",topColor:A.slate,dark:A.slateDark,accent:A.orange,sleeve:56,pants:A.slate,shoes:A.ink,item:"briefcase"},{id:"pro-m",group:"Professional",label:"Professional",alt:"a professional with short hair in a blazer and tie carrying a briefcase",hair:"#1F2A30",hairStyle:"short",top:"blazer",topColor:A.slateDark,dark:"#2F4753",accent:A.orange,tie:!0,sleeve:56,pants:A.slateDark,shoes:A.ink,item:"briefcase"},{id:"active-f",group:"Active adult",label:"Active adult",alt:"an active adult with a ponytail wearing a headband",hair:"#B8540F",hairStyle:"ponytail",top:"athletic",topColor:A.orange,accent:A.white,band:A.slateDark,sleeve:6,pants:A.slateDark,shoes:A.white,item:"headband"},{id:"active-m",group:"Active adult",label:"Active adult",alt:"an active adult with short hair wearing a headband",hair:"#3F5F6E",hairStyle:"short",top:"athletic",topColor:A.white,accent:A.orange,band:A.orange,sleeve:20,pants:A.slate,shoes:A.orange,item:"headband"},{id:"senior-f",group:"Senior",label:"Senior",alt:"a senior with curly white hair, glasses and a cardigan",hair:"#FFFFFF",brow:"#6E7C82",hairStyle:"fluffy",top:"cardigan",topColor:A.orangeDark,sleeve:56,pants:A.slateDark,shoes:A.ink,item:"glasses"},{id:"senior-m",group:"Senior",label:"Senior",alt:"a senior with white hair, a moustache, glasses and a cardigan",hair:"#FFFFFF",brow:"#6E7C82",hairStyle:"balding",mustache:!0,top:"cardigan",topColor:A.slateDark,sleeve:56,pants:A.slate,shoes:A.ink,item:"glasses"}].map(e=>Object.assign({},D,e)),L={id:"coach",label:"Your Coach",alt:"Dr. Matthews, your Coach, in a teal polo with a whistle",skin:"#7A4A2B",shade:"#653A1F",hair:"#17151A",hairLine:"#34303A",hairStyle:"braids",top:"polo",topColor:A.orange,sleeve:24,pants:A.slateDark,shoes:A.white},Q=64,M=136,T=172;function z(e,t,a,r){r=r||{};const n="l"===t?Q:M,o=T,i=A,s=("blazer"===e.top||"cardigan"===e.top||"hoodie"===e.top||"tee"===e.top||"polo"===e.top||"jersey"===e.top||e.top,e.topColor);let l=`<g class="av-arm av-arm-${t}" transform="rotate(${a} ${n} ${o})">`;return l+=`<rect x="${n-10}" y="${o-9}" width="20" height="76" rx="10" fill="${e.skin}"/>`,l+=`<rect x="${n-11}" y="${o-10}" width="22" height="${e.sleeve+10}" rx="${e.sleeve>30?10:9}" fill="${s}"/>`,"polo"===e.top&&(l+=`<rect x="${n-11}" y="${o+e.sleeve-6}" width="22" height="6" rx="3" fill="${i.slate}"/>`),"jersey"===e.top&&(l+=`<rect x="${n-11}" y="${o+e.sleeve-5}" width="22" height="5" rx="2.5" fill="${i.white}"/>`),r.watch&&(l+=`<rect x="${n-11}" y="${o+46}" width="22" height="8" rx="3" fill="${i.ink}"/><rect x="${n-5}" y="${o+45}" width="10" height="10" rx="3" fill="${i.light}"/>`),r.wristband&&(l+=`<rect x="${n-11}" y="${o+44}" width="22" height="9" rx="4" fill="${i.purple}"/>`),r.point&&(l+=`<rect x="${n-4}" y="${o+66}" width="8" height="18" rx="4" fill="${e.skin}"/>`),l+=`<circle cx="${n}" cy="${o+65}" r="${r.fist?12:11}" fill="${e.skin}"/>`,r.fist&&(l+=`<path d="M${n-7} ${o+68}h14" stroke="${e.shade}" stroke-width="2.5" stroke-linecap="round"/>`),"ball"===r.item&&(l+=`<circle cx="${n+("l"===t?12:-12)}" cy="${o+70}" r="17" fill="${i.white}"/><path d="M${n+("l"===t?12:-12)-17} ${o+70}h34M${n+("l"===t?12:-12)} ${o+53}v34" stroke="${i.orange}" stroke-width="3"/><circle cx="${n+("l"===t?12:-12)}" cy="${o+70}" r="17" fill="none" stroke="${i.orange}" stroke-width="3"/>`),"briefcase"===r.item&&(l+=`<rect x="${n-8}" y="${o+60}" width="16" height="12" rx="5" fill="none" stroke="${i.ink}" stroke-width="4"/><rect x="${n-22}" y="${o+69}" width="44" height="32" rx="6" fill="${i.orange}"/><rect x="${n-22}" y="${o+81}" width="44" height="4" fill="${i.orangeDark}"/><circle cx="${n}" cy="${o+65}" r="9" fill="${e.skin}"/>`),l+"</g>"}function I(e){const t=A;let a=`<path d="M60 180 Q60 152 86 152 L114 152 Q140 152 140 180 L140 276 L60 276Z" fill="${e.topColor}"/>`;switch(e.top){case"hoodie":a+=`<path d="M82 152 Q100 178 118 152Z" fill="${e.dark}"/><path d="M92 170v26M108 170v26" stroke="${t.white}" stroke-width="3" stroke-linecap="round"/><rect x="78" y="226" width="44" height="26" rx="10" fill="${e.dark}"/><rect x="68" y="152" width="10" height="70" rx="5" fill="${e.accent}"/><rect x="122" y="152" width="10" height="70" rx="5" fill="${e.accent}"/>`;break;case"blazer":a+=`<path d="M84 152 L100 214 L116 152Z" fill="${t.white}"/>`+(e.tie?`<path d="M95 158 L105 158 L103 166 L108 200 L100 210 L92 200 L97 166Z" fill="${e.accent}"/>`:`<path d="M92 156 Q100 164 108 156" fill="none" stroke="${e.accent}" stroke-width="4" stroke-linecap="round"/>`)+`<path d="M84 152 L100 214 L88 214 L74 168Z" fill="${e.dark}"/><path d="M116 152 L100 214 L112 214 L126 168Z" fill="${e.dark}"/><circle cx="100" cy="230" r="3.5" fill="${e.dark}"/>`;break;case"athletic":a+=`<path d="M86 152 Q100 168 114 152Z" fill="${e.skin}"/><rect x="60" y="196" width="80" height="12" fill="${e.accent}"/><path d="M86 152 Q100 168 114 152" fill="none" stroke="${e.accent}" stroke-width="4"/>`;break;case"cardigan":a+=`<path d="M84 152 L92 276 L108 276 L116 152Z" fill="${t.white}"/><path d="M86 152 Q100 164 114 152Z" fill="${e.skin}"/><circle cx="112" cy="206" r="3.5" fill="${t.white}"/><circle cx="111" cy="228" r="3.5" fill="${t.white}"/><circle cx="110" cy="250" r="3.5" fill="${t.white}"/>`;break;case"polo":a+=`<path d="M88 152 L100 170 L112 152Z" fill="${e.skin}"/><path d="M84 151 L100 170 L92 180 L78 160Z" fill="${t.slate}"/><path d="M116 151 L100 170 L108 180 L122 160Z" fill="${t.slate}"/><path d="M100 172v30" stroke="${t.orangeDark}" stroke-width="3" stroke-linecap="round"/><text x="125" y="206" text-anchor="middle" font-family="Montserrat,Arial,sans-serif" font-weight="700" font-size="7.5" letter-spacing=".6" fill="${t.white}">COACH</text>`}return a}function B(e,t){const a=A,r=e.brow||e.hair;let n='<g class="av-head">';return n+=function(e){const t=e.hair;switch(e.hairStyle){case"puffs":return`<circle cx="56" cy="46" r="21" fill="${t}"/><circle cx="144" cy="46" r="21" fill="${t}"/>`;case"bun":return`<circle cx="100" cy="27" r="18" fill="${t}"/>`;case"bob":return`<rect x="46" y="38" width="108" height="102" rx="46" fill="${t}"/>`;case"fluffy":return[[60,56],[72,38],[92,28],[112,28],[130,38],[142,56],[50,78],[150,78]].map(e=>`<circle cx="${e[0]}" cy="${e[1]}" r="16" fill="${t}"/>`).join("");case"braids":return`<path d="M138 64 Q157 86 153 140 Q152 160 147 174 L137 170 Q142 130 138 96Z" fill="${t}"/>`;case"long":return`<rect x="45" y="36" width="110" height="120" rx="46" fill="${t}"/>`;case"ponytail":return`<path d="M104 30 Q156 14 160 74 Q160 100 146 112 Q152 70 112 48Z" fill="${t}"/>`;case"balding":return`<circle cx="55" cy=
"72" r="15" fill="${t}"/><circle cx="145" cy="72" r="15" fill="${t}"/><circle cx="52" cy="92" r="11" fill="${t}"/><circle cx="148" cy="92" r="11" fill="${t}"/>`;default:return""}}(e),n+=`<rect x="89" y="126" width="22" height="32" rx="9" fill="${e.skin}"/><path d="M89 140 Q100 150 111 140 L111 136 L89 136Z" fill="${e.shade}"/>`,n+=`<circle cx="54" cy="90" r="8" fill="${e.skin}"/><circle cx="146" cy="90" r="8" fill="${e.skin}"/>`,n+=`<ellipse cx="100" cy="86" rx="46" ry="48" fill="${e.skin}"/>`,e.beard&&(n+=`<path d="M57.4 104 A46 48 0 0 0 142.6 104 Q134 120 121 125 Q100 133 79 125 Q66 120 57.4 104Z" fill="${e.hair}"/>`),n+=`<circle cx="70" cy="100" r="7" fill="${e.shade}" opacity=".55"/><circle cx="130" cy="100" r="7" fill="${e.shade}" opacity=".55"/>`,n+=function(e){const t=e.hair,a=e=>`<path d="M51 86 A49 51 0 0 1 149 86 ${e}Z" fill="${t}"/>`;switch(e.hairStyle){case"puffs":return a("Q140 60 100 57 Q60 60 51 86");case"swoop":return`<path d="M50 84 Q46 30 100 30 Q152 30 150 82 Q142 58 116 58 Q98 72 72 64 Q58 68 50 84Z" fill="${t}"/>`;case"bun":return a("Q140 58 104 54 Q76 54 51 86");case"bob":return a("Q146 62 118 52 Q92 70 51 86");case"short":return a("Q142 54 100 50 Q58 54 51 86");case"long":return a("Q140 74 100 52 Q60 74 51 86");case"ponytail":return a("Q142 60 106 54 Q72 56 51 86");case"fluffy":return a("Q138 62 100 58 Q62 62 51 86");case"braids":{let t=a("Q138 60 102 55 Q64 60 51 86");return t+=`<path d="M102 36 Q101 46 102 55M88 38 Q80 46 72 60M76 43 Q66 52 60 68M114 37 Q124 46 132 60M126 42 Q136 52 141 68M64 52 Q58 62 54 78M137 52 Q143 62 146 78" stroke="${e.hairLine}" stroke-width="1.8" fill="none" stroke-linecap="round"/>`,t}default:return""}}(e),"headband"===e.item&&(n+=`<path d="M55 62 Q100 42 145 62 L148 74 Q100 53 52 74Z" fill="${e.band||a.orange}"/>`),n+=`<path d="M75 73 Q83 68 91 72M109 72 Q117 68 125 73" stroke="${r}" stroke-width="3" fill="none" stroke-linecap="round"/>`,n+=`<circle cx="83" cy="85" r="4.6" fill="${a.ink}"/><circle cx="117" cy="85" r="4.6" fill="${a.ink}"/>`,"glasses"===e.item&&(n+=`<circle cx="83" cy="85" r="12" fill="${a.white}" fill-opacity=".3" stroke="${a.slateDark}" stroke-width="3"/><circle cx="117" cy="85" r="12" fill="${a.white}" fill-opacity=".3" stroke="${a.slateDark}" stroke-width="3"/><path d="M95 85h10" stroke="${a.slateDark}" stroke-width="3"/>`),n+=`<path d="M96 97 Q100 100 104 97" stroke="${e.shade}" stroke-width="2.5" fill="none" stroke-linecap="round"/>`,e.mustache&&(n+=`<path d="M82 101 Q91 93 100 99 Q109 93 118 101 Q109 107 100 103 Q91 107 82 101Z" fill="${e.hair}"/>`),n+=`<g class="av-smile"${t?' transform="translate(100 104) scale(1.14) translate(-100 -104)"':""}><path d="M79 103 Q100 109 121 103 Q119 126 100 126 Q81 126 79 103Z" fill="${e.mouth||a.mouth}"/><path d="M83 105.2 Q100 110 117 105.2 Q116 114.5 100 114.5 Q84 114.5 83 105.2Z" fill="${a.white}"/></g>`,n+"</g>"}function R(e){return`<g class="av-legs"><rect x="64" y="262" width="32" height="64" rx="10" fill="${e.pants}"/><rect x="104" y="262" width="32" height="64" rx="10" fill="${e.pants}"/><rect x="56" y="316" width="42" height="18" rx="9" fill="${e.shoes}"/><rect x="102" y="316" width="42" height="18" rx="9" fill="${e.shoes}"/></g>`}function j(e,t,a,r){return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 ${a?340:270}" class="avatar ${r}" role="img" aria-label="${t}">${e}</svg>`}function U(e,t,a){const r=E.find(t=>t.id===e),n=A,o=!(!a||!a.full),i="peak"===t;let s="";i&&(s+=`<circle class="av-glow" cx="100" cy="130" r="95" fill="${n.purple}" fill-opacity=".1" stroke="${n.purple}" stroke-opacity=".45" stroke-width="4"/>`),s+=`<g class="av-figure"${i?' transform="translate(0 -5)"':""}>`,o&&(s+=R(r));return s+=z(r,"l",9,{item:"briefcase"===r.item?r.item:null}),s+=z(r,"r",i?-152:-9,i?{fist:!0,wristband:!0}:{}),s+=`<g class="av-body">${I(r)}`,i&&(s+=`<path d="M86 154 L100 204 L114 154" fill="none" stroke="${n.purple}" stroke-width="6" stroke-linejoin="round"/><circle cx="100" cy="208" r="14" fill="${n.purple}"/><circle cx="100" cy="208" r="8" fill="${n.purpleLight}"/>`),s+="</g>"+B(r,i)+"</g>",j(s,(i?"Peak Performer version of ":"")+r.alt,o,"avatar-"+t)}function O(e,t){const a=L,r=!(!t||!t.full),n={wave:{l:9,r:-138,ro:{watch:!0}},point:{l:9,r:-160,ro:{watch:!0,point:!0}},clipboard:{l:9,r:-9,ro:{watch:!0},clip:!0},cheer:{l:150,r:-150,ro:{watch:!0,fist:!0},lo:{fist:!0},big:!0},stand:{l:9,r:-9,ro:{watch:!0}}}[e]||{};let o='<g class="av-figure">';return r&&(o+=R(a)),o+=z(a,"l",n.l,n.lo)+z(a,"r",n.r,n.ro),o+=`<g class="av-body">${I(a)}${function(){const e=A;return`<g class="av-whistle"><path d="M87 160 Q88 196 97 214M113 160 Q112 196 103 214" fill="none" stroke="${e.slateDark}" stroke-width="3" stroke-linecap="round"/><rect x="88" y="212" width="20" height="13" rx="5" fill="${e.light}"/><circle cx="92" cy="221" r="8" fill="${e.light}"/><circle cx="92" cy="221" r="3" fill="${e.slateDark}"/><rect x="104" y="214" width="7" height="6" rx="2" fill="${e.grey}"/></g>`}()}</g>`,o+=B(a,n.big)+function(e){const t=e.hair;let a='<g class="av-braids">';return[[55,78,36,150,45,198],[57,88,45,150,53,208],[59,100,54,150,62,201],[61,112,63,156,71,209]].forEach(e=>{a+=`<path d="M${e[0]} ${e[1]} Q${e[2]} ${e[3]} ${e[4]} ${e[5]}" stroke="${t}" stroke-width="7.5" fill="none" stroke-linecap="round"/>`}),a+=`<path d="M55 78 Q36 150 45 198M59 100 Q54 150 62 201" stroke="${e.hairLine}" stroke-width="1.3" fill="none" stroke-dasharray="3 5" stroke-linecap="round"/>`,[[45,202],[53,212],[62,205],[71,213]].forEach(e=>{a+=`<circle cx="${e[0]}" cy="${e[1]}" r="6.5" fill="${t}"/><circle cx="${e[0]-4}" cy="${e[1]+8}" r="5" fill="${t}"/>`}),a+"</g>"}(a),n.clip&&(o+=function(e){const t=A;return`<g class="av-clipboard" transform="rotate(-8 128 226)"><rect x="100" y="188" width="56" height="74" rx="7" fill="${t.slateDark}"/><rect x="106" y="198" width="44" height="58" rx="3" fill="${t.white}"/><rect x="117" y="183" width="22" height="12" rx="4" fill="${t.grey}"/><path d="M112 210h30M112 221h30M112 232h20" stroke="${t.grey}" stroke-width="3" stroke-linecap="round"/><path d="M112 243l5 5 9-10" stroke="${t.orange}" stroke-width="3.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></g><circle cx="150" cy="234" r="11" fill="${e.skin}"/>`}(a)),o+="</g>",j(o,a.alt,r,"avatar-coach coach-"+e)}const Y="",G="https://15db418c.sibforms.com/serve/MUIFAF3BrYXjLGZeFhp2Y2Vuh4SGmPFkR2Y7yyuoAMlsCuqJlmFYQoRth7dSnadnSxeXgf3zOdQPkbqylabC87R9CQL_PLfpeJc3iH9IL6n7Tx5mgV93-QTL7-MPL0ecSSEpWLbYWzkGXHaaBxbhOciZm7ZuOO0U7kVyy61i397E9gsCkp4l079WwWs9bclh4A77G6zgH8HVEcuQ",N="https://15db418c.sibforms.com/serve/MUIFAAzO-fc8SU0-wE69oTsslAly7Wc5Km7rnDwP10WURxBJXqis4P0_64purvcHT7P4suQvh7K9Yrjl9QP4oTsXD8ISORthf_LaGCVUgMG1h7gVBs1ShMDk9fn7K9scwQwhHHWZr3G1C1VVYhs7Zpum_qGfekfM74WMQ6cbZeqrenVN93C54Qi0OMkthLjB7qagTsfcrfVSZV5D";function _(e){const t=[];if(Y&&/^https?:$/.test(location.protocol)&&!/^(localhost|127\.0\.0\.1|\[::1\])$/.test(location.hostname)){const a=new URLSearchParams(Object.assign({"form-name":Y},e));t.push(fetch("/",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a.toString()}).then(function(e){if(!e.ok)throw new Error("Netlify form error "+e.status)}).catch(function(e){console.warn("Netlify capture failed:",e)}))}return G&&t.push(Z(G,e,"Brevo")),N&&"yes"===e.DF_CLUTCH_OPTIN&&t.push(Z(N,{EMAIL:e.EMAIL,FIRSTNAME:e.FIRSTNAME,CLUTCH_SOURCE:"df-journey-"+e.DF_SOURCE},"Clutch waitlist")),Promise.all(t).then(function(){})}function Z(e,t,a){const r=new FormData;return Object.keys(t).forEach(function(e){r.append(e,t[e])}),r.append("email_address_check",""),r.append("locale","en"),r.append("html_type","simple"),fetch(e,{method:"POST",mode:"no-cors",body:r}).then(function(){}).catch(function(e){console.warn(a+" capture failed:",e)})}const H={ink:"#1D2B31",muted:"#55636A",slateDark:"#1D3A46",light:"#E2F0F0",orange:"#0E7C86",purple:"#1F5FAD",bg:"#F8F6F0",arch:{Firefighter:"#C4412B",Upkeeper:"#1F5FAD","Glow Getter":"#9A6B00","Peak Performer":"#17805F"}};function W(e){return new Promise(function(t,a){const r=new Image;/^https?:/.test(e)&&(r.crossOrigin="anonymous"),r.onload=function(){t(r)},r.onerror=function(){a(new Error("Image failed to load"))},r.src=e})}function K(e){return W("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(e))}function V(){return document.fonts&&document.fonts.load?Promise.all(["400","600","700"].map(function(e){return document.fonts.load(e+" 20px Montserrat")})).catch(function(){}):Promise.resolve()}function X(e,t,a){e.font=t+" "+a+"px Montserrat, Arial, sans-serif"}function J(e,t,a,r,n,o){const i=String(t).split(" ");let s="";return i.forEach(function(t){const i=s?s+" "+t:t;e.measureText(i).width>n&&s?(e.fillText(s,a,r),r+=o,s=t):s=i}),s&&(e.fillText(s,a,r),r+=o),r}function ee(e,t,a){let r=0,n="";return String(t).split(" ").forEach(function(t){const o=n?n+" "+t:t;e.measureText(o).width>a&&n?(r++,n=t):n=o}),r+(n?1:0)}function te(e,t,a,r,n,o,i){e.beginPath(),e.moveTo(t+o,a),e.arcTo(t+r,a,t+r,a+n,o),e.arcTo(t+r,a+n,t,a+n,o),e.arcTo(t,a+n,t,a,o),e.arcTo(t,a,t+r,a,o),e.closePath(),e.fillStyle=i,e.fill()}function ae(e){const t=[],a=[];return e.forEach(function(e){const r=P[e];r&&(r.urgent?t:a).push(r)}),t.concat(a)}function re(e){const t=1275,a=1650,r=90,n=1095,o=document.createElement("canvas");o.width=t,o.height=a;const i=o.getContext("2d"),s=e.result,c="Peak Performer"===s.archetype;return Promise.all([V(),W(l).catch(function(){return null}),K(U(e.avatar,"now")),K(U(e.avatar,"peak"))]).then(function(l){const d=l[1],p=l[2],h=l[3];if(i.fillStyle="#FFFFFF",i.fillRect(0,0,t,a),i.textBaseline="alphabetic",d){const e=Math.min(d.width,d.height);i.save(),i.beginPath(),i.arc(t/2,125,95,0,2*Math.PI),i.clip(),i.drawImage(d,(d.width-e)/2,(d.height-e)/2,e,e,542.5,30,190,190),i.restore()}i.textAlign="center",X(i,600,30),i.fillStyle=H.slateDark,i.fillText("Dental Fitness with Dr. Camesia Matthews, DDS",t/2,262),X(i,400,23),i.fillStyle=H.muted,i.fillText((e.firstName?"Playbook for "+e.firstName+" · ":"")+(new Date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),t/2,298);const u=330;te(i,r,u,170,250,14,H.light),te(i,275,u,170,250,14,H.light),i.drawImage(p,100,338,150,202),i.drawImage(h,285,338,150,202),X(i,600,17),i.fillStyle=H.ink,i.fillText("You now",175,566),i.fillText("Peak Performer",360,566);const f=475;te(i,f,u,710,122,14,H.arch[s.archetype]),i.textAlign="left",i.fillStyle="#FFFFFF",X(i,600,21),i.fillText("Your Dental Archetype",501,374),X(i,700,46),i.fillText(s.archetype,501,428);const m=347;te(i,f,468,m,112,14,H.light),te(i,838,468,m,112,14,H.light),X(i,600,19),i.fillStyle=H.slateDark,i.fillText("Dental Fitness Score",497,504),i.fillText("Zone",860,504),i.fillStyle=H.ink,X(i,700,44),i.fillText(String(s.score),497,558),X(i,700,32),i.fillText(s.zone,860,554);let g=630;X(i,400,23),i.fillStyle=H.ink,g=J(i,$[s.archetype],r,g,n,34)+26,X(i,600,32),i.fillStyle=H.ink,i.fillText(c?"Staying a Peak Performer takes training":"Your Playbook: 3 Peak Performer Habits",r,g),g+=20;const b=function(e,t,a){const o=g;X(i,400,21);const s=62+30*ee(i,t,n-(a?86:26)-26)+8;te(i,r,o,n,s,14,H.light),a&&(i.beginPath(),i.arc(134,o+s/2,22,0,2*Math.PI),i.fillStyle="#B8540F",i.fill(),i.fillStyle="#FFFFFF",X(i,700,22),i.textAlign="center",i.fillText(String(a),134,o+s/2+8),i.textAlign="left");const l=r+(a?86:26);X(i,600,23),i.fillStyle=H.ink,i.fillText(e,l,o+40),X(i,400,21),i.fillStyle=H.ink,J(i,t,l,o+72,n-(l-r)-26,30),g=o+s+12};if(c){const e=q[s.habits[0]];b("Keep your drills","Your full routine, even on busy days",0),b("Sharpen your skills: "+e.habit,e.drill,0),b("Keep learning","A new Dental Fitness insight each week from your Coach",0)}else s.habits.forEach(function(e,t){b(q[e].habit,q[e].drill,t+1)});const y=ae(e.warnings);if(y.length){g+=6;const e=y.length>5,t=e?517.5:1043;X(i,400,20);const a=[];y.forEach(function(e){a.push(e.urgent?e.bold+" "+e.text:e.text)});const o=y.filter(function(e){return e.urgent}).length,s=a.slice(o),l=e?Math.ceil(s.length/2):s.length,c=28,d=function(e,t){return ee(i,"• "+e,t)*c+4};let p=[0,0];s.forEach(function(a,r){p[e&&r>=l?1:0]+=d(a,t)});const h=58+(o?ee(i,a[0],1043)*c+8:0)+Math.max(p[0],p[1])+14;te(i,r,g,n,h,14,"#FFF6D6");let u=g+40;o&&(X(i,700,20),i.fillStyle=H.ink,u=J(i,a[0],116,u,1043,c)+8),X(i,600,21),i.fillStyle=H.ink,i.fillText("Check with your dentist about:",116,u),u+=34,X(i,400,20);let f=[u,u];s.forEach(function(a,r){const n=e&&r>=l?1:0;f[n]=J(i,"• "+a,116+n*(t+20),f[n],t,c)+4}),g+=h+12}return i.textAlign="center",X(i,400,18),i.fillStyle=H.muted,i.fillText("This assessment is for education and isn't a diagnosis. For any concern, talk with your dentist.",t/2,1572),X(i,600,18),i.fillStyle=H.slateDark,i.fillText("Created by Clutch Dental Enterprises, PLLC",t/2,1604),o.dataset.contentBottom=String(Math.round(g)),o})}function ne(e,t){const a=URL.createObjectURL(e),r=document.createElement("a");r.href=a,r.download
=t,document.body.appendChild(r),r.click(),r.remove(),setTimeout(function(){URL.revokeObjectURL(a)},4e3)}function oe(e){return re(e).then(function(t){const a=function(e,t,a){const r=new TextEncoder,n=[],o=[];let i=0;const s=function(e){const t="string"==typeof e?r.encode(e):e;n.push(t),i+=t.length},l=function(e,t){o[e]=i,s(e+" 0 obj\n"),t(),s("\nendobj\n")},c="q 612 0 0 792 0 0 cm /Im0 Do Q";s("%PDF-1.4\n"),l(1,function(){s("<< /Type /Catalog /Pages 2 0 R >>")}),l(2,function(){s("<< /Type /Pages /Kids [3 0 R] /Count 1 >>")}),l(3,function(){s("<< /Type /Page /Parent 2 0 R /MediaBox [0 0 612 792] /Resources << /XObject << /Im0 5 0 R >> >> /Contents 4 0 R >>")}),l(4,function(){s("<< /Length 30 >>\nstream\n"+c+"\nendstream")}),l(5,function(){s("<< /Type /XObject /Subtype /Image /Width "+t+" /Height "+a+" /ColorSpace /DeviceRGB /BitsPerComponent 8 /Filter /DCTDecode /Length "+e.length+" >>\nstream\n"),s(e),s("\nendstream")});const d=i;let p="xref\n0 6\n0000000000 65535 f \n";for(let e=1;e<=5;e++)p+=String(o[e]).padStart(10,"0")+" 00000 n \n";return s(p+"trailer\n<< /Size 6 /Root 1 0 R >>\nstartxref\n"+d+"\n%%EOF\n"),new Blob(n,{type:"application/pdf"})}(function(e){const t=atob(e.split(",")[1]),a=new Uint8Array(t.length);for(let e=0;e<t.length;e++)a[e]=t.charCodeAt(e);return a}(t.toDataURL("image/jpeg",.92)),t.width,t.height);var r;return ne(a,"My-Dental-Fitness-Playbook-"+(r=e.firstName,(String(r||"Me").trim().replace(/[^A-Za-z0-9À-ɏ-]+/g,"-").replace(/^-+|-+$/g,"")||"Me")+".pdf")),a})}function ie(e){return re(e).then(function(t){const a=document.getElementById("print-image");a.src=t.toDataURL("image/jpeg",.92),a.alt="Dental Fitness results for "+(e.firstName||"you")+": "+e.result.archetype+"."})}function se(e){return function(e){const t=1080,a=document.createElement("canvas");a.width=t,a.height=t;const r=a.getContext("2d"),n=e.result.archetype,i="Peak Performer"===n;return Promise.all([V(),K(U(e.avatar,"peak"))]).then(function(e){const s=e[1];r.fillStyle=H.bg,r.fillRect(0,0,t,t),r.fillStyle=H.orange,r.fillRect(0,0,t,18),r.beginPath(),r.arc(540,400,270,0,2*Math.PI),r.fillStyle=H.light,r.fill(),r.save(),r.beginPath(),r.arc(540,400,270,0,2*Math.PI),r.clip(),r.drawImage(s,325,108,430,580),r.restore(),r.textAlign="center",r.textBaseline="alphabetic",X(r,700,84);const l="I'm "+(i?"a ":(/^[AEIOU]/.test(n)?"an":"a")+" "),c=r.measureText(l).width,d=540-(c+r.measureText(n).width)/2;return r.textAlign="left",r.fillStyle=H.ink,r.fillText(l,d,800),r.fillStyle=H.arch[n],r.fillText(n,d+c,800),r.textAlign="center",i||(X(r,600,46),r.fillStyle=H.ink,r.fillText("on my way to Peak Performer",540,872)),X(r,600,36),r.fillStyle=H.slateDark,r.fillText("Dental Fitness",540,972),X(r,400,28),r.fillStyle=H.muted,r.fillText(o,540,1018),a})}(e).then(function(e){return new Promise(function(t){e.toBlob(t,"image/png")})}).then(function(e){const t="My-Dental-Fitness-Archetype.png";let a=null;try{a=new File([e],t,{type:"image/png"})}catch(e){}if(a&&navigator.canShare&&navigator.canShare({files:[a]}))return navigator.share({files:[a],title:"My Dental Archetype"}).catch(function(a){a&&"AbortError"!==a.name&&ne(e,t)});ne(e,t)})}!function(){if("1"!==new URLSearchParams(window.__dfsSearch).get("test")){var e=document.getElementById("app"),t=document.getElementById("live"),a=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,r={screen:"welcome",avatar:null,step:0,answers:{},motivation:null,warnings:[],local:null,person:{firstName:"",email:""},clutchOptIn:!1,result:null,busy:!1},o=[{key:"firefighter",name:"Firefighter",line:"Only seeks dental care when something hurts"},{key:"upkeeper",name:"Upkeeper",line:"Practices good daily hygiene and keeps regular dental visits"},{key:"glow",name:"Glow Getter",line:"Cares most about their smile, breath and how they come across to others"},{key:"peak",name:"Peak Performer",line:"Cares for all of the above, and knows a healthy, resilient mouth supports whole-body health and confidence"}],d='<svg class="check" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="12" fill="#B8540F"/><path d="M6.5 12.5l3.5 3.5 7.5-8" stroke="#fff" stroke-width="2.6" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>',p='<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 0 L14.5 9.5 L24 12 L14.5 14.5 L12 24 L9.5 14.5 L0 12 L9.5 9.5Z" fill="currentColor"/></svg>',h={welcome:function(){return'<div class="coach-hero"><span class="sparkle s1">'+p+'</span><span class="sparkle s2">'+p+'</span><span class="sparkle s3">'+p+'</span><img class="headshot" src="'+f(l)+'" alt="Dr. Camesia Matthews" width="150" height="150"></div><h1 tabindex="-1">What\'s your Dental Fitness Archetype?</h1><p class="byline">Presented by Dr. Camesia Matthews, DDS, founder and clinical director of Clutch Dental Studio and author of <cite>The Dental Fitness Advantage</cite></p><p class="lead">Your mouth can be trained, just like your body.</p><p class="definition"><strong>Dental Fitness</strong> means training your mouth to work for you, not against you, so it supports your whole-body health, performance and confidence.</p><button class="btn" data-go="mindset">Meet the Dental Fitness archetypes</button>'},mindset:function(){return'<h1 tabindex="-1">These are the Dental Fitness archetypes</h1><p>Your archetype reflects your mindset, and your mindset sets your goals and shapes your outcomes.</p><ul class="cards stagger">'+o.map(function(e,t){return'<li class="card arch-card arch-'+e.key+'" style="--i:'+t+'"><strong>'+e.name+":</strong> "+e.line+"</li>"}).join("")+'</ul><button class="btn" data-go="training">What does it take to be a Peak Performer?</button>'+g("welcome")},training:function(){return'<h1 tabindex="-1">Peak Performers are made, not born</h1><p>Peak Performers know the mouth can be trained to be resilient, so it holds up under the stresses of life. They train it by taking consistent action to:</p><ol class="pp-list"><li>Build oral health skills</li><li>Develop healthy habits (and break unhealthy ones)</li><li>Listen to their coaches: their dental professionals</li></ol><p>Do these things and you stop being a Firefighter, you don\'t stop at Upkeeper, and you go beyond Glow Getter.</p><button class="btn" data-go="avatar">I\'m ready to discover my archetype</button>'+g("mindset")},avatar:function(){return'<h1 tabindex="-1">Choose your avatar</h1><div class="avatar-grid" role="radiogroup" aria-label="Choose your avatar">'+E.map(function(e){var t=r.avatar===e.id;return'<button type="button" class="avatar-option'+(t?" selected":"")+'" role="radio" aria-checked="'+t+'" data-avatar="'+e.id+'" aria-label="'+f(e.label+": "+e.alt)+'">'+U(e.id,"now")+"<span>"+e.label+"</span></button>"}).join("")+'</div><p class="prompt" id="avatar-prompt" role="alert" hidden>Pick an avatar to continue.</p><button class="btn" data-action="start">Start my assessment</button>'+g("training")},step:function(){var e=k[r.step],t=A(r.step+1)+'<h1 tabindex="-1" class="question">'+f(e.title)+'</h1><p class="grid-prompt">'+f(e.prompt)+'</p><div class="grid-rows">';e.rows.forEach(function(a,n){var o=r.answers[a.id];t+='<fieldset class="grid-row'+(void 0!==o?" done":"")+'" style="--i:'+n+'"><legend>'+f(a.label)+"</legend>"+(a.help?'<p class="grid-help">'+f(a.help)+"</p>":"")+'<div class="grid-opts grid-opts-'+e.options.length+'">'+e.options.map(function(e){var t=o===e.value;return'<button type="button" class="grid-opt'+(t?" on":"")+'" aria-pressed="'+t+'" data-row="'+a.id+'" data-value="'+e.value+'">'+f(e.label)+"</button>"}).join("")+"</div>"+(a.na?'<button type="button" class="grid-opt grid-na'+(null===o?" on":"")+'" aria-pressed="'+(null===o)+'" data-row="'+a.id+'" data-value="na">'+f(a.na)+"</button>":"")+"</fieldset>"});var a=L();return t+'</div><div class="grid-cta"><button class="btn" data-action="step-next"'+(a?"":' aria-disabled="true"')+'>Next</button><p class="grid-note" id="grid-note" role="status">'+(a?"Nice work.":"Answer every row to continue.")+'</p></div><button type="button" class="back-link" data-action="step-back">Back</button>'},motivation:function(){return A(4)+'<h1 tabindex="-1" class="question" id="q-text">'+f(w.prompt)+'</h1><div class="options" role="radiogroup" aria-labelledby="q-text">'+w.options.map(function(e,t){var a=r.motivation===e.value;return'<button type="button" class="option'+(a?" selected":"")+'" role="radio" aria-checked="'+a+'" data-motivation="'+t+'"><span>'+f(e.label)+"</span>"+d+"</button>"}).join("")+"</div>"+'<button type="button" class="back-link" data-action="step-back">Back</button>'},waitlist:function(){var e='<h1 tabindex="-1">Assessment complete</h1>';return null===r.local?e+'<p class="tap-question" id="local-q">Do you live in Massachusetts or southern New Hampshire?</p><div class="yes-no" role="group" aria-labelledby="local-q"><button class="btn" data-local="yes">Yes</button><button class="btn" data-local="no">No</button></div><button type="button" class="back-link" data-action="to-motivation">Back</button>':e+='<p>Enter your email to see your Dental Fitness Score and archetype. We\'ll email you your results and Playbook too.</p><div class="form-slot"><form id="own-form" novalidate><label for="f-name">First name</label><input id="f-name" name="FIRSTNAME" type="text" autocomplete="given-name" required value="'+f(r.person.firstName)+'" aria-describedby="f-name-err"><p class="field-error" id="f-name-err" hidden>Enter your first name.</p><label for="f-email">Email</label><input id="f-email" name="EMAIL" type="email" autocomplete="email" inputmode="email" required value="'+f(r.person.email)+'" aria-describedby="f-email-err"><p class="field-error" id="f-email-err" hidden>Enter a valid email address.</p>'+(r.local?'<label class="tick"><input type="checkbox" name="clutch"'+(r.clutchOptIn?" checked":"")+"><span>Also add me to the Clutch Dental Studio waitlist. Opening January 2027 in Acton, MA.</span></label>":"")+'<p class="prompt" id="form-error" role="alert" hidden>Something went wrong. Try again.</p><p class="consent">By clicking See my results, you agree to receive emails from Clutch Dental Enterprises, PLLC and its subsidiaries, including your results and Playbook. You can unsubscribe anytime.</p><button class="btn" type="submit">See my results</button></form></div><button type="button" class="back-link" data-action="change-local">Back</button>'},calculating:function(){return'<div class="calculating">'+O("clipboard")+'<h1 tabindex="-1">Calculating your results</h1><div class="dots" aria-hidden="true"><i></i><i></i><i></i></div></div>'},score:function(){var e,t=r.result,n="Peak Performer"===t.archetype;return'<div class="duo">'+U(r.avatar,"now")+O("stand")+'</div><div class="result-card arch-bg-'+(e=t.archetype,o.filter(function(t){return t.name===e})[0].key+'"><p>Your Dental Archetype</p><h1 tabindex="-1">')+t.archetype+'</h1></div><div class="tiles"><div class="tile"><p>Dental Fitness Score</p><strong id="score-num" data-to="'+t.score+'">'+(a?t.score:0)+'</strong></div><div class="tile"><p>Zone</p><strong class="zone-name">'+t.zone+'</strong></div></div><ul class="zones" aria-label="Zone scale">'+C.map(function(e){return"<li"+(e.name===t.zone?' class="on" aria-current="true"':"")+"><strong>"+e.name+":</strong> "+e.range+"</li>"}).join("")+'</ul><p class="message">'+f($[t.archetype])+"</p>"+(t.peakMindset?'<p class="message peak-note">'+f(F.mindset)+"</p>":"")+(t.peakHabits?'<p class="message peak-note">'+f(F.habits)+"</p>":"")+'<button class="btn" data-go="'+(n?"peak":"path")+'">'+(n?"See my Playbook":"See my path to Peak Performer")+"</button>"},path:function(){var e=r.result;return'<h1 tabindex="-1" class="sr-only">Your path to Peak Performer</h1><div class="panels"><div class="panel">'+U(r.avatar,"now")+"<p>You now ("+e.archetype+')</p></div><span class="arrow" aria-hidden="true">→</span><div class="panel panel-peak">'+U(r.avatar,"peak")+'<p>You as a Peak Performer</p></div></div><svg class="path-line" viewBox="0 0 320 36" role="img" aria-label="Progress line from you now, through 3 Peak Performer Habits, to you as a Peak Performer"><line class="path-dash" x1="16" y1="18" x2="304" y2="18" pathLength="100"/><circle class="dot dot-start" cx="16" cy="18" r="9" style="--i:0"/><circle class="dot dot-habit" cx="88" cy="18" r="8" style="--i:1"/><circle class="dot dot-habit" cx="160" cy="18" r="8" style="--i:2"/><circle class="dot dot-habit" cx="232" cy="18" r="8" style="--i:3"/><circle class="dot dot-end" cx="304" cy="18" r="11" style="--i:4"/></svg><h2>Your Playbook: 3 Peak Performer Habits</h2><ol class="habits">'+e.habits.map(function(e,t){return'<li class="card habit" style="--i:'+t+'"><span class="num">'+(t+1)+"</span><div><strong>"+f(q[e].habit)+"</strong><span>"+f(q[e].drill)+"</span></div></li>"}).join("")+"</ol>"+y()+v()},peak:function(){var e=q[r.result.habits[0]];return'<div class="duo duo-peak">'+U(r.avatar,"peak"
)+O("cheer")+'</div><h1 tabindex="-1">Staying a Peak Performer takes training</h1><ul class="cards stagger"><li class="card" style="--i:0"><strong>Keep your drills:</strong> your full routine, even on busy days</li><li class="card" style="--i:1"><strong>Sharpen your skills:</strong> build on your lowest-scoring habit<div class="inner-habit"><strong>'+f(e.habit)+"</strong><span>"+f(e.drill)+'</span></div></li><li class="card" style="--i:2"><strong>Keep learning:</strong> a new Dental Fitness insight each week from your Coach</li></ul>'+y()+v()}},u={step:function(){D(),t.textContent="Step "+(r.step+1)+" of 4. "+k[r.step].title+". "+k[r.step].prompt},motivation:function(){D(),t.textContent="Step 4 of 4. "+w.prompt},calculating:function(){setTimeout(function(){P("score")},a?600:1300)},score:function(){var e=document.getElementById("score-num"),t=Number(e.dataset.to);if(!a){var n=null,o=function(a){if("score"===r.screen){null===n&&(n=a);var i=Math.min(1,(a-n)/1100);e.textContent=Math.round(t*(1-Math.pow(1-i,3))),i<1&&requestAnimationFrame(o)}};setTimeout(function(){requestAnimationFrame(o)},500)}},path:function(){ie(b()).catch(function(){})},peak:function(){ie(b()).catch(function(){})}};e.addEventListener("click",function(t){var a=t.target.closest("[data-go],[data-back],[data-avatar],[data-action],[data-row],[data-motivation],[data-local]");if(a){if(a.dataset.go)return P(a.dataset.go);if(a.dataset.back)return P(a.dataset.back,!0);if(a.dataset.row)return function(t){var a=t.dataset.row,n=t.dataset.value;r.answers[a]="na"===n?null:Number(n);var o=t.closest(".grid-row");o.querySelectorAll(".grid-opt").forEach(function(e){var a=e===t;e.classList.toggle("on",a),e.setAttribute("aria-pressed",String(a))}),o.classList.add("done"),o.classList.remove("just-done"),o.offsetWidth,o.classList.add("just-done");var i=L(),s=e.querySelector('[data-action="step-next"]');i?s.removeAttribute("aria-disabled"):s.setAttribute("aria-disabled","true"),document.getElementById("grid-note").textContent=i?"Nice work.":"Answer every row to continue."}(a);if(void 0!==a.dataset.motivation)return n=a,void(r.busy||(r.motivation=w.options[Number(n.dataset.motivation)].value,e.querySelectorAll(".option").forEach(function(e){var t=e===n;e.classList.toggle("selected",t),e.setAttribute("aria-checked",String(t))}),r.busy=!0,setTimeout(function(){r.busy=!1,P("waitlist")},400)));var n;if(a.dataset.local)return r.local="yes"===a.dataset.local,P("waitlist");if(a.dataset.avatar)return r.avatar=a.dataset.avatar,e.querySelectorAll(".avatar-option").forEach(function(e){var t=e===a;e.classList.toggle("selected",t),e.setAttribute("aria-checked",String(t))}),void(document.getElementById("avatar-prompt").hidden=!0);switch(a.dataset.action){case"start":return r.avatar?(r.step=0,r.lastProgress=0,P("step")):void(document.getElementById("avatar-prompt").hidden=!1);case"step-next":if(r.busy)return;return Q();case"step-back":if(r.busy)return;return 0===r.step?P("avatar",!0):(r.step--,P("step",!0));case"to-motivation":return P("motivation",!0);case"change-local":var o=document.getElementById("own-form");return o&&(r.person={firstName:o.elements.FIRSTNAME.value.trim(),email:o.elements.EMAIL.value.trim()}),r.local=null,P("waitlist",!0);case"download":case"share":var i=document.getElementById("export-error");i.hidden=!0;var s="download"===a.dataset.action?oe:se;return a.disabled=!0,s(b()).catch(function(){i.hidden=!1}).then(function(){a.disabled=!1})}}}),e.addEventListener("submit",function(e){"own-form"===e.target.id&&(e.preventDefault(),M(e.target))}),e.addEventListener("keydown",function(e){var t=e.target.closest("[role=radio]");if(t&&!(["ArrowRight","ArrowLeft","ArrowDown","ArrowUp"].indexOf(e.key)<0)){var a=Array.prototype.slice.call(t.parentNode.querySelectorAll("[role=radio]")),r=t.classList.contains("avatar-option"),n="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:"ArrowDown"===e.key?r?2:1:r?-2:-1;a[(a.indexOf(t)+n+a.length)%a.length].focus(),e.preventDefault()}}),P("welcome")}function f(e){return String(e).replace(/[&<>"]/g,function(e){return{"&":"&","<":"<",">":">",'"':"""}[e]})}function m(){return'<footer class="site-footer"><p>Created by Clutch Dental Enterprises, PLLC · <a href="'+f(c(n)?n:"#")+'" data-placeholder="[PRIVACY_POLICY_URL]">Privacy</a></p><p>This assessment is for education and isn\'t a diagnosis. For any concern, talk with your dentist.</p></footer>'}function g(e){return'<button type="button" class="back-link" data-back="'+e+'">Back</button>'}function b(){return{firstName:r.person.firstName,avatar:r.avatar,result:r.result,warnings:r.warnings.slice()}}function y(){var e=ae(r.warnings);if(!e.length)return"";var t=e.filter(function(e){return e.urgent}),a=e.filter(function(e){return!e.urgent}),n='<div class="warning-box">';return t.forEach(function(e){n+="<p><strong>"+f(e.bold)+"</strong> "+f(e.text)+"</p>"}),a.length&&(n+='<p class="warning-title">Check with your dentist about:</p><ul>'+a.map(function(e){return"<li>"+f(e.text)+"</li>"}).join("")+"</ul>"),n+"</div>"}function v(){var e='<button class="btn" data-action="download">Download my results</button><button class="btn btn-secondary" data-action="share">Share my archetype</button><p class="prompt" id="export-error" role="alert" hidden>Something went wrong. Try again.</p>';return r.local&&c(i)&&(e+='<p class="booking"><a href="'+f(i)+'">Train with Dr. Matthews at Clutch Dental Studio.</a></p>'),e}function P(a,n){r.screen=a,e.innerHTML='<section class="screen screen-'+a+(n?" from-back":"")+'">'+h[a]()+"</section>"+m(),window.scrollTo(0,0);var o=e.querySelector("h1");o&&(o.focus({preventScroll:!0}),t.textContent=o.textContent),u[a]&&u[a]()}function A(e){return'<div class="progress-row"><span class="progress-count">Step '+e+' of 4</span><div class="progress" role="progressbar" aria-label="Assessment progress" aria-valuemin="0" aria-valuemax="4" aria-valuenow="'+e+'"><div class="progress-fill" style="width:'+(r.lastProgress||0)+'%" data-to="'+25*e+'"></div></div></div>'}function D(){var t=e.querySelector(".progress-fill"),a=Number(t.dataset.to);r.lastProgress=a,requestAnimationFrame(function(){requestAnimationFrame(function(){t.style.width=a+"%"})})}function L(){return k[r.step].rows.every(function(e){return void 0!==r.answers[e.id]})}function Q(){if(L()){r.busy=!0;var t=function(){r.busy=!1,r.step<k.length-1?(r.step++,P("step")):(r.step=k.length,P("motivation"))};S[r.step]?function(e,t){var a=document.createElement("div");a.className="coach-note",a.setAttribute("role","status"),a.innerHTML='<button type="button" class="coach-note-inner" aria-label="'+f(e)+' Tap to dismiss.">'+O("point")+'<span class="bubble">'+f(e)+"</span></button>",document.body.appendChild(a);var r=!1,n=function(){r||(r=!0,clearTimeout(o),a.remove(),t())},o=setTimeout(n,1500);a.addEventListener("click",n)}(S[r.step],t):t()}else{var n=Array.prototype.filter.call(e.querySelectorAll(".grid-row"),function(e){return!e.classList.contains("done")})[0];n&&(n.scrollIntoView({behavior:a?"auto":"smooth",block:"center"}),n.classList.add("needs-answer"),n.querySelector("button").focus({preventScroll:!0}))}}function M(e){if(!r.busy){var t=e.elements.FIRSTNAME,a=e.elements.EMAIL,n=t.value.trim().length>0,o=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(a.value.trim());if(document.getElementById("f-name-err").hidden=n,t.setAttribute("aria-invalid",String(!n)),document.getElementById("f-email-err").hidden=o,a.setAttribute("aria-invalid",String(!o)),document.getElementById("form-error").hidden=!0,!n)return t.focus();if(!o)return a.focus();r.person={firstName:t.value.trim(),email:a.value.trim()},r.clutchOptIn=!(!e.elements.clutch||!e.elements.clutch.checked);var i,l=x((i={motivation:r.motivation},k.forEach(function(e){e.rows.forEach(function(e){var t=r.answers[e.id];i[e.id]=null==t?null:e.reverse?3-t:t})}),i)),c=e.querySelector("button[type=submit]");r.busy=!0,c.disabled=!0,_(function(e,t,a){const r={FIRSTNAME:e.firstName,EMAIL:e.email,DF_SOURCE:(new URLSearchParams(window.__dfsSearch).get("src")||"direct").replace(/[^a-z0-9-]/gi,"").slice(0,40)||"direct",DF_LOCAL:a.local?"yes":"no",DF_CLUTCH_OPTIN:a.local&&a.clutchOptIn?"yes":"no",DF_ARCHETYPE:t.archetype,DF_HABIT_1:t.habits[0]||"",DF_HABIT_2:t.habits[1]||"",DF_HABIT_3:t.habits[2]||""};return s&&(r.DF_SCORE=String(t.score),r.DF_ZONE=t.zone),r}(r.person,l,{local:r.local,clutchOptIn:r.clutchOptIn})).then(function(){r.busy=!1,r.result=l,P("calculating")}).catch(function(){r.busy=!1,c.disabled=!1,document.getElementById("form-error").hidden=!1})}}}();const le=[{id:"T1",name:"All top answers, Peak Performer mouth",a:{motivation:"Peak Performer",q1:3,q2:3,q11:3,q3:3,q10:3,q12:3,q6:3,q8:3,q9:3,q13:3,q5:3,q7:3,q15:3,q17:3},score:100,zone:"Clutch",archetype:"Peak Performer",habits:["Q1"]},{id:"T2",name:"All lowest answers",a:{motivation:"Firefighter",q1:0,q2:0,q11:0,q3:0,q10:0,q12:0,q6:0,q8:0,q9:0,q13:0,q5:0,q7:0,q15:0,q17:0},score:3,zone:"Getting started",archetype:"Firefighter",habits:["Q1","Q2","Q3"]},{id:"T3",name:"Strong routine, no extras",a:{motivation:"Upkeeper",q1:3,q2:3,q11:0,q3:2,q10:3,q12:1,q6:3,q8:0,q9:null,q13:null,q5:3,q7:0,q15:3,q17:1.5},score:71,zone:"Consistent",archetype:"Upkeeper",habits:["Q7","Q8","Q11"]},{id:"T4",name:"Same person, after 3 weeks",a:{motivation:"Upkeeper",q1:3,q2:3,q11:3,q3:2,q10:3,q12:2,q6:3,q8:3,q9:null,q13:null,q5:3,q7:0,q15:3,q17:1.5},score:86,zone:"Clutch",archetype:"Upkeeper",habits:["Q7","Q17","Q3"]},{id:"T5",name:"Same, picks Peak Performer mouth",a:{motivation:"Peak Performer",q1:3,q2:3,q11:3,q3:2,q10:3,q12:2,q6:3,q8:3,q9:null,q13:null,q5:3,q7:0,q15:3,q17:1.5},score:88,zone:"Clutch",archetype:"Peak Performer",habits:["Q7"]},{id:"T6",name:"Smile-first, skips care",a:{motivation:"Glow Getter",q1:1,q2:1,q11:3,q3:1,q10:3,q12:3,q6:0,q8:0,q9:null,q13:3,q5:0,q7:0,q15:null,q17:null},score:43,zone:"Getting started",archetype:"Glow Getter",habits:["Q5","Q6","Q7"]},{id:"T7",name:"Glow Getter with strong routine",a:{motivation:"Glow Getter",q1:3,q2:3,q11:3,q3:2,q10:3,q12:3,q6:3,q8:0,q9:null,q13:3,q5:3,q7:0,q15:3,q17:3},score:85,zone:"Clutch",archetype:"Glow Getter",habits:["Q7","Q8","Q3"]},{id:"T8",name:"Avoids the dentist",a:{motivation:"Firefighter",q1:2,q2:1,q11:0,q3:1,q10:2,q12:0,q6:0,q8:0,q9:null,q13:null,q5:0,q7:0,q15:0,q17:null},score:24,zone:"Getting started",archetype:"Firefighter",habits:["Q5","Q6","Q7"]},{id:"T9",name:"Peak mindset, habits not there",a:{motivation:"Peak Performer",q1:2,q2:2,q11:1,q3:1,q10:3,q12:1,q6:3,q8:0,q9:0,q13:null,q5:3,q7:0,q15:3,q17:3},score:63,zone:"Building",archetype:"Upkeeper",habits:["Q7","Q8","Q9"]},{id:"T10",name:"Top answers (was slow bounce-back)",a:{motivation:"Peak Performer",q1:3,q2:3,q11:3,q3:3,q10:3,q12:3,q6:3,q8:3,q9:3,q13:3,q5:3,q7:3,q15:3,q17:3},score:100,zone:"Clutch",archetype:"Peak Performer",habits:["Q1"]},{id:"T11",name:'Many "doesn\'t apply" answers',a:{motivation:"Upkeeper",q1:3,q2:2,q11:2,q3:2,q10:3,q12:2,q6:3,q8:3,q9:null,q13:null,q5:3,q7:3,q15:null,q17:null},score:90,zone:"Clutch",archetype:"Upkeeper",habits:["Q2","Q11","Q12"]},{id:"T12",name:"Comfort first, strong routine",a:{motivation:"Firefighter",q1:3,q2:2,q11:1,q3:2,q10:3,q12:2,q6:3,q8:0,q9:null,q13:null,q5:3,q7:0,q15:3,q17:1.5},score:68,zone:"Building",archetype:"Upkeeper",habits:["Q7","Q8","Q11"]}];function ce(e){return le.map(t=>{let a,r=null;try{a=e(t.a)}catch(e){r=String(e)}const n=!r&&a.score===t.score&&a.zone===t.zone&&a.archetype===t.archetype&&a.habits.join(",")===t.habits.join(",");return{t:t,got:a,error:r,pass:n}})}(function(){if("1"===new URLSearchParams(window.__dfsSearch).get("test")){var e=document.getElementById("app"),t=document.getElementById("test-view");e&&(e.hidden=!0),t.hidden=!1;var a=ce(x),r=a.filter(function(e){return e.pass}).length,n=function(e,t,a){var r=document.createElement(e);return r.textContent=t,a&&(r.className=a),r},o=n("h1","Scoring self-test"),i=n("p",r+" of "+a.length+" passed",r===a.length?"test-pass":"test-fail");i.id="test-summary";var s=document.createElement("table");s.className="test-table";var l=document.createElement("tr");["#","Case","Result","Score","Zone","Archetype","Habits"].forEach(function(e){l.appendChild(n("th",e))}),s.appendChild(l),a.forEach(function(e){var t=document.createElement("tr"),a=e.got||{},r=function(e,t){return e===t?String(e):String(e)+" (expected "+t+")"};if(t.appendChild(n("td",e.t.id)),t.appendChild(n("td",e.t.name)),t.appendChild(n("td",e.pass?"PASS":"FAIL",e.pass?"test-pass":"test-fail")),e.error){var o=n("td",e.error);o.colSpan=4,t.appendChild(o)}else t.appendChild(n("td",r(a.score,e.t.score))),t.appendChild(n("td",r(a.zone,e.t.zone))),t.appendChild(n("td",r(a.archetype,e.t.archetype))),t.appendChild(n("td",r(a.habits.join(", "),e.t.habits.join(", "))));s.appendChild(t)}),t.appendChild(o),t.appendChild(i),t.appendChild(s)}})()}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}();