/* =========================================================================
   ClockIn marketing — built on the ClockIn Design System tokens.
   Single brand blue hsl(217 80% 46%) / #1d4ed8. Inter everywhere,
   Space Mono for time/duration metrics. Accent hues are used ONLY as
   feature-icon tints. Self-contained, framework-free, no build step.
   ========================================================================= */

:root {
  /* Surfaces */
  --background: 214 35% 96%;
  --foreground: 218 35% 16%;
  --card: 210 40% 99%;
  --muted-foreground: 217 18% 44%;
  /* Brand / primary — the one ClockIn blue */
  --primary: 217 80% 46%;
  --primary-dark: 217 80% 38%;
  --topbar: 218 60% 26%;
  /* Lines */
  --border: 214 30% 86%;
  --secondary: 214 40% 93%;
  /* Accent tints — feature-card icons ONLY */
  --accent-cyan: 188 91% 43%;
  --accent-green: 152 68% 36%;
  --accent-orange: 38 92% 50%;
  --accent-purple: 280 60% 55%;
  --accent-red: 0 65% 48%;
  --radius: 12px;
  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'Space Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: hsl(var(--primary));
}
.accent {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent-cyan)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-cta {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
  color: white; box-shadow: 0 4px 14px hsl(var(--primary) / 0.30);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px hsl(var(--primary) / 0.38); }
.btn-ghost { background: transparent; color: hsl(var(--foreground)); }
.btn-ghost:hover { color: hsl(var(--primary)); }
.btn-outline { background: hsl(var(--card)); border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.btn-outline:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.btn-white { background: white; color: hsl(var(--primary)); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: 0 1px 3px hsl(0 0% 0% / 0.08); }
.nav-inner { display: flex; align-items: center; height: 68px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; color: hsl(var(--foreground)); font-weight: 500; }
.nav-links a:hover { color: hsl(var(--primary)); }
.nav .spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav .btn { height: 40px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; min-width: 38px; padding: 0 9px; border-radius: 8px;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground)); transition: border-color 0.15s, color 0.15s;
}
.lang-switch:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }

