/* ============================================================
   PlannedReady — App Demo (clickable prototype) styles
   ============================================================ */
.demo-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center;
  max-width: 1100px; margin-inline: auto; padding: 90px var(--gutter) 60px; }
@media (max-width: 920px) { .demo-page { grid-template-columns: 1fr; justify-items: center; gap: 26px; } .demo-aside { text-align: center; max-width: 520px; } }

.demo-aside .eyebrow { display: block; margin-bottom: 12px; }
.demo-aside h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 16px; }
.demo-aside p { color: var(--text-muted); font-size: 1.05rem; max-width: 42ch; margin-bottom: 24px; }
.demo-aside .mini-links { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 920px) { .demo-aside .mini-links { justify-content: center; } }
.demo-tips { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.demo-tip { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); font-size: .92rem; }
.demo-tip svg { width: 18px; height: 18px; color: var(--aqua); flex: none; margin-top: 2px; }

/* ---- Device frame ---- */
.device { width: 380px; max-width: 92vw; aspect-ratio: 380/800; position: relative; justify-self: center; }
.device-glow { position: absolute; inset: -8% -6%; background: radial-gradient(circle, rgba(34,211,238,.28), transparent 62%); filter: blur(48px); z-index: -1; }
.device-frame {
  width: 100%; height: 100%; border-radius: 52px; padding: 13px;
  background: linear-gradient(160deg, #243357, #0b1020);
  border: 1px solid rgba(160,185,240,.18);
  box-shadow: 0 50px 120px -40px #000, var(--shadow-float);
}
.screen {
  width: 100%; height: 100%; border-radius: 40px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #0b1430, #090f22);
  display: flex; flex-direction: column;
}
.notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 110px; height: 26px; background: #04060e; border-radius: 16px; z-index: 30; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 6px; font-size: .72rem; color: var(--text-soft); font-weight: 600; z-index: 20; }
.statusbar .icons { display: flex; gap: 6px; align-items: center; }
.statusbar .icons span { width: 16px; height: 9px; border-radius: 2px; background: currentColor; opacity: .8; }

/* ---- Screen body ---- */
.screen-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 16px 90px; scrollbar-width: none; }
.screen-scroll::-webkit-scrollbar { display: none; }
.scr-head { display: flex; align-items: center; gap: 12px; padding: 8px 2px 16px; position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, rgba(11,20,48,.96), rgba(11,20,48,.0)); }
.scr-back { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--glass-border); flex: none; }
.scr-back svg { width: 18px; height: 18px; }
.scr-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.scr-sub { font-size: .82rem; color: var(--text-muted); margin-top: 2px; }

/* fade/slide transition */
.screen-scroll.swap { animation: scrIn .42s var(--ease); }
@keyframes scrIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* ---- Dashboard ---- */
.dash-hero { padding: 6px 2px 14px; }
.dash-hello { color: var(--text-muted); font-size: .82rem; }
.dash-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.dash-score-card { display: flex; align-items: center; gap: 16px; padding: 16px; margin-bottom: 14px; }
.dash-score-card .ring { width: 70px; height: 70px; flex: none; }
.dash-score-card .meta .big { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.dash-score-card .meta .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.dash-score-card .crest { margin-left: auto; text-align: right; }
.dash-score-card .crest .lv { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--grad-calm); color: #2b1a05; font-weight: 700; font-size: .78rem; }

.ai-card { padding: 15px; margin-bottom: 16px; background: linear-gradient(120deg, rgba(34,211,238,.1), rgba(99,102,241,.12)); }
.ai-card .top { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.ai-card .badge2 { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-brand); box-shadow: var(--glow-aqua); }
.ai-card .badge2 svg { width: 17px; height: 17px; color: #04121b; }
.ai-card .nm { font-weight: 700; font-size: .92rem; }
.ai-card p { font-size: .86rem; color: var(--text-soft); }
.ai-card .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ai-card .acts button { font-size: .76rem; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); color: var(--text-soft); }

.section-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin: 6px 2px 10px; }

