.btn,
body {
    font-family: var(--font-body)
}

.btn-capture,
.btn-primary:hover,
.preview-img-wrap {
    box-shadow: var(--shadow-md)
}

.metric-ring-wrap svg,
.score-ring svg {
    transform: rotate(-90deg);
    overflow: visible
}

.block,
.btn,
.camera-tip,
.care-card h3,
.divider,
.metric-card,
.metric-label,
.processing-text,
.results-top,
.step-header h2,
.text-center,
.upload-card {
    text-align: center
}

:root {
    --c-primary: #2c3e50;
    --c-sage: #b6cdb1;
    --c-sage-dark: #9caf88;
    --c-taupe: #af9483;
    --c-sand: #d2ab80;
    --c-beige: #e6d2b9;
    --c-brown: #735c3a;
    --c-white: #ffffff;
    --c-bg: #faf7f4;
    --c-surface: #ffffff;
    --c-border: #e8ddd4;
    --c-text: #2c3e50;
    --c-text-muted: #8a7a6e;
    --c-high: #c0392b;
    --c-medium: #d2ab80;
    --c-low: #9caf88;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', system-ui, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 5rem;
    --content-max: 860px;
    --radius-sm: 7px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(44, 62, 80, .08);
    --shadow-md: 0 8px 30px rgba(44, 62, 80, .12);
    --shadow-lg: 0 15px 50px rgba(44, 62, 80, .18)
}

*,
::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--c-primary)
}

h1 {
    font-size: clamp(1.9rem, 5vw, 2.8rem)
}

h2 {
    font-size: clamp(1.3rem, 3.5vw, 1.9rem)
}

h3 {
    font-size: 1.1rem
}

p {
    line-height: 1.7
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
}

.btn,
.btn-back {
    font-weight: 500;
    align-items: center;
    cursor: pointer
}

.container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-md)
}

.hidden {
    display: none!important
}

.form-error {
    margin: 0;
    color: #c0392b;
    font-size: .9rem;
    line-height: 1.45;
}

.btn:disabled {
    cursor: wait;
    opacity: .65;
}

.text-muted {
    color: var(--c-text-muted)
}

.step {
    z-index: 100;
}

.btn {
    display: inline-flex;
    justify-content: center;
    gap: .4em;
    padding: .75em 1.6em;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 1rem;
    line-height: 1.4;
    transition: .2s
}

.btn-back,
.divider,
.step-header,
.step.active {
    display: flex
}

.btn-outline:hover,
.btn-primary {
    background: none;
    color: var(--c-white)
}

.btn-primary:hover {
    background: #1a2836;
    transform: translateY(-1px)
}

#lead-form .btn-primary {
    background: #18242f;
    color: white;
}

.btn-secondary,
.priority-low .proc-badge {
    background: var(--c-beige);
    color: var(--c-brown)
}

.btn-back:hover,
.btn-outline {
    color: var(--c-primary)
}

.btn-secondary:hover {
    background: var(--c-sand);
    box-shadow: var(--shadow-sm)
}

.btn-outline {
    background: 0 0;
    border: 2px solid var(--c-primary)
}

.btn-large {
    padding: .7em 1.2em;
    min-height: 48px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    width: 100%
}

.btn-back,
.form-field input {
    min-height: 44px;
    font-family: var(--font-body)
}

.btn-back {
    background: 0 0;
    border: none;
    font-size: 1.1rem;
    color: #9b9b9b;
    width: 85px;
    gap: .3em;
    transition: color .2s
}

.ctaSubtitle {
    color: #f0f8ff
}

.block {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px
}

.divider {
    width: 100%;
    align-items: center;
    gap: 12px
}

.line {
    flex: 1;
    height: 1px;
    background: #ddd
}

.divider-text {
    color: #fff;
    font-size: 14px;
    padding: 0 10px
}

.btn-whatsapp {
    background: #03a33f;
    color: #f9f9f9;
    border: none;
    max-width: 320px
}

.btn-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-1px)
}

.btn-telegram {
    background: #57a3d8;
    color: #fff
}

.btn-telegram:hover {
    background: #5ba7dd
}