/* ── Hero ────────────────────────────────────────────────────────────── */
section.hero {
  padding: 88px 0 56px; position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 620px at 88% 6%, hsl(var(--primary) / 0.07), transparent 62%),
    radial-gradient(900px 520px at 4% 110%, hsl(var(--accent-cyan) / 0.05), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px; border-radius: 99px;
  background: hsl(var(--primary) / 0.10); color: hsl(var(--primary));
  font-size: 12px; font-weight: 600; white-space: nowrap; margin-bottom: 22px;
}
.pill .tag { background: hsl(var(--primary)); color: white; padding: 2px 8px; border-radius: 99px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
h1.hero-title { font-size: 60px; font-weight: 900; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 20px; }
.hero-sub { font-size: 18px; line-height: 1.55; color: hsl(var(--muted-foreground)); max-width: 540px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; }
.hero-stat .v { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.hero-stat .l { font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 2px; }

/* Product mockup */
.mockup {
  border-radius: 16px; overflow: hidden; background: hsl(var(--card));
  box-shadow: 0 30px 60px rgba(15,23,42,0.18), 0 0 0 1px hsl(var(--border));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.mockup-bar { height: 38px; background: hsl(var(--topbar)); display: flex; align-items: center; padding: 0 14px; gap: 6px; }
.mockup-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-bar .dot.r { background: #ff5f56; } .mockup-bar .dot.y { background: #ffbd2e; } .mockup-bar .dot.g { background: #27c93f; }
.mockup-bar .url { margin-left: 14px; color: rgba(255,255,255,0.7); font-size: 11px; font-family: 'Space Mono', monospace; }
.mockup-body { padding: 22px; display: grid; gap: 16px; }
.mock-greet { display: flex; justify-content: space-between; align-items: center; }
.mock-greet .mock-title { font-size: 17px; font-weight: 700; }
.mock-live { display: flex; align-items: center; gap: 6px; font-size: 11px; color: hsl(var(--accent-green)); font-weight: 600; }
.mock-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--accent-green)); box-shadow: 0 0 0 4px hsl(var(--accent-green) / 0.20); animation: ping 2s infinite; }
@keyframes ping { 0%,100% { box-shadow: 0 0 0 4px hsl(var(--accent-green) / 0.20); } 50% { box-shadow: 0 0 0 8px hsl(var(--accent-green) / 0); } }
.mock-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.mock-stat { padding: 12px; border: 1px solid hsl(var(--border)); border-radius: 8px; }
.mock-stat .l { font-size: 10px; color: hsl(var(--muted-foreground)); text-transform: uppercase; font-weight: 600; letter-spacing: 0.06em; }
.mock-stat .v { font-size: 22px; font-weight: 700; margin-top: 4px; letter-spacing: -0.01em; font-family: 'Space Mono', monospace; }
.mock-stat .v small { font-size: 11px; font-weight: 500; color: hsl(var(--muted-foreground)); }
.mock-chart { height: 84px; display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; align-items: end; padding-top: 8px; }
.mock-chart .bar { background: hsl(var(--primary) / 0.20); border-radius: 4px 4px 0 0; position: relative; transition: height 0.8s cubic-bezier(0.22,1,0.36,1); }
.mock-chart .bar.active { background: hsl(var(--primary)); }
.mock-chart .bar::after { content: attr(data-d); position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-size: 9px; color: hsl(var(--muted-foreground)); }

/* ── Trust marquee ───────────────────────────────────────────────────── */
.trust { padding: 40px 0 8px; }
.trust-l { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-bottom: 22px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.trust-logo { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: hsl(var(--foreground)); opacity: 0.55; }

/* ── Sections ────────────────────────────────────────────────────────── */
section { padding: 92px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 { font-size: 40px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { font-size: 17px; line-height: 1.55; color: hsl(var(--muted-foreground)); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 14px; padding: 28px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15,23,42,0.08); border-color: hsl(var(--primary) / 0.30); }
.ic-wrap { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.ic-wrap svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14px; line-height: 1.55; color: hsl(var(--muted-foreground)); }

/* Showcase split */
.showcase { background: hsl(var(--secondary) / 0.5); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .eyebrow { display: block; margin-bottom: 14px; }
.split h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 16px; }
.split p { font-size: 16px; color: hsl(var(--muted-foreground)); margin-bottom: 20px; }
.split ul { list-style: none; display: grid; gap: 12px; }
.split li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.split li svg { width: 18px; height: 18px; color: hsl(var(--accent-green)); flex-shrink: 0; margin-top: 1px; }

/* Attendance grid mock */
.grid-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg, 0 10px 30px rgba(15,23,42,0.10)); }
.grid-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid hsl(var(--border)); }
.grid-head .grid-title { font-size: 14px; font-weight: 600; }
.grid-head span { font-size: 12px; color: hsl(var(--muted-foreground)); }
.tsheet { display: grid; grid-template-columns: 1.5fr repeat(5,1fr) 64px; font-size: 12px; }
.tsheet > div { padding: 9px 8px; border-bottom: 1px solid hsl(var(--border)); text-align: center; }
.tsheet .th { background: hsl(var(--secondary)); font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: hsl(var(--muted-foreground)); }
.tsheet .nm { text-align: left; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.tsheet .av { width: 20px; height: 20px; border-radius: 50%; color: white; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tsheet .d { font-family: 'Space Mono', monospace; font-variant-numeric: tabular-nums; }
/* Improved weekend stripe: lighter tint, no heavy border (design-system improvement #3) */
.tsheet .wknd { background: hsl(var(--primary) / 0.08); }
.tsheet .tot { font-family: 'Space Mono', monospace; font-weight: 700; background: hsl(var(--secondary)); }
.tsheet .edit { background: hsl(var(--accent-orange) / 0.10); position: relative; }
.tsheet .empty { color: hsl(var(--muted-foreground)); }

/* Real product demo (animated walkthrough) */
.demo-figure { margin-top: 48px; }
.demo-figure .grid-card { max-width: 1000px; margin: 0 auto; }
.demo-figure .grid-card img, .demo-figure .grid-card video { width: 100%; height: auto; display: block; background: #0e2244; }
.demo-cap { text-align: center; font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 14px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step { text-align: center; padding: 0 8px; position: relative; }
.step-n { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: hsl(var(--primary) / 0.10); color: hsl(var(--primary)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; color: hsl(var(--muted-foreground)); }

/* Why-ClockIn cards */
.tgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.tcard { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 14px; padding: 26px; }
.ttext { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 14px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-size: 16px; font-weight: 650; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: hsl(var(--primary)); }
.faq-item summary:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: -2px; }
.faq-item summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px,-2px); }
.faq-item .faq-a { padding: 0 24px 22px; font-size: 15px; line-height: 1.65; color: hsl(var(--muted-foreground)); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-dark)) 50%, hsl(var(--topbar)) 100%); color: white; text-align: center; }
.cta-band h2 { font-size: 40px; font-weight: 800; line-height: 1.15; margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-band p { font-size: 17px; opacity: 0.88; margin-bottom: 28px; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-band .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .contact { background: rgba(255,255,255,0.15); color: white; border-color: rgba(255,255,255,0.3); }
.cta-band .contact:hover { background: rgba(255,255,255,0.25); }
.cta-foot { margin-top: 24px; font-size: 13px; opacity: 0.85; }
.cta-foot a { color: white; text-decoration: underline; }

/* Footer */
footer { padding: 60px 0 32px; border-top: 1px solid hsl(var(--border)); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.foot-brand p { font-size: 13px; color: hsl(var(--muted-foreground)); max-width: 320px; margin-top: 12px; }
.foot-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-bottom: 12px; }
.foot-col ul { list-style: none; display: grid; gap: 8px; }
.foot-col a { font-size: 13px; color: hsl(var(--foreground)); }
.foot-col a:hover { color: hsl(var(--primary)); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid hsl(var(--border)); font-size: 12px; color: hsl(var(--muted-foreground)); gap: 16px; flex-wrap: wrap; }
.foot-bottom a { color: inherit; } .foot-bottom a:hover { color: hsl(var(--primary)); }
.foot-bottom .legal a { margin-left: 18px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  h1.hero-title { font-size: 46px; }
  .mockup { animation: none; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: -1; }
  .steps { grid-template-columns: repeat(2,1fr); row-gap: 32px; }
  .tgrid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  section { padding: 64px 0; }
  h1.hero-title { font-size: 38px; }
  .hero-stats { gap: 24px; }
  .section-head h2, .cta-band h2 { font-size: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .foot-bottom .legal a { margin-left: 0; margin-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Long-form content pages (RO solution pages) ─────────────────────────
   The landing page is all cards; the SEO pages need readable body copy and
   a breadcrumb. Scoped so nothing above is affected. */
.crumb { font-size: 13px; color: hsl(var(--muted-foreground)); padding: 20px 0 0; }
.crumb a { color: hsl(var(--muted-foreground)); }
.crumb a:hover { color: hsl(var(--primary)); }
.crumb span { margin: 0 6px; opacity: 0.5; }

section.page-hero { padding: 40px 0 56px; }
section.page-hero h1 { font-size: 44px; font-weight: 900; line-height: 1.08; letter-spacing: -0.025em; max-width: 860px; margin-bottom: 18px; }
section.page-hero .hero-sub { font-size: 19px; max-width: 720px; }

.prose { max-width: 760px; }
.prose h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 44px 0 14px; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.prose p { font-size: 16px; line-height: 1.7; color: hsl(var(--muted-foreground)); margin-bottom: 16px; }
.prose ul { list-style: none; display: grid; gap: 10px; margin: 0 0 20px; }
.prose ul li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--primary) / 0.45);
}
.prose strong { color: hsl(var(--foreground)); font-weight: 650; }
.prose .note {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-left: 3px solid hsl(var(--primary));
  border-radius: var(--radius); padding: 16px 18px; margin: 24px 0;
  font-size: 15px;
}
.prose .note p { margin: 0; }

.related { border-top: 1px solid hsl(var(--border)); padding-top: 32px; margin-top: 8px; }
.related h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: hsl(var(--muted-foreground)); margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-grid a {
  display: block; padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  font-size: 15px; font-weight: 600; transition: border-color 0.15s, transform 0.15s;
}
.related-grid a:hover { border-color: hsl(var(--primary)); transform: translateY(-2px); }
.related-grid a small { display: block; font-weight: 400; font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 4px; }

@media (max-width: 860px) {
  section.page-hero h1 { font-size: 32px; }
  .related-grid { grid-template-columns: 1fr; }
}

/* 4-up variant for the solutions index on the RO landing page. */
.related-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .related-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .related-grid.four { grid-template-columns: 1fr; } }
