/* ============================================================
   ThirdEyeOS — Screen-specific styles
   ============================================================ */

/* ---------- Modal / overlay ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(5,3,2,0.66);
  backdrop-filter: blur(8px);
  animation: fade .25s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 540px;
  background: linear-gradient(165deg, var(--bg-2), var(--bg-0));
  border: 1px solid var(--card-border-warm);
  border-radius: var(--r-xl);
  padding: 26px;
  box-shadow: var(--shadow-soft), 0 0 80px -30px var(--orange-glow);
  animation: pop .35s var(--ease);
  max-height: 90vh; overflow-y: auto;
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal-head h2 { font-size: 20px; font-weight: 600; }
.modal-head p { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--panel); border: 1px solid var(--card-border);
  outline: none; font-size: 14px; color: var(--text-1); transition: .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange-line); background: var(--panel-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Brain Dump routing result ---------- */
.routing { display: grid; gap: 12px; }
.route-item {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 15px 16px; border-radius: var(--r-md);
  background: var(--panel); border: 1px solid var(--card-border);
  opacity: 0; transform: translateY(10px);
  animation: routein .5s var(--ease) forwards;
}
.route-item:nth-child(1){animation-delay:.05s} .route-item:nth-child(2){animation-delay:.18s}
.route-item:nth-child(3){animation-delay:.31s} .route-item:nth-child(4){animation-delay:.44s}
.route-item:nth-child(5){animation-delay:.57s} .route-item:nth-child(6){animation-delay:.70s}
.route-item:nth-child(7){animation-delay:.83s}
@keyframes routein { to { opacity: 1; transform: none; } }
.route-item .ric {
  width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange-bright);
}
.route-item .ric svg { width: 19px; height: 19px; }
.route-item .rbody { flex: 1; min-width: 0; }
.route-item .rkind { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--orange-bright); font-weight: 700; }
.route-item .rtext { font-size: 14px; font-weight: 500; margin-top: 3px; }
.route-item .rsub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.route-item.pattern .ric { background: var(--calm-soft); color: var(--calm); }
.route-item.pattern .rkind { color: var(--calm); }

.thinking { display: flex; align-items: center; gap: 12px; padding: 24px; color: var(--text-2); font-size: 14px; }
.thinking .orb {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--orange-bright), var(--orange-deep));
  box-shadow: 0 0 0 0 var(--orange-glow);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(0.9); box-shadow: 0 0 0 0 var(--orange-glow); }
  50% { transform: scale(1.1); box-shadow: 0 0 24px 8px rgba(var(--accent-rgb),0.25); }
}

/* ---------- Relief Mode ---------- */
.relief {
  min-height: 100vh;
  background:
    radial-gradient(1000px 700px at 50% 12%, rgba(var(--accent-rgb),0.20), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(111,168,160,0.08), transparent 55%),
    var(--bg-0);
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(28px, 6vh, 70px) 22px 80px;
  text-align: center;
  animation: fade .5s var(--ease);
}
.relief .exit {
  position: absolute; top: 22px; right: 22px;
}
.relief-eyebrow { letter-spacing: 4px; font-size: 11px; text-transform: uppercase; color: var(--orange-bright); font-weight: 600; }
.relief h1 { font-size: clamp(26px, 4.5vw, 40px); font-weight: 500; line-height: 1.15; margin-top: 16px; max-width: 16ch; }
.relief .sub { color: var(--text-2); font-size: 16px; margin-top: 14px; max-width: 42ch; }

.breath {
  --size: clamp(180px, 32vh, 260px);
  width: var(--size); height: var(--size);
  margin: clamp(28px, 5vh, 54px) 0;
  border-radius: 50%; position: relative;
  display: grid; place-items: center;
}
.breath .ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(var(--accent-rgb),0.34), rgba(var(--accent-rgb),0.05) 65%, transparent 72%);
  border: 1px solid var(--orange-line);
  animation: breathe 11s ease-in-out infinite;
}
.breath .ring.r2 { animation-delay: 0s; opacity: .5; }
.breath .label { position: relative; z-index: 2; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: #fff; font-weight: 500; }
@keyframes breathe {
  0%, 100% { transform: scale(0.72); }
  40% { transform: scale(1.08); }
  50% { transform: scale(1.08); }
  90% { transform: scale(0.72); }
}

.relief-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px;
  width: 100%; max-width: 620px; margin-top: 8px;
}
@media (max-width: 520px) { .relief-grid { grid-template-columns: 1fr; } }
.relief-opt {
  display: flex; align-items: center; gap: 13px; text-align: left;
  padding: 16px 18px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.04); border: 1px solid var(--card-border);
  transition: .2s var(--ease); color: var(--text-1);
}
.relief-opt:hover { border-color: var(--card-border-warm); background: var(--orange-soft); transform: translateY(-2px); }
.relief-opt .ic { width: 22px; height: 22px; color: var(--orange-bright); flex: none; }
.relief-opt .ot { font-size: 14.5px; font-weight: 600; }
.relief-opt .os { font-size: 12px; color: var(--text-3); }

