/* =============================================================================
   Timesheets for Jira — Landing
   Built on Codecove DS tokens (ds-tokens.css). This sheet layers page-level
   semantics, a dual accent palette (Ink ⇄ Atlassian Blue), light/dark themes,
   and all marketing components.
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --maxw: 1180px;
  --gutter: 32px;
  --section-y: 104px;          /* airy (default) */
  --card-radius: 14px;          /* tweakable */
  --frame-radius: 12px;
  --nav-h: 64px;

  /* ---- Light surfaces (default) ---- */
  --page-bg:        #FAFAF7;
  --surface:        #FFFFFF;
  --surface-2:      #F4F3ED;
  --surface-sunken: #EDEBE2;
  --text:           #16150F;
  --text-muted:     #4A4946;
  --text-subtle:    #6B6A66;
  --text-faint:     #9A9893;
  --border:         #E7E5DA;
  --border-strong:  #D9D6C7;
  --on-ink:         #FAFAF7;

  --shadow-sm: 0 1px 2px rgba(27,26,24,.06), 0 0 0 1px rgba(27,26,24,.04);
  --shadow-md: 0 1px 2px rgba(27,26,24,.05), 0 10px 24px -10px rgba(27,26,24,.16);
  --shadow-lg: 0 2px 4px rgba(27,26,24,.05), 0 28px 60px -22px rgba(27,26,24,.30);

  /* ---- Accent: INK (default) ---- */
  --cta-bg:      #16150F;
  --cta-fg:      #FAFAF7;
  --cta-hover:   #33322F;
  --cta-press:   #4A4946;
  --accent:      #5C6A24;   /* lime-700-ish, AA on paper */
  --accent-2:    #4E5924;
  --accent-soft: #F1F4E5;
  --accent-line: #D2DAA6;
  --ring:        #9DAB58;
  --accent-on-ink: #C7D488; /* lime-300 for use on ink surfaces */
}

[data-accent="blue"] {
  --cta-bg:      #0C66E4;
  --cta-fg:      #FFFFFF;
  --cta-hover:   #0055CC;
  --cta-press:   #09387D;
  --accent:      #0C66E4;
  --accent-2:    #0055CC;
  --accent-soft: #E9F2FF;
  --accent-line: #CCE0FF;
  --ring:        #4C9AFF;
  --accent-on-ink: #85B8FF;
}

/* ---- Dark theme ---- */
[data-theme="dark"] {
  --page-bg:        #100F0D;
  --surface:        #1A1916;
  --surface-2:      #232220;
  --surface-sunken: #0A0A09;
  --text:           #F5F4EF;
  --text-muted:     #C4C3BC;
  --text-subtle:    #9A9893;
  --text-faint:     #6B6A66;
  --border:         #2C2B27;
  --border-strong:  #3B3A36;

  --shadow-sm: 0 0 0 1px rgba(255,255,255,.05);
  --shadow-md: 0 0 0 1px rgba(255,255,255,.06), 0 12px 28px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 0 0 1px rgba(255,255,255,.07), 0 32px 64px -20px rgba(0,0,0,.7);
}
[data-theme="dark"][data-accent="ink"] {
  --cta-bg:      #F5F4EF;
  --cta-fg:      #16150F;
  --cta-hover:   #E2E1DA;
  --cta-press:   #C7C6BE;
  --accent:      #C7D488;
  --accent-2:    #D2DAA6;
  --accent-soft: rgba(157,171,88,.16);
  --accent-line: rgba(157,171,88,.32);
}
[data-theme="dark"][data-accent="blue"] {
  --cta-bg:      #4C9AFF;
  --cta-fg:      #06223F;
  --cta-hover:   #6FAFFF;
  --cta-press:   #2E84F2;
  --accent:      #85B8FF;
  --accent-2:    #A9CBFF;
  --accent-soft: rgba(76,154,255,.14);
  --accent-line: rgba(76,154,255,.3);
}

[data-density="compact"] { --section-y: 68px; }

/* ============================= Base ===================================== */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--cc-font-sans);
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--cc-ease-out), color .3s var(--cc-ease-out);
}

h1, h2, h3, h4, h5 { color: var(--text); margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--cc-font-mono); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section { padding-block: var(--section-y); }