.lang-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    gap: 4px;
    background: rgba(44, 62, 80, .85);
    padding: 4px 6px;
    border-radius: 20px;
    backdrop-filter: blur(8px)
}

.lang-btn {
    text-decoration: none;
    background: 0 0;
    border: none;
    color: rgba(255, 255, 255, .6);
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: .04em;
    transition: .15s
}

.hero-brand,
.results-brand {
    letter-spacing: .2em;
    font-family: var(--font-heading);
    text-transform: uppercase
}

.lang-btn:hover {
    color: #fff
}

.lang-btn.active {
    background: rgba(255, 255, 255, .2);
    color: #fff
}

@media (max-width:768px) {
    .hero-video-container {
        overflow: hidden;
        max-width: 120%;
        display: block
    }
    video {
        width: 130%
    }
    img {
        max-width: 130%;
        z-index: -1
    }
}

@media (min-width:769px) {
    img,
    video {
        position: fixed
    }
    video {
        top: 0;
        left: -30%;
        width: 130%;
        height: 100%;
        object-fit: cover;
        z-index: -1
    }
}

[dir=rtl] .hero-content,
[dir=rtl] .modal,
[dir=rtl] .results-body {
    text-align: right
}

[dir=rtl] .lang-switcher {
    right: auto;
    left: 1rem
}

[dir=rtl] .obs-card {
    flex-direction: row-reverse
}

.hero-content,
.step {
    flex-direction: column
}

.step {
    display: none;
    min-height: 100vh
}

#step-results.active {
    min-height: unset;
    display: block
}

.step-header {
    margin-top: 20px;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    padding-bottom: 0;
    border-bottom: 1px solid white;
    background: var(--c-surface);
    position: sticky;
    top: 0;
    z-index: 10
}

.camera-area,
.hero-content {
    display: flex;
    gap: var(--space-md)
}

.step-header h2 {
    font-size: 1.1rem;
    margin: 0;
    flex: 1
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    align-items: center;
    margin-right: -27%
}

.export-icon,
.import-icon {
    margin-right: 5px
}

#step-processing,
#step-results,
#step-camera,
#step-preview {
    background: var(--c-surface);
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 10;
    background: var(--c-surface);
    overflow-y: auto;
    flex-direction: column;
}

#step-preview.active,
#step-processing.active,
#step-results.active,
#step-camera.active {
    display: flex;
}

.camera-area {
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md)
}

.upload-area,
.upload-divider {
    gap: var(--space-sm);
    display: flex
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 340px;
    max-height: 60vh;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4
}

#camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1)
}

.video-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8em;
    color: #fff;
    background: #000;
    text-align: center;
    padding: 0 var(--space-md);
    font-size: .9rem
}

.spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, .25);
    border-top-color: var(--c-sage);
    border-radius: 50%;
    animation: spin .8s linear infinite
}

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

.oval-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none
}

.oval-overlay svg {
    width: 100%;
    height: 100%
}

.btn-capture {
    position: absolute;
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--c-white);
    border: 4px solid var(--c-sage);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: transform .15s, box-shadow .15s
}

.btn-capture:hover {
    transform: translateX(-50%) scale(1.08)
}

.btn-capture:active {
    transform: translateX(-50%) scale(.95)
}

.upload-area {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 340px
}

.upload-card {
    width: 100%;
    background: #f4faf6;
    border: 2px dashed #abbbad;
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative
}

.preview-img-wrap,
.scan-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden
}

.upload-card:hover {
    border-color: var(--c-sage-dark);
    background: #f2ede8
}

.upload-card input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: .5rem
}

.camera-tip,
.upload-divider {
    color: black;
    font-size: .85rem
}

.upload-card p {
    color: var(--c-text-muted);
    font-size: .9rem;
    margin-top: .3em
}

.upload-divider {
    align-items: center;
    width: 100%
}

.upload-divider::after,
.upload-divider::before {
    content: '';
    flex: 1;
    height: 1px;
    background: #a1a1a1;
}

.camera-tip {
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--c-border)
}

.preview-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-md)
}

