/* ==========================================================================
   QuickHR marketing site
   Design tokens sampled from the actual app icon/logo (see assets/):
   deep green #04AC42, lime #67D305, ink #1F2B36.
   Signature motif: the "punch strip" - a row of notched tabs styled after a
   physical time-card, used as the divider between Hero and Features, and
   echoed in the download cards' ticket-stub edge.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Color */
  --lime: #6FD32B;
  --green: #0FA34A;
  --green-deep: #0B7A38;
  --forest: #0A4D26;
  --ink: #1B2430;
  --ink-soft: #4B5A63;
  --paper: #F6FAF3;
  --paper-alt: #EEF5E9;
  --paper-deep: #E3EEDC;
  --line: #D7E4CF;
  --white: #FFFFFF;

  /* Status colors - used only inside the hero grid mockup, matching the
     desktop app's own attendance-status palette */
  --status-present-bg: #E4F7E1;
  --status-present-fg: #1C7A34;
  --status-absent-bg: #FBE1DE;
  --status-absent-fg: #A6392A;
  --status-weekend-bg: #E7E9E4;
  --status-weekend-fg: #5B655C;
  --status-holiday-bg: #DCEBF9;
  --status-holiday-fg: #285E8C;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Layout */
  --content-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 10px rgba(27, 36, 48, 0.06), 0 1px 2px rgba(27, 36, 48, 0.05);
  --shadow-card-hover: 0 10px 30px rgba(27, 36, 48, 0.10), 0 2px 6px rgba(27, 36, 48, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--green-deep); }

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Buttons ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--lime), var(--green));
  color: var(--forest);
  box-shadow: 0 6px 18px rgba(15, 163, 74, 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(15, 163, 74, 0.36); }

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--green); background: var(--paper-alt); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  padding: 10px 18px;
  font-size: 0.9rem;
}
.btn-ghost:hover { border-color: var(--green); }

.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

.btn-block { width: 100%; justify-content: center; }

/* ---- Eyebrow / small labels ------------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}

/* ---- Nav ------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 250, 243, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand-name .hr { color: var(--green-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---- Hero -------------------------------------------------------------- */

.hero {
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.15rem);
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--green-deep), var(--green) 60%, var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--green-deep); }

/* Hero mockup: a stylized recreation of the app's actual Monthly Grid */
.hero-visual { position: relative; }
.mockup-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  padding: 18px;
  transform: rotate(0.6deg);
}
.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mockup-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mockup-titlebar span:last-child {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.mockup-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.74rem; }
.mockup-table th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 8px;
  border-bottom: 1.5px solid var(--line);
  white-space: nowrap;
}
.mockup-table td { padding: 7px 8px; border-bottom: 1px solid var(--paper-deep); }
.mockup-table td.name { color: var(--ink); font-family: var(--font-body); font-weight: 500; white-space: nowrap; }
.mockup-table .status-cell {
  text-align: center;
  border-radius: 5px;
}
.s-p { background: var(--status-present-bg); color: var(--status-present-fg); font-weight: 600; }
.s-a { background: var(--status-absent-bg); color: var(--status-absent-fg); font-weight: 600; }
.s-wk { background: var(--status-weekend-bg); color: var(--status-weekend-fg); font-weight: 600; }
.s-hol { background: var(--status-holiday-bg); color: var(--status-holiday-fg); font-weight: 600; }
.s-p.pulse { animation: stampIn 2.4s ease-in-out infinite; }

@keyframes stampIn {
  0%, 74% { transform: scale(1); box-shadow: none; }
  80% { transform: scale(1.18); box-shadow: 0 0 0 3px rgba(15, 163, 74, 0.25); }
  100% { transform: scale(1); box-shadow: none; }
}

.mockup-caption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
}
.mockup-badge {
  position: absolute;
  top: -14px;
  right: 22px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 999px;
  transform: rotate(2deg);
  box-shadow: var(--shadow-card);
}

/* ---- Punch strip (signature divider) --------------------------------- */

.punch-strip {
  position: relative;
  padding: 26px 0;
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.punch-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: punchScroll 32s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .punch-track { animation: none; }
}
.punch-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  padding: 10px 26px;
  border-right: 1px dashed var(--line);
  white-space: nowrap;
}
.punch-tab .hole {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper-alt);
  border: 1.5px solid var(--green);
}
@keyframes punchScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Section shell ----------------------------------------------------- */

.section { padding: 92px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { font-size: 1.02rem; }

/* ---- Features ------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--green); transform: translateY(-3px); }
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--lime), var(--green));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--forest); }
.feature-card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---- How it works ------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px 22px;
  border-top: 3px solid var(--line);
}
.step.is-active { border-top-color: var(--green); }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green-deep);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; margin-bottom: 0; }

/* ---- Downloads ------------------------------------------------------- */

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.download-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.download-card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--green); }
/* Ticket-stub notches echoing the punch-strip motif */
.download-card::before,
.download-card::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.download-card::before { left: -12px; }
.download-card::after { right: -12px; }

.download-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.os-icon { width: 40px; height: 40px; flex-shrink: 0; color: var(--ink); }
.download-head h3 { margin-bottom: 2px; font-size: 1.2rem; }
.download-head .os-req { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }

.download-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 0;
  margin: 16px 0 20px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.spec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 3px;
}
.spec-value { font-family: var(--font-mono); font-size: 0.92rem; font-weight: 600; color: var(--ink); }

.download-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 14px;
  margin-bottom: 0;
}

/* ---- Support ------------------------------------------------------- */

.support-panel {
  background: linear-gradient(135deg, var(--forest), var(--green-deep));
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.support-panel h2 { color: var(--white); }
.support-panel p { color: rgba(255,255,255,0.82); }
.support-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 24px;
}
.support-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.support-row[hidden] { display: none; }
.support-row:last-child { border-bottom: none; }
.support-row svg { width: 18px; height: 18px; color: var(--lime); flex-shrink: 0; }
.support-row a, .support-row span.value { color: var(--white); text-decoration: none; font-weight: 500; font-size: 0.94rem; }
.support-row a:hover { text-decoration: underline; }
.support-label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.6); display: block; margin-bottom: 2px; }

/* ---- Footer ------------------------------------------------------- */

.footer {
  padding: 64px 0 36px;
  border-top: 1px solid var(--line);
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-logo {
  height: 128px;
  width: auto;
  margin-bottom: 22px;
}
.footer-links {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.footer-links a:hover { color: var(--ink); }
.footer-rule {
  width: 100%;
  max-width: 220px;
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0 0 20px;
}
.footer-copy { font-size: 0.82rem; color: var(--ink-soft); }

@media (max-width: 700px) {
  .footer-logo { height: 100px; }
}

/* ---- Responsive ------------------------------------------------------- */

@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .download-grid { grid-template-columns: 1fr; }
  .support-panel { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 700px) {
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .download-specs { grid-template-columns: 1fr 1fr; }
  .download-card::before, .download-card::after { display: none; }
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 12px 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--paper-deep);
}
.mobile-nav .btn { margin-top: 10px; }
