/* Ziing design standard (from "redesign – 3 · Home"): Inter, near-black accent, hairlines instead of cards. */
:root{--accent:#111827;--ink:#111827;--body:#4B5563;--muted:#6B7280;--line:#ECECEE;--border:#D4D4D8;--chip:#F4F4F5;--red:#DC2626;--amber:#F59E0B}
*{box-sizing:border-box}
body{margin:0;font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;background:#fff;color:var(--ink);min-height:100vh;-webkit-font-smoothing:antialiased}
button,input{font:inherit}
h1,h2,p{margin:0}
a{color:var(--body)}a:hover{color:var(--ink)}
.hidden{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.muted,.hint{font-size:13px;line-height:1.5;color:var(--muted)}
.error{font-size:13px;color:var(--red)}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* Buttons and fields */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:12px;border:0;background:transparent;color:var(--ink);font-size:15px;font-weight:500;cursor:pointer;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.btn.primary{background:var(--accent);color:#fff}
.btn.primary:hover{background:#1F2937}
.btn.lg{height:54px;padding:0 24px;border-radius:14px;gap:10px}
.btn.outline{border:1px solid var(--border)}
.btn.outline:hover{border-color:#A1A1AA;background:#FAFAFA}
.btn.sm{height:44px;padding:0 20px;font-size:14px}
.btn.text{height:44px;padding:0 12px;font-size:14px;font-weight:400;color:var(--body);border-radius:10px}
.btn.text:hover{color:var(--ink);background:var(--chip)}
.btn.text.strong{color:var(--ink);font-weight:500}
.btn.icon-only{width:44px;padding:0;color:#9CA3AF}
.btn.icon-only:hover{color:var(--red)}
.field{display:flex;flex-direction:column;gap:8px;min-width:0}
.field label{font-size:13px;color:var(--body)}
input{width:100%;min-width:0;height:48px;padding:0 14px;border-radius:12px;border:1px solid var(--border);font-size:15px;color:var(--ink);background:#fff;outline:none}
input:focus{border-color:var(--ink)}
input::placeholder{color:#9CA3AF}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}

/* Brand */
.brand{display:flex;align-items:center;gap:10px}
.logo{width:28px;height:28px;border-radius:8px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:15px}
.wordmark{font-weight:600;font-size:16px;letter-spacing:-.01em}

/* Sign in */
.signin{min-height:100vh;display:flex;justify-content:center;padding:20px 24px 48px}
.signin-col{width:min(400px,100%);display:flex;flex-direction:column;gap:22px}
.signin-col h1{font-weight:500;font-size:36px;line-height:1.1;letter-spacing:-.035em;margin-top:min(18vh,140px)}
.stack{display:flex;flex-direction:column;gap:16px}
#googleWrap{display:flex;flex-direction:column;gap:16px}
#googleBtn{min-height:44px}
.or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px}
.or:before,.or:after{content:"";flex:1;height:1px;background:var(--line)}

/* Home */
.site-header{padding:20px 32px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px}
.account{display:flex;align-items:center;gap:8px}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--chip);color:#374151;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:13px;flex:none}
.page{max-width:880px;margin:0 auto;padding:88px 24px 96px;display:flex;flex-direction:column;gap:88px}
.hero{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:56px;align-items:center}
.hero-text{display:flex;flex-direction:column;gap:18px}
.eyebrow{font-size:13px;font-weight:500;color:var(--muted);letter-spacing:.02em}
.lede{font-size:17px;line-height:1.55;color:var(--body);max-width:44ch}
.hero .start-row{margin-top:14px}
.hero-art line{stroke:#A1A1AA;stroke-width:1.2;stroke-dasharray:3 5;animation:flow 1.8s linear infinite}
.hero-art .halo{fill:var(--chip)}.hero-art .node{fill:var(--accent)}
@keyframes flow{to{stroke-dashoffset:-16}}
.why{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
.why-item{display:flex;flex-direction:column;gap:10px;padding-top:28px;border-top:1px solid var(--line)}
.why-icon{width:44px;height:44px;margin-bottom:8px;border-radius:12px;background:var(--chip);color:var(--ink);display:flex;align-items:center;justify-content:center}
.why h2{font-size:17px;font-weight:500;letter-spacing:-.01em}
.why p{font-size:14px;line-height:1.6;color:var(--body)}
.why p.hint{font-size:13px;color:var(--muted)}
.hero h1,.doc h1{font-weight:500;font-size:44px;line-height:1.08;letter-spacing:-.035em}
.start-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.start-row .btn.lg{flex:none}
.join-pill{flex:1 1 280px;display:flex;align-items:center;height:54px;padding:0 6px 0 18px;border-radius:14px;border:1px solid var(--border)}
.join-pill:focus-within{border-color:var(--ink)}
.join-pill input{flex:1;height:44px;padding:0;border:0;border-radius:0;background:transparent}
.join-pill .btn{font-size:15px;padding:0 16px}
.upcoming{display:flex;flex-direction:column;gap:8px}
.section-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px}
.section-head h2{font-size:15px;font-weight:500;color:var(--body)}
.section-head .btn{padding:0 4px}
.section-head .btn:hover{background:transparent;text-decoration:underline}
.meeting{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;padding:22px 0;border-top:1px solid var(--line)}
.meeting.empty{color:var(--muted);font-size:14px}
.when{flex:none;width:96px;display:flex;flex-direction:column;gap:3px}
.when span:first-child{font-size:15px;font-weight:500}
.when span:last-child,.meeting .meta span{font-size:13px;color:var(--muted)}
.meeting .meta{flex:1 1 150px;min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}
.meeting .meta strong{font-size:16px;font-weight:500;letter-spacing:-.01em}
.meeting .row{display:flex;align-items:center;gap:4px}

/* Schedule dialog */
dialog{width:calc(100% - 48px);max-width:440px;margin:120px auto auto;padding:32px;border:0;border-radius:20px;background:#fff;color:var(--ink);box-shadow:0 32px 64px -24px rgba(17,24,39,.35)}
dialog::backdrop{background:rgba(17,24,39,.28)}
dialog form{display:flex;flex-direction:column;gap:22px}
dialog h2{font-size:22px;font-weight:500;letter-spacing:-.02em}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:6px}
.dialog-actions .btn{height:48px;font-size:15px}
.dialog-actions .btn.text{padding:0 18px}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:#fff;font-size:14px;padding:12px 18px;border-radius:12px;z-index:10}

/* Document pages (privacy) */
.doc{max-width:720px;margin:0 auto;padding:20px 24px 96px;display:flex;flex-direction:column;gap:16px;line-height:1.6;color:var(--body)}
.doc h1{color:var(--ink);margin-top:68px}
.doc h2{font-size:16px;font-weight:500;color:var(--ink);margin-top:20px;padding-top:22px;border-top:1px solid var(--line)}
.doc ul{margin:0;padding-left:20px}

@media(max-width:800px){.hero{grid-template-columns:minmax(0,1fr)}.hero-art{display:none}.why{grid-template-columns:minmax(0,1fr);gap:28px}}
@media(max-width:640px){.site-header{padding:16px 20px}.page{padding:48px 20px 64px;gap:56px}.hero h1,.doc h1{font-size:34px}.signin-col h1{font-size:30px;margin-top:10vh}.start-row .btn.lg{flex:1 1 100%}dialog{margin-top:48px;padding:24px}.meeting .row{margin-left:-8px}.meeting .row .btn.text{padding:0 8px}.meeting .row .btn.icon-only{width:36px;padding:0}}

/* Call — same light standard as Home */
.call{height:100vh;height:100dvh;display:grid;grid-template-rows:auto 1fr auto;grid-template-columns:1fr auto;background:#fff;color:var(--ink)}
.topbar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px}
.topbar div{display:flex;gap:12px;align-items:baseline;min-width:0}
.topbar strong{font-weight:500;font-size:16px;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar span{color:var(--muted);font-size:13px;white-space:nowrap}
.videos{grid-column:1;display:grid;gap:12px;padding:8px 20px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));align-content:center;overflow:auto}
.tile{position:relative;min-height:220px;border-radius:20px;overflow:hidden;background:var(--chip)}
.tile video{width:100%;height:100%;object-fit:cover;display:block;background:var(--chip)}
.tile .label{position:absolute;left:12px;bottom:12px;padding:6px 10px;border-radius:8px;background:rgba(17,24,39,.72);color:#fff;font-size:13px;font-weight:500}
.tile.raised{box-shadow:0 0 0 2px var(--amber) inset}
.tile .hand-badge{position:absolute;right:12px;top:12px;font-size:1.4rem;background:rgba(245,158,11,.92);padding:4px 10px;border-radius:999px;animation:wave 1.2s ease-in-out infinite}
@keyframes wave{0%,100%{transform:rotate(-8deg)}50%{transform:rotate(12deg)}}
.tile.reconnecting video{opacity:.35}
.tile.reconnecting .label:after{content:" · reconnecting…";color:#FBBF24}
.chat{grid-column:2;grid-row:2;display:grid;width:min(340px,100vw);grid-template-rows:1fr auto;background:#fff;border:1px solid var(--line);border-radius:20px;margin:8px 20px 8px 0;min-height:0;overflow:hidden}
.messages{padding:16px;overflow:auto}
.msg{padding:12px 0;border-top:1px solid var(--line);font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.msg:first-child{border-top:0;padding-top:0}
.msg b{display:block;margin-bottom:3px;color:var(--muted);font-size:12px;font-weight:500}
.chat form{display:flex;gap:4px;margin:12px;padding:0 4px 0 14px;border:1px solid var(--border);border-radius:12px}
.chat input{flex:1;height:44px;padding:0;border:0;border-radius:0;background:transparent}
.controls{grid-column:1/-1;display:flex;justify-content:center;gap:8px;flex-wrap:wrap;padding:14px 12px;padding-bottom:max(14px,env(safe-area-inset-bottom))}
.controls button{height:48px;padding:0 18px;border-radius:12px;border:0;background:var(--chip);color:var(--ink);font-size:14px;font-weight:500;cursor:pointer;transition:background .15s}
.controls button:hover{background:#E4E4E7}
.controls button.active{background:var(--accent);color:#fff}
.controls button#hand.active{background:var(--amber);color:#111827}
.controls .danger{background:var(--red);color:#fff}
.controls .danger:hover{background:#B91C1C}
@media(max-width:800px){.call{grid-template-columns:1fr}.chat{grid-column:1;grid-row:2;width:auto;height:45vh;align-self:end;z-index:3;margin:8px 12px}.topbar div{display:block}.videos{padding:8px 12px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