.preview-img-wrap {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 3/4;
    background: #000;
    position: relative;
}

#camera-video,
#preview-img,
#scan-img {
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

#step-processing img {
    filter: blur(7px) brightness(0.9);
}

.preview-actions {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs)
}

#step-processing {
    background: linear-gradient(#356847, #001306);
    color: var(--c-white);
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-lg)
}

.scan-wrapper {
    position: relative;
    width: 240px;
    height: 320px;
    box-shadow: var(--shadow-lg);
}

.scan-dot,
.scan-line,
.scan-overlay {
    position: absolute
}

.scan-overlay {
    inset: 0;
}

.scan-line {
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0, var(--c-sage) 30%, #fff 50%, var(--c-sage) 70%, transparent 100%);
    box-shadow: 0 0 16px var(--c-sage), 0 0 40px rgba(182, 205, 177, .5);
    animation: 2.4s ease-in-out infinite scanLine;
    top: 0
}

@keyframes scanLine {
    0% {
        top: 2%;
        opacity: 0
    }
    8%,
    92% {
        opacity: 1
    }
    100% {
        top: 98%;
        opacity: 0
    }
}

.scan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-sage);
    transform: translate(-50%, -50%);
    animation: 1.5s ease-in-out infinite pulseDot;
    box-shadow: 0 0 10px var(--c-sage)
}


/* Точки нейросети */

.scan-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    animation: neuralFlicker 1s ease-in-out infinite;
    opacity: 0.2;
}

@keyframes neuralFlicker {
    0%,
    100% {
        opacity: 0.15;
        transform: scale(0.3);
    }
    35% {
        opacity: 1;
        transform: scale(1.5);
    }
    65% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.scan-dot:nth-child(1) {
    animation-delay: 0s;
}

.scan-dot:nth-child(2) {
    animation-delay: 0.12s;
}

.scan-dot:nth-child(3) {
    animation-delay: 0.24s;
}

.scan-dot:nth-child(4) {
    animation-delay: 0.36s;
}

.scan-dot:nth-child(5) {
    animation-delay: 0.48s;
}

.scan-dot:nth-child(6) {
    animation-delay: 0.60s;
}

.scan-dot:nth-child(7) {
    animation-delay: 0.72s;
}

.scan-dot:nth-child(8) {
    animation-delay: 0.84s;
}

@keyframes pulseDot {
    0%,
    100% {
        opacity: .3;
        transform: translate(-50%, -50%) scale(1)
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.6)
    }
}

.processing-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    max-width: 340px
}

.processing-text h2 {
    color: var(--c-white);
    font-size: 1.3rem
}

.processing-hint {
    color: var(--c-sage);
    font-size: .9rem;
    min-height: 1.4em;
    transition: opacity .3s
}

.progress-track {
    width: 240px;
    height: 4px;
    background: rgba(255, 255, 255, .15);
    border-radius: 99px;
    overflow: hidden
}

.progress-fill {
    height: 100%;
    background: var(--c-sage);
    border-radius: 99px;
    width: 0%;
    transition: width .4s
}

#step-results,
.form-field input {
    background: white;
}

@media print {
    #section-plan,
    .results-top {
        page-break-inside: avoid
    }
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact
    }
    #step-camera,
    #step-hero,
    #step-processing,
    .btn-back,
    .modal-overlay,
    .results-cta,
    .results-disclaimer,
    .step-header {
        display: none!important
    }
    #section-plan,
    #step-results,
    .plan-card,
    .results-date {
        display: block!important
    }
    .section-collapsible-content {
        grid-template-rows: 1fr!important
    }
    .section-chevron {
        display: none!important
    }
    body {
        background: #fff;
        font-size: 11pt
    }
    #step-results::before {
        content: 'FBS Beauty · AI Diagnostics';
        display: block;
        font-size: 10pt;
        color: #666;
        margin-bottom: 8pt;
        border-bottom: 1pt solid #ddd;
        padding-bottom: 6pt
    }
    .results-top {
        display: block;
        padding: 1.5rem 1rem 3rem
    }
    .summary-card {
        margin: -2rem 1rem 0;
        box-shadow: none;
        border: 1px solid #e8ddd4
    }
    .results-body {
        padding: 1rem;
        gap: 1.5rem
    }
    .care-card,
    .metric-card,
    .obs-card,
    .proc-card {
        box-shadow: none;
        border: 1px solid #e8ddd4;
        page-break-inside: avoid
    }
}

