.smile-check-page {
    --smile-shadow: 0 24px 70px rgba(16, 47, 79, 0.11);
    --smile-focus: 0 0 0 3px #fff, 0 0 0 6px rgba(23, 105, 170, 0.55);
    color: var(--color-ink-strong);
    overflow-x: clip;
}

.smile-check-page [hidden] {
    display: none !important;
}

/* The compare divider is animated once in the hero; registering it lets the browser interpolate it. */
@property --smile-reveal {
    syntax: "<percentage>";
    inherits: true;
    initial-value: 50%;
}

/* Sections */

.smile-check-tool,
.smile-check-education,
.smile-check-scope,
.smile-check-process,
.smile-check-faq {
    padding: var(--public-section-y) 0;
}

.smile-check-tool,
.smile-check-scope,
.smile-check-process {
    background: var(--color-surface-soft);
}

.smile-check-education,
.smile-check-faq {
    background: var(--color-surface-warm);
}

.smile-check-scope {
    padding-bottom: clamp(28px, 3.5vw, 44px);
}

.smile-check-process {
    padding-top: clamp(28px, 3.5vw, 44px);
}

/* Hero: the copy sits next to a live before/after sample of what the tool does. */

.smile-check-page .article-hero-grid.smile-check-hero {
    align-items: center;
}

.smile-check-hero__cta {
    margin-top: 28px;
}

.smile-check-demo {
    margin: 0;
    min-width: 0;
}

.smile-check-compare--demo {
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(16, 47, 79, 0.2);
    max-width: none;
}

.smile-check-compare--demo .smile-check-compare__image {
    height: 100%;
    object-fit: cover;
}

.smile-check-compare--demo:not(.is-touched) {
    animation: smile-demo-sweep 2600ms cubic-bezier(0.65, 0, 0.35, 1) 600ms both;
}

@keyframes smile-demo-sweep {
    0% {
        --smile-reveal: 50%;
    }
    35% {
        --smile-reveal: 84%;
    }
    72% {
        --smile-reveal: 22%;
    }
    100% {
        --smile-reveal: 50%;
    }
}

.smile-check-demo figcaption {
    color: var(--color-muted);
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0.9rem 0 0;
    max-width: 52ch;
}

/* Before/after compare (hero sample and the visitor's own result) */

.smile-check-compare {
    --smile-reveal: 50%;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-line-soft);
    border-radius: var(--tool-card-radius);
    isolation: isolate;
    margin: 0 auto;
    max-width: 600px;
    overflow: hidden;
    position: relative;
    user-select: none;
}

.smile-check-compare__image {
    display: block;
    height: auto;
    width: 100%;
}

.smile-check-compare__image--after {
    clip-path: inset(0 0 0 var(--smile-reveal));
    inset: 0;
    position: absolute;
}

.smile-check-compare__divider {
    background: #fff;
    bottom: 0;
    box-shadow: 0 0 0 1px rgba(16, 47, 79, 0.16);
    left: var(--smile-reveal);
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translateX(-1px);
    width: 2px;
    z-index: 1;
}

.smile-check-compare__handle {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(16, 47, 79, 0.28);
    color: var(--color-primary);
    display: inline-flex;
    height: 46px;
    justify-content: center;
    left: clamp(24px, var(--smile-reveal), calc(100% - 24px));
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    z-index: 2;
}

.smile-check-compare__handle svg {
    height: 20px;
    stroke-width: 2.4;
    width: 20px;
}

.smile-check-compare__tag {
    background: rgba(16, 47, 79, 0.74);
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1;
    padding: 0.45rem 0.75rem;
    pointer-events: none;
    position: absolute;
    top: 0.8rem;
    z-index: 2;
}

.smile-check-compare__tag--before {
    left: 0.8rem;
}

.smile-check-compare__tag--after {
    right: 0.8rem;
}

/* The range input covers the image so the visitor drags the photo itself. It is widened by half a
   thumb on both sides, so the thumb centre lines up with the divider along the whole width. */
