/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens (from tallycards globals.css) ────────────────── */
:root {
  --background:          oklch(0.985 0.003 75);
  --foreground:          oklch(0.27 0.01 60);
  --card:                oklch(1 0 0);
  --card-foreground:     oklch(0.27 0.01 60);
  --primary:             oklch(0.58 0.13 45);
  --primary-foreground:  oklch(1 0 0);
  --muted:               oklch(0.945 0.005 75);
  --muted-foreground:    oklch(0.62 0.005 60);
  --accent:              oklch(0.965 0.04 50);
  --accent-foreground:   oklch(0.58 0.13 45);
  --border:              oklch(0.91 0.005 70);
  --destructive:         oklch(0.55 0.18 25);
  --success:             oklch(0.55 0.08 145);
  --success-foreground:  oklch(1 0 0);

  --md-elevation-0: none;
  --md-elevation-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.14);
  --md-elevation-2: 0 3px 6px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.1);

  --md-shape-sm: 4px;
  --md-shape-md: 8px;
  --md-shape-lg: 12px;
}

/* ── Base ────────────────────────────────────────────────────────── */
html  { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
body  { background: var(--background); color: var(--foreground); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a     { color: inherit; text-decoration: none; }
img   { display: block; max-width: 100%; }

/* ── Typography utilities ────────────────────────────────────────── */
.md-label    { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.md-body     { font-size: 14px; font-weight: 400; color: var(--foreground); }
.md-title    { font-size: 16px; font-weight: 500; color: var(--foreground); }
.md-headline { font-size: 24px; font-weight: 700; color: var(--foreground); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--md-shape-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  line-height: 1;
  white-space: nowrap;
}
.btn-contained {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--md-elevation-1);
}
.btn-contained:hover { background: oklch(0.52 0.13 45); }
.btn-outlined {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outlined:hover { background: var(--accent); }
.btn-nav-outlined {
  background: transparent;
  color: var(--primary-foreground);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 6px 16px;
  font-size: 13px;
}
.btn-nav-outlined:hover { background: rgba(255,255,255,0.12); }
.btn-nav-contained {
  background: white;
  color: var(--primary);
  padding: 6px 16px;
  font-size: 13px;
}
.btn-nav-contained:hover { background: oklch(0.95 0.003 75); }

/* ── Nav ─────────────────────────────────────────────────────────── */
.site-nav {
  background: var(--primary);
  color: var(--primary-foreground);
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  justify-content: space-between;
  box-shadow: var(--md-elevation-1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-foreground);
}
.nav-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ── Section shared ──────────────────────────────────────────────── */
.section-inner  { max-width: 1200px; margin: 0 auto; padding: 72px 32px; }
.section-label  { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); font-weight: 600; text-align: center; margin-bottom: 8px; }
.section-title  { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.section-sub    { font-size: 15px; color: var(--muted-foreground); text-align: center; margin-bottom: 56px; }
.section-divider { height: 1px; background: var(--border); max-width: 1200px; margin: 0 auto; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero            { display: flex; align-items: center; gap: 56px; }
.hero-text       { flex: 1; }
.hero-eyebrow    { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); font-weight: 600; margin-bottom: 12px; }
.hero-headline   { font-size: 40px; font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
.hero-headline span { color: var(--primary); }
.hero-sub        { font-size: 16px; color: var(--muted-foreground); line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.hero-ctas       { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-screenshot { flex: 1.1; }

/* ── Wireframe browser (placeholder) ────────────────────────────── */
.wf-browser {
  background: var(--card);
  border-radius: var(--md-shape-lg);
  box-shadow: var(--md-elevation-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.wf-browser-bar {
  background: var(--border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.wf-url-bar { flex: 1; height: 16px; background: var(--background); border-radius: 3px; margin-left: 8px; }
.wf-body { padding: 16px; background: var(--background); }
.wf-appbar {
  background: var(--primary);
  height: 36px;
  border-radius: var(--md-shape-sm);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}
.wf-appbar img     { height: 18px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.wf-appbar-name    { font-size: 12px; font-weight: 700; color: white; letter-spacing: -0.01em; }
.wf-appbar-spacer  { flex: 1; }
.wf-avatar         { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.wf-layout         { display: flex; gap: 8px; }
.wf-sidebar        { width: 60px; background: var(--card); border-radius: var(--md-shape-sm); border: 1px solid var(--border); padding: 8px 6px; display: flex; flex-direction: column; gap: 4px; }
.wf-nav-item       { height: 28px; background: var(--accent); border-radius: 3px; }
.wf-nav-item.active { background: var(--primary); opacity: 0.25; }
.wf-main           { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.wf-stats          { display: flex; gap: 6px; }
.wf-stat           { flex: 1; background: var(--card); border-radius: var(--md-shape-sm); border: 1px solid var(--border); padding: 8px; }
.wf-stat-label     { height: 8px; background: var(--border); border-radius: 2px; width: 60%; margin-bottom: 4px; }
.wf-stat-val       { height: 14px; background: var(--muted-foreground); opacity: 0.3; border-radius: 2px; width: 40%; }
.wf-table          { background: var(--card); border-radius: var(--md-shape-sm); border: 1px solid var(--border); overflow: hidden; }
.wf-table-head     { background: var(--accent); height: 28px; display: flex; align-items: center; padding: 0 10px; gap: 8px; }
.wf-th             { height: 8px; background: var(--border); border-radius: 2px; }
.wf-row            { height: 36px; border-top: 1px solid var(--border); display: flex; align-items: center; padding: 0 10px; gap: 8px; }
.wf-td             { height: 8px; background: var(--border); opacity: 0.5; border-radius: 2px; }
.wf-chip           { height: 18px; border-radius: 9px; border: 1px solid var(--primary); width: 50px; opacity: 0.4; }

/* ── Features ────────────────────────────────────────────────────── */
.feature-row       { display: flex; align-items: center; gap: 56px; margin-bottom: 72px; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text      { flex: 1; }
.feature-icon      { width: 44px; height: 44px; background: var(--accent); border-radius: var(--md-shape-md); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; border: 1px solid var(--border); }
.feature-title     { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feature-desc      { font-size: 15px; color: var(--muted-foreground); line-height: 1.7; margin-bottom: 16px; }
.feature-bullets   { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.feature-bullets li { font-size: 14px; color: var(--muted-foreground); display: flex; align-items: flex-start; gap: 8px; }
.feature-bullets li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.feature-screenshot { flex: 1.1; }

/* Feature wireframe variants */
.wf-card { background: var(--card); border-radius: var(--md-shape-lg); box-shadow: var(--md-elevation-2); border: 1px solid var(--border); padding: 16px; }
.wf-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.wf-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--md-shape-sm); border: 1px solid var(--border); margin-bottom: 6px; background: var(--background); }
.wf-item-icon  { width: 20px; height: 20px; border-radius: 3px; flex-shrink: 0; }
.wf-item-body  { flex: 1; }
.wf-item-line  { height: 8px; background: var(--border); border-radius: 2px; margin-bottom: 3px; }
.wf-item-sub   { height: 6px; background: var(--border); opacity: 0.5; border-radius: 2px; width: 60%; }
.wf-item-hours { font-size: 12px; color: var(--primary); font-weight: 700; white-space: nowrap; }
.wf-badge-connected { background: oklch(0.55 0.08 145 / 0.15); border: 1px solid var(--success); border-radius: 12px; padding: 3px 10px; font-size: 11px; color: var(--success); font-weight: 600; }

.wf-weekly       { background: var(--card); border-radius: var(--md-shape-lg); box-shadow: var(--md-elevation-2); border: 1px solid var(--border); overflow: hidden; }
.wf-weekly-nav   { padding: 10px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.wf-weekly-nav-title { font-size: 13px; font-weight: 700; }
.wf-weekly-nav-arrows { font-size: 11px; color: var(--muted-foreground); }
.wf-weekly-head  { display: flex; border-bottom: 1px solid var(--border); background: var(--accent); }
.wf-day-header   { flex: 1; padding: 8px 6px; text-align: center; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); border-right: 1px solid var(--border); }
.wf-day-header:last-child { border-right: none; }
.wf-weekly-body  { display: flex; }
.wf-day-col      { flex: 1; border-right: 1px solid var(--border); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.wf-day-col:last-child { border-right: none; }
.wf-cell         { height: 28px; background: var(--accent); border-radius: 3px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted-foreground); }
.wf-cell.filled  { background: var(--accent); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.wf-cell.empty   { background: transparent; border-style: dashed; }
.wf-weekly-footer { background: var(--accent); padding: 6px 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; border-top: 1px solid var(--border); }
.wf-total        { font-size: 12px; color: var(--muted-foreground); }
.wf-submit-btn   { background: var(--primary); color: white; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: var(--md-shape-sm); text-transform: uppercase; letter-spacing: 0.06em; }

.wf-timecard-row {
  display: flex; align-items: center; gap: 8px; padding: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--md-shape-sm);
}
.wf-timecard-text  { flex: 1; }
.wf-timecard-title { height: 9px; background: var(--border); border-radius: 2px; width: 80%; margin-bottom: 3px; }
.wf-timecard-sub   { height: 7px; background: var(--border); opacity: 0.4; border-radius: 2px; width: 50%; }
.wf-hours-badge    { background: var(--accent); border: 1px solid var(--border); border-radius: 3px; padding: 4px 8px; font-size: 12px; font-weight: 700; color: var(--primary); min-width: 44px; text-align: center; }

/* ── Screenshots section ─────────────────────────────────────────── */
.screenshots-section { background: var(--accent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.screenshots-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.screenshot-card     { background: var(--card); border-radius: var(--md-shape-lg); box-shadow: var(--md-elevation-1); border: 1px solid var(--border); overflow: hidden; }
.screenshot-body     { padding: 16px; min-height: 160px; background: var(--background); display: flex; flex-direction: column; gap: 8px; }
.screenshot-label    { font-size: 12px; font-weight: 600; color: var(--muted-foreground); padding: 8px 12px; background: var(--accent); border-top: 1px solid var(--border); text-align: center; letter-spacing: 0.04em; }
/* Placeholder blocks inside screenshot cards */
.ph-bar  { height: 12px; background: var(--border); border-radius: 2px; }
.ph-rect { background: var(--card); border: 1px solid var(--border); border-radius: var(--md-shape-sm); }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer { background: oklch(0.22 0.01 45); color: oklch(0.93 0.005 75); padding: 40px 32px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top   { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }
.footer-brand {}
.footer-logo  { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-logo img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-tagline  { font-size: 13px; opacity: 0.6; max-width: 260px; line-height: 1.5; }
.footer-links    { display: flex; gap: 40px; }
.footer-col h4   { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.5; margin-bottom: 12px; }
.footer-col a    { display: block; font-size: 13px; opacity: 0.75; margin-bottom: 8px; }
.footer-col a:hover { opacity: 1; }
.footer-bottom   { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; opacity: 0.45; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero,
  .feature-row,
  .feature-row.reverse { flex-direction: column; gap: 32px; }
  .hero-headline { font-size: 28px; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { flex-direction: column; gap: 24px; }
  .site-nav { padding: 0 16px; }
  .section-inner { padding: 48px 16px; }
}