.results-top {
    background: linear-gradient(160deg, var(--c-primary) 0, #3d5a4a 100%);
    color: var(--c-white);
    padding: var(--space-xl) var(--space-md) var(--space-xxl)
}

.results-brand {
    font-size: .8rem;
    color: var(--c-sage);
    margin-bottom: var(--space-xs)
}

.results-top h1 {
    color: var(--c-white);
    margin-bottom: var(--space-xs)
}

.results-date {
    color: rgba(255, 255, 255, .5);
    font-size: .8rem
}

.summary-card {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg);
    margin: calc(-1 * var(--space-xl)) var(--space-md) 0;
    position: relative;
    z-index: 1
}

.care-card,
.metric-card,
.obs-card,
.plan-card,
.proc-card {
    box-shadow: var(--shadow-lg)
}

.summary-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
    align-items: start
}

.score-ring {
    width: 90px;
    height: 90px;
    position: relative;
    flex-shrink: 0;
    margin-top: 18px;
}

.score-ring svg {
    width: 100%;
    height: 100%
}

.score-ring-track {
    fill: none;
    stroke: #ecf0e7;
    stroke-width: 12;
}

.score-ring-fill {
    fill: none;
    stroke: #95a781;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.2s
}

.score-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1
}

.score-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--c-primary);
}

.score-unit {
    font-size: .75rem;
    color: var(--c-text-muted)
}

.summary-info {
    display: flex;
    flex-direction: column;
    gap: .4em
}

.skin-type-badge {
    display: inline-block;
    background: #e6e6e6;
    color: #4d4d4d;
    border-radius: var(--radius-sm);
    padding: .2em .9em;
    font-size: .8rem;
    font-weight: 500;
    align-self: flex-start
}

.skin-age-label {
    font-size: .8rem;
    color: black;
}

.summary-text {
    font-size: .9rem;
    line-height: 1.65;
    color: black;
    margin-top: .3em
}

.skin-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4em;
    margin-bottom: .3em
}

.aging-badge,
.priority-high .proc-badge {
    background: var(--c-primary);
    color: #fff
}

.photo-note {
    font-size: .8rem;
    color: black;
    background: #ebeded;
    border: 1px solid #a7a7a7;
    border-radius: var(--radius-sm);
    padding: .4em .7em;
    margin: .3em 0
}

.lighting-warning {
    background: rgba(210, 171, 128, .15);
    border-left: 3px solid var(--c-sand);
    padding: .75rem 1rem;
    margin: .75rem var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    color: var(--c-brown)
}

.care-card h3,
.metric-icon {
    font-size: 1.3rem
}

.results-body {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl)
}

.result-section h2 {
    margin-bottom: var(--space-lg);
    margin-top: 40px;
}

.result-section.collapsible .section-toggle {
    width: 100%;
    background: 0 0;
    border: none;
    padding: 0 0 .5em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit
}

.result-section.collapsible .section-toggle h2 {
    margin: 0;
    padding-top: 5px;
    padding-bottom: 0;
    border-bottom: none
}

.section-chevron {
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    color: var(--c-text-muted, #8e8e93);
    transition: transform .35s cubic-bezier(.2, .9, .4, 1.2);
    display: inline-block;
    flex-shrink: 0
}

.result-section.collapsible:not(.collapsed) .section-chevron {
    transform: rotate(180deg)
}

.section-collapsible-content {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows .35s cubic-bezier(.2, .9, .4, 1)
}

.result-section.collapsible.collapsed .section-collapsible-content {
    grid-template-rows: 0fr
}

.section-collapsible-inner {
    overflow: hidden;
    min-height: 0
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm)
}

.metric-card {
    background: var(--c-surface);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4em
}

.metric-ring-wrap {
    position: relative;
    width: 64px;
    height: 64px
}