.eyebrow {
  font-family: var(--cc-font-mono);
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 16px; height: 1.5px; background: currentColor; opacity: .7; }

.h-display {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.04; letter-spacing: -.033em; font-weight: 800;
  text-wrap: balance;
}
.h-section {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.08; letter-spacing: -.028em; font-weight: 800;
  text-wrap: balance;
}
.lead {
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: var(--text-muted);
  max-width: 46ch; text-wrap: pretty;
}
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead.center { margin-inline: auto; }
.section-head .h-section { margin-top: 14px; }
.section-head .lead { margin-top: 16px; }

/* ============================= Buttons ================================== */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 8px;
  font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--cc-motion-fast) var(--cc-ease-out),
              border-color var(--cc-motion-fast) var(--cc-ease-out),
              color var(--cc-motion-fast) var(--cc-ease-out);
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--cta-bg); color: var(--cta-fg); }
.btn--primary:hover { background: var(--cta-hover); }
.btn--primary:active { background: var(--cta-press); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface-2); border-color: var(--text-faint); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { --h: 50px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn--onink { background: var(--accent-on-ink); color: #16150F; }
.btn--onink:hover { filter: brightness(1.06); }
.btn--onink-ghost { background: rgba(255,255,255,.08); color: #FAFAF7; border-color: rgba(255,255,255,.2); }
.btn--onink-ghost:hover { background: rgba(255,255,255,.14); }

/* ============================= Nav ====================================== */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--cc-motion-medium) var(--cc-ease-out),
              border-color var(--cc-motion-medium) var(--cc-ease-out),
              backdrop-filter var(--cc-motion-medium);
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--page-bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 24px; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand b { font-weight: 800; }
.brand span { color: var(--text-subtle); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__links a {
  padding: 8px 12px; border-radius: 7px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); transition: background var(--cc-motion-fast), color var(--cc-motion-fast);
}
.nav__links a:hover { background: var(--surface-2); color: var(--text); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* segmented toggle (palette / theme) */
.seg {
  display: inline-flex; align-items: center; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 9px; padding: 3px; gap: 2px;
}
.seg button {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border: 0; background: transparent; color: var(--text-subtle); cursor: pointer;
  font: 600 13px/1 var(--cc-font-sans); border-radius: 6px;
  transition: background var(--cc-motion-fast), color var(--cc-motion-fast);
}
.seg button svg { width: 15px; height: 15px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--text); }
.seg--swatch button::before {
  content: ""; width: 11px; height: 11px; border-radius: 3px; border: 1px solid rgba(0,0,0,.15);
}
.seg--swatch button.ink::before { background: #16150F; }
.seg--swatch button.blue::before { background: #0C66E4; }

.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); cursor: pointer; transition: background var(--cc-motion-fast), color var(--cc-motion-fast);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.nav__burger { display: none; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ============================= Hero ===================================== */
.hero { padding-top: 72px; padding-bottom: 96px; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.18fr);
  gap: 56px; align-items: center;
}
.hero__copy { max-width: 560px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: -.01em;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
}
.pill svg { width: 14px; height: 14px; color: var(--accent); }
.pill--accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); }
.hero h1 { margin: 0 0 20px; }
.hero .lead { margin-bottom: 30px; max-width: 49ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero__note { margin-top: 16px; font-size: 13px; color: var(--text-subtle); display: flex; align-items: center; gap: 8px; }
.hero__note svg { width: 15px; height: 15px; color: var(--accent); }

/* ============================ Product frame ============================= */
.frame {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--frame-radius); box-shadow: var(--shadow-lg); overflow: hidden;
  transition: transform .5s var(--cc-ease-out), box-shadow .5s var(--cc-ease-out);
}
.frame__bar {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.frame__dots { display: flex; gap: 6px; }
.frame__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.frame__addr {
  flex: 1; height: 24px; margin-left: 6px; border-radius: 6px; background: var(--surface);
  border: 1px solid var(--border); display: flex; align-items: center; gap: 7px;
  padding: 0 10px; font: 500 12px/1 var(--cc-font-mono); color: var(--text-subtle);
  max-width: 340px; overflow: hidden; white-space: nowrap;
}
.frame__addr svg { width: 12px; height: 12px; color: var(--accent); flex: none; }
.frame__body { background: var(--surface); position: relative; }
.frame__body img { width: 100%; height: auto; display: block; }
/* Jira-window variant: a slim app bar instead of browser dots */
[data-frame="jira"] .frame__dots { display: none; }
[data-frame="clean"] .frame__bar { display: none; }
[data-frame="clean"] .frame { border-radius: 10px; }

/* fade long screenshots */
.shot { position: relative; overflow: hidden; }
.shot--crop { max-height: var(--crop, 460px); }
.shot--crop::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
}

/* ============================ Hero live scene ========================== */
.hero__visual { position: relative; }
.scene { perspective: 1700px; position: relative; padding: 40px 18px 52px; }
.scene__inner {
  position: relative; transform-style: preserve-3d;
  transform: rotateX(2.2deg) rotateY(-9deg) rotate(.2deg);
  transition: transform .6s var(--cc-ease-out);
}
.scene:hover .scene__inner { transform: rotateX(1deg) rotateY(-4deg); }
[data-hero="flat"] .scene__inner { transform: none; }
[data-hero="flat"] .scene { perspective: none; }

/* main window */
.hwin {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--frame-radius); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateZ(0);
}
.hwin__bar { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.hwin__title { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--cc-font-sans); color: var(--text-muted); }
.hwin__title img { width: 18px; height: 18px; border-radius: 4px; }
.hwin__bar .demo-badge { margin-left: auto; }
.hwin__sub { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 12px; }
.hwin__week { display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px/1 var(--cc-font-sans); color: var(--text); }
.hwin__week svg { width: 15px; height: 15px; color: var(--text-faint); }
.hwin__cap { font: 600 13px/1 var(--cc-font-mono); color: var(--text-subtle); }
.hwin__cap b { color: var(--text); font-size: 14px; transition: color .3s; }
.hwin__cap b.bump { color: var(--accent); }
.hwin__submit { display: inline-flex; align-items: center; height: 28px; padding: 0 13px; border-radius: 7px; background: var(--cta-bg); color: var(--cta-fg); font: 600 12.5px/1 var(--cc-font-sans); white-space: nowrap; }