.card-list { display: flex; flex-direction: column; gap: 10px; }
.feature-card { display: flex; align-items: center; gap: 13px; padding: 14px; cursor: pointer; transition: transform .25s var(--ease), border-color .25s; }
.feature-card:active { transform: scale(.98); }
.feature-card:hover { border-color: var(--line-strong); }
.feature-card .fic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--grad-brand-soft); border: 1px solid var(--glass-border); }
.feature-card .fic svg { width: 21px; height: 21px; color: var(--aqua); }
.feature-card .ftxt { flex: 1; min-width: 0; }
.feature-card .ftxt b { font-size: .96rem; font-weight: 600; display: block; }
.feature-card .ftxt span { font-size: .78rem; color: var(--text-muted); }
.feature-card .chev { color: var(--text-faint); }
.feature-card .pill-badge { font-size: .66rem; padding: 3px 8px; border-radius: 99px; background: rgba(52,211,153,.14); color: var(--ready); border: 1px solid rgba(52,211,153,.3); }

/* ---- Generic list rows ---- */
.row-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin-bottom: 9px; }
.row-item .av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); color: #04121b; }
.row-item .info { flex: 1; min-width: 0; }
.row-item .info b { font-size: .92rem; display: block; }
.row-item .info span { font-size: .76rem; color: var(--text-muted); }
.role-tag { font-size: .64rem; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--glass-border); color: var(--text-soft); white-space: nowrap; }

/* ---- Buttons in app ---- */
.app-btn { width: 100%; padding: 14px; border-radius: 14px; background: var(--grad-brand); color: #04121b; font-weight: 700; font-size: .95rem; margin-top: 8px; box-shadow: 0 10px 30px -12px rgba(34,211,238,.6); transition: transform .25s; }
.app-btn:active { transform: scale(.98); }
.app-btn.ghost { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--glass-border); box-shadow: none; }
.app-btn.danger { background: linear-gradient(120deg, #FB7185, #F43F5E); color: #fff; box-shadow: 0 10px 30px -12px rgba(244,63,94,.6); }

/* ---- Vault categories ---- */
.vault-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.vault-item { padding: 14px 12px; cursor: pointer; transition: transform .2s; }
.vault-item:active { transform: scale(.97); }
.vault-item .vic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-brand-soft); margin-bottom: 9px; }
.vault-item .vic svg { width: 18px; height: 18px; color: var(--aqua); }
.vault-item b { font-size: .82rem; font-weight: 600; display: block; }
.vault-item span { font-size: .7rem; color: var(--text-muted); }

/* ---- Tap-In ---- */
.tapin-grid { display: flex; flex-direction: column; gap: 9px; }
.tapin-opt { padding: 14px; text-align: left; cursor: pointer; font-size: .9rem; color: var(--text-soft); transition: .25s; }
.tapin-opt:hover { border-color: var(--aqua); color: var(--text); }
.tapin-opt:active { transform: scale(.98); }
.tap-sent { text-align: center; padding: 30px 12px; }
.tap-sent .big-check { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--grad-brand); box-shadow: var(--glow-aqua); }
.tap-sent .big-check svg { width: 38px; height: 38px; color: #04121b; }

/* ---- Vote ---- */
.vote-opt { padding: 13px 14px; margin-bottom: 9px; cursor: pointer; position: relative; overflow: hidden; }
.vote-opt .fill { position: absolute; inset: 0; background: var(--grad-brand-soft); width: 0; transition: width .8s var(--ease); z-index: 0; }
.vote-opt .lbl { position: relative; z-index: 1; display: flex; justify-content: space-between; font-size: .9rem; }
.vote-opt .lbl b { font-weight: 600; }
.vote-opt .lbl span { color: var(--text-muted); }

/* ---- Toggles (settings/share) ---- */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; margin-bottom: 9px; }
.toggle-row .tinfo b { font-size: .9rem; display: block; }
.toggle-row .tinfo span { font-size: .74rem; color: var(--text-muted); }
.switch { width: 44px; height: 26px; border-radius: 99px; background: rgba(255,255,255,.12); position: relative; cursor: pointer; transition: background .25s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch.on { background: var(--teal); }
.switch.on::after { transform: translateX(18px); }

/* ---- Reminders / notifications ---- */
.note-row { display: flex; gap: 12px; padding: 13px 14px; margin-bottom: 9px; }
.note-row .nic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.05); }
.note-row .nic svg { width: 18px; height: 18px; color: var(--aqua); }
.note-row .ninfo b { font-size: .88rem; display: block; }
.note-row .ninfo span { font-size: .76rem; color: var(--text-muted); }
.note-row .nt { font-size: .68rem; color: var(--text-faint); margin-left: auto; white-space: nowrap; }
.unread { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 8px var(--aqua); margin-left: auto; align-self: center; flex: none; }

