/* ============================================================
   Trula HRMS (Orbit) — static product page.
   Same design language as the app: Deep Navy structure, Trust
   Blue actions, Inter, tonal-layer elevation.
   ============================================================ */

:root {
  --surface-0: #f8fafc;
  --surface-1: #ffffff;
  --surface-muted: #eef2f7;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-faint: #8695aa;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-700: #1e40af;
  --primary-soft: #eff6ff;
  --accent: #3b82f6;
  --navy: #0f172a;
  --success-soft: #ecfdf5;
  --success-text: #047857;
  --warning-soft: #fef3c7;
  --warning-text: #b45309;
  --elev-1: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.06);
  --elev-2: 0 2px 4px rgba(15, 23, 42, 0.05), 0 6px 12px -2px rgba(15, 23, 42, 0.08);
  --elev-3: 0 4px 6px -2px rgba(15, 23, 42, 0.05), 0 12px 20px -4px rgba(15, 23, 42, 0.1);
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --header-h: 68px;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
}

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

img { max-width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn.lg {
  padding: 13px 26px;
  font-size: 1rem;
  border-radius: var(--r-lg);
}
.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--elev-1);
}
.btn.primary:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: var(--elev-2);
}
.btn.ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-1);
}
.btn.ghost:hover {
  border-color: var(--primary);
  color: var(--primary-600);
  transform: translateY(-1px);
}
/* On the navy CTA band the pair inverts: white solid + white outline. */
.btn.inverse { background: #fff; color: var(--navy); }
.btn.inverse:hover { transform: translateY(-1px); box-shadow: var(--elev-2); }
.btn.outline { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn.outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--elev-1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--navy);
  box-shadow: var(--elev-1);
  flex: none;
}
.brand__mark img {
  width: 30px;
  height: 30px;
  display: block;
  filter: brightness(0) invert(1);
}
.brand__wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.brand__wordmark strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--navy);
}
.brand__wordmark em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.site-nav { display: flex; gap: 26px; margin: 0 auto; }
.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: var(--primary-600); border-bottom-color: var(--primary); }

.header-auth { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 9vh, 110px) clamp(16px, 4vw, 48px) clamp(48px, 8vh, 96px);
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 14px;
}
.hero__copy h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 18px;
}
.hero__accent { color: var(--primary); position: relative; white-space: nowrap; }
.hero__accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.14em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary-600));
  opacity: 0.35;
}
.hero__sub {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: 28px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero__stats {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  list-style: none;
  padding: 0;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.hero__stats span { font-size: 0.8rem; color: var(--text-muted); }

/* Floating product cards. */
.hero__visual {
  position: relative;
  min-height: 380px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 75% 20%, rgba(59, 130, 246, 0.14), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(30, 64, 175, 0.12), transparent 50%),
    linear-gradient(160deg, #eef2f7 0%, #f8fafc 100%);
  box-shadow: inset 0 0 0 1px var(--border);
}
.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  box-shadow: var(--elev-3);
  animation: hero-float 5.5s ease-in-out infinite;
}
.hero-card strong { display: block; font-size: 0.9rem; font-weight: 700; }
.hero-card em { font-style: normal; font-size: 0.8rem; color: var(--text-muted); }
.hero-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  font-size: 16px;
  flex: none;
}
.hero-card__icon.ok { background: var(--success-soft); color: var(--success-text); font-weight: 800; }
.hero-card__icon.warn { background: var(--warning-soft); }
.hero-card--checkin  { top: 8%;  left: 6%;  animation-delay: 0s; }
.hero-card--leave    { top: 38%; right: 5%; animation-delay: 1.4s; }
.hero-card--announce { bottom: 8%; left: 10%; animation-delay: 2.8s; }
.hero-card--balance  { top: 62%; right: 38%; display: block; animation-delay: 2s; }
.hero-card--balance strong { margin-bottom: 8px; }
.hero-card__bars { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.hero-card__bars span {
  position: relative;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 7px;
}
.hero-card__bars span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary-600));
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(56px, 9vh, 104px) clamp(16px, 4vw, 48px); }
.section--tint { background: var(--surface-muted); }
.section__head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vh, 56px);
  text-align: center;
}
.section__head h2,
.cta h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}
.section__sub {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Scroll-reveal (script.js adds .in when visible; no-JS stays visible). */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-card { animation: none; }
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  border: 1px solid var(--border);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease,
    opacity 0.55s ease, translate 0s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--elev-3);
}
.feature-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  font-size: 18px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); }

/* ---------- Roles ---------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.role-card {
  padding: 30px 28px;
  border-radius: var(--r-xl);
  background: var(--surface-1);
  border: 1px solid var(--border);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.55s ease;
}
.role-card:hover { transform: translateY(-4px); box-shadow: var(--elev-3); }
.role-card.is-highlight { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--elev-2); }
.role-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--navy);
  font-size: 18px;
  margin-bottom: 16px;
}
.role-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.role-card__tag { font-size: 0.9rem; color: var(--primary-600); font-weight: 600; margin: 4px 0 16px; }
.role-card ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.role-card li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.role-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--success-text);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  border: 1px solid var(--border);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.55s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--elev-2); }
.step__num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--surface-muted);
  -webkit-text-stroke: 1px var(--border-strong);
}
.step h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; max-width: 85%; }
.step p { font-size: 0.9rem; line-height: 1.55; color: var(--text-muted); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq__item.is-open { border-color: var(--primary); box-shadow: var(--elev-2); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}
.faq__chevron {
  flex: none;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.faq__item.is-open .faq__chevron { transform: rotate(180deg); color: var(--primary-600); }
.faq__a { padding: 0 20px 18px; }
.faq__a p { font-size: 0.9rem; line-height: 1.65; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta {
  padding: clamp(56px, 9vh, 104px) clamp(16px, 4vw, 48px);
  background: linear-gradient(160deg, var(--navy) 0%, var(--primary-700) 100%);
}
.cta__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta h2 { color: #fff; }
.cta p {
  margin: 14px auto 28px;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 32px;
  padding: 28px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--border);
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.site-footer__brand strong { color: var(--navy); letter-spacing: 0.1em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 auto; }
.site-footer nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--primary-600); }
.site-footer > p { font-size: 0.8rem; color: var(--text-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero__visual { min-height: 320px; }
  .site-nav { display: none; } /* section links remain in the footer */
}
@media (max-width: 520px) {
  .brand__wordmark em { display: none; }
  .hero__stats { flex-wrap: wrap; gap: 16px; }
  .hero-card--balance { right: 6%; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
