/*
 * Han AI tenant dashboard — components
 * Light Inter-based product design (Han's hand-crafted redesign, 2026-05-12).
 */

.shell { max-width: 1180px; margin: 0 auto; padding: 32px 24px 80px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; gap: 12px; flex-wrap: wrap; }

.live-indicator { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #E5E7EB; font-size: 11px; font-weight: 600; color: #111; letter-spacing: 0.6px; text-transform: uppercase; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; flex-shrink: 0; }
.live-dot::before, .live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #16a34a; opacity: 0.4; }
.live-dot::before { animation: pulse-ring 2.4s cubic-bezier(0.215,0.61,0.355,1) infinite; }
.live-dot::after { animation: pulse-ring 2.4s cubic-bezier(0.215,0.61,0.355,1) infinite; animation-delay: 1.2s; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(3.2); opacity: 0; } }
.live-text::after { content: ''; display: inline-block; width: 6px; animation: ellipsis 1.6s steps(4,end) infinite; text-align: left; overflow: hidden; vertical-align: bottom; }
@keyframes ellipsis { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #E5E7EB; font-size: 11px; font-weight: 500; color: #374151; letter-spacing: 0.2px; }
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; animation: soft-pulse 3s ease-in-out infinite; }
@keyframes soft-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22,163,74,0.4); } 50% { opacity: 0.85; box-shadow: 0 0 0 4px rgba(22,163,74,0); } }