.hold-box {
  width: 100%; max-width: 620px; margin-top: 22px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--card-border-warm);
  border-radius: var(--r-lg); padding: 20px; text-align: left;
}
.hold-box textarea {
  width: 100%; min-height: 80px; resize: vertical; background: none; border: none; outline: none;
  font-size: 15px; color: var(--text-1); line-height: 1.6;
}
.hold-box textarea::placeholder { color: var(--text-3); }

/* ---------- Onboarding ---------- */
.onb {
  min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(var(--accent-rgb),0.18), transparent 60%),
    var(--bg-0);
}
.onb-top { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px,4vw,48px); }
.onb-steps { display: flex; gap: 6px; }
.onb-steps i { width: 26px; height: 4px; border-radius: 999px; background: var(--panel-2); transition: .3s; }
.onb-steps i.on { background: var(--orange); width: 34px; }
.onb-body { display: grid; place-items: center; padding: 20px; }
.onb-panel {
  width: 100%; max-width: 600px; text-align: center;
  animation: rise .45s var(--ease);
}
.onb-panel .eyebrow { color: var(--orange-bright); }
.onb-panel h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 600; line-height: 1.12; margin: 14px 0 12px; letter-spacing: -0.4px; }
.onb-panel .lede { color: var(--text-2); font-size: 16px; max-width: 46ch; margin: 0 auto 26px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.choice {
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--panel); border: 1px solid var(--card-border);
  font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: .18s var(--ease);
}
.choice:hover { color: #fff; border-color: var(--card-border-warm); }
.choice.sel { background: var(--orange-soft); border-color: var(--orange-line); color: var(--orange-bright); }
.style-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; text-align: left; }
@media (max-width: 520px){ .style-cards { grid-template-columns: 1fr; } }
.style-card {
  padding: 16px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--card-border);
  transition: .18s var(--ease);
}
.style-card:hover, .style-card.sel { border-color: var(--orange-line); background: var(--orange-soft); }
.style-card .sn { font-weight: 600; font-size: 14px; }
.style-card .sx { font-size: 12.5px; color: var(--text-3); margin-top: 4px; font-style: italic; }
.onb-foot { display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(20px,4vw,48px) 30px; }

/* welcome hero */
.onb-hero { text-align: center; max-width: 640px; }
.onb-hero .bigmark { width: 92px; height: 92px; margin: 0 auto 26px; filter: drop-shadow(0 8px 30px var(--orange-glow)); }
.onb-hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -1px; }
.onb-hero .promise { color: var(--orange-bright); font-weight: 500; font-size: 17px; margin-top: 16px; }
.onb-hero .lede { color: var(--text-2); font-size: 16px; margin: 14px auto 30px; max-width: 48ch; }
.reassure { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); margin-top: 18px; }

/* ---------- Calendar ---------- */
.weekstrip { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; }
.daycol { text-align: center; padding: 10px 4px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--card-border); }
.daycol.today { background: var(--orange-soft); border-color: var(--orange-line); }
.daycol .dn { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); }
.daycol .dd { font-size: 18px; font-weight: 600; margin-top: 3px; }
.daycol .dots { display: flex; gap: 3px; justify-content: center; margin-top: 6px; height: 6px; }
.daycol .dots i { width: 5px; height: 5px; border-radius: 50%; }

