:root {
  --bg: #F6F7F9; --card: #FFFFFF; --line: #EAECF0; --ink: #101828; --ink2: #475467; --ink3: #667085;
  --green: #1A8A43; --green2: #22A04B; --tint: #EAF7EE; --tint-ink: #14632F;
  --warn: #C2410C; --warn-tint: #FEF0E7; --red: #D92D20;
  --shadow: 0 1px 2px rgba(16,24,40,.05); --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #E9ECEF; font-family: Inter, system-ui, -apple-system, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
.phone { width: 390px; height: 844px; max-width: 100vw; max-height: 100dvh; margin: 24px auto; border-radius: 44px; overflow: hidden; position: relative; background: var(--bg); box-shadow: 0 30px 80px rgba(16,24,40,.25), 0 0 0 10px #1d2025; }
@media (max-width: 480px) { .phone { margin: 0; border-radius: 0; width: 100vw; height: 100dvh; box-shadow: none; } body { background: var(--bg); } }
.screen { position: absolute; inset: 0; padding: 60px 20px 28px; display: none; flex-direction: column; gap: 16px; overflow-y: auto; }
.screen.on { display: flex; }
h1 { margin: 0; font-family: 'Space Grotesk', Inter, sans-serif; font-size: 30px; line-height: 1.08; font-weight: 700; letter-spacing: -.8px; }
.video { position: relative; display: block; width: 100%; height: 300px; flex: 0 0 300px; border-radius: 28px; background: var(--bg); overflow: hidden; box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 18px 40px rgba(16,24,40,.10); text-decoration: none; color: var(--ink); }
.video .r { position: absolute; left: 50%; top: 135px; border-radius: 50%; transform: translate(-50%,-50%); animation: breathe 3s ease-in-out infinite; }
.video .r1 { width: 320px; height: 320px; background: #E3F1E8; } .video .r2 { width: 230px; height: 230px; background: #D0E9D8; animation-delay: .3s; } .video .r3 { width: 150px; height: 150px; background: #BCE0C8; animation-delay: .6s; }
.video .play { position: absolute; left: 50%; top: 135px; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 39px; background: var(--green); border: 4px solid #fff; box-shadow: 0 12px 28px rgba(26,138,67,.4); display: flex; align-items: center; justify-content: center; }
.video .cap { position: absolute; left: 14px; right: 14px; bottom: 14px; background: #fff; border-radius: 16px; padding: 10px 14px; display: flex; justify-content: space-between; font-size: 16px; }
.video .cap span { color: var(--ink2); font-size: 14px; font-weight: 600; }
@keyframes breathe { 50% { transform: translate(-50%,-50%) scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .video .r { animation: none; } }
p { margin: 0; }
.muted { color: var(--ink2); font-size: 17px; line-height: 1.45; }
.small { color: var(--ink3); font-size: 14px; }
.label { margin: 6px 4px 0; font-size: 13px; font-weight: 700; color: var(--ink3); letter-spacing: .4px; text-transform: uppercase; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-bottom: 1px solid #F2F4F7; }
.row:last-child { border-bottom: none; }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row b { font-size: 16px; }
.tile { flex: 0 0 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: #F2F4F7; }
.tile.g { background: var(--tint); } .tile.o { background: var(--warn-tint); } .tile.r { background: #FEE4E2; }
.btn { height: 60px; border: none; border-radius: 16px; font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn.primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(26,138,67,.28); }
.btn.danger { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(217,45,32,.28); }
.btn.ghost { background: transparent; color: var(--ink2); height: 48px; font-size: 16px; font-weight: 600; }
.btn.white { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.spacer { flex: 1; }
.pill { border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.pill.g { background: var(--tint); color: var(--tint-ink); } .pill.o { background: var(--warn-tint); color: #B93815; } .pill.grey { background: #F2F4F7; color: var(--ink2); }
.dot { width: 8px; height: 8px; border-radius: 4px; background: var(--green2); }
.seg { display: grid; background: #EAECF0; border-radius: 12px; padding: 3px; }
.seg button { height: 38px; border: none; border-radius: 10px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.switch { position: relative; flex: 0 0 51px; height: 31px; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 16px; background: #E4E7EC; transition: .2s; }
.switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 14px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + span { background: var(--green2); }
.switch input:checked + span::after { left: 22px; }
.switch input:focus-visible + span { outline: 3px solid #84CAFF; }
input[type=text], input[type=tel] { height: 50px; border: 1px solid #D0D5DD; border-radius: 14px; padding: 0 14px; font: inherit; font-size: 17px; width: 100%; background: #fff; }
input[type=range] { width: 100%; accent-color: var(--green2); }
.bubble { max-width: 86%; padding: 10px 12px; font-size: 15px; line-height: 1.4; border-radius: 14px; }
.bubble.them { align-self: flex-start; background: #F2F4F7; border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--tint); color: var(--tint-ink); border-bottom-right-radius: 4px; }
.tabbar { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 8px; box-shadow: 0 6px 20px rgba(16,24,40,.08); position: sticky; bottom: 0; }
.tabbar button { border: none; background: transparent; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink2); padding: 6px 0; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.tabbar button.on { background: var(--tint); color: var(--tint-ink); font-weight: 700; }
.toast { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); background: #101828; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 9; display: none; }
