
/* GILTOS v0.7.0 public-alpha refinement layer
   Purpose: public launch polish, page-specific hero clarity, App workspace layout stability. */
:root {
  --giltos-blue: #1677ff;
  --giltos-blue-dark: #0958d9;
  --giltos-text: #101828;
  --giltos-muted: #667085;
  --giltos-border: #e5e7eb;
  --giltos-bg: #f5f8fc;
  --giltos-card: #ffffff;
}

/* ---------- Public header / footer consistency ---------- */
.site-header,
header.site-header {
  height: 64px !important;
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid #e8edf5 !important;
  backdrop-filter: blur(10px);
}
.site-header .site-nav,
.site-nav {
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
}
.brand,
a.brand,
.logo,
a.logo,
.footer-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.brand-mark,
.logo-mark,
.logo-icon,
.footer-brand .brand-mark {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 10px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: linear-gradient(135deg, rgba(22,119,255,.12), rgba(22,119,255,.05)) !important;
  border: 1px solid rgba(22,119,255,.18) !important;
  overflow: hidden !important;
}
.brand-logo-img,
.brand-mark img,
.footer-brand img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
  display: block !important;
}
.brand-text,
.logo-text,
.footer-brand strong,
.site-logo span {
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: .01em !important;
  color: var(--giltos-text) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.nav-menu a {
  font-size: 14px !important;
  color: #344054 !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}
.nav-menu a.active,
.nav-menu a:hover { color: var(--giltos-blue) !important; }
.nav-actions .btn,
.nav-actions a { white-space: nowrap !important; }
.site-footer .footer-brand { margin-bottom: 14px !important; }
.site-footer .footer-brand strong { font-size: 18px !important; }
.site-footer .footer-grid { align-items: flex-start !important; }

/* ---------- Page-specific public hero ---------- */
.page-hero,
.giltos-task-hero {
  background: linear-gradient(180deg, #f4f8ff 0%, #fff 100%) !important;
  border-bottom: 1px solid #edf1f7 !important;
  padding: 72px 0 60px !important;
}
.giltos-task-hero .hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 48px;
  align-items: center;
}
.giltos-task-hero .eyebrow,
.giltos-task-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(22,119,255,.08);
  color: var(--giltos-blue);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.giltos-task-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -.045em;
  color: var(--giltos-text);
}
.giltos-task-hero p {
  margin: 0;
  max-width: 640px;
  color: #475467;
  font-size: 17px;
  line-height: 1.85;
}
.giltos-task-hero .hero-tags,
.giltos-task-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.giltos-task-hero .hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d8e6ff;
  color: #344054;
  font-size: 13px;
}
.giltos-task-hero .hero-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(16,24,40,.10);
  padding: 26px;
}
.giltos-task-hero .hero-panel h3 { margin: 0 0 16px; font-size: 18px; color: var(--giltos-text); }
.giltos-task-hero .hero-metric-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.giltos-task-hero .hero-metric {
  padding: 16px;
  border: 1px solid #e6ecf5;
  border-radius: 14px;
  background: #f8fbff;
}
.giltos-task-hero .hero-metric strong { display:block; font-size: 15px; color: var(--giltos-text); margin-bottom: 8px; }
.giltos-task-hero .hero-metric span { color: #667085; font-size: 13px; }

/* hide older generic hero when a file still contains both */
body.has-task-hero .gts-public-hero:first-of-type:not(.keep-generic-hero) { display: none !important; }

/* ---------- Docs / deliverables rich content ---------- */
.giltos-rich-section { padding: 72px 0; background: #fff; }
.giltos-rich-section.alt { background: #f5f8fc; }
.giltos-rich-container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.giltos-section-head { margin-bottom: 28px; text-align: center; }
.giltos-section-head .kicker { color: var(--giltos-blue); font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.giltos-section-head h2 { margin: 0 0 12px; font-size: 34px; line-height: 1.2; color: var(--giltos-text); letter-spacing: -.02em; }
.giltos-section-head p { max-width: 760px; margin: 0 auto; color: var(--giltos-muted); line-height: 1.8; }
.giltos-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.giltos-card-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.giltos-info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(16,24,40,.05);
}
.giltos-info-card h3 { margin: 0 0 10px; color: var(--giltos-text); font-size: 18px; }
.giltos-info-card p, .giltos-info-card li { color: #475467; line-height: 1.75; font-size: 14px; }
.giltos-info-card ul { padding-left: 18px; margin: 12px 0 0; }
.giltos-table-wrap { overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgba(16,24,40,.04); }
.giltos-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.giltos-table th, .giltos-table td { padding: 16px 18px; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: top; font-size: 14px; line-height: 1.65; }
.giltos-table th { background: #f8fbff; color: #344054; font-weight: 800; white-space: nowrap; }
.giltos-table tr:last-child td { border-bottom: 0; }
.giltos-badge { display:inline-flex; padding: 4px 9px; border-radius: 999px; background:#eff6ff; color:#1677ff; font-size:12px; font-weight:700; }

/* ---------- Demo step bar refinement ---------- */
.giltos-stepbar {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(255,255,255,.94) !important;
  border-bottom: 1px solid #edf1f7 !important;
  backdrop-filter: blur(12px);
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 10px max(24px, calc((100vw - 1180px)/2)) !important;
}
.giltos-stepbar-label { flex: 0 0 auto; color: #667085 !important; font-size: 13px !important; font-weight: 700 !important; }
.giltos-stepbar-scroll { display:flex !important; gap: 8px !important; overflow-x:auto !important; scrollbar-width:none; }
.giltos-stepbar-scroll::-webkit-scrollbar { display:none; }
.giltos-stepbar-item {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items:center !important;
  gap: 6px !important;
  padding: 7px 10px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #475467 !important;
  font-size: 12px !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
.giltos-stepbar-item.current,
.giltos-stepbar-item:hover { background: #1677ff !important; border-color:#1677ff !important; color:#fff !important; }
.giltos-stepbar-num { display:inline-grid; place-items:center; width:20px; height:20px; border-radius:50%; background:#eef6ff; color:#1677ff; font-weight:800; font-size:11px; }
.giltos-stepbar-item.current .giltos-stepbar-num,
.giltos-stepbar-item:hover .giltos-stepbar-num { background:rgba(255,255,255,.22); color:#fff; }

/* ---------- App workspace layout polish ---------- */
body .app-layout { background: #f5f8fc !important; }
.app-layout .sidebar {
  width: 220px !important;
  background: #fff !important;
  border-right: 1px solid #e7edf5 !important;
}
.app-layout .sidebar-logo { height:64px !important; padding:0 18px !important; }
.app-layout .logo-text { font-weight: 800 !important; }
.app-layout .sidebar-nav { padding: 18px 12px !important; }
.app-layout .sidebar-link {
  min-height: 46px !important;
  border-radius: 12px !important;
  padding: 11px 14px !important;
  font-weight: 650 !important;
  color: #344054 !important;
}
.app-layout .sidebar-link.active { background:#eaf4ff !important; color:#1677ff !important; box-shadow: inset 3px 0 0 #1677ff; }
.app-layout .main-content { margin-left: 220px !important; background:#f5f8fc !important; }
.app-layout .topbar { height:64px !important; padding: 0 28px !important; background: rgba(255,255,255,.96) !important; }
.app-layout .page-content {
  max-width: 1180px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding: 28px 36px 56px !important;
}
.app-layout .page-header,
.app-layout .section-header { margin-bottom: 24px !important; }
.app-layout .page-header h1 { font-size: 28px !important; line-height: 1.2 !important; font-weight: 800 !important; color: #101828 !important; }
.app-layout .page-header p { max-width: 760px !important; color: #667085 !important; line-height: 1.7 !important; }
.app-layout .card,
.app-layout .project-card,
.app-layout .report-card,
.app-layout .stat-card,
.app-layout .settings-card,
.app-layout .metric-card {
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(16,24,40,.045) !important;
}
.app-layout .stats-grid { display:grid !important; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)) !important; gap:18px !important; }
.app-layout .projects-grid,
.app-layout .reports-grid { display:grid !important; grid-template-columns: repeat(auto-fit,minmax(360px,1fr)) !important; gap:20px !important; }
.app-layout .demo-notice { border-radius: 14px !important; margin-bottom: 22px !important; }
.app-layout .page-breadcrumb { margin-bottom: 16px !important; }
.app-layout .btn-primary,
.app-layout .btn.btn-primary { background:#1677ff !important; color:#fff !important; border-color:#1677ff !important; box-shadow: 0 10px 22px rgba(22,119,255,.18); }

/* App pages can contain stepbar: keep it inside content instead of sticky */
.app-layout .giltos-stepbar {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
  margin: 0 0 22px !important;
  padding: 12px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  background:#fff !important;
}

/* ---------- Assessment form: hide static toast and fix repeat artifacts ---------- */
#demoToast.demo-toast { display: none !important; }
.assessment-page .form-section,
.ready-assessment .form-section { background:#fff !important; }

/* ---------- Case and app small spacing fixes ---------- */
a, button { text-underline-offset: 3px; }
.gts-btn, .btn { align-items:center; justify-content:center; }

@media (max-width: 1024px) {
  .giltos-task-hero .hero-inner { grid-template-columns: 1fr; }
  .app-layout .main-content { margin-left:0 !important; }
  .app-layout .page-content { padding: 24px 20px 48px !important; max-width: none !important; }
}
@media (max-width: 760px) {
  .site-header .nav-menu { display:none !important; }
  .giltos-stepbar { top:64px; align-items:flex-start !important; flex-direction:column !important; padding:10px 16px !important; }
  .giltos-task-hero { padding: 48px 0 !important; }
  .giltos-task-hero .hero-inner { padding:0 20px; }
  .giltos-card-grid, .giltos-card-grid.two { grid-template-columns: 1fr; }
  .giltos-task-hero .hero-metric-grid { grid-template-columns:1fr; }
}