.metric-ring-wrap svg {
    width: 100%;
    height: 100%
}

.metric-track {
    fill: none;
    stroke: var(--c-beige);
    stroke-width: 5
}

.metric-fill {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 100;
    transition: stroke-dashoffset 1s .3s
}

.metric-value-center {
    padding-top: 2px;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 600;
    color: var(--c-primary)
}

.metric-label {
    font-size: .88rem;
    color: var(--c-text-muted);
    line-height: 1.3
}

.insight-chevron {
    transition: transform .4s cubic-bezier(.2, .9, .4, 1.2), opacity .2s;
    font-size: 20px;
    font-weight: 300;
    display: inline-block;
    transform-origin: center
}

.collapse-wrapper {
    overflow: hidden;
    transition: .35s cubic-bezier(.2, .9, .4, 1.1)
}

.collapse-content.expanded {
    opacity: 1;
    margin-top: 8px
}

.collapse-trigger {
    background: 0 0;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    cursor: pointer;
    font-size: .75rem;
    font-weight: 500;
    color: var(--c-taupe, #af9483);
    letter-spacing: .3px;
    transition: opacity .2s, color .2s;
    margin-top: 6px
}

.collapse-trigger:active {
    opacity: .6
}

.collapse-trigger .chevron {
    font-size: 14px;
    transition: transform .3s cubic-bezier(.2, .9, .4, 1.2);
    display: inline-block
}

.care-chevron.rotated,
.collapse-trigger .chevron.rotated,
.obs-chevron.rotated {
    transform: rotate(180deg)
}

.proc-info-icon:hover::after,
.proc-info-icon:hover::before {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000
}

.collapse-trigger .trigger-text {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .5px
}

.obs-card .collapse-trigger {
    margin-left: 0;
    margin-top: 8px
}

.care-item .collapse-trigger {
    margin-top: 4px
}

.proc-card .collapse-trigger {
    margin-top: 8px
}

.collapse-content .care-why,
.collapse-content .obs-desc,
.collapse-content .proc-desc {
    animation: .3s fadeInUp
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.obs-card {
    background: var(--c-surface);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-xs);
    border-left: 3px solid transparent
}

.obs-card.severity-high {
    border-left-color: var(--c-high, #e07a5f)
}

.obs-card.severity-medium {
    border-left-color: var(--c-medium, #f4a261)
}

.obs-card.severity-low {
    border-left-color: var(--c-low, #81b29a)
}

.care-chevron-btn,
.obs-chevron-btn {
    background: 0 0;
    border: none;
    cursor: pointer
}

.obs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer
}

.obs-info {
    flex: 1
}

.obs-zone {
    text-transform: uppercase;
    color: var(--c-taupe, #8b7a6b)
}

.obs-title {
    line-height: 1.35
}

.obs-chevron-btn {
    padding: 8px;
    margin: -8px -8px -8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.obs-chevron {
    font-size: 20px;
    font-weight: 300;
    color: var(--c-text-muted, #8e8e93);
    transition: transform .35s cubic-bezier(.2, .9, .4, 1.2);
    display: inline-block
}

.care-step,
.obs-title,
.obs-zone {
    font-weight: 600
}

.care-desc-inner,
.obs-desc {
    font-size: .875rem;
    color: var(--c-text-muted, #6c6c74)
}

.obs-desc-wrapper {
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.2, .9, .4, 1), opacity .3s;
    max-height: 0;
    opacity: 0
}

.obs-desc-wrapper:not(.collapsed) {
    opacity: 1;
    margin-top: 12px
}

.obs-desc {
    line-height: 1.6;
    padding-top: 4px
}

.care-product-with-chevron {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px
}

.care-chevron-btn {
    padding: 8px;
    margin: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    flex-shrink: 0
}

.care-desc-wrapper {
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.2, .9, .4, 1);
    max-height: 0
}

.care-desc-inner {
    line-height: 1.55;
    padding-top: 12px
}

@media (prefers-color-scheme:dark) {
    .obs-chevron {
        color: #8e8e93
    }
}

.care-chevron {
    transition: transform .35s cubic-bezier(.2, .9, .4, 1.2);
    display: inline-block
}

.collapse-content {
    opacity: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.2, .9, .4, 1);
    max-height: 0
}

.collapse-content:not(.collapsed) {
    max-height: 200px;
    margin-top: 12px
}

.observations-list {
    display: flex;
    flex-direction: column
}

.obs-card {
    background: var(--c-surface);
    border-radius: var(--radius-md);
    padding: var(--space-xs);
    align-items: start;
    padding-left: 15px
}

.obs-card.severity-high {
    border-left-color: var(--c-high)
}

.obs-card.severity-medium {
    border-left-color: var(--c-medium)
}

.obs-card.severity-low {
    border-left-color: var(--c-low)
}

.obs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0
}

.severity-high .obs-dot {
    background: var(--c-high)
}

.severity-medium .obs-dot {
    background: var(--c-medium)
}

.severity-low .obs-dot {
    background: var(--c-low)
}

.obs-zone {
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-taupe);
    margin-bottom: .15em
}

.obs-title {
    font-size: .95rem;
    margin-bottom: .2em
}

.obs-header {
    display: flex;
    align-items: flex-start;
    gap: 12px
}

.proc-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    font-size: 12px;
    background: white;
    border-radius: 50%;
    border: 1px solid #000;
    cursor: pointer;
    position: relative
}

.proc-info-icon:hover::after {
    content: attr(data-tooltip);
    margin-bottom: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: normal;
    width: 220px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15)
}