.hsheet { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.hsheet th { font: 600 10px/1 var(--cc-font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); padding: 7px 5px; text-align: center; border-bottom: 1px solid var(--border); }
.hsheet th.emp { text-align: left; padding-left: 16px; }
.hsheet th.tot { padding-right: 16px; text-align: right; }
.hsheet th.wed, .hsheet td.wed { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.hsheet td { padding: 8px 5px; text-align: center; font-family: var(--cc-font-mono); font-variant-numeric: tabular-nums; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.hsheet tbody tr:last-child td { border-bottom: 0; }
.hsheet td.tot { padding-right: 16px; text-align: right; font-weight: 600; color: var(--text); }

/* user (employee) rows */
.hsheet tr.urow td { background: var(--surface-2); padding-top: 9px; padding-bottom: 9px; }
.hsheet tr.urow td.wed { background: color-mix(in srgb, var(--accent-soft) 80%, var(--surface-2)); }
.hsheet td.emp { text-align: left; padding-left: 16px; font-family: var(--cc-font-sans); color: var(--text); font-weight: 700; white-space: nowrap; }
.hsheet td.emp .av { display: inline-grid; width: 21px; height: 21px; margin: 0 4px 0 2px; vertical-align: middle; }
.caret { display: inline-flex; color: var(--text-faint); vertical-align: middle; margin-right: 2px; }
.caret svg { width: 14px; height: 14px; }
.emp__hint { font: 500 11px/1 var(--cc-font-sans); color: var(--text-faint); margin-left: 6px; }
.urow .tot b { font-size: 13px; }

/* task rows */
.hsheet td.task { text-align: left; padding-left: 38px; font-family: var(--cc-font-sans); color: var(--text-muted); font-weight: 500; white-space: nowrap; position: relative; }
.tcheck { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: var(--surface-2); color: var(--text-subtle); margin-right: 8px; vertical-align: middle; }
.tcheck svg { width: 11px; height: 11px; }
.tcheck--bug { background: #FFECEB; color: #C9372C; }
.tcheck--story { background: #DDFBE6; color: #1F845A; }
.tcheck--task { background: #E9F2FF; color: #0C66E4; }
[data-theme="dark"] .tcheck--bug { background: rgba(201,55,44,.22); color: #FF8F84; }
[data-theme="dark"] .tcheck--story { background: rgba(31,132,90,.24); color: #7DDCB0; }
[data-theme="dark"] .tcheck--task { background: rgba(12,102,228,.22); color: #85B8FF; }
.tref { font: 600 10.5px/1 var(--cc-font-mono); color: var(--accent); margin-right: 6px; }

/* total (footer) row */
.hsheet tfoot td { border-top: 1.5px solid var(--border-strong); border-bottom: 0; padding: 10px 5px; color: var(--text); font-weight: 600; background: var(--surface); }
.hsheet tfoot td.emp { padding-left: 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-subtle); }
.hsheet tfoot td.tot b { font-size: 14px; transition: color .3s; }
.hsheet tfoot td.tot b.bump, .hwin__cap b.bump, #hLogged.bump { color: var(--accent); }

.cell-anim { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 21px; border-radius: 5px; font-size: 12px; }
.cell-anim.empty { border: 1.5px dashed var(--accent-line); }
.cell-anim.filled { background: var(--accent); color: #fff; font-weight: 700; animation: cellPop .45s var(--cc-ease-out); }
[data-accent="ink"] .cell-anim.filled { background: #3D9A2B; }
@keyframes cellPop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

.hsheet__foot { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface-2); }
.hsheet__lbl { font: 600 12px/1 var(--cc-font-sans); color: var(--text-subtle); white-space: nowrap; }
.capbar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.capbar__fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .8s var(--cc-ease-out); }
[data-accent="ink"] .capbar__fill { background: #3D9A2B; }
.hsheet__cap { font: 600 12px/1 var(--cc-font-mono); color: var(--text-subtle); white-space: nowrap; }
.hsheet__cap b { color: var(--text); }

/* floating depth cards */
.float {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 13px 15px;
}
.float--presence {
  top: -20px; left: -20px; transform: translateZ(60px);
  display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 999px;
  animation: floatA 6s var(--cc-ease-out) infinite;
}
.float__dot { width: 8px; height: 8px; border-radius: 50%; background: #3D9A2B; box-shadow: 0 0 0 4px color-mix(in srgb, #3D9A2B 28%, transparent); }
[data-accent="blue"] .float__dot { background: #22A06B; box-shadow: 0 0 0 4px color-mix(in srgb, #22A06B 28%, transparent); }
.avstack { display: flex; }
.avstack .av { width: 24px; height: 24px; border: 2px solid var(--surface); margin-left: -8px; }
.avstack .av:first-child { margin-left: 0; }
.float__txt { font: 600 12.5px/1 var(--cc-font-sans); color: var(--text); white-space: nowrap; }

.float--log {
  bottom: -56px; left: -54px; width: 196px; transform: translateZ(85px);
  display: flex; flex-direction: column; gap: 9px; animation: floatB 7s var(--cc-ease-out) infinite;
}
.logcard__head { display: flex; align-items: center; gap: 7px; font: 700 12px/1 var(--cc-font-sans); color: var(--text); }
.logcard__head svg { width: 15px; height: 15px; color: var(--accent); }
.logcard__task { font-size: 12px; color: var(--text-muted); }
.logcard__timer { font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.logcard__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px;
  border: 0; border-radius: 8px; background: var(--cta-bg); color: var(--cta-fg);
  font: 600 13px/1 var(--cc-font-sans); cursor: pointer; transition: background var(--cc-motion-fast);
}
.logcard__btn svg { width: 15px; height: 15px; }
.logcard__btn:hover { background: var(--cta-hover); }
.logcard__btn.saved { background: var(--accent); color: #fff; }
[data-accent="ink"] .logcard__btn.saved { background: #3D9A2B; }

.float--toast {
  top: 52px; right: -46px; transform: translateZ(70px);
  display: flex; align-items: center; gap: 11px; max-width: 230px;
  opacity: 0; transform: translateZ(70px) translateX(14px); pointer-events: none;
  transition: opacity .35s var(--cc-ease-out), transform .35s var(--cc-ease-out);
}
.float--toast.show { opacity: 1; transform: translateZ(70px) translateX(0); }
.toast__ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); flex: none; }
[data-accent="ink"] .toast__ic { background: #DFF3DA; color: #2C6E20; }
.toast__ic svg { width: 17px; height: 17px; }
.float--toast b { font: 700 13px/1.2 var(--cc-font-sans); color: var(--text); display: block; }
.toast__sub { font: 500 11.5px/1.3 var(--cc-font-mono); color: var(--text-subtle); }

@keyframes floatA { 0%,100% { transform: translateZ(60px) translateY(0); } 50% { transform: translateZ(60px) translateY(-7px); } }
@keyframes floatB { 0%,100% { transform: translateZ(85px) translateY(0); } 50% { transform: translateZ(85px) translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .float--presence, .float--log { animation: none; }
  .scene__inner { transition: none; }
}

/* ============================ Trust strip =============================== */
.trust { border-block: 1px solid var(--border); background: var(--surface); }
.trust__inner { display: flex; align-items: center; gap: 40px; padding-block: 28px; flex-wrap: wrap; }
.trust__inner > .trust__item:last-child { margin-left: auto; }
.trust__item { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--text-muted); font-weight: 500; }
.trust__item svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.trust__item b { color: var(--text); font-weight: 700; }
.trust__sep { width: 1px; height: 34px; background: var(--border); }
.stars { display: inline-flex; gap: 2px; color: #E2B203; }
.stars svg { width: 16px; height: 16px; }
.mktplace {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border-radius: 9px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-2);
  font-weight: 700; font-size: 13px;
}
.mktplace svg { width: 17px; height: 17px; }
.logos { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.logos__label { font-size: 12px; font-weight: 600; color: var(--text-faint); letter-spacing: -.01em; white-space: nowrap; }
.logo-ph { font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--text-muted); display: flex; align-items: center; gap: 7px; }
.logo-ph svg { width: 18px; height: 18px; }

/* ============================ Problem→Solution ========================== */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius);
  padding: 26px; transition: border-color var(--cc-motion-fast), box-shadow var(--cc-motion-fast), transform var(--cc-motion-fast);
}
.card--hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.problem .card { display: flex; flex-direction: column; gap: 14px; }
.prob-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
.prob-ico svg { width: 21px; height: 21px; }
.card h4 { font-size: 18px; letter-spacing: -.02em; font-weight: 700; }
.card p { font-size: 14.5px; color: var(--text-muted); }
.solve {
  margin-top: 4px; padding-top: 14px; border-top: 1px dashed var(--border-strong);
  display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--text);
}
.solve svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 2px; }
.solve b { font-weight: 700; }

/* ============================ Live demo ================================= */
.demo { background: var(--surface-2); border-block: 1px solid var(--border); }
.demo__canvas {
  margin-top: 40px; background:
    radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 22px 22px; background-position: -1px -1px;
  border: 1px solid var(--border); border-radius: 18px; padding: 30px;
}
[data-theme="dark"] .demo__canvas { background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); }
.frame-label {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font: 600 11.5px/1 var(--cc-font-mono); letter-spacing: .04em; color: var(--text-subtle);
  text-transform: uppercase;
}
.frame-label .dot { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.frame-label .tag {
  font-family: var(--cc-font-sans); text-transform: none; letter-spacing: 0; font-size: 11px; white-space: nowrap;
  padding: 2px 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-faint);
}

/* the interactive demo window */
.demo-win { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); }
.demo-win__chrome { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.demo-win__chrome .dots { display: flex; gap: 6px; }
.demo-win__chrome .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.demo-win__title { font: 600 13px/1 var(--cc-font-sans); color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.demo-win__title img { width: 18px; height: 18px; border-radius: 4px; }
.demo-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 600 11px/1 var(--cc-font-mono); letter-spacing: .02em;
  padding: 5px 9px; border-radius: 999px; background: var(--accent-soft);
  border: 1px solid var(--accent-line); color: var(--accent-2);
}
.demo-badge .led { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.demo-win__fs {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border-radius: 7px;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text-muted); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.demo-win__fs:hover { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent-line); }
.demo-win__fs i, .demo-win__fs svg { width: 15px; height: 15px; }
/* Fullscreen: window fills the screen, iframe takes all remaining height. */
.demo-win:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; box-shadow: none; }
.demo-win:-webkit-full-screen { display: flex; flex-direction: column; border: 0; border-radius: 0; box-shadow: none; }
.demo-win:fullscreen .demo-win__frame { flex: 1 1 auto; height: auto; }
.demo-win:-webkit-full-screen .demo-win__frame { flex: 1 1 auto; height: auto; }
/* Demo is the real desktop app UI — on small screens show a notice instead. */
.demo-win__mobile { display: none; }
@media (max-width: 900px) {
  .demo-win .demo-win__frame { display: none; }
  .demo-win__fs { display: none; }
  .demo-win__mobile {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 10px; padding: 48px 24px; color: var(--text-muted);
  }
  .demo-win__mobile svg { width: 30px; height: 30px; color: var(--text-faint); }
  .demo-win__mobile-h { margin: 4px 0 0; font: 700 16px/1.3 var(--cc-font-sans); color: var(--text); }
  .demo-win__mobile-t { margin: 0; max-width: 360px; font: 400 14px/1.5 var(--cc-font-sans); }
  .demo-win__mobile .btn { margin-top: 6px; }
}
.tabs { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px 12px; border: 0; background: transparent; cursor: pointer;
  font: 600 13.5px/1 var(--cc-font-sans); color: var(--text-subtle); border-radius: 7px 7px 0 0;
  transition: color var(--cc-motion-fast), background var(--cc-motion-fast);
}
.tab svg { width: 15px; height: 15px; }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2.5px;
  background: var(--accent); border-radius: 2px;
}
.tab .count { font: 600 11px/1 var(--cc-font-mono); padding: 2px 6px; border-radius: 999px; background: var(--surface-2); color: var(--text-faint); }
.tab[aria-selected="true"] .count { background: var(--accent-soft); color: var(--accent-2); }
.demo-win__view { position: relative; }
.demo-win__view img { width: 100%; display: none; }
.demo-win__view img.is-active { display: block; animation: viewIn .3s var(--cc-ease-out); }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.demo-cell { min-width: 0; }

/* mini state frame */
.state {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.state__cap { padding: 9px 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-subtle); display: flex; gap: 7px; align-items: center; background: var(--surface-2); }
.state__cap b { color: var(--text); font-weight: 700; }

/* designed filter control (open/closed) */
.filterbar { display: flex; align-items: center; gap: 8px; padding: 12px; flex-wrap: wrap; }
.field {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px;
  border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface);
  font: 500 13px/1 var(--cc-font-sans); color: var(--text-muted); cursor: pointer;
}
.field svg { width: 14px; height: 14px; }
.field--active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); color: var(--text); }
.field .chev { margin-left: 2px; color: var(--text-faint); }
.menu {
  border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface);
  box-shadow: var(--shadow-md); padding: 6px; margin: 0 12px 12px; max-width: 240px;
}
.menu__opt { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 6px; font-size: 13px; color: var(--text); cursor: pointer; }
.menu__opt:hover { background: var(--surface-2); }
.menu__opt .chk { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; flex: none; }
.menu__opt.on .chk { background: var(--cta-bg); border-color: var(--cta-bg); color: var(--cta-fg); }
.menu__opt.on .chk svg { width: 11px; height: 11px; }

/* mini table for before/after */
.mtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.mtable th { text-align: left; font: 600 11px/1 var(--cc-font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); padding: 9px 12px; border-bottom: 1px solid var(--border); }
.mtable td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.mtable tr:last-child td { border-bottom: 0; }
.mtable .num { font-family: var(--cc-font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.mtable .who { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 10px/1 var(--cc-font-sans); color: #fff; flex: none; }
.row-hover { background: var(--accent-soft); }
.row-dim { opacity: .32; }
.lozenge { display: inline-flex; align-items: center; gap: 5px; font: 700 10.5px/1 var(--cc-font-sans); letter-spacing: .02em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; }
.loz-pending { background: #FFF7D6; color: #946F00; }
.loz-ok { background: #DFFCF0; color: #216E4E; }
[data-theme="dark"] .loz-pending { background: rgba(226,178,3,.18); color: #E6C34D; }
[data-theme="dark"] .loz-ok { background: rgba(33,110,78,.24); color: #7DDCB0; }

/* modal-as-overlay frame */
.overlay-frame { position: relative; border-radius: 10px; overflow: hidden; background: #2b2a27; border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }
.overlay-frame .scrim { position: absolute; inset: 0; background: rgba(9,9,8,.55); backdrop-filter: blur(1px); }
.overlay-frame img { position: relative; width: 86%; margin: 26px auto; border-radius: 10px; box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,.1); }

.demo-anno-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.demo-anno {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border); font-size: 14px; color: var(--text-muted);
}
.demo-anno .k { font: 600 11px/1.4 var(--cc-font-mono); color: var(--accent); flex: none; padding-top: 1px; min-width: 92px; text-transform: uppercase; letter-spacing: .03em; }
.demo-anno b { color: var(--text); font-weight: 700; }

/* ============================ Feature rows ============================== */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature + .feature { margin-top: var(--section-y); }
.feature.flip .feature__media { order: -1; }
.feature__copy { max-width: 480px; }
.feature__copy .h-section { font-size: clamp(26px, 3vw, 34px); margin: 14px 0 16px; }
.feat-list { display: flex; flex-direction: column; gap: 13px; margin-top: 22px; }
.feat-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--text-muted); list-style: none; }
.feat-list svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 1px; }
.feat-list b { color: var(--text); font-weight: 650; }
ul.feat-list { padding: 0; margin-left: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; }
.kicker .n { font: 700 12px/1 var(--cc-font-mono); color: var(--cta-fg); background: var(--cta-bg); width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; }

/* stage strip (approvals) */
.stagestrip { display: flex; align-items: center; gap: 0; margin-top: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; flex-wrap: wrap; }
.stage { display: flex; align-items: center; gap: 9px; }
.stage__node { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex: none; }
.stage__node.done { background: var(--accent); color: #fff; }
[data-accent="ink"] .stage__node.done { background: #3D9A2B; }
.stage__node.now { background: var(--accent-soft); border: 2px solid var(--accent); color: var(--accent-2); }
.stage__node.next { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-faint); }
.stage__node svg { width: 13px; height: 13px; }
.stage small { font-size: 12.5px; font-weight: 600; color: var(--text); display: block; }
.stage span.sub { font-size: 11px; color: var(--text-faint); font-weight: 500; }
.stage__line { flex: 1; min-width: 24px; height: 2px; background: var(--border-strong); margin: 0 10px; border-radius: 2px; }
.stage__line.done { background: var(--accent); }
[data-accent="ink"] .stage__line.done { background: #3D9A2B; }

/* ============================ Steps ===================================== */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 44px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 28px 26px; }
.step__n { font: 800 13px/1 var(--cc-font-mono); color: var(--accent); letter-spacing: .1em; }
.step h4 { margin: 16px 0 8px; font-size: 19px; letter-spacing: -.02em; }
.step p { font-size: 14.5px; color: var(--text-muted); }
.step__chip { margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font: 500 12.5px/1 var(--cc-font-mono); color: var(--text-muted); }
.step__chip svg { width: 14px; height: 14px; color: var(--accent); }

/* ============================ Pricing =================================== */
.price-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; margin-top: 40px; align-items: stretch; }
.price-wrap--single { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
.price-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; }
.price-card.feat { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); }
.price-card.feat .text-sub { color: color-mix(in srgb, var(--cta-fg) 70%, transparent); }
.price-amt { font-size: 46px; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: baseline; gap: 6px; }
.price-amt small { font-size: 15px; font-weight: 600; color: var(--text-subtle); }
.price-card.feat .price-amt small { color: color-mix(in srgb, var(--cta-fg) 70%, transparent); }
.price-feats { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.price-feats li { display: flex; gap: 10px; align-items: flex-start; }
.price-feats svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent); }
.price-card.feat .price-feats svg { color: var(--accent-on-ink); }
.text-sub { color: var(--text-subtle); font-size: 14px; }
.price-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-subtle); margin-top: 14px; }
.price-note svg { width: 15px; height: 15px; }