.hero { margin-bottom: 48px; max-width: 760px; }
.hero h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: #111; background: linear-gradient(110deg, #111 0%, #111 35%, #6B7280 50%, #111 65%, #111 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: hero-shimmer 6s ease-in-out infinite, fade-up 0.8s cubic-bezier(0.16,1,0.3,1) both; }
.hero .lede { margin-top: 14px; font-size: 15px; color: #6B7280; font-weight: 400; letter-spacing: 0.1px; animation: fade-up 0.8s cubic-bezier(0.16,1,0.3,1) 0.15s both; }
@keyframes hero-shimmer { 0%, 100% { background-position: 200% 0; } 50% { background-position: -50% 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.block { margin-bottom: 48px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #E5E7EB; }
.block-title { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #111; }
.block-eyebrow { font-size: 10px; color: #9CA3AF; letter-spacing: 1px; text-transform: uppercase; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.span-2 { grid-column: span 2; }
@media (max-width: 880px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

.card { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 22px 24px; transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s; animation: card-in 0.7s cubic-bezier(0.16,1,0.3,1) both; opacity: 0; }
.card:hover { border-color: #D1D5DB; box-shadow: 0 6px 24px -12px rgba(17,17,17,0.12); transform: translateY(-2px); }
@keyframes card-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.block:nth-of-type(1) .card:nth-child(1) { animation-delay: 0.30s; }
.block:nth-of-type(1) .card:nth-child(2) { animation-delay: 0.38s; }
.block:nth-of-type(1) .card:nth-child(3) { animation-delay: 0.46s; }
.block:nth-of-type(1) .card:nth-child(4) { animation-delay: 0.54s; }
.block:nth-of-type(2) .card:nth-child(1) { animation-delay: 0.62s; }
.block:nth-of-type(2) .card:nth-child(2) { animation-delay: 0.70s; }
.block:nth-of-type(2) .card:nth-child(3) { animation-delay: 0.78s; }
.block:nth-of-type(3) .card:nth-child(1) { animation-delay: 0.86s; }
.block:nth-of-type(3) .card:nth-child(2) { animation-delay: 0.94s; }
.block:nth-of-type(3) .card:nth-child(3) { animation-delay: 1.02s; }
.card h3 { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #9CA3AF; margin-bottom: 14px; }
.card p { font-size: 13px; color: #374151; line-height: 1.55; }
.card p.muted { color: #9CA3AF; font-size: 12px; }
.card ul { list-style: none; }
.card ul li { font-size: 13px; color: #374151; padding: 10px 0; border-bottom: 1px solid #F3F4F6; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card ul li:last-child { border-bottom: none; }
.card ul li strong { font-weight: 500; color: #111; font-variant-numeric: tabular-nums; }
.card ul li .li-meta { font-size: 11px; color: #9CA3AF; font-variant-numeric: tabular-nums; }

.card-emphasis { background: #111; color: #fff; border-color: #111; position: relative; overflow: hidden; cursor: pointer; }
.card-emphasis::before { content: ''; position: absolute; top: -50%; left: -100%; width: 60%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); transform: skewX(-20deg); animation: sweep 5s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 0% { left: -100%; } 60%, 100% { left: 160%; } }
.card-emphasis:hover { border-color: #111; box-shadow: 0 12px 32px -12px rgba(17,17,17,0.45); transform: translateY(-3px); }
.card-emphasis h3 { color: rgba(255,255,255,0.5); }
.card-emphasis p, .card-emphasis strong { color: #fff; }
.card-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.card-cta .cta-label { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 600; margin-bottom: 6px; }
.card-cta .cta-text { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.card-cta .cta-arrow { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.7); letter-spacing: 0.2em; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.card-emphasis:hover .cta-arrow { transform: translateX(6px); color: #fff; }

.stage-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.stage-num { font-size: 36px; font-weight: 300; letter-spacing: -0.02em; color: #111; font-variant-numeric: tabular-nums; }
.stage-of { font-size: 13px; color: #9CA3AF; }
.stage-name { font-size: 13px; color: #111; font-weight: 500; margin-left: auto; }
.stage-bar { height: 4px; background: #F3F4F6; border-radius: 2px; overflow: hidden; position: relative; }
.stage-bar-fill { height: 100%; background: #111; border-radius: 2px; width: 0; animation: stage-grow 1.4s cubic-bezier(0.16,1,0.3,1) 1.1s forwards; position: relative; overflow: hidden; }
.stage-bar-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); animation: stage-shine 2.8s ease-in-out infinite; animation-delay: 2.5s; }
@keyframes stage-grow { to { width: var(--stage-pct, 12.5%); } }
@keyframes stage-shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(300%); } }

.tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 8px 0 14px; }
.tile { aspect-ratio: 1/1; border-radius: 6px; background: #F3F4F6; border: 1px solid #E5E7EB; position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 6px; transition: transform 0.2s ease, border-color 0.2s ease; cursor: default; opacity: 0; animation: tile-in 0.5s cubic-bezier(0.16,1,0.3,1) forwards; }
.tile:nth-child(1) { animation-delay: 1.20s; }
.tile:nth-child(2) { animation-delay: 1.28s; }
.tile:nth-child(3) { animation-delay: 1.36s; }
.tile:nth-child(4) { animation-delay: 1.44s; }
.tile:nth-child(5) { animation-delay: 1.52s; }
.tile:nth-child(6) { animation-delay: 1.60s; }
.tile:nth-child(7) { animation-delay: 1.68s; }
.tile:nth-child(8) { animation-delay: 1.76s; }
@keyframes tile-in { from { opacity: 0; transform: translateY(6px) scale(0.85); } to { opacity: 1; transform: translateY(0) scale(1); } }
.tile:hover { transform: translateY(-2px); border-color: #111; }
.tile::after { content: attr(data-num); font-size: 9px; color: #9CA3AF; font-weight: 600; font-variant-numeric: tabular-nums; transition: color 0.2s; }
.tile.lit { background: #111; border-color: #111; }
.tile.lit::after { color: #fff; }
.tile.active { background: #fff; border-color: #111; border-width: 1.5px; animation: tile-in 0.5s cubic-bezier(0.16,1,0.3,1) forwards, active-breathe 2.6s ease-in-out infinite 2.4s; }
.tile.active::after { color: #111; }
@keyframes active-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(17,17,17,0.18); } 50% { box-shadow: 0 0 0 5px rgba(17,17,17,0); } }
.tile-caption { display: flex; justify-content: space-between; font-size: 10px; color: #9CA3AF; letter-spacing: 0.6px; text-transform: uppercase; margin-top: 10px; }

.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid #F3F4F6; }
.feature:last-child { border-bottom: none; padding-bottom: 0; }
.feature:first-child { padding-top: 0; }
.feature-name { font-size: 13px; font-weight: 600; color: #111; margin-bottom: 4px; letter-spacing: -0.005em; }
.feature-desc { font-size: 12px; color: #6B7280; line-height: 1.5; }
.chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: #F3F4F6; color: #6B7280; font-size: 9px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; white-space: nowrap; align-self: start; }
.chip.soon { background: #FEF3C7; color: #92400E; }
.chip.live { background: #dcfce7; color: #16a34a; }

.empty { font-size: 12px; color: #9CA3AF; font-style: normal; }

.assumption-list { display: flex; flex-direction: column; gap: 10px; }
.assumption-item { padding: 12px 0; border-bottom: 1px solid #F3F4F6; }
.assumption-item:last-child { border-bottom: none; padding-bottom: 0; }
.assumption-item:first-child { padding-top: 0; }
.assumption-statement { font-size: 13px; color: #374151; line-height: 1.45; margin-bottom: 8px; }
.assumption-actions { display: flex; gap: 10px; align-items: center; }
.btn-confirm { font-size: 11px; font-weight: 600; letter-spacing: 0.3px; padding: 6px 14px; background: #111; color: #fff; border: none; border-radius: 8px; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.btn-confirm:hover { background: #000; transform: translateY(-1px); }
.btn-tellmore { font-size: 11px; color: #6B7280; text-decoration: none; font-weight: 500; }
.btn-tellmore:hover { color: #111; }
.assumption-item.confirmed { padding: 12px 14px; background: #dcfce7; border-radius: 8px; border-bottom: none; margin-bottom: 8px; }
.assumption-item.confirmed .assumption-statement { margin-bottom: 4px; color: #166534; }
.assumption-confirmed-line { font-size: 11px; color: #16a34a; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }

.dash-footer { max-width: 1180px; margin: 0 auto; padding: 24px 24px 40px; border-top: 1px solid #E5E7EB; font-size: 11px; color: #9CA3AF; letter-spacing: 0.3px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.dash-footer .dot { margin: 0 8px; color: #D1D5DB; }

@media (max-width: 880px) {
  .shell { padding: 24px 18px 64px; }
  .topbar { margin-bottom: 32px; }
  .hero { margin-bottom: 36px; }
  .hero h1 { font-size: 30px; letter-spacing: -0.025em; line-height: 1.18; }
  .hero .lede { font-size: 14px; margin-top: 10px; }
  .block { margin-bottom: 36px; }
  .block-head { margin-bottom: 14px; padding-bottom: 10px; }
  .block-title { font-size: 10px; letter-spacing: 1.4px; }
  .grid { gap: 12px; }
  .card { padding: 18px 18px; border-radius: 10px; }
  .card h3 { margin-bottom: 12px; }
  .card p, .card ul li { font-size: 13px; }
  .card-cta { flex-direction: row; align-items: center; }
  .card-cta .cta-text { font-size: 15px; }
  .stage-num { font-size: 30px; }
  .tiles { gap: 5px; }
  .tile { border-radius: 5px; }
  .tile::after { font-size: 8px; }
  .feature { grid-template-columns: 1fr; gap: 8px; }
  .chip { justify-self: start; }
  .dash-footer { padding: 20px 18px 32px; font-size: 10px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .stage-num { font-size: 26px; }
  .topbar .live-indicator, .topbar .status-pill { font-size: 10px; padding: 5px 10px 5px 10px; }
  .card { padding: 16px 16px; }
}
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; border-color: #E5E7EB; }
  .card-emphasis:active { transform: scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .card { opacity: 1; }
  .stage-bar-fill { width: var(--stage-pct, 12.5%); }
}

/* ══════════════════════════════════════════════════════════
   Login page — kept minimal and separate. Untouched by redesign.
   ══════════════════════════════════════════════════════════ */
body.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #FAFAFA;
}

main.login-main {
  max-width: 480px;
  width: 100%;
  text-align: center;
  padding: 2rem 0;
}

main.login-main h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: #111;
}

main.login-main .lede {
  font-size: 15px;
  line-height: 1.55;
  color: #6B7280;
  margin: 0 auto 2rem;
  max-width: 32ch;
}

main.login-main #tg-widget {
  display: flex;
  justify-content: center;
}