.smile-check-compare__control {
    inset: 0;
    margin: 0;
    position: absolute;
    z-index: 3;
}

.smile-check-compare__control input {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: ew-resize;
    height: 100%;
    left: -23px;
    margin: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    touch-action: pan-y;
    width: calc(100% + 46px);
}

.smile-check-compare__control input::-webkit-slider-runnable-track {
    background: transparent;
    height: 100%;
}

.smile-check-compare__control input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 100%;
    min-height: 600px;
    width: 46px;
}

.smile-check-compare__control input::-moz-range-thumb {
    border: 0;
    height: 100%;
    width: 46px;
}

.smile-check-compare:has(input:focus-visible) .smile-check-compare__handle {
    box-shadow: var(--smile-focus);
}

/* Tool panel */

.smile-check-flow {
    background: #fff;
    border: 1px solid var(--color-line-soft);
    border-radius: var(--tool-panel-radius);
    box-shadow: var(--smile-shadow);
}

.smile-check-stage {
    animation: smile-stage-in 320ms ease both;
    padding: var(--tool-pane-padding);
}

@keyframes smile-stage-in {
    from {
        opacity: 0;
        transform: translateY(9px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.smile-check-stage__heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.smile-check-stage__heading > span {
    align-items: center;
    background: var(--color-primary);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    margin-top: 0.1rem;
    width: 38px;
}

.smile-check-stage__heading h3 {
    color: var(--color-ink-strong);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: var(--weight-semibold);
    line-height: 1.15;
    margin: 0;
    text-wrap: balance;
}

.smile-check-stage__heading p {
    color: var(--color-muted);
    line-height: 1.55;
    margin: 0.45rem 0 0;
    max-width: 62ch;
}

/* Stage headings take focus only from script (tabindex -1) so screen readers follow the step change. */
.smile-check-page [data-smile-heading]:focus {
    outline: none;
}

.smile-check-inapp {
    align-items: flex-start;
    background: #fff8e8;
    border-bottom: 1px solid rgba(194, 125, 20, 0.25);
    border-radius: var(--tool-panel-radius) var(--tool-panel-radius) 0 0;
    color: #6d5122;
    display: flex;
    gap: 0.8rem;
    padding: 1rem var(--tool-pane-padding);
}

.smile-check-inapp > svg {
    flex: 0 0 auto;
    height: 20px;
    margin-top: 0.15rem;
    width: 20px;
}

.smile-check-inapp p {
    line-height: 1.5;
    margin: 0.25rem 0 0;
}

.smile-check-inapp__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.2rem;
}

.smile-check-inapp .smile-check-text-button {
    color: #6d5122;
    margin-top: 0.3rem;
}

/* Buttons */

.smile-check-button {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms ease;
    white-space: nowrap;
}

.smile-check-button:active {
    transform: translateY(1px);
}

.smile-check-button--secondary:hover,
.smile-check-button--secondary:focus {
    background: var(--color-primary-soft);
}

.smile-check-button svg {
    flex: 0 0 auto;
}

.smile-check-text-button {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--color-primary);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 650;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.4rem 0;
    text-decoration: none;
    touch-action: manipulation;
}

.smile-check-text-button:hover,
.smile-check-text-button:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.smile-check-text-button svg {
    height: 18px;
    width: 18px;
}

.smile-check-text-button:disabled {
    cursor: progress;
    opacity: 0.55;
    text-decoration: none;
}

.smile-check-button:focus-visible,
.smile-check-text-button:focus-visible,
.smile-check-picker:focus-within,
.smile-check-level:focus-visible,
.smile-check-chip:has(input:focus-visible) {
    outline: 3px solid rgba(23, 105, 170, 0.35);
    outline-offset: 2px;
}

/* Photo step */

.smile-check-photo {
    align-items: start;
    display: grid;
    gap: clamp(24px, 3vw, 44px);
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

/* The capture panel pairs the buttons with a sample of the one thing the check needs: visible teeth. */
.smile-check-capture {
    background: #fff;
    border: 1px solid var(--color-line-soft);
    border-radius: var(--tool-card-radius);
    box-shadow: 0 14px 34px rgba(16, 47, 79, 0.07);
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    overflow: hidden;
}

/* The sample bleeds to the panel edge so it reads as one card, not a card inside a card. */
.smile-check-capture__example {
    margin: 0;
    min-height: 230px;
    position: relative;
}

.smile-check-capture__frame {
    display: block;
    inset: 0;
    position: absolute;
}

.smile-check-capture__frame img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    width: 100%;
}

.smile-check-capture__example figcaption {
    align-items: center;
    background: linear-gradient(180deg, rgba(10, 30, 52, 0), rgba(10, 30, 52, 0.72));
    bottom: 0;
    color: #fff;
    display: flex;
    font-size: 0.8rem;
    font-weight: 650;
    gap: 0.45rem;
    left: 0;
    line-height: 1.3;
    padding: 2rem 0.9rem 0.75rem;
    position: absolute;
    right: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.smile-check-capture__example figcaption svg {
    background: var(--color-success);
    border-radius: 999px;
    color: #fff;
    flex: 0 0 auto;
    height: 18px;
    padding: 3px;
    stroke-width: 3.5;
    width: 18px;
}

.smile-check-capture__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(20px, 2.6vw, 30px);
}

.smile-check-capture__progress {
    align-items: center;
    color: var(--color-primary-dark);
    display: flex;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.6rem;
    line-height: 1.4;
    margin: 1rem 0 0;
}

.smile-check-capture__progress::before {
    animation: smile-spin 800ms linear infinite;
    border: 2.5px solid var(--color-line-soft);
    border-radius: 999px;
    border-top-color: var(--color-primary);
    content: "";
    flex: 0 0 auto;
    height: 18px;
    width: 18px;
}

@keyframes smile-spin {
    to {
        transform: rotate(360deg);
    }
}

.smile-check-photo__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.smile-check-picker {
    position: relative;
}

.smile-check-picker__input {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.smile-check-picker:has(.smile-check-picker__input:disabled) {
    cursor: progress;
    opacity: 0.6;
}

.smile-check-photo__actions[hidden] {
    display: none;
}

/* Mirrored like a phone's front camera; the captured frame itself is not mirrored. */
.smile-check-camera__video {
    aspect-ratio: 4 / 3;
    background: #0a1e34;
    border-radius: 12px;
    display: block;
    margin-bottom: 0.8rem;
    object-fit: cover;
    transform: scaleX(-1);
    width: 100%;
}

.smile-check-privacy {
    align-items: flex-start;
    color: var(--color-muted);
    display: flex;
    font-size: 0.92rem;
    gap: 0.55rem;
    line-height: 1.5;
    margin: 1rem 0 0;
}

.smile-check-privacy svg {
    color: var(--color-primary);
    flex: 0 0 auto;
    height: 17px;
    margin-top: 0.15rem;
    width: 17px;
}

.smile-check-capture__body .smile-check-privacy {
    border-top: 1px solid var(--color-line-soft);
    font-size: 0.88rem;
    margin-top: 1.3rem;
    padding-top: 1rem;
    text-wrap: pretty;
}

.smile-check-error {
    align-items: flex-start;
    background: #fdf1ef;
    border: 1px solid rgba(161, 61, 50, 0.22);
    border-radius: var(--tool-item-radius);
    color: var(--tool-error);
    display: flex;
    gap: 0.7rem;
    margin-top: 1.2rem;
    padding: 0.9rem 1rem;
}

.smile-check-error > svg {
    flex: 0 0 auto;
    height: 18px;
    margin-top: 0.15rem;
    width: 18px;
}

.smile-check-error p {
    font-weight: 620;
    line-height: 1.5;
    margin: 0;
}

.smile-check-error .smile-check-error__hint {
    color: var(--color-muted);
    font-weight: 400;
    margin-top: 0.25rem;
}

.smile-check-error .smile-check-error__whatsapp {
    color: var(--color-primary-dark);
    margin-top: 0.2rem;
}

.smile-check-tips {
    background: var(--color-surface-soft);
    border: 1px solid var(--color-line-soft);
    border-radius: var(--tool-card-radius);
    padding: var(--tool-card-padding);
}

.smile-check-tips h4,
.smile-check-notes h4 {
    color: var(--color-ink-strong);
    font-size: 1.05rem;
    font-weight: var(--weight-semibold);
    line-height: 1.3;
    margin: 0 0 1rem;
}

.smile-check-tips ul {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.smile-check-tips li {
    align-items: center;
    border-top: 1px solid var(--color-line-soft);
    color: var(--color-body);
    display: grid;
    font-size: 0.95rem;
    gap: 0.8rem;
    grid-template-columns: 36px 1fr;
    line-height: 1.45;
    padding: 0.75rem 0;
}

.smile-check-tips li:first-child {
    border-top: 0;
    padding-top: 0;
}

.smile-check-tips li:last-child {
    padding-bottom: 0;
}

.smile-check-tips__icon {
    align-items: center;
    background: #fff;
    border: 1px solid var(--color-line-soft);
    border-radius: 10px;
    color: var(--color-primary);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.smile-check-tips__icon svg {
    height: 18px;
    width: 18px;
}

/* Result step */

.smile-check-result__grid {
    align-items: start;
    display: grid;
    gap: clamp(24px, 3vw, 44px);
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

/* In the result the photo fills its column so it lines up with the step heading. */
.smile-check-preview .smile-check-compare {
    box-shadow: 0 18px 44px rgba(16, 47, 79, 0.12);
    margin: 0;
    max-width: none;
}

.smile-check-result__side {
    display: grid;
    gap: clamp(20px, 2.4vw, 28px);
}

.smile-check-levels {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    justify-content: space-between;
    margin: 1.1rem 0 0;
}

.smile-check-levels__label {
    color: var(--color-ink-strong);
    font-size: 0.92rem;
    font-weight: var(--weight-semibold);
}

.smile-check-levels__buttons {
    background: var(--color-surface-soft);
    border: 1px solid var(--color-line-soft);
    border-radius: 999px;
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
}

.smile-check-level {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--color-primary-dark);
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    min-height: 44px;
    padding: 0.45rem 1.1rem;
    touch-action: manipulation;
    transition: background-color 160ms ease, color 160ms ease;
}

.smile-check-level:hover {
    background: var(--color-primary-soft);
}

.smile-check-level[aria-pressed="true"] {
    background: var(--color-primary);
    box-shadow: 0 4px 12px rgba(23, 105, 170, 0.28);
    color: #fff;
}

.smile-check-notes {
    background: var(--color-surface-soft);
    border: 1px solid var(--color-line-soft);
    border-radius: var(--tool-card-radius);
    padding: var(--tool-card-padding);
}

.smile-check-notes ul {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.smile-check-notes li {
    border-top: 1px solid var(--color-line-soft);
    color: var(--color-body);
    line-height: 1.55;
    padding: 0.8rem 0 0.8rem 1.4rem;
    position: relative;
}

.smile-check-notes li:first-child {
    border-top: 0;
    padding-top: 0.2rem;
}

.smile-check-notes li::before {
    background: var(--color-primary);
    border-radius: 999px;
    content: "";
    height: 7px;
    left: 0.15rem;
    position: absolute;
    top: 1.38rem;
    width: 7px;
}

.smile-check-notes li:first-child::before {
    top: 0.78rem;
}

.smile-check-notes__caveat {
    border-top: 1px solid var(--color-line-soft);
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0.6rem 0 0;
    padding-top: 0.9rem;
}

.smile-check-contact {
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(47, 143, 211, 0.12), transparent 60%),
        var(--color-primary-soft);
    border: 1px solid #cfe3f3;
    border-radius: var(--tool-card-radius);
    padding: clamp(22px, 3vw, 36px);
}

.smile-check-interests {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.smile-check-interests legend {
    color: var(--color-ink-strong);
    font-size: 0.92rem;
    font-weight: var(--weight-semibold);
    margin-bottom: 0.7rem;
}

.smile-check-interests__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.smile-check-chip {
    align-items: center;
    background: #fff;
    border: 1px solid var(--color-line-soft);
    border-radius: 999px;
    color: var(--color-ink-strong);
    cursor: pointer;
    display: inline-flex;
    gap: 0.5rem;
    margin: 0;
    min-height: 44px;
    padding: 0.45rem 1rem;
    touch-action: manipulation;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.smile-check-chip input {
    accent-color: var(--color-primary);
    height: 18px;
    margin: 0;
    width: 18px;
}

.smile-check-chip:has(input:checked) {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: inset 0 0 0 1px var(--color-primary);
}

/* Contact buttons stack at full width so long translations wrap centred instead of overflowing. */
.smile-check-actions {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.smile-check-actions .smile-check-button {
    line-height: 1.25;
    text-align: center;
    text-wrap: balance;
    white-space: normal;
    width: 100%;
}

.smile-check-whatsapp-hint {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.8rem 0 0;
}

/* Save and retry act on the preview, so they sit under it as a quiet pair of equal buttons. */
.smile-check-actions--minor {
    border-top: 1px solid var(--color-line-soft);
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 1.1rem;
    padding-top: 1.1rem;
}

.smile-check-actions--minor .smile-check-text-button {
    background: #fff;
    border: 1px solid var(--color-line-soft);
    border-radius: 999px;
    color: var(--color-primary-dark);
    font-size: 0.95rem;
    justify-content: center;
    line-height: 1.25;
    padding: 0.5rem 1rem;
    text-align: center;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.smile-check-actions--minor .smile-check-text-button:hover,
.smile-check-actions--minor .smile-check-text-button:focus {
    background: var(--color-primary-soft);
    border-color: #bcd6ea;
    text-decoration: none;
}

.smile-check-actions--minor .smile-check-text-button:disabled {
    background: #fff;
    border-color: var(--color-line-soft);
}

/* Status, fallbacks and disclaimer */

.smile-check-status {
    color: var(--color-primary-dark);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    padding: 0 var(--tool-pane-padding) var(--tool-pane-padding);
}

.smile-check-status:empty {
    display: none;
}

.smile-check-fallback {
    background: var(--color-primary-soft);
    border: 1px solid var(--color-line-soft);
    border-radius: var(--tool-card-radius);
    margin: var(--tool-pane-padding);
    padding: 1.4rem;
}

.smile-check-fallback p {
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.smile-check-disclaimer {
    border-radius: 0 0 var(--tool-panel-radius) var(--tool-panel-radius);
}

.smile-check-education__list li:last-child {
    padding-bottom: 0;
}

.smile-check-education__list h3 {
    text-wrap: balance;
}

.smile-check-scope__meta dt {
    line-height: 1.3;
}

.smile-check-scope__meta dt svg {
    flex: 0 0 auto;
}

.smile-check-scope__meta dd {
    line-height: 1.4;
}

/* Process: one panel holding a connected three-step track, matching the scope panel above it.
   Every marker looks the same because the list describes a sequence, not the visitor's progress. */

.smile-check-process__steps {
    --step-marker: 48px;
    --step-gap: clamp(28px, 3.5vw, 48px);
    background: #fff;
    border: 1px solid var(--color-line-soft);
    border-radius: var(--tool-panel-radius);
    box-shadow: var(--tool-panel-shadow);
    display: grid;
    gap: var(--step-gap);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: var(--tool-pane-padding);
}

/* Each step is centred in its column so the track is symmetric across the panel. */
.smile-check-process__steps li {
    min-width: 0;
    padding-top: calc(var(--step-marker) + 20px);
    position: relative;
    text-align: center;
}

/* The connector runs from this marker's edge to the next marker's edge. */
.smile-check-process__steps li:not(:last-child)::after {
    background: #bcd6ea;
    content: "";
    height: 2px;
    left: calc(50% + var(--step-marker) / 2);
    position: absolute;
    right: calc(-50% - var(--step-gap) + var(--step-marker) / 2);
    top: calc(var(--step-marker) / 2 - 1px);
}

.smile-check-process__number {
    align-items: center;
    background: var(--color-primary-soft);
    border: 2px solid var(--color-primary);
    border-radius: 999px;
    color: var(--color-primary);
    display: inline-flex;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    height: var(--step-marker);
    justify-content: center;
    left: calc(50% - var(--step-marker) / 2);
    position: absolute;
    top: 0;
    width: var(--step-marker);
}

.smile-check-process__steps h3 {
    color: var(--color-ink-strong);
    font-size: 1.2rem;
    font-weight: var(--weight-semibold);
    line-height: 1.3;
    margin: 0 0 0.5rem;
    text-wrap: balance;
}

.smile-check-process__steps p {
    color: var(--color-muted);
    line-height: 1.62;
    margin: 0 auto;
    max-width: 34ch;
}

@media (min-width: 992px) {
    .smile-check-page .article-hero-grid.smile-check-hero {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 600px);
    }
}

@media (max-width: 991px) {
    .smile-check-photo,
    .smile-check-result__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .smile-check-process__steps {
        --step-gap: 28px;
        grid-template-columns: minmax(0, 1fr);
    }

    /* The title's first line centres on the marker. */
    .smile-check-process__steps li {
        padding: 11px 0 0 calc(var(--step-marker) + 18px);
        text-align: left;
    }

    .smile-check-process__number {
        left: 0;
    }

    .smile-check-process__steps p {
        margin: 0;
    }

    .smile-check-process__steps li:not(:last-child)::after {
        bottom: calc(var(--step-gap) * -1);
        height: auto;
        left: calc(var(--step-marker) / 2 - 1px);
        right: auto;
        top: var(--step-marker);
        width: 2px;
    }

    .smile-check-compare--demo {
        border-radius: 18px;
    }
}

@media (max-width: 575px) {
    .smile-check-capture {
        grid-template-columns: minmax(0, 1fr);
    }

    /* A wide strip keeps the sample visible without pushing the buttons below the fold. */
    .smile-check-capture__example {
        aspect-ratio: 2 / 1;
        min-height: 0;
    }

    .smile-check-capture__frame img {
        object-position: 50% 45%;
    }

    .smile-check-button {
        font-size: 1rem;
        padding-inline: 1.2rem;
    }

    .smile-check-photo__actions {
        flex-direction: column;
    }

    .smile-check-photo__actions .smile-check-button {
        white-space: normal;
        width: 100%;
    }

    /* The contact panel spans the stage width and runs into the disclaimer instead of nesting a card
       inside the tool card. */
    .smile-check-result {
        padding-bottom: 0;
    }

    .smile-check-contact {
        border-bottom: 0;
        border-inline: 0;
        border-radius: 0;
        margin-inline: calc(var(--tool-pane-padding) * -1);
        padding-inline: var(--tool-pane-padding);
    }

    .smile-check-status {
        padding-top: 1rem;
    }

    .smile-check-hero__cta {
        width: 100%;
    }

    .smile-check-levels {
        display: grid;
        justify-content: stretch;
    }

    .smile-check-levels__buttons {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .smile-check-level {
        padding-inline: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .smile-check-stage,
    .smile-check-compare--demo:not(.is-touched) {
        animation: none;
    }

    .smile-check-button,
    .smile-check-level,
    .smile-check-chip {
        transition: none;
    }
}