.proc-info-icon:hover::before {
    content: '';
    margin-bottom: 2px;
    border: 6px solid transparent;
    border-top-color: #1a1a1a
}

.care-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md)
}

.care-card {
    background: var(--c-surface);
    border-radius: var(--radius-md);
    padding: var(--space-sm)
}

.care-card h3 {
    margin-bottom: var(--space-lg);
    margin-left: -15px
}

.care-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .75em
}

.care-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: .6em;
    align-items: start
}

.care-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--c-beige);
    color: var(--c-brown);
    font-size: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px
}

.care-why,
.proc-desc {
    color: var(--c-text-muted)
}

.care-product {
    font-size: .875rem;
    font-weight: 500
}

.care-why {
    font-size: .88rem;
    margin-top: .1em;
    line-height: 1.4
}

.modal-form,
.procedures-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm)
}

.proc-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-sm);
    align-items: start
}

.proc-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: .3em
}

.proc-desc {
    font-size: .9rem;
    margin-bottom: .4em
}

.proc-benefit {
    font-size: .87rem;
    color: black;
    background: white;
    border: 1px solid #5f807f;
    border-radius: var(--radius-sm);
    padding: .25em 1em;
    display: inline-block
}

.proc-course {
    font-size: .8rem;
    color: var(--c-text-muted);
    margin-top: .4em
}

.proc-badge {
    font-size: .77rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 6px 13px 4px;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    white-space: nowrap
}

.priority-medium .proc-badge {
    background: var(--c-taupe);
    color: #fff
}

.plan-card {
    background: var(--c-surface);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-size: .9rem;
    line-height: 1.75;
    color: var(--c-text);
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%
}

.results-cta,
.results-error {
    padding: var(--space-lg);
    text-align: center
}

.results-cta {
    background: linear-gradient(160deg, var(--c-primary) 0, #3d5a4a 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm)
}

.results-cta h3 {
    color: var(--c-white);
    font-size: 1.1rem
}

.results-cta p {
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
    max-width: 360px
}

.results-cta .btn-primary {
    border: 1px solid white;
    color: #ffffff;
    font-weight: 400;
    max-width: 320px;
}

.results-cta .btn-primary:hover {
    background: #c3d1dd
}

.results-cta .btn-secondary {
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .8);
    border: 1px solid rgba(255, 255, 255, .2);
    max-width: 320px
}

.results-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, .18)
}

.results-disclaimer {
    text-align: center;
    font-size: .77rem;
    color: var(--c-text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6
}

.results-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: var(--radius-md);
    color: var(--c-high)
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 62, 80, .7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 100;
    padding: 0
}