/* ============================ FAQ ======================================= */
.faq { max-width: 820px; margin: 36px auto 0; }
.qa { border-bottom: 1px solid var(--border); }
.qa__q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 4px; background: transparent; border: 0; cursor: pointer; text-align: left; font: 650 17px/1.35 var(--cc-font-sans); letter-spacing: -.015em; color: var(--text); }
.qa__q .ico { margin-left: auto; flex: none; width: 22px; height: 22px; display: grid; place-items: center; color: var(--text-subtle); transition: transform var(--cc-motion-medium) var(--cc-ease-out); }
.qa__q .ico svg { width: 20px; height: 20px; }
.qa.open .qa__q .ico { transform: rotate(45deg); color: var(--accent); }
.qa__a { overflow: hidden; max-height: 0; transition: max-height var(--cc-motion-medium) var(--cc-ease-out); }
.qa__a-inner { padding: 0 4px 24px; font-size: 15px; color: var(--text-muted); max-width: 70ch; line-height: 1.6; }

/* ============================ Final CTA + footer ======================== */
.cta-final { background: var(--cta-bg); color: var(--cta-fg); border-radius: 24px; padding: clamp(40px, 6vw, 76px); text-align: center; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 80% -10%, color-mix(in srgb, var(--accent-on-ink) 18%, transparent), transparent 60%); }
.cta-final > * { position: relative; }
.cta-final h2 { color: var(--cta-fg); font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; font-weight: 800; }
.cta-final p { color: color-mix(in srgb, var(--cta-fg) 74%, transparent); font-size: 18px; margin: 16px auto 30px; max-width: 52ch; }
.cta-final .hero__cta { justify-content: center; }

