@font-face {
    font-family: Fraunces;
    src: url("../assets/fonts/fraunces-latin-900.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --paper: #f5ebe0;
    --cream: #fff9ee;
    --pink: #d4a09a;
    --rose: #a76862;
    --wine: #783f3a;
    --ink: #49332b;
    --muted: #775e53;
    --rule: #d7c0b2;
    --rose-rule: #b88179;
    --sans: "Segoe UI", system-ui, sans-serif;
    --display: Fraunces, Georgia, serif;
    --label: "Courier New", monospace;
    --gutter: clamp(24px, 5.5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    border-top: 4px solid var(--wine);
    background: radial-gradient(ellipse at 45% 26%, #fff8edb3, transparent 63%),
        url("../assets/images/paper.svg"), var(--paper);
    color: var(--ink);
    font: 1rem/1.5 var(--sans);
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
p, h1, h2, figure, dl, dd { margin: 0; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }

.symbol-library, .sr-only {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.icon {
    display: block;
    flex: none;
    inline-size: 1.15em;
    block-size: 1.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-width {
    inline-size: min(100% - var(--gutter) * 2, 1160px);
    margin-inline: auto;
}
.site {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: calc(100vh - 4px);
    min-height: calc(100svh - 4px);
    animation: site-in 390ms ease-out both;
}
@keyframes site-in { from { opacity: .55; } to { opacity: 1; } }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: clamp(10px, 2vh, 23px);
    border-bottom: 1px solid var(--rose-rule);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    display: grid;
    place-items: center;
    inline-size: 48px;
    block-size: 48px;
    flex: none;
    border: 1px solid var(--rose-rule);
    border-radius: 50%;
    background: #efd8cf;
    box-shadow: inset 0 0 0 3px #f7e7df;
}
.brand-name {
    font: 900 clamp(1rem, 2vw, 1.35rem)/1.05 var(--display);
    letter-spacing: -.035em;
    text-transform: uppercase;
    white-space: nowrap;
}
.brand-note {
    margin-top: 5px;
    color: var(--muted);
    font: 700 .625rem/1.15 var(--label);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.mobile-actions { display: none; }

.button {
    display: inline-flex;
    min-block-size: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: .73rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .065em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 150ms, color 150ms, border-color 150ms, box-shadow 150ms, transform 150ms;
}
.button:not([aria-disabled="true"]):not(:disabled):active { transform: translateY(1px); }
.button .icon { inline-size: 16px; block-size: 16px; }
.button-outline { background: #fff9ee66; border-color: var(--rose-rule); color: var(--wine); }
.button-outline:hover { background: #ead0c6; border-color: var(--wine); }
.button-header {
    background: #edcbc3;
    border-color: var(--rose-rule);
    color: var(--wine);
    gap: .33em;
}
.button-header[href]:hover { background: var(--wine); color: var(--cream); }
.button[aria-disabled="true"], .button:disabled { cursor: default; }
.button-header[aria-disabled="true"] { opacity: .75; }

main { display: flex; flex-direction: column; min-height: 0; }
.hero {
    --photo: clamp(315px, calc(100vh - 275px), 545px);
    --photo: clamp(315px, calc(100svh - 275px), 545px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, min(var(--photo), 53%));
    grid-template-areas: "intro photo" "details photo";
    flex: 1;
    align-content: center;
    align-items: center;
    column-gap: clamp(24px, 5vw, 76px);
    padding-block: clamp(16px, 3vh, 35px);
    padding-inline-end: 10px;
}
.hero-intro { grid-area: intro; align-self: end; min-width: 0; }
.hero-details { grid-area: details; align-self: start; min-width: 0; }
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--wine);
    font: 700 .75rem/1.25 var(--label);
    letter-spacing: .12em;
    text-transform: uppercase;
}
.eyebrow .icon { inline-size: 17px; block-size: 17px; color: var(--rose); }
.eyebrow::after { content: ""; inline-size: clamp(12px, 4vw, 50px); border-top: 1px solid var(--rose-rule); }
h1 {
    margin-top: clamp(11px, 2.2vh, 24px);
    font: 900 clamp(2.95rem, 7.45vw, 7.7rem)/.84 var(--display);
    font-optical-sizing: auto;
    letter-spacing: -.054em;
    text-transform: uppercase;
}
h1 span { display: block; white-space: nowrap; }
h1 .title-accent {
    margin-top: .08em;
    color: var(--rose);
    font-size: 1.27em;
    letter-spacing: -.042em;
}
.ticker {
    display: inline-flex;
    margin-top: clamp(13px, 2vh, 22px);
    padding: 5px 10px 4px;
    border: 1px solid var(--rose-rule);
    border-radius: 3px;
    background: #eed6cd;
    color: var(--wine);
    font: 700 .85rem/1.1 var(--label);
    letter-spacing: .07em;
}
.slogan {
    margin-top: clamp(13px, 2vh, 22px);
    font: 700 clamp(1.3rem, 2.5vw, 2.1rem)/1.14 Georgia, serif;
    letter-spacing: -.055em;
}
.description { margin-top: 6px; color: var(--muted); line-height: 1.35; }
.purchase {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: clamp(10px, 2.1vh, 22px);
}
.button-purchase {
    min-height: 47px;
    gap: 9px;
    padding-inline: 15px;
    border-color: #783f3a;
    background: #783f3a;
    color: var(--cream);
    box-shadow: 0 3px 0 #5a2d2a;
    font-size: .815rem;
}
.button-purchase img { filter: brightness(0) invert(94%) sepia(7%) saturate(723%) hue-rotate(325deg); }
.button-purchase[href]:hover { background: #5d302d; box-shadow: 0 4px 0 #3c2420; transform: translateY(-1px); }
.button-purchase[aria-disabled="true"] { background: #86544d; border-color: #86544d; }
.purchase-note { color: var(--muted); font: 700 .72rem/1.2 var(--label); }
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: clamp(15px, 2.8vh, 28px) 0 0;
    padding: 0;
    list-style: none;
}
.badges li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border: 1px dashed var(--rose-rule);
    border-radius: 3px;
    color: var(--wine);
    font: 700 .7rem/1.05 var(--label);
    letter-spacing: -.035em;
    text-transform: uppercase;
}
.badges .icon, .badges img { inline-size: 14px; block-size: 14px; }

.comparison {
    grid-area: photo;
    position: relative;
    min-width: 0;
    padding: 9px 9px 0;
    border: 1px solid var(--rose-rule);
    border-radius: 7px;
    background: var(--cream);
    box-shadow: 3px 4px 0 #d1a79d55, 0 7px 24px #5f3e3310;
}
.comparison-stage {
    --split: 50%;
    position: relative;
    isolation: isolate;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid #a08b7c;
    border-radius: 3px;
    background: #c3ad99;
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.comparison-stage:has(:focus-visible) { outline: 2px solid var(--wine); outline-offset: 3px; }
.comparison-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.comparison-after { transform: scale(1.027); transform-origin: 54% 0; }
.comparison-before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.comparison-range { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.comparison-divider {
    position: absolute;
    z-index: 2;
    inset-block: 0;
    left: var(--split);
    inline-size: 2px;
    background: var(--cream);
    box-shadow: 0 0 6px #2d1d18a0;
    transform: translateX(-50%);
    pointer-events: none;
}
.comparison-handle {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    display: grid;
    place-items: center;
    inline-size: 48px;
    block-size: 48px;
    border: 2px solid var(--cream);
    border-radius: 50%;
    background: var(--wine);
    color: var(--cream);
    box-shadow: 0 2px 8px #32231d7a;
    transform: translate(-50%, -50%);
}
.comparison-handle .icon { inline-size: 30px; block-size: 21px; stroke-width: 1.9; }
.comparison-stage[data-edge="before"] .comparison-handle { transform: translate(-25%, -50%); }
.comparison-stage[data-edge="after"] .comparison-handle { transform: translate(-75%, -50%); }
.photo-label {
    position: absolute;
    inset-block-start: 12px;
    z-index: 1;
    padding: 6px 9px 5px;
    border: 1px solid #fff9ee9e;
    border-radius: 3px;
    font: 700 .75rem/1 var(--label);
    letter-spacing: .09em;
    text-transform: uppercase;
    pointer-events: none;
}
.photo-label-before { inset-inline-start: 12px; background: var(--cream); color: var(--ink); }
.photo-label-after { inset-inline-end: 12px; background: var(--wine); color: var(--cream); }
.comparison-stage[data-edge="before"] .photo-label-before,
.comparison-stage[data-edge="after"] .photo-label-after { visibility: hidden; }
.comparison-caption {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-inline: 5px;
    color: var(--muted);
}
.comparison-caption > span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--wine);
    font: 700 .72rem/1.1 var(--label);
    letter-spacing: .07em;
    text-transform: uppercase;
}
.comparison-caption .icon { inline-size: 22px; block-size: 18px; }
.comparison-caption small { font: italic .69rem/1.1 Georgia, serif; white-space: nowrap; }
.approval-stamp {
    position: absolute;
    inset-inline-end: -14px;
    inset-block-end: 42px;
    z-index: 3;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    width: 81px;
    height: 81px;
    border: 1px solid var(--wine);
    border-radius: 50%;
    outline: 1px dashed var(--rose);
    outline-offset: -5px;
    background: #f6e4d7;
    box-shadow: 2px 3px 5px #49332b27;
    color: var(--wine);
    font: 700 .58rem/1 var(--label);
    letter-spacing: .065em;
    text-transform: uppercase;
    transform: rotate(13deg);
    pointer-events: none;
}

.patient-id {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(10px, 2.2vw, 27px);
    min-width: 0;
    padding: 10px 13px;
    border: 1px solid var(--rose-rule);
    border-radius: 5px;
    background: #fff9eead;
}
.patient-id-heading { display: flex; align-items: center; gap: 9px; }
.id-icon {
    display: grid;
    place-items: center;
    inline-size: 40px;
    block-size: 40px;
    border: 1px solid #d9b3a9;
    border-radius: 4px;
    background: #f1ddd3;
    color: var(--wine);
}
.id-icon .icon { width: 22px; height: 22px; }
.patient-id h2 { font: 900 1.02rem/1.12 var(--display); text-transform: uppercase; }
.patient-id-heading p {
    margin-top: 4px;
    color: var(--muted);
    font: 700 .66rem/1.1 var(--label);
    letter-spacing: .065em;
    text-transform: uppercase;
}
.patient-address {
    display: block;
    min-width: 0;
    padding: 8px 12px;
    overflow: hidden;
    border: 1px dashed var(--rule);
    border-radius: 3px;
    background: #f5e8dd80;
    font: 700 .875rem/1.3 var(--label);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.patient-address.is-empty { color: var(--muted); font-family: Georgia, serif; font-weight: 400; font-style: italic; }
.copy-control { position: relative; }
.button-copy {
    min-width: 99px;
    min-height: 37px;
    border-color: var(--rose-rule);
    background: #f0d4cd;
    color: var(--wine);
}
.button-copy:enabled:hover { background: #e5b7ad; border-color: var(--wine); }
.button-copy:disabled { opacity: .65; }
.button-copy.is-copied { border-color: var(--wine); background: var(--wine); color: var(--cream); }
.copy-feedback {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: min(270px, 78vw);
    border-radius: 4px;
    background: var(--ink);
    color: var(--cream);
    font: 700 .75rem/1.2 var(--label);
}
.copy-feedback:not(:empty) { padding: 9px 11px; box-shadow: 0 3px 9px #49332b35; }

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    min-height: 54px;
    padding-block: 4px 5px;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.25;
}
.footer-clinic { grid-area: 1 / 1; display: flex; flex-wrap: wrap; column-gap: 10px; row-gap: 3px; }
.footer-clinic strong { color: var(--ink); font: 700 .7rem/1.25 var(--label); text-transform: uppercase; }
.footer-clinic span { font-family: Georgia, serif; font-style: italic; }
.footer-disclaimer { justify-self: end; text-align: right; }
.socials { grid-area: 1 / 2; display: flex; align-items: center; gap: 3px; }
.social-icon {
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    border-radius: 4px;
    color: var(--ink);
    transition: color 150ms, transform 150ms;
}
.social-icon img { transition: filter 150ms; }
.social-icon[href]:hover { transform: scale(1.12); }
.social-icon[href]:hover img { filter: brightness(0) saturate(100%) invert(45%) sepia(22%) saturate(763%) hue-rotate(316deg) brightness(99%); }
.social-icon[aria-disabled="true"] { opacity: .54; }

.modal-shell {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    border: 0;
    overflow: hidden;
    background: transparent;
    color: var(--ink);
}
.modal-shell[open] { display: grid; place-items: center; }
.modal-shell::backdrop { background: #33241ec4; }
.modal-shell[open]::backdrop { animation: backdrop-in 185ms ease-out both; }
.modal-shell.is-closing::backdrop { animation: backdrop-in 155ms ease-in reverse both; }
.modal-card {
    display: flex;
    flex-direction: column;
    width: min(100%, 710px);
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 18px 68px #21161363;
    animation: modal-in 185ms ease-out both;
}
.is-closing .modal-card { animation: modal-in 155ms ease-in reverse both; }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-header {
    display: flex;
    flex: none;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: clamp(13px, 3vw, 24px) clamp(15px, 4vw, 30px);
    border-bottom: 1px solid var(--rose-rule);
}
.modal-header h2 { font: 900 clamp(1.5rem, 5vw, 3.05rem)/1 var(--display); letter-spacing: -.065em; }
.modal-close {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--rose-rule);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}
.modal-close:hover { background: #d4a09a40; }
.modal-close .icon { width: 23px; height: 23px; }
.modal-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.record-card { border: 1px solid var(--rose-rule); background: url("../assets/images/paper.svg"), var(--cream); }
.record-header { background: #eed4c9; }
.record-clinic, .case-file, .record-fields dt, .record-photos figcaption {
    color: var(--wine);
    font: 700 .75rem/1.15 var(--label);
    letter-spacing: .07em;
    text-transform: uppercase;
}
.record-clinic { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.record-content { padding: 15px clamp(15px, 4vw, 30px) 22px; }
.record-content:focus-visible { outline-offset: -4px; }
.case-file { display: inline-block; margin-bottom: 12px; padding: 5px 8px; border: 1px solid var(--rose-rule); }
.record-fields { display: grid; grid-template-columns: 1fr 1fr; border-block-start: 1px solid var(--rule); }
.record-fields div { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
.record-fields dt { margin-bottom: 3px; }
.record-fields dd { font-family: Georgia, serif; font-size: 1rem; }
.record-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr); align-items: start; gap: 17px; margin-top: 16px; }
.record-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.record-photos figure { padding: 4px; border: 1px solid var(--rule); background: #fffdf6; }
.record-photos img { width: 100%; height: auto; }
.record-photos figcaption { padding-top: 5px; text-align: center; font-size: .65rem; }
.record-story { color: var(--muted); font-size: .94rem; line-height: 1.42; }
.record-story p + p { margin-top: 8px; }
.record-stamp {
    width: max-content;
    max-width: 100%;
    margin: 10px 4px 1px auto;
    padding: 5px 10px;
    border: 3px double var(--wine);
    border-radius: 5px;
    color: var(--wine);
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-5deg);
    animation: stamp-in 300ms 85ms ease-out both;
}
.record-stamp strong, .record-stamp span { display: block; }
.record-stamp strong { font: 900 1.13rem/1.1 var(--display); }
.record-stamp span { margin-top: 2px; font: 700 .62rem/1.1 var(--label); letter-spacing: .08em; }
@keyframes stamp-in { from { opacity: 0; transform: rotate(-9deg) scale(1.06); } to { opacity: 1; transform: rotate(-5deg); } }

.chart-card { width: min(100%, 1020px); border: 1px solid #a87874; background: #251c1c; color: var(--cream); }
.chart-header { background: #382728; border-color: #6f4f4d; }
.chart-header h2 { font-size: clamp(1.45rem, 4vw, 2.5rem); }
.chart-heading { display: flex; align-items: center; gap: clamp(8px, 2vw, 13px); }
.chart-heading > .icon { width: 32px; height: 32px; color: #efbcb4; }
.chart-heading p { margin-top: 7px; color: #efbcb4; font: 700 .72rem/1.15 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.chart-card :focus-visible { outline-color: var(--cream); }
.chart-content { display: grid; gap: 12px; padding: 12px; }
.chart-display {
    display: grid;
    place-items: center;
    height: clamp(250px, calc(100vh - 200px), 610px);
    height: clamp(250px, calc(100dvh - 200px), 610px);
    overflow: hidden;
    border: 1px solid #6f4f4d;
    border-radius: 4px;
    background: #171516;
}
.chart-display:not(:has(iframe)) {
    height: clamp(220px, 52vh, 485px);
    height: clamp(220px, 52dvh, 485px);
    background: radial-gradient(ellipse at center, #69414335, transparent 70%), repeating-linear-gradient(0deg, #33252642 0 1px, transparent 1px 28px), #171516;
}
.chart-empty { display: grid; justify-items: center; gap: 11px; color: #e4c7c1; }
.chart-empty .icon { inline-size: 35px; block-size: 35px; }
.chart-display iframe { display: block; width: 100%; height: 100%; border: 0; }
.chart-link { justify-self: end; border-color: #a87874; color: var(--cream); }
.chart-link:hover { background: #694143; }

@media (max-width: 1190px) and (min-width: 861px) {
    .hero { column-gap: clamp(18px, 4.1vw, 48px); }
    h1 { font-size: clamp(2.95rem, 7vw, 6rem); }
}

@media (max-height: 785px) and (min-width: 861px) {
    .hero { padding-block: 15px; }
    .site-header { padding-block: 9px; }
    h1 { font-size: clamp(2.95rem, min(7.1vw, 13.3vh), 7.15rem); }
    .badges { margin-top: 15px; }
}

@media (max-width: 860px) {
    :root { --gutter: clamp(15px, 4.5vw, 38px); }
    .page-width {
        inline-size: min(100% - max(var(--gutter), env(safe-area-inset-left)) - max(var(--gutter), env(safe-area-inset-right)), 600px);
    }
    .site-header { padding-block: max(8px, env(safe-area-inset-top)) 8px; }
    .brand { gap: 8px; }
    .brand-mark { inline-size: 40px; block-size: 40px; }
    .brand-mark img { width: 24px; height: 24px; }
    .brand-name { font-size: clamp(1rem, 4.4vw, 1.32rem); }
    .brand-note { font-size: .59rem; }
    .header-actions { display: none; }
    .hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "intro" "photo" "details" "actions";
        gap: 0;
        padding: 13px 0 14px;
    }
    .hero-intro { text-align: center; }
    .eyebrow { justify-content: center; gap: 5px; font-size: .68rem; letter-spacing: .08em; }
    .eyebrow .icon { width: 12px; height: 12px; }
    .eyebrow::after { display: none; }
    h1 { margin-top: 9px; font-size: clamp(1.75rem, 7.55vw, 3.95rem); line-height: .92; letter-spacing: -.048em; }
    h1 span { display: inline; }
    h1 .title-accent { margin: 0 0 0 .13em; font-size: 1.10em; }
    .ticker { margin-top: 7px; padding: 4px 7px 3px; font-size: .72rem; }
    .comparison { margin-top: 10px; padding: 6px 6px 0; }
    .comparison-caption { min-height: 31px; padding-inline: 3px; }
    .comparison-caption > span { gap: 3px; font-size: .63rem; letter-spacing: .025em; }
    .comparison-caption .icon { width: 19px; }
    .approval-stamp { inset-inline-end: -7px; inset-block-end: 36px; width: 64px; height: 64px; gap: 2px; font-size: .51rem; }
    .approval-stamp img { width: 18px; height: 18px; }
    .photo-label { inset-block-start: 8px; padding: 5px 6px 4px; font-size: .65rem; }
    .photo-label-before { inset-inline-start: 8px; }
    .photo-label-after { inset-inline-end: 8px; }
    .hero-details { text-align: center; }
    .slogan { margin-top: 11px; font-size: clamp(1.27rem, 5vw, 1.85rem); }
    .description { margin-top: 3px; font-size: .9rem; }
    .purchase { justify-content: center; margin-top: 8px; }
    .button-purchase { min-height: 44px; }
    .badges { justify-content: center; gap: 4px; margin-top: 9px; }
    .badges li { gap: 3px; padding: 2px 4px; font-size: .65rem; }
    .badges .icon, .badges img { width: 12px; height: 12px; }
    .mobile-actions { grid-area: actions; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
    .mobile-actions .button { min-height: 44px; padding-inline: 5px; }
    .patient-id { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 7px; padding: 7px; }
    .patient-id-heading { grid-column: 1 / -1; }
    .id-icon { width: 31px; height: 31px; }
    .id-icon .icon { width: 18px; height: 18px; }
    .patient-id h2 { font-size: .95rem; }
    .patient-id-heading p { margin-top: 2px; font-size: .61rem; }
    .patient-address { padding: 7px; font-size: .77rem; }
    .button-copy { min-width: 75px; min-height: 44px; padding-inline: 6px; }
    .site-footer { grid-template-columns: 1fr; gap: 4px; padding-block: 4px max(9px, env(safe-area-inset-bottom)); text-align: center; }
    .socials { grid-area: 1 / 1; justify-self: center; }
    .social-icon { width: 44px; height: 44px; }
    .footer-clinic { grid-area: 2 / 1; justify-content: center; }
    .footer-disclaimer { justify-self: center; text-align: center; }
}

@media (min-width: 540px) and (max-width: 860px) {
    .hero { padding-block: 16px; }
    .comparison { width: min(100%, 500px); justify-self: center; }
}

@media (max-width: 540px) {
    .modal-shell { padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
    .record-notes { grid-template-columns: 1fr; gap: 11px; }
    .record-photos { max-width: 245px; }
    .record-fields dd { font-size: .92rem; }
    .chart-display { height: clamp(245px, calc(100dvh - 162px), 750px); }
    .chart-display:not(:has(iframe)) { height: clamp(225px, 64dvh, 560px); }
    .chart-content { padding: 7px; gap: 8px; }
    .chart-link { min-height: 44px; }
}

@media (max-width: 358px) {
    .button-purchase { padding-inline: 10px; font-size: .75rem; }
    .purchase { gap: 8px; }
    .badges li { padding-inline: 4px; }
    .badges li > :is(svg, img) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after, *::backdrop { animation: none !important; transition: none !important; }
}
