:root {
    --ink: #173c36;
    --paper: #f5f1e8;
    --accent: #ef6a45;
    --soft: #dbe6df;
    --line: #c7d1ca;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #d9e2dc;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(160deg, #d7e3dc, #eef0e9); }
button, input, textarea { font: inherit; }
.app-shell { width: min(100%, 470px); min-height: 100vh; margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 22px max(32px, env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 0 60px rgb(23 60 54 / .12); }
.app-header { display: flex; align-items: center; gap: 18px; margin-bottom: 42px; }
.eyebrow, .step-number { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.progress { height: 5px; flex: 1; overflow: hidden; border-radius: 10px; background: var(--soft); }
.progress span { display: block; height: 100%; width: 25%; border-radius: inherit; background: var(--accent); transition: width .35s ease; }
.step { display: none; animation: enter .35s ease both; }
.step.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
h1 { margin: 12px 0 14px; font-family: Georgia, serif; font-size: clamp(2.7rem, 12vw, 4rem); font-weight: 500; line-height: .93; letter-spacing: -.045em; }
.lead { margin: 0 0 28px; color: #55716c; line-height: 1.55; }
.photo-frame { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; margin: 26px 0 20px; border: 2px dashed #9cad9f; border-radius: 24px; background: #e8ebe5; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: none; }
.photo-frame.has-photo img { display: block; }
.photo-frame.has-photo .photo-placeholder { display: none; }
.photo-placeholder { display: grid; justify-items: center; gap: 10px; color: #71857e; font-size: .86rem; }
.camera-icon { display: grid; place-items: center; width: 58px; height: 58px; border: 2px solid currentColor; border-radius: 50%; font-size: 2rem; }
.button-stack { display: grid; gap: 11px; }
.button { width: 100%; display: block; padding: 17px 20px; border: 0; border-radius: 14px; text-align: center; text-decoration: none; font-weight: 800; cursor: pointer; }
.button.primary { color: white; background: var(--ink); box-shadow: 0 8px 18px rgb(23 60 54 / .18); }
.button.secondary { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.button:disabled { cursor: wait; opacity: .6; }
.text-button { color: #60766f; background: transparent; margin-top: 8px; }
.mail-actions { display: grid; gap: 11px; }
.send-status { min-height: 1.4em; margin: 12px 0 0; font-size: .85rem; line-height: 1.45; }
.send-status.success { color: #23724f; }
.privacy { font-size: .72rem; color: #71857e; line-height: 1.45; margin-top: 18px; }
.scan-visual { position: relative; aspect-ratio: 1; width: 190px; display: grid; place-items: center; overflow: hidden; margin: 28px auto 38px; border-radius: 50%; color: white; background: var(--ink); font: 700 2rem Georgia, serif; }
.scan-line { position: absolute; width: 100%; height: 2px; background: var(--accent); box-shadow: 0 0 18px var(--accent); animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(-70px); } 50% { transform: translateY(70px); } }
.analysis-list { padding: 0; margin: 28px 0; list-style: none; }
.analysis-list li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: #74857f; }
.analysis-list span { width: 18px; height: 18px; border: 2px solid #aab7b0; border-radius: 50%; }
.analysis-list .working span { border-color: var(--accent); border-top-color: transparent; animation: spin .7s linear infinite; }
.analysis-list .done { color: var(--ink); }
.analysis-list .done span { display: grid; place-items: center; border-color: var(--ink); background: var(--ink); }
.analysis-list .done span::after { content: '✓'; color: white; font-size: .7rem; }
@keyframes spin { to { transform: rotate(360deg); } }
form { margin-top: 28px; }
label { display: block; margin-bottom: 17px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
input, textarea { width: 100%; margin-top: 7px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--ink); background: #fffdf8; }
input:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(23 60 54 / .09); }
textarea { resize: vertical; line-height: 1.5; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
fieldset { padding: 0; margin: 28px 0; border: 0; }
legend { margin-bottom: 12px; font-family: Georgia, serif; font-size: 1.35rem; }
.check-row { display: flex; align-items: center; gap: 12px; margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .92rem; letter-spacing: 0; }
.check-row input { appearance: none; width: 23px; height: 23px; flex: 0 0 auto; margin: 0; padding: 0; border-radius: 6px; }
.check-row input:checked { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 5px var(--paper); }
.error { color: #a23426; font-size: .85rem; line-height: 1.45; }
.hidden { display: none !important; }
@media (min-width: 471px) { body { padding: 22px 0; } .app-shell { min-height: calc(100vh - 44px); border-radius: 30px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