/* ---- Emergency mode ---- */
.emg-overlay { position: absolute; inset: 0; z-index: 60; background: radial-gradient(circle at 50% 30%, #2a0a12, #0a0406); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; animation: scrIn .4s var(--ease); }
.emg-overlay .pulse-ring { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 24px; background: radial-gradient(circle, rgba(251,113,133,.3), transparent 70%); }
.emg-overlay .pulse-ring .core { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(120deg, #FB7185, #F43F5E); display: grid; place-items: center; animation: emgpulse 1.4s ease-in-out infinite; }
.emg-overlay .pulse-ring svg { width: 40px; height: 40px; color: #fff; }
@keyframes emgpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(251,113,133,.5);} 50% { box-shadow: 0 0 0 24px rgba(251,113,133,0);} }
.emg-overlay h2 { font-size: 1.6rem; margin-bottom: 8px; }
.emg-overlay p { color: var(--text-soft); font-size: .92rem; margin-bottom: 26px; max-width: 26ch; }
.emg-step { font-size: .8rem; color: #FCA5B5; margin-bottom: 16px; }

/* ---- Bottom nav ---- */
.tabbar { position: absolute; bottom: 0; left: 0; right: 0; z-index: 25; display: flex; justify-content: space-around; align-items: center;
  padding: 10px 14px 16px; background: rgba(8,13,28,.9); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-faint); font-size: .62rem; transition: color .2s; }
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button.active { color: var(--aqua); }
.tabbar .tab-emg svg { color: var(--alert); }

/* ---- Language select screen ---- */
.lang-screen { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px; text-align: center; }
.lang-screen .emblem { width: 96px; height: 96px; margin-bottom: 22px; border-radius: 26px; }
.lang-screen h2 { font-size: 1.5rem; margin-bottom: 6px; }
.lang-screen p { color: var(--text-muted); font-size: .88rem; margin-bottom: 30px; }
.lang-choice { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px; cursor: pointer; transition: transform .2s, border-color .2s; }
.lang-choice:active { transform: scale(.98); }
.lang-choice:hover { border-color: var(--aqua); }
.lang-choice .flag { font-size: 1.7rem; }
.lang-choice b { font-size: 1.02rem; display: block; text-align: left; }
.lang-choice span { font-size: .76rem; color: var(--text-muted); }
.lang-choice .go { margin-left: auto; color: var(--aqua); }

/* progress chips */
.scen-grid { display: flex; flex-direction: column; gap: 9px; }
.scen-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; }
.scen-item .sic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--grad-brand-soft); }
.scen-item .sic svg { width: 19px; height: 19px; color: var(--aqua); }
.scen-item b { font-size: .9rem; display: block; }
.scen-item span { font-size: .74rem; color: var(--text-muted); }
.ai-draft { font-size: .8rem; color: var(--text-soft); background: rgba(255,255,255,.04); border: 1px dashed var(--glass-border); border-radius: 12px; padding: 12px; margin-top: 10px; line-height: 1.55; }