.footer { padding-block: 56px 40px; border-top: 1px solid var(--border); margin-top: var(--section-y); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h6 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 14px; font-weight: 700; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14px; color: var(--text-muted); }
.footer__links a:hover { color: var(--text); }
.footer__brand { max-width: 280px; }
.footer__brand p { font-size: 13.5px; color: var(--text-subtle); margin-top: 14px; line-height: 1.6; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-subtle); flex-wrap: wrap; }

/* ============================ Reveal anim =============================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--cc-ease-out), transform .6s var(--cc-ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================ Responsive ================================ */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .scene__inner { transform: rotateX(1.5deg) rotateY(-5deg); }
  .hero__visual { max-width: 640px; }
  .feature { gap: 40px; }
}
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-grid; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; --section-y: 72px; }
  .scene__inner { transform: none; }
  .scene { perspective: none; padding: 18px 0 28px; }
  .float--presence { left: 0; }
  .float--log { left: auto; right: -8px; }
  .float--toast { right: 0; }
  .cols-3 { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature__media { order: 0; }
  .demo-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .price-wrap { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .trust__inner { gap: 22px; }
  .logos { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .nav__right .seg--swatch { display: none; }
  .hero__cta .btn { flex: 1 1 auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .tab .count { display: none; }
}

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(9,9,8,.4); backdrop-filter: blur(2px); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 84vw); background: var(--page-bg); border-left: 1px solid var(--border); padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-lg); }
.drawer__panel a { padding: 13px 12px; border-radius: 9px; font-size: 16px; font-weight: 600; color: var(--text); }
.drawer__panel a:hover { background: var(--surface-2); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer__seg { display: flex; gap: 10px; margin: 14px 0; flex-direction: column; }

/* Live demo iframe (embedded real app, replaces static tab screenshots) */
.demo-win__frame {
  display: block;
  width: 100%;
  height: 660px;
  border: 0;
  background: var(--surface, #fff);
}
@media (max-width: 760px) {
  .demo-win__frame { height: 520px; }
}

/* Hero: overtime highlight on a day cell pushed over capacity */
.hsheet td.ot {
  background: rgba(255,171,0,.22);
  box-shadow: inset 0 0 0 1.5px rgba(255,171,0,.55);
  border-radius: 5px;
  font-weight: 700;
  color: #8a5300;
  transition: background .3s ease, box-shadow .3s ease;
}

/* Photo avatars (hotlinked for preview; host locally for production) */
.av--photo { object-fit: cover; background: none !important; padding: 0; }