.modal {
    background: var(--c-surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--space-md) var(--space-lg) max(var(--space-lg), env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: 480px;
    position: relative;
    animation: .3s slideUp;
    will-change: transform
}

@media (min-width:600px) {
    .modal-overlay {
        align-items: center;
        padding: var(--space-md)
    }
    .modal {
        border-radius: var(--radius-lg)
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0
    }
    to {
        transform: translateY(0);
        opacity: 1
    }
}

.modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    border: none;
    border-radius: 50%;
    width: 31px;
    height: 31px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-brown);
    transition: background .2s
}

.modal-close:hover {
    background: var(--c-sand)
}

.modal h2 {
    padding-top: 26px;
    margin-bottom: 1.3em;
    font-size: 1.3rem
}

.modal>p {
    color: black;
    font-size: .9rem;
    margin-bottom: var(--space-md)
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: .3em
}

.form-field label {
    font-size: .85rem;
    font-weight: 500;
    color: var(--c-text)
}

.form-field input {
    padding: .9em 1em;
    border: 1.5px solid black;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--c-text);
    transition: border-color .2s;
    outline: 0
}

.form-field input:focus {
    border-color: #6bbacf;
}

.modal-footer {
    text-align: left;
    color: #fff;
    margin-top: var(--space-sm)
}

.modal-footer a {
    color: var(--c-taupe);
    text-decoration: underline
}

.modal-success {
    text-align: center;
    padding: var(--space-xl) var(--space-lg)
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--c-sage);
    color: var(--c-primary);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md)
}

.modal-success h2 {
    margin-bottom: .4em
}

.modal-success p {
    color: var(--c-text-muted);
    margin-bottom: var(--space-lg)
}

.Hydration .metric-track {
    stroke: #4b81ff0a
}

.Hydration .metric-fill {
    stroke: #7194e8
}

.Elasticity .metric-track {
    stroke: #66a09d14
}

.Elasticity .metric-fill {
    stroke: #3bc3bd
}

.Evenness .metric-track {
    stroke: #ed7d910f
}

.Evenness .metric-fill {
    stroke: #fe7590
}

.Clarity .metric-track {
    stroke: #d1d1d142
}

.Clarity .metric-fill {
    stroke: #696c73
}

.metrics-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 200px);
    justify-content: center;
}


.proc-card .discount-badge {
    padding: 0.2em 0.65em;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        justify-content: center;
    }
}

@media (min-width:768px) {
    #app,
    #step-hero {
        background: 0 0
    }
    #step-hero {
        padding: var(--space-xxl) var(--space-md);
        min-height: 100vh
    }
    .camera-area {
        flex-direction: row;
        gap: var(--space-xl);
        justify-content: center;
        align-items: center
    }
    .video-container {
        max-width: 340px
    }
    .upload-area {
        max-width: 260px
    }
    .care-grid {
        grid-template-columns: 1fr 1fr
    }
    .summary-card {
        margin: calc(-1 * var(--space-xl)) auto 0;
        max-width: calc(var(--content-max) - 2 * var(--space-md))
    }
    .results-top {
        padding: var(--space-xxl) var(--space-md) calc(var(--space-xxl) + 20px)
    }
}

@media (max-width:480px) {
    .upload-card {
        padding: var(--space-md) var(--space-sm)
    }
    .hero-content {
        margin-right: 0
    }
    .hero-feature {
        background: #e9e9e9;
        border: 1px solid #1f6d2e54;
    }
    .care-grid,
    .proc-card,
    .summary-inner {
        grid-template-columns: 1fr
    }
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr)
    }
    .score-ring {
        margin: 0 auto;
    }
    .results-top {
        padding: var(--space-xl) var(--space-md) var(--space-xl)
    }
    .results-body {
        gap: var(--space-lg);
        padding: var(--space-md) var(--space-sm)
    }
    .proc-badge {
        align-self: flex-start;
        margin-top: .3em;
        width: 100%;
    }
}

@media (min-width:481px) and (max-width:767px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr)
    }
    .lighting-warning {
        margin: 10px auto 0;
        max-width: calc(var(--content-max) - 2 * var(--space-md))
    }
}