.cal-event { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.cal-event:last-child { border: none; }
.cal-event .time { width: 70px; flex: none; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.cal-event .bar { width: 3px; border-radius: 3px; flex: none; align-self: stretch; }
.cal-event .ce-body .t { font-size: 14.5px; font-weight: 500; }
.cal-event .ce-body .s { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.prep { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.prep .p { font-size: 11px; padding: 5px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--hairline); color: var(--text-2); }

/* ---------- Life areas ---------- */
.area-card { padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--card-border); background: var(--panel); transition: .2s var(--ease); text-align: left; }
.area-card:hover { transform: translateY(-3px); border-color: var(--card-border-warm); }
.area-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; }
.area-ic svg { width: 22px; height: 22px; }
.area-card h3 { font-size: 16px; font-weight: 600; }
.area-stat { display: flex; gap: 16px; margin-top: 12px; }
.area-stat div { font-size: 12px; color: var(--text-3); }
.area-stat b { display: block; font-size: 18px; color: var(--text-1); font-weight: 600; }

/* ---------- Ask ThirdEyeOS ---------- */
.ask-wrap { max-width: none; margin: 0; }
.chat { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.bubble { max-width: 80%; padding: 14px 17px; border-radius: 20px; font-size: 14px; line-height: 1.6; }
.bubble.user { align-self: flex-end; background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep)); color: #fff; border-bottom-right-radius: 6px; }
.bubble.ai { align-self: flex-start; background: var(--panel); border: 1px solid var(--card-border); border-bottom-left-radius: 6px; }
.bubble.ai .mini-head { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--orange-bright); font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.bubble.ai ul { margin-top: 8px; display: grid; gap: 7px; }
.bubble.ai li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; }
.bubble.ai li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-top: 7px; flex: none; }
.suggest { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.suggest button {
  padding: 10px 15px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 500;
  background: var(--panel); border: 1px solid var(--card-border); color: var(--text-2); transition: .15s;
}
.suggest button:hover { color: #fff; border-color: var(--card-border-warm); background: var(--orange-soft); }
.ask-input { display: flex; gap: 10px; align-items: center; position: sticky; bottom: 90px; }
.ask-input .box { flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; border-radius: var(--r-pill); background: var(--panel-strong); border: 1px solid var(--card-border-warm); backdrop-filter: blur(10px); }
.ask-input input { flex: 1; background: none; border: none; outline: none; font-size: 14px; color: var(--text-1); padding: 10px 0; }
.ask-send { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep)); color: #fff; display: grid; place-items: center; flex: none; }

/* document vault */
.doc { display: flex; gap: 13px; padding: 14px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--card-border); transition: .15s; align-items: center; }
.doc:hover { border-color: var(--card-border-warm); }
.doc .dic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-bright); flex: none; }
.doc .dn { font-size: 14px; font-weight: 500; }
.doc .dm { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.doc .links { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }

/* toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 200; padding: 13px 20px; border-radius: var(--r-pill);
  background: var(--panel-strong); border: 1px solid var(--card-border-warm);
  color: #fff; font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-soft); backdrop-filter: blur(12px);
  opacity: 0; transition: .35s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ic { color: var(--orange-bright); width: 18px; height: 18px; }

/* ===== entity profile page ===== */
.profile-hero {
  display:flex; gap:18px; align-items:flex-start; flex-wrap:wrap;
  padding:22px; margin-bottom:var(--gap);
  border-radius:var(--r-lg);
  background:linear-gradient(160deg, var(--orange-soft), rgba(255,255,255,0.02));
  border:1px solid var(--card-border-warm);
  box-shadow:var(--shadow-card);
}
.profile-hero .ava.big { width:74px; height:74px; border-radius:22px; font-size:27px; flex:none; box-shadow:0 10px 26px -10px rgba(0,0,0,.6); }
.profile-hero h1 { font-size:clamp(22px,3vw,30px); font-weight:600; letter-spacing:-0.4px; margin:4px 0 2px; }
.profile-hero .role { color:var(--text-2); font-size:13px; }
.profile-hero .bio { color:var(--text-1); font-size:14px; margin-top:10px; max-width:62ch; line-height:1.6; }
.bio-facts { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.bio-fact { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--text-2); background:var(--panel); border:1px solid var(--card-border); padding:6px 12px; border-radius:var(--r-pill); }
.bio-fact .ic { width:13px; height:13px; color:var(--orange-bright); flex:none; }
.profile-hero .ph-actions { margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
@media (max-width:620px){ .profile-hero .ph-actions { margin-left:0; width:100%; } .profile-hero .ph-actions .btn { flex:1; } }

/* ===== guided demo ===== */
.demo {
  min-height:100vh;
  /* transparent base so the living background animation (#bgfx) shows through — just accent glow on top */
  background:
    radial-gradient(1000px 640px at 82% -8%, rgba(var(--accent-rgb),0.16), transparent 60%),
    radial-gradient(800px 600px at -6% 108%, rgba(var(--accent-rgb),0.07), transparent 55%);
  display:flex; flex-direction:column;
  animation: fade .4s var(--ease);
}
.demo-top { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:20px clamp(18px,4vw,46px); border-bottom:1px solid var(--hairline); }
.demo-top .logo { display:block; }
.demo-tag { font-size:10.5px; letter-spacing:2.4px; text-transform:uppercase; color:var(--orange-bright); font-weight:600; }
.demo-dots { display:flex; gap:5px; flex-wrap:wrap; max-width:280px; }
.demo-dots i { width:9px; height:4px; border-radius:999px; background:var(--panel-2); transition:.3s; }
.demo-dots i.on { background:var(--orange); width:18px; }
.demo-stage { flex:1; display:grid; grid-template-columns:380px 1fr; gap:clamp(20px,3vw,52px); width:100%; max-width:none; margin:0; padding:clamp(22px,4vh,46px) clamp(20px,4vw,56px); align-items:start; }
@media (max-width:880px){ .demo-stage { grid-template-columns:1fr; gap:22px; } }
.demo-narrate { position:sticky; top:24px; }
.demo-narrate .step-n { font-size:11px; letter-spacing:1.5px; text-transform:uppercase; color:var(--text-3); font-weight:600; }
.demo-narrate .eyebrow { color:var(--orange-bright); margin-top:14px; }
.demo-narrate h1 { font-size:clamp(24px,3vw,32px); font-weight:600; line-height:1.14; letter-spacing:-0.4px; margin:10px 0 14px; }
.demo-narrate p { color:var(--text-2); font-size:15px; line-height:1.6; max-width:42ch; }
.demo-nav { display:flex; align-items:center; gap:12px; margin-top:26px; }
.demo-screen {
  background:linear-gradient(165deg, rgba(22,17,14,0.7), rgba(12,9,8,0.55));
  border:1px solid var(--card-border-warm);
  border-radius:var(--r-xl);
  padding:clamp(16px,2.4vw,26px);
  box-shadow:var(--shadow-soft), 0 0 90px -40px var(--orange-glow);
  animation:rise .45s var(--ease);
  min-height:340px;
}
.demo-screen .scr-cap { font-size:10.5px; letter-spacing:1.6px; text-transform:uppercase; color:var(--text-3); font-weight:700; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.demo-screen .scr-cap .ic { width:15px; height:15px; color:var(--orange-bright); }

/* connection map */
.conmap { display:flex; flex-direction:column; align-items:center; gap:0; }
.conmap .seed { text-align:center; padding:16px 20px; border-radius:var(--r-lg); background:var(--orange-soft); border:1px solid var(--orange-line); max-width:420px; font-size:14px; font-weight:500; }
.conmap .stem { width:2px; height:24px; background:var(--orange-line); }
.conmap .branches { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; width:100%; }
@media (max-width:520px){ .conmap .branches { grid-template-columns:1fr 1fr; } }
.conmap .branch { padding:13px; border-radius:var(--r-md); background:var(--panel); border:1px solid var(--card-border); text-align:center; }
.conmap .branch .ic { width:20px; height:20px; margin:0 auto 8px; color:var(--orange-bright); }
.conmap .branch .bk { font-size:10px; letter-spacing:1px; text-transform:uppercase; color:var(--orange-bright); font-weight:700; }
.conmap .branch .bt { font-size:12px; color:var(--text-1); margin-top:3px; font-weight:500; }

/* final tally */
.tally { display:grid; gap:10px; }
.tally .trow { display:flex; align-items:center; gap:13px; padding:12px 14px; border-radius:var(--r-md); background:var(--panel); border:1px solid var(--card-border); }
.tally .trow .tn { width:30px; height:30px; flex:none; border-radius:9px; background:var(--orange-soft); color:var(--orange-bright); display:grid; place-items:center; font-weight:700; font-size:13px; }
.tally .trow .tt { font-size:13.5px; font-weight:500; }

/* demo hero tile on dashboard (image background, centered copy, no CTA) */
.hero-tile {
  position:relative; display:flex; align-items:center; justify-content:flex-start;
  width:100%; min-height:clamp(360px, 34vw, 460px); margin-bottom:20px;
  border-radius:var(--r-lg); overflow:hidden;
  border:1px solid var(--card-border-warm);
  background:#0a0807; cursor:pointer; text-align:left;
  box-shadow:var(--shadow-card);
}
.hero-tile::before {
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(10,8,7,0.50) 0%, rgba(10,8,7,0.40) 50%, rgba(10,8,7,0.88) 100%),
    radial-gradient(1000px 460px at 50% -28%, rgba(var(--accent-rgb),0.30), transparent 62%),
    var(--hero-img) center 38% / cover no-repeat,
    radial-gradient(1100px 700px at 50% 18%, rgba(var(--accent-rgb),0.22), #0a0807 70%);
  transform:scale(1.03);
  transition:transform 9s ease;
  will-change:transform;
}
.hero-tile:hover::before { transform:scale(1.07); }
/* kid heroes: let the colorful magical scene show — only darken the left so copy stays readable */
.hero-tile.hero-kid::before {
  background:
    linear-gradient(90deg, rgba(8,6,10,0.82) 0%, rgba(8,6,10,0.40) 40%, rgba(8,6,10,0.05) 66%, transparent 82%),
    var(--hero-img) center 44% / cover no-repeat,
    #0a0810;
}
.hero-tile .hero-tile-inner {
  position:relative; z-index:1;
  padding:30px clamp(28px, 5vw, 60px);
  display:flex; flex-direction:column; align-items:flex-start; gap:8px;
}
/* match the page-header typography (eyebrow → heading → subtitle) */
.hero-tile .hero-eyebrow {
  font-size:11px; font-weight:600; letter-spacing:2.4px; text-transform:uppercase;
  color:rgba(255,255,255,0.55); text-shadow:0 1px 10px rgba(0,0,0,0.7);
}
.hero-tile .db-t {
  font-size:clamp(24px, 3.2vw, 34px); font-weight:600; letter-spacing:-0.5px;
  line-height:1.08; color:#fff; max-width:20ch; text-shadow:0 2px 20px rgba(0,0,0,0.8);
}
.hero-tile .db-s {
  font-size:14px; color:rgba(255,255,255,0.72); max-width:52ch; margin-top:4px;
  text-shadow:0 1px 12px rgba(0,0,0,0.75);
}
.hero-tile .hero-cta { margin-top:18px; box-shadow:0 12px 30px -10px rgba(0,0,0,0.6), 0 12px 30px -12px var(--orange-glow); }

/* brain dump hero — brain.png glowing on the right, text kept clear on the left */
.dump-hero { position:relative; overflow:hidden; background:linear-gradient(150deg, rgba(var(--accent-rgb),0.20), rgba(12,9,8,0.72)); backdrop-filter:blur(6px); }
.dump-hero > *:not(.dump-brain-img) { position:relative; z-index:1; }
.dump-hero .dump-brain-img {
  position:absolute; right:-26px; top:50%; transform:translateY(-50%);
  height:165%; width:auto; max-width:56%; object-fit:contain;
  z-index:0; pointer-events:none;
  -webkit-mask:linear-gradient(90deg, transparent, #000 48%);
          mask:linear-gradient(90deg, transparent, #000 48%);
  animation:brainPulse 5.5s ease-in-out infinite;
}
@keyframes brainPulse {
  0%, 100% { opacity:.48; filter:drop-shadow(0 0 16px rgba(var(--accent-rgb),0.30)); }
  50%      { opacity:.7;  filter:drop-shadow(0 0 30px rgba(var(--accent-rgb),0.55)); }
}

/* welcome variant of the banner — not clickable */
.hero-tile.hero-welcome { cursor:default; }
/* compact hero for page headers (e.g. Settings) — same themed bg, shorter */
.hero-tile.hero-compact { min-height:clamp(200px, 22vw, 300px); }
.hero-tile.hero-welcome:hover::before { transform:scale(1.03); }

/* avatar slot (left) + copy shifted to the right so they never overlap */
.hero-tile-inner.hero-has-avatar { flex-direction:row; align-items:center; gap:clamp(4px, 1vw, 16px); padding-top:16px; padding-bottom:16px; align-self:stretch; width:100%; }
.hero-avatar { position:relative; flex:none; width:clamp(150px, 16vw, 250px); align-self:stretch; min-height:200px; isolation:isolate; animation:avatarFloat 6.5s ease-in-out infinite; }
@keyframes avatarFloat { 0%, 100% { transform:translateY(0); } 50% { transform:translateY(-7px); } }
.hero-avatar img {
  position:absolute; inset:0; width:100%; height:100%; z-index:1;
  object-fit:contain; object-position:center;
  animation:avatarPulse 4.2s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%, 100% { filter:drop-shadow(0 0 8px rgba(var(--accent-rgb),0.32)) drop-shadow(0 10px 26px rgba(var(--accent-rgb),0.22)); }
  50%      { filter:drop-shadow(0 0 24px rgba(var(--accent-rgb),0.62)) drop-shadow(0 10px 32px rgba(var(--accent-rgb),0.40)); }
}
/* celestial entrance — rises out of light, blooms, then settles into the pulse */
.hero-avatar.avatar-enter img {
  animation: avatarEnter 1.6s cubic-bezier(.2,.75,.25,1) both, avatarPulse 4.2s ease-in-out 1.65s infinite;
}
.hero-avatar.avatar-enter::after {
  content:""; position:absolute; left:50%; top:50%; width:120%; aspect-ratio:1; z-index:0;
  border-radius:50%; pointer-events:none;
  background:radial-gradient(circle, rgba(var(--accent-rgb),0.5), rgba(var(--accent-rgb),0.12) 42%, transparent 66%);
  transform:translate(-50%,-50%) scale(.25); opacity:0;
  animation: avatarHalo 2s ease-out both;
}
@keyframes avatarEnter {
  0%   { opacity:0; transform:translateY(38px) scale(.84); filter:brightness(1.9) drop-shadow(0 0 40px rgba(var(--accent-rgb),0.85)); }
  55%  { opacity:1; }
  100% { opacity:1; transform:translateY(0) scale(1); filter:drop-shadow(0 0 8px rgba(var(--accent-rgb),0.32)) drop-shadow(0 10px 26px rgba(var(--accent-rgb),0.22)); }
}
@keyframes avatarHalo {
  0%   { opacity:0; transform:translate(-50%,-50%) scale(.25); }
  35%  { opacity:.85; }
  100% { opacity:0; transform:translate(-50%,-50%) scale(1.5); }
}
.hero-avatar-ph {
  position:absolute; inset:6px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  border:1.5px dashed var(--card-border-warm); border-radius:var(--r-lg);
  background:rgba(10,8,7,0.30); backdrop-filter:blur(2px);
}
.hero-avatar-ph .ic { width:38px; height:38px; color:var(--orange-bright); opacity:.85; }
.hero-avatar-ph span { font-size:10.5px; letter-spacing:1.8px; text-transform:uppercase; color:var(--text-2); }
.hero-copy { display:flex; flex-direction:column; align-items:flex-start; gap:8px; width:340px; max-width:100%; }
.hero-copy .db-t, .hero-copy .db-s { max-width:none; }
@media (max-width:600px){ .hero-copy { width:auto; max-width:none; } }
@media (max-width:600px){ .hero-avatar { display:none; } }

/* compact demo promo strip (below the welcome banner) */
.demo-strip {
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:14px 18px; margin-bottom:20px;
  border-radius:var(--r-lg);
  background:linear-gradient(120deg, var(--orange-soft), rgba(255,255,255,0.02));
  border:1px solid var(--card-border-warm);
  cursor:pointer; transition:border-color .2s var(--ease), background .2s var(--ease);
}
.demo-strip:hover { border-color:var(--orange-line); background:linear-gradient(120deg, rgba(var(--accent-rgb),0.2), rgba(255,255,255,0.03)); }
.demo-strip .ds-ic { width:40px; height:40px; flex:none; border-radius:12px; display:grid; place-items:center; background:linear-gradient(135deg,var(--orange-bright),var(--orange-deep)); color:#fff; box-shadow:0 8px 22px -8px var(--orange-glow); }
.demo-strip .ds-ic .ic { width:18px; height:18px; }
.demo-strip .ds-body { flex:1; min-width:200px; }
.demo-strip .ds-t { font-weight:600; font-size:14px; }
.demo-strip .ds-s { font-size:12.5px; color:var(--text-2); margin-top:2px; }

/* ===== shared hub system ===== */
.shortcutbar { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.scut {
  display:inline-flex; align-items:center; gap:8px; padding:9px 14px; border-radius:var(--r-pill);
  background:var(--panel); border:1px solid var(--card-border); color:var(--text-2);
  font-size:12.5px; font-weight:600; transition:.15s var(--ease);
}
.scut:hover { color:#fff; border-color:var(--card-border-warm); background:var(--panel-2); }
.scut.warm { background:var(--orange-soft); color:var(--orange-bright); border-color:var(--orange-line); }
.scut .ic { width:16px; height:16px; }

.hubbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.lowcap-toggle {
  display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:var(--r-pill);
  background:var(--panel); border:1px solid var(--card-border); color:var(--text-2);
  font-size:12px; font-weight:600; transition:.15s;
}
.lowcap-toggle .ic { width:15px; height:15px; }
.lowcap-toggle:hover { color:#fff; border-color:var(--card-border-warm); }
.lowcap-toggle.on { background:var(--orange-soft); color:var(--orange-bright); border-color:var(--orange-line); }

.chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.chip {
  display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:var(--r-pill);
  background:var(--panel-2); border:1px solid var(--hairline); color:var(--text-2);
  font-size:11px; font-weight:500; transition:.15s; cursor:pointer;
}
.chip:hover { color:#fff; border-color:var(--card-border-warm); }
.chip .ic { width:12px; height:12px; opacity:.7; }

.empty { text-align:center; padding:34px 20px; color:var(--text-3); }
.empty .ic { width:30px; height:30px; margin:0 auto; opacity:.5; color:var(--calm); }

.patcard { display:flex; gap:12px; align-items:flex-start; padding:14px; border-radius:var(--r-md); background:var(--calm-soft); border:1px solid rgba(111,168,160,.22); margin-bottom:10px; }
.patcard .patic { width:36px; height:36px; flex:none; border-radius:10px; display:grid; place-items:center; background:rgba(111,168,160,.16); color:var(--calm); }
.patcard .patic .ic { width:18px; height:18px; }
.patcard .pt { font-size:13.5px; font-weight:600; }
.patcard .ps { font-size:12px; color:var(--text-2); margin-top:2px; }

/* timeline */
.timeline { position:relative; padding-left:24px; }
.timeline::before { content:""; position:absolute; left:7px; top:6px; bottom:6px; width:2px; background:var(--hairline); }
.tl-item { position:relative; padding:0 0 18px; }
.tl-item:last-child { padding-bottom:0; }
.tl-item::before { content:""; position:absolute; left:-21px; top:4px; width:12px; height:12px; border-radius:50%; background:var(--bg-1); border:2px solid var(--orange); }
.tl-item.calm::before { border-color:var(--calm); }
.tl-item .tl-date { font-size:11px; letter-spacing:.5px; color:var(--orange-bright); font-weight:600; text-transform:uppercase; }
.tl-item .tl-title { font-size:14px; font-weight:600; margin-top:3px; }
.tl-item .tl-sub { font-size:12.5px; color:var(--text-2); margin-top:2px; }

/* log entry / factual record */
.logrow { padding:14px; border-radius:var(--r-md); background:var(--panel); border:1px solid var(--card-border); margin-bottom:10px; }
.logrow .lr-top { display:flex; justify-content:space-between; gap:10px; align-items:baseline; margin-bottom:5px; }
.logrow .lr-who { font-size:13px; font-weight:600; }
.logrow .lr-when { font-size:11px; color:var(--text-3); }
.logrow .lr-body { font-size:13px; color:var(--text-1); }
.logrow .lr-quote { font-size:12.5px; color:var(--text-2); font-style:italic; border-left:2px solid var(--orange-line); padding-left:10px; margin-top:8px; }

/* confidence meter for sort review */
.conf { display:inline-flex; align-items:center; gap:6px; font-size:11px; color:var(--text-3); }
.conf .bars { display:flex; gap:2px; }
.conf .bars i { width:4px; height:10px; border-radius:2px; background:var(--panel-2); }
.conf .bars i.on { background:var(--orange-bright); }

/* sub-tabs inside a hub */
.subtabs { display:inline-flex; gap:4px; padding:4px; background:var(--panel); border:1px solid var(--card-border); border-radius:var(--r-pill); flex-wrap:wrap; }
.subtabs button { padding:8px 15px; border-radius:var(--r-pill); font-size:12.5px; font-weight:600; color:var(--text-2); transition:.15s; }
.subtabs button.on { background:linear-gradient(135deg,var(--orange-bright),var(--orange-deep)); color:#fff; }

/* low-capacity wrapper */
.lowcap-screen { max-width:560px; margin:0 auto; }
.lowcap-hero { text-align:center; padding:24px; border-radius:var(--r-lg); background:linear-gradient(160deg,var(--orange-soft),rgba(255,255,255,.02)); border:1px solid var(--card-border-warm); margin-bottom:16px; }
.lowcap-hero .eyebrow { color:var(--orange-bright); }
.lowcap-hero .one { font-size:20px; font-weight:600; margin:10px 0 6px; }

/* mini provider/contact card */
.contact { display:flex; gap:12px; padding:14px; border-radius:var(--r-md); background:var(--panel); border:1px solid var(--card-border); transition:.15s; align-items:center; cursor:pointer; }
.contact:hover { border-color:var(--card-border-warm); }
.contact .cav { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; font-weight:600; color:#fff; flex:none; }
.contact .cn { font-size:14px; font-weight:600; }
.contact .cr { font-size:11.5px; color:var(--text-3); }

/* ===== settings screen ===== */
.theme-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(74px, 1fr)); gap:10px; }
.theme-sw { display:flex; flex-direction:column; align-items:center; gap:8px; padding:13px 6px; border-radius:var(--r-md); background:var(--panel); border:1px solid var(--card-border); transition:.16s var(--ease); cursor:pointer; }
.theme-sw:hover { border-color:var(--card-border-warm); transform:translateY(-2px); }
.theme-sw.sel { border-color:var(--sw); box-shadow:inset 0 0 0 1px var(--sw), 0 12px 26px -14px var(--sw); }
.theme-dot { width:30px; height:30px; border-radius:50%; background:var(--sw); box-shadow:0 5px 16px -4px var(--sw); transition:.16s var(--ease); }
.theme-sw.sel .theme-dot { box-shadow:0 0 0 3px rgba(255,255,255,0.14), 0 5px 18px -2px var(--sw); }
.theme-name { font-size:11px; color:var(--text-2); font-weight:600; }
.theme-sw.sel .theme-name { color:var(--text-1); }
.theme-body { display:flex; gap:16px; align-items:stretch; }
.theme-body .theme-grid { flex:1; min-width:0; align-content:start; }
.theme-preview {
  position:relative; width:96px; flex:none; border-radius:var(--r-md);
  background:linear-gradient(180deg, var(--orange-soft), rgba(255,255,255,0.02));
  border:1px solid var(--card-border-warm); overflow:hidden;
  display:grid; place-items:end center;
}
.theme-preview img { width:100%; height:auto; max-height:168px; object-fit:contain; object-position:bottom center; filter:drop-shadow(0 6px 18px var(--orange-glow)); transition:opacity .2s; }
.theme-preview-tag { position:absolute; top:7px; left:50%; transform:translateX(-50%); font-size:9px; letter-spacing:1.4px; text-transform:uppercase; color:var(--text-3); font-weight:700; }
@media (max-width:520px){ .theme-body { flex-direction:column; } .theme-preview { width:100%; height:140px; } }

.set-row { display:flex; align-items:center; gap:16px; padding:13px 2px; border-bottom:1px solid var(--hairline); }
.set-row:last-child { border-bottom:none; }
.set-text { flex:1; min-width:0; }
.set-t { font-size:14px; font-weight:600; }
.set-d { font-size:12.5px; color:var(--text-2); margin-top:2px; }
.switch { width:46px; height:26px; border-radius:999px; background:var(--panel-2); border:1px solid var(--card-border); position:relative; flex:none; transition:.2s var(--ease); cursor:pointer; }
.switch span { position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%; background:var(--text-2); transition:.2s var(--ease); }
.switch.on { background:linear-gradient(135deg,var(--orange-bright),var(--orange-deep)); border-color:var(--orange-line); box-shadow:0 6px 16px -8px var(--orange-glow); }
.switch.on span { left:22px; background:#fff; }
.set-avatar { width:58px; height:74px; flex:none; position:relative; border-radius:14px; overflow:hidden; background:var(--panel); border:1px solid var(--card-border); }
.set-avatar img { width:100%; height:100%; object-fit:contain; object-position:bottom; }
.set-avatar-ph { width:100%; height:100%; display:grid; place-items:center; font-weight:600; color:var(--orange-bright); background:var(--orange-soft); }

/* ===== accessibility modes (toggled from Settings) ===== */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation:none !important; transition-duration:.001ms !important; }
.low-stim #bgfx { display:none !important; }
.low-stim body::before { animation:none; opacity:.42; }
.low-stim .hero-tile::before { filter:saturate(.82) brightness(.9); }
.low-stim .hero-avatar, .low-stim .hero-avatar img, .low-stim .dump-brain-img { animation:none !important; }
.low-stim .card, .low-stim .hero-tile, .low-stim .demo-strip, .low-stim .dump-wrap, .low-stim .modal { box-shadow:none !important; }
html.dys body { letter-spacing:.035em; word-spacing:.10em; }
html.dys p, html.dys .set-d, html.dys .db-s, html.dys .row .s, html.dys .muted, html.dys .faint { line-height:1.85 !important; }
html.hc { --text-2:rgba(255,255,255,0.88); --text-3:rgba(255,255,255,0.74); --hairline:rgba(255,255,255,0.18); --card-border:rgba(255,255,255,0.22); }
html.lg-text .screen { zoom:1.09; }
html.big-tap .btn { min-height:48px; }
html.big-tap .nav-item { padding-top:12px; padding-bottom:12px; }
html.big-tap .seg button, html.big-tap .feel, html.big-tap .dump-tool, html.big-tap .choice, html.big-tap .icon-btn { min-height:44px; }

/* about / founder */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
@media (max-width: 620px){ .founder { grid-template-columns: 1fr; text-align: center; } }
.founder .fava { width: 84px; height: 84px; border-radius: 24px; background: linear-gradient(140deg, var(--orange), var(--orange-deep)); display: grid; place-items: center; font-size: 30px; font-weight: 600; color: #fff; }
.founder blockquote { font-size: 16px; line-height: 1.6; font-style: italic; color: var(--text-1); }
.founder .by { margin-top: 12px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--orange-bright); font-weight: 600; }

/* ===== Golden path (dashboard) ===== */
.golden-path { margin-bottom: var(--gap); background: linear-gradient(160deg, rgba(var(--accent-rgb),0.10), rgba(12,9,8,0.55)); border-color: var(--orange-line); }
.golden-path .gp-eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-bright); font-weight: 600; }
.golden-path .gp-title { font-size: 18px; font-weight: 600; color: var(--text-1); margin-top: 5px; line-height: 1.25; }
.golden-path .gp-sub { font-size: 12.5px; color: var(--text-2); margin-top: 6px; max-width: 720px; line-height: 1.5; }
.gp-steps { display: flex; align-items: stretch; gap: 6px; margin: 16px 0 4px; flex-wrap: wrap; }
.gp-step { flex: 1 1 130px; min-width: 130px; display: flex; gap: 9px; align-items: flex-start; padding: 11px 12px; border-radius: var(--r-md); background: rgba(255,255,255,0.025); border: 1px solid var(--card-border); }
.gp-ic { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: rgba(var(--accent-rgb),0.14); color: var(--accent-bright); }
.gp-ic svg { width: 16px; height: 16px; }
.gp-st { font-size: 13px; font-weight: 600; color: var(--text-1); line-height: 1.2; }
.gp-ss { font-size: 11.5px; color: var(--text-3); margin-top: 3px; line-height: 1.35; }
.gp-arrow { display: grid; place-items: center; color: var(--text-3); flex-shrink: 0; align-self: center; }
.gp-arrow svg { width: 15px; height: 15px; opacity: .5; }
.gp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
@media (max-width: 900px) { .gp-arrow { display: none; } .gp-step { flex-basis: calc(50% - 6px); } }
@media (max-width: 560px) { .gp-step { flex-basis: 100%; } .gp-actions .btn { flex: 1 1 100%; } }
