/* ==========================================================================
   Scopeflow design system
   Emerald accent, slate structure, off-white ground. Inter, self-hosted.
   8pt spacing rhythm, rounded-xl cards, soft shadows, restrained motion.
   ========================================================================== */

/* ---- Fonts ---------------------------------------------------------------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/inter-800.woff2') format('woff2'); }

/* Outfit — display face for headings (self-hosted, OFL). */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/outfit-500.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/outfit-600.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/outfit-700.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/outfit-800.woff2') format('woff2'); }

/* ---- Tokens --------------------------------------------------------------- */
:root {
  /* Brand */
  --emerald:      #10B981;
  --emerald-600:  #059669;
  --emerald-700:  #047857;
  --emerald-900:  #065F46;
  --emerald-50:   #ECFDF5;
  --emerald-100:  #D1FAE5;

  /* Slate structure */
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;

  --white: #ffffff;
  --bg:    #F8FAFC;

  /* Semantic */
  --text:        var(--slate-900);
  --text-soft:   var(--slate-600);
  --text-faint:  var(--slate-500);
  --border:      var(--slate-200);
  --border-soft: #EDF1F6;
  --accent:      var(--emerald);
  --accent-ink:  var(--emerald-900);

  /* Type scale */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --fs-body: 1.0625rem;   /* 17px */

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadows — soft, low-spread */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 6px 20px -6px rgba(15,23,42,.12), 0 2px 6px rgba(15,23,42,.05);
  --shadow-lg: 0 24px 60px -18px rgba(15,23,42,.22), 0 8px 24px -12px rgba(15,23,42,.12);
  --shadow-emerald: 0 12px 30px -10px rgba(16,185,129,.45);

  /* Layout */
  --maxw: 1160px;
  --maxw-narrow: 760px;
  --gutter: clamp(20px, 5vw, 40px);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.3,1);
}

/* ---- Reset-ish ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* safety net against stray horizontal scroll */
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald-700); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--emerald-900); }
button { font-family: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--text); font-weight: 800; line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
/* Big display numerics share the heading face. */
.price-card__amount, .error-page .code { font-family: var(--font-display); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--emerald-100); color: var(--emerald-900); }

/* ---- Layout helpers ------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--slate { background: var(--slate-900); color: var(--slate-100); }
.section--slate h1,.section--slate h2,.section--slate h3 { color: var(--white); }
.section--wash { background: linear-gradient(180deg, var(--emerald-50) 0%, var(--bg) 60%); }
.stack > * + * { margin-top: 1rem; }
.skip-link { position:absolute; left:-999px; top:0; background:var(--slate-900); color:#fff; padding:12px 18px; border-radius:0 0 var(--r-sm) 0; z-index:200; }
.skip-link:focus { left:0; color:#fff; }
.visually-hidden { position:absolute!important; width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0; }

/* ---- Eyebrow / section headers ------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--emerald-700);
}
.section--slate .eyebrow { color: var(--emerald); }
.eyebrow::before { content:""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.15rem; margin-top: .6rem; }
.section--slate .section-head p { color: var(--slate-400); }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 22px; border-radius: var(--r-md);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s var(--ease), background .15s var(--ease), box-shadow .2s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
  white-space: nowrap;
}
.btn .sf-icon { transition: transform .18s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--emerald); color: #04231a; box-shadow: var(--shadow-emerald); }
.btn--primary:hover { background: var(--emerald-600); color: #04231a; }
.btn--primary:hover .sf-icon { transform: translateX(3px); }
.btn--secondary { background: var(--white); color: var(--slate-800); border-color: var(--slate-300); box-shadow: var(--shadow-xs); }
.btn--secondary:hover { border-color: var(--slate-500); color: var(--slate-900); background: var(--white); }
.btn--ghost { background: transparent; color: var(--slate-700); }
.btn--ghost:hover { color: var(--slate-900); background: var(--slate-100); }
.btn--on-slate { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.btn--on-slate:hover { background: rgba(255,255,255,.14); color:#fff; }
.btn--lg { padding: 17px 28px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---- Pills / badges ------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .01em;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-100);
}
.badge {
  display:inline-flex; align-items:center; gap:6px;
  font-size:.72rem; font-weight:700; padding:3px 9px; border-radius: var(--r-pill);
  text-transform: uppercase; letter-spacing:.04em;
}
.badge--approved { background: var(--emerald-100); color: var(--emerald-900); }
.badge--pending  { background: #FEF3C7; color: #92400E; }
.badge--progress { background: #DBEAFE; color: #1E40AF; }
.badge--paid     { background: var(--emerald); color: #04231a; }
.badge--muted    { background: var(--slate-100); color: var(--slate-600); }
.badge--dot::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,250,252,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(255,255,255,.9); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; color: var(--slate-900); }
.brand:hover { color: var(--slate-900); }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.primary-nav .nav-list { display: flex; align-items: center; gap: 2px; margin: 0 0 0 8px; padding: 0; list-style: none; }
.primary-nav .nav-item { position: relative; list-style: none; }
.primary-nav .nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--slate-700); font-weight: 550; font-size: .98rem; font-family: inherit; line-height: 1;
  padding: 9px 13px; border-radius: var(--r-sm); border: none; background: none; cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.primary-nav .nav-link:hover { color: var(--slate-900); background: var(--slate-100); }
.primary-nav .nav-link.is-active { color: var(--emerald-700); }
.primary-nav .nav-caret { width: 15px; height: 15px; color: var(--slate-400); transition: transform .18s var(--ease); }
.nav-item--dropdown:hover .nav-caret,
.nav-item--dropdown:focus-within .nav-caret,
.nav-link--toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

/* Dropdown panel */
.nav-dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 8px; min-width: 208px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
  z-index: 120;
}
/* Invisible bridge so the 8px gap doesn't drop the hover. */
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown,
.nav-item--dropdown.is-open .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown__link {
  display: block; padding: 9px 12px; border-radius: var(--r-sm); white-space: nowrap; text-align: right;
  color: var(--slate-700); font-weight: 550; font-size: .95rem;
  transition: background .13s var(--ease), color .13s var(--ease);
}
.nav-dropdown__link:hover { background: var(--slate-100); color: var(--slate-900); }
.nav-dropdown__link.is-active { background: var(--emerald-50); color: var(--emerald-700); }
.header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header__login { font-weight: 600; color: var(--slate-700); padding: 10px 12px; border-radius: var(--r-sm); }
.header__login:hover { color: var(--slate-900); background: var(--slate-100); }
.nav-toggle { display: none; }

/* Mobile nav */
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .primary-nav, .header__login { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 44px; height: 44px; border-radius: var(--r-sm);
    background: var(--white); border: 1px solid var(--border); color: var(--slate-800); cursor: pointer;
  }
  .header__actions .btn--primary { display: none; }
  .header__actions { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .mobile-nav {
    display: block; position: fixed; inset: 68px 0 0 0; z-index: 90;
    background: var(--bg); padding: 24px var(--gutter);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    overflow-y: auto;
  }
  .mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-nav__group { border-bottom: 1px solid var(--border); padding: 10px 0; }
  .mobile-nav__heading { display: block; padding: 6px 4px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--slate-400); }
  .mobile-nav__link { display: block; padding: 12px 4px; font-size: 1.15rem; font-weight: 600; color: var(--slate-800); }
  .mobile-nav > .mobile-nav__link { border-bottom: 1px solid var(--border); font-size: 1.2rem; }
  .mobile-nav__link--sub { padding-left: 6px; color: var(--slate-700); font-weight: 550; }
  .mobile-nav__cta { margin-top: 24px; display: grid; gap: 12px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero::before {
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(1100px 480px at 78% -8%, rgba(16,185,129,.14), transparent 60%),
    radial-gradient(700px 400px at 10% 0%, rgba(16,185,129,.06), transparent 55%);
}
.hero__grid { display: grid; grid-template-columns: 1.02fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__title { margin-bottom: .5em; }
.hero__title .accent { color: var(--emerald-700); }
.hero__sub { font-size: 1.24rem; color: var(--text-soft); max-width: 34ch; margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { margin-top: 16px; font-size: .92rem; color: var(--text-faint); display:flex; align-items:center; gap:8px; }
.hero__note .sf-icon { color: var(--emerald-600); }
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__sub { max-width: 46ch; }
  .hero__visual { order: 2; }
}

/* ==========================================================================
   Product mockups (faux app windows)
   ========================================================================== */
.mock {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  font-size: .875rem; color: var(--slate-700);
}
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--slate-50); border-bottom: 1px solid var(--border); }
.mock__dots { display: flex; gap: 6px; }
.mock__dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--slate-300); }
.mock__dots span:nth-child(1){ background:#F87171; } .mock__dots span:nth-child(2){ background:#FBBF24; } .mock__dots span:nth-child(3){ background:#34D399; }
.mock__title { font-size: .8rem; font-weight: 600; color: var(--slate-500); margin-left: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__url { margin-left: auto; font-size: .74rem; color: var(--slate-400); background: var(--white); border: 1px solid var(--border); padding: 4px 10px; border-radius: var(--r-pill); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
/* Grid/flex children must be allowed to shrink so wide mockups never force page width */
.hero__grid > *, .feature-row > *, .problem > *, .usecase > *, .grid > *, .quotes > *, .price-grid > * { min-width: 0; }
.mock, .mock * { min-width: 0; }
@media (max-width: 480px) { .mock__url { display: none; } }
.mock__body { padding: 18px; }
.mock__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.mock__row:last-child { border-bottom: 0; }
.mock__label { color: var(--slate-500); font-size: .82rem; }
.mock__value { font-weight: 700; color: var(--slate-900); }
.mock__value--lg { font-size: 1.5rem; }
.mock__k { font-size: .74rem; color: var(--slate-400); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

/* Estimation card mockup */
.est__head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom: 16px; }
.est__name { font-weight: 700; color: var(--slate-900); font-size: 1rem; }
.est__meta { color: var(--slate-500); font-size: .8rem; margin-top: 2px; }
.est__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.est__cell { background: var(--slate-50); border: 1px solid var(--border-soft); border-radius: var(--r-md); padding: 12px 14px; }
.est__total { display:flex; align-items:center; justify-content:space-between; padding: 14px 16px; background: var(--emerald-50); border:1px solid var(--emerald-100); border-radius: var(--r-md); }
.est__total .mock__value--lg { color: var(--emerald-900); }
.est__foot { display:flex; align-items:center; gap:10px; margin-top: 14px; }
.est__avatars { display:flex; }
.avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--white); display:flex; align-items:center; justify-content:center; font-size:.72rem; font-weight:700; color:#fff; margin-left: -8px; }
.est__avatars .avatar:first-child { margin-left: 0; }

/* Timer bar mockup */
.timer {
  display:flex; align-items:center; gap: 16px; padding: 16px 18px;
  background: var(--slate-900); border-radius: var(--r-md); color:#fff;
}
.timer__play { width: 42px; height: 42px; border-radius: 50%; background: var(--emerald); color:#04231a; display:flex; align-items:center; justify-content:center; flex:none; box-shadow: 0 0 0 6px rgba(16,185,129,.18); }
.timer__pulse { width:8px;height:8px;border-radius:50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: sf-pulse 1.8s var(--ease) infinite; flex:none; }
@keyframes sf-pulse { 0%{box-shadow:0 0 0 0 rgba(16,185,129,.55);} 70%{box-shadow:0 0 0 10px rgba(16,185,129,0);} 100%{box-shadow:0 0 0 0 rgba(16,185,129,0);} }
@media (prefers-reduced-motion: reduce){ .timer__pulse{ animation:none; } }
.timer__task { flex: 1; min-width: 0; }
.timer__task strong { display:block; font-size:.92rem; }
.timer__task span { color: var(--slate-400); font-size:.78rem; }
.timer__clock { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.5rem; letter-spacing: .01em; }

/* Board mockup */
.board { display:grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.board__col { background: var(--slate-50); border:1px solid var(--border-soft); border-radius: var(--r-md); padding: 10px; }
.board__col h4 { font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color: var(--slate-500); margin:2px 4px 10px; display:flex; align-items:center; justify-content:space-between; }
.board__col h4 .count { background: var(--white); border:1px solid var(--border); border-radius: var(--r-pill); padding:1px 7px; font-size:.72rem; color:var(--slate-500); }
.card-mini { background: var(--white); border:1px solid var(--border); border-radius: var(--r-sm); padding: 10px; margin-bottom: 8px; box-shadow: var(--shadow-xs); }
.card-mini:last-child{ margin-bottom:0; }
.card-mini p { margin: 0 0 8px; font-size: .82rem; font-weight: 600; color: var(--slate-800); line-height:1.35; }
.card-mini__foot { display:flex; align-items:center; justify-content:space-between; }
.card-mini__foot .avatar { width:22px;height:22px; font-size:.62rem; margin:0; border-width:0; }

/* Payouts table mockup */
.payouts { width:100%; border-collapse: collapse; font-size: .84rem; }
.payouts th { text-align:left; font-size:.7rem; text-transform:uppercase; letter-spacing:.05em; color: var(--slate-400); font-weight:700; padding: 0 10px 10px; }
.payouts td { padding: 12px 10px; border-top: 1px solid var(--border-soft); }
.payouts tr td:first-child { font-weight:600; color: var(--slate-800); }
.payouts .num { text-align:right; font-variant-numeric: tabular-nums; font-weight:600; }
.payouts .rem { color: var(--slate-500); }
.meter { height:6px; background: var(--slate-100); border-radius: var(--r-pill); overflow:hidden; margin-top:6px; }
.meter > span { display:block; height:100%; background: var(--emerald); border-radius: var(--r-pill); }

/* Notification mock */
.notif { display:flex; gap:12px; padding: 12px; border:1px solid var(--border); border-radius: var(--r-md); background:var(--white); margin-bottom:10px; box-shadow: var(--shadow-xs); }
.notif:last-child{margin-bottom:0;}
.notif__icon { width:34px;height:34px;border-radius:9px; display:flex;align-items:center;justify-content:center; flex:none; }
.notif__icon--info{ background: var(--emerald-50); color: var(--emerald-700); }
.notif__icon--warn{ background:#FEF3C7; color:#92400E; }
.notif__icon--crit{ background:#FEE2E2; color:#B91C1C; }
.notif__body p { margin:0; font-size:.85rem; color:var(--slate-700); }
.notif__body strong{ color: var(--slate-900); }
.notif__time { font-size:.72rem; color: var(--slate-400); }

/* Floating accent under mockups */
.mock-wrap { position: relative; }
.mock-wrap::after {
  content:""; position:absolute; inset: auto 8% -18px 8%; height: 40px; z-index:-1;
  background: rgba(16,185,129,.28); filter: blur(34px); border-radius: 50%;
}

/* ==========================================================================
   Logo cloud
   ========================================================================== */
.logos-section { padding-block: clamp(72px, 10vw, 136px); }
.logos { text-align:center; }
.logos__label { font-size: 1.05rem; color: var(--text-faint); font-weight: 600; margin-bottom: 48px; letter-spacing: .005em; }
.logos__row { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap: clamp(40px, 7vw, 88px); row-gap: clamp(28px, 4vw, 44px); }
.logo { display: inline-flex; will-change: opacity; }
.logos__row svg { height: 38px; width:auto; color: var(--slate-400); opacity:.9; transition: color .2s var(--ease); }
.logos__row a:hover svg, .logos__row .logo:hover svg { color: var(--slate-600); }
.logos__disclaimer { margin-top: 40px; font-size:.82rem; color: var(--slate-400); }
@media (max-width: 600px){ .logos__row svg { height: 30px; } }

/* ==========================================================================
   Problem framing
   ========================================================================== */
.problem { display:grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px,5vw,72px); align-items:center; }
.problem__lead { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing:-0.02em; line-height:1.25; color: var(--slate-900); }
.problem__lead .strike { color: var(--slate-400); text-decoration: line-through; text-decoration-thickness: 2px; }
.problem__lead .accent { color: var(--emerald-700); }
.problem p { color: var(--text-soft); font-size: 1.08rem; }
.three-tools { display:grid; gap:14px; }
.tool-chip { display:flex; align-items:center; gap:14px; padding: 16px 18px; background:var(--white); border:1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-xs); }
.tool-chip__n { width:30px;height:30px;border-radius:8px; background: var(--slate-100); color: var(--slate-500); font-weight:800; display:flex;align-items:center;justify-content:center; font-size:.85rem; flex:none; }
.tool-chip strong { color: var(--slate-800); font-size:.98rem; }
.tool-chip span { color: var(--slate-500); font-size:.86rem; }
.tool-chip--sum { background: var(--slate-900); border-color: var(--slate-900); }
.tool-chip--sum .tool-chip__n { background: var(--emerald); color:#04231a; }
.tool-chip--sum strong { color:#fff; } .tool-chip--sum span { color: var(--slate-400); }
@media (max-width: 860px){ .problem{ grid-template-columns:1fr; } }

/* ==========================================================================
   Feature rows (alternating)
   ========================================================================== */
.feature-row { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 76px); align-items:center; }
.feature-row + .feature-row { margin-top: clamp(56px, 8vw, 112px); }

/* Homepage feature deep-dives: order Projects first, then Estimations, Time, Budget/pay. */
#features-overview .container { display: flex; flex-direction: column; }
#features-overview .section-head { margin-bottom: 0; order: 0; }
#features-overview .feature-row { margin-top: clamp(56px, 8vw, 112px); }
#features-overview #projects { order: 1; }
#features-overview #estimations { order: 2; }
#features-overview #time-tracking { order: 3; }
#features-overview #payments { order: 4; }
#features-overview #clients { order: 5; }
#features-overview #approvals { order: 6; }

/* Features page: same PM-first ordering (Projects → Estimations → Time → Budget…). */
#feat-sections { display: flex; flex-direction: column; padding-top: clamp(40px, 6vw, 64px); }
#feat-sections > section { order: 0; padding-top: 0; }
#feat-sections #projects { order: 1; }
#feat-sections #estimations { order: 2; }
#feat-sections #time { order: 3; }
#feat-sections #payments { order: 4; }
#feat-sections #clients { order: 5; }
#feat-sections #collab { order: 6; }
#feat-sections #audit { order: 7; }
.feature-row--flip .feature-row__media { order: -1; }
.feature-row__icon { width:48px;height:48px;border-radius: 13px; background: var(--emerald-50); color: var(--emerald-700); display:flex;align-items:center;justify-content:center; margin-bottom:20px; border:1px solid var(--emerald-100); }
.feature-row h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom:.5em; }
.feature-row__lead { font-size: 1.12rem; color: var(--text-soft); }
.feature-list { list-style:none; padding:0; margin: 20px 0 0; display:grid; gap: 12px; }
.feature-list li { display:flex; gap:11px; align-items:flex-start; color: var(--slate-700); font-size: 1rem; }
.feature-list .sf-icon { color: var(--emerald-600); flex:none; margin-top:2px; }
@media (max-width: 860px){
  .feature-row { grid-template-columns:1fr; gap: 28px; }
  .feature-row--flip .feature-row__media { order: 0; }
}

/* ==========================================================================
   How it works
   ========================================================================== */
.steps { display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; counter-reset: step; }
.step { position:relative; }
.step__n { width:40px;height:40px;border-radius:11px; background: var(--slate-900); color:#fff; font-weight:800; display:flex;align-items:center;justify-content:center; margin-bottom:16px; }
.step:nth-child(4) .step__n { background: var(--emerald); color:#04231a; }
.step h3 { font-size: 1.18rem; margin-bottom:.4em; }
.step p { color: var(--text-soft); font-size: .98rem; margin:0; }
.step:not(:last-child)::after {
  content:""; position:absolute; top:20px; left: 52px; right:-10px; height:2px;
  background: repeating-linear-gradient(90deg, var(--slate-300) 0 6px, transparent 6px 12px);
}
@media (max-width: 860px){ .steps{ grid-template-columns:1fr 1fr; } .step:not(:last-child)::after{ display:none; } }
@media (max-width: 520px){ .steps{ grid-template-columns:1fr; } }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.card {
  background: var(--white); border:1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.card__icon { width:46px;height:46px;border-radius:12px; background: var(--emerald-50); color: var(--emerald-700); display:flex;align-items:center;justify-content:center; margin-bottom:18px; border:1px solid var(--emerald-100); }
.card h3 { font-size: 1.18rem; margin-bottom:.4em; }
.card p { color: var(--text-soft); font-size: .98rem; margin:0; }
.grid { display:grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.grid--2 { grid-template-columns: repeat(2,1fr); }
.grid--4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px){ .grid--3,.grid--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .grid--2,.grid--3,.grid--4 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Use cases (tabs)
   ========================================================================== */
.tabs__list { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-bottom: 32px; }
.tabs__btn {
  padding: 12px 20px; border-radius: var(--r-pill); border:1.5px solid var(--border);
  background: var(--white); color: var(--slate-600); font-weight:650; cursor:pointer; font-size:.98rem;
  transition: all .15s var(--ease);
}
.tabs__btn:hover { border-color: var(--slate-400); color: var(--slate-800); }
.tabs__btn[aria-selected="true"] { background: var(--slate-900); border-color: var(--slate-900); color:#fff; }
.tabs__panel { display:none; }
.tabs__panel.is-active { display:block; animation: sf-fade .3s var(--ease); }
@keyframes sf-fade { from{ opacity:0; transform: translateY(6px);} to{opacity:1;transform:none;} }
.usecase { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items:center; background:var(--white); border:1px solid var(--border); border-radius: var(--r-xl); padding: clamp(24px,4vw,44px); box-shadow: var(--shadow-sm); }
.usecase h3 { font-size: 1.6rem; }
.usecase p { color: var(--text-soft); font-size: 1.06rem; }
.usecase__quote { margin-top:18px; padding-left:16px; border-left:3px solid var(--emerald); color: var(--slate-600); font-style: italic; }
@media (max-width: 800px){ .usecase{ grid-template-columns:1fr; } }

/* ==========================================================================
   Security strip
   ========================================================================== */
.sec-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.sec-item { display:flex; gap:14px; padding: 20px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09); border-radius: var(--r-md); }
.sec-item__icon { width:40px;height:40px;border-radius:10px; background: rgba(16,185,129,.14); color: var(--emerald); display:flex;align-items:center;justify-content:center; flex:none; }
.sec-item h3 { font-size:1.02rem; color:#fff; margin-bottom:.25em; }
.sec-item p { color: var(--slate-400); font-size:.88rem; margin:0; }
@media (max-width: 860px){ .sec-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.quote { background:var(--white); border:1px solid var(--border); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); display:flex; flex-direction:column; }
.quote__mark { color: var(--emerald); font-size: 2.4rem; line-height:0.6; font-weight:800; margin-bottom: 10px; }
.quote p { font-size: 1.04rem; color: var(--slate-800); line-height:1.55; }
.quote__who { display:flex; align-items:center; gap:12px; margin-top:auto; padding-top:18px; }
.quote__avatar { width:42px;height:42px;border-radius:50%; display:flex;align-items:center;justify-content:center; font-weight:700; color:#fff; font-size:.9rem; flex:none; }
.quote__who strong { display:block; font-size:.92rem; color:var(--slate-900); }
.quote__who span { font-size:.82rem; color: var(--slate-500); }
@media (max-width: 900px){ .quotes{ grid-template-columns:1fr; } }

/* ==========================================================================
   Pricing
   ========================================================================== */
.billing-toggle { display:flex; align-items:center; justify-content:center; gap:14px; margin: 8px 0 40px; }
.billing-toggle span { font-weight:600; color: var(--slate-500); font-size:.98rem; }
.billing-toggle span.is-active { color: var(--slate-900); }
.switch { position:relative; width:54px; height:30px; border-radius: var(--r-pill); background: var(--slate-300); border:none; cursor:pointer; transition: background .2s var(--ease); flex:none; }
.switch[aria-checked="true"] { background: var(--emerald); }
.switch::after { content:""; position:absolute; top:3px; left:3px; width:24px;height:24px;border-radius:50%; background:#fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch[aria-checked="true"]::after { transform: translateX(24px); }
.save-pill { font-size:.76rem; }

.price-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 18px; align-items:stretch; }
.price-card { background:var(--white); border:1px solid var(--border); border-radius: var(--r-lg); padding: 26px; display:flex; flex-direction:column; box-shadow: var(--shadow-xs); position:relative; }
.price-card--featured { border-color: var(--emerald); box-shadow: var(--shadow-md); }
.price-card--featured::before { content:""; position:absolute; inset:0; border-radius: var(--r-lg); border:1.5px solid var(--emerald); pointer-events:none; }
.price-card__badge { position:absolute; top:-11px; left:50%; transform:translateX(-50%); background:var(--emerald); color:#04231a; font-size:.72rem; font-weight:800; padding:4px 12px; border-radius: var(--r-pill); text-transform:uppercase; letter-spacing:.04em; }
.price-card h3 { font-size:1.25rem; margin-bottom:.15em; }
.price-card__for { color: var(--slate-500); font-size:.86rem; min-height: 2.6em; }
.price-card__price { display:flex; align-items:baseline; gap:6px; margin: 14px 0 2px; }
.price-card__amount { font-size: 2.6rem; font-weight:800; letter-spacing:-0.03em; color: var(--slate-900); }
.price-card__period { color: var(--slate-500); font-size:.86rem; font-weight:600; }
.price-card__tagline { color: var(--slate-600); font-size:.92rem; min-height: 2.8em; margin: 6px 0 18px; }
.price-card .btn { margin-bottom: 22px; }
.price-features { list-style:none; padding:0; margin:0; display:grid; gap:11px; }
.price-features li { display:flex; gap:10px; font-size:.92rem; color: var(--slate-700); align-items:flex-start; }
.price-features .sf-icon { color: var(--emerald-600); flex:none; margin-top:1px; }
.price-features li.is-head { font-weight:700; color: var(--slate-900); }
@media (max-width: 1000px){ .price-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .price-grid{ grid-template-columns:1fr; } }

/* Comparison matrix */
.matrix-wrap { overflow-x:auto; border:1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); background:var(--white); }
.matrix { width:100%; border-collapse:collapse; min-width: 680px; }
.matrix th, .matrix td { padding: 15px 18px; text-align:center; border-bottom:1px solid var(--border-soft); font-size:.92rem; }
.matrix thead th { background: var(--slate-50); font-weight:700; color: var(--slate-900); position:sticky; top:0; }
.matrix tbody th { text-align:left; font-weight:600; color: var(--slate-700); }
.matrix td .sf-icon { color: var(--emerald-600); margin-inline:auto; }
.matrix .muted { color: var(--slate-300); }
.matrix tr:hover td, .matrix tr:hover th { background: var(--emerald-50); }
.matrix .group td { background: var(--slate-900); color:#fff; font-weight:700; text-align:left; font-size:.82rem; text-transform:uppercase; letter-spacing:.05em; }

/* ==========================================================================
   FAQ / accordion
   ========================================================================== */
.faq { max-width: 780px; margin-inline:auto; }
.faq__item { border-bottom:1px solid var(--border); }
.faq__q { width:100%; text-align:left; background:none; border:none; cursor:pointer; padding: 22px 40px 22px 4px; font-size: 1.1rem; font-weight:650; color: var(--slate-900); position:relative; }
.faq__q .sf-icon { position:absolute; right:4px; top:50%; transform: translateY(-50%); color: var(--slate-400); transition: transform .2s var(--ease); }
.faq__q[aria-expanded="true"] .sf-icon { transform: translateY(-50%) rotate(180deg); color: var(--emerald-700); }
.faq__a { overflow:hidden; max-height:0; transition: max-height .28s var(--ease); }
.faq__a-inner { padding: 0 4px 24px; color: var(--text-soft); font-size:1.02rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { position:relative; overflow:hidden; background: var(--slate-900); border-radius: var(--r-xl); padding: clamp(40px,6vw,72px); text-align:center; color:#fff; }
.cta-band::before { content:""; position:absolute; inset:0; z-index:0; background: radial-gradient(600px 300px at 50% 0%, rgba(16,185,129,.22), transparent 65%); }
.cta-band > * { position:relative; z-index:1; }
.cta-band h2 { color:#fff; margin-bottom:.3em; }
.cta-band p { color: var(--slate-300); font-size:1.15rem; max-width: 46ch; margin-inline:auto; margin-bottom: 1.6rem; }
.cta-band__actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--slate-900); color: var(--slate-400); padding-block: clamp(48px,7vw,80px) 32px; }
.footer__grid { display:grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.footer__brand .brand { color:#fff; }
.footer__tagline { color: var(--slate-400); font-size:.94rem; margin-top: 14px; max-width: 30ch; }
.footer__col h4 { color:#fff; font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; font-weight:700; margin-bottom:16px; }
.footer__col ul { list-style:none; padding:0; margin:0; display:grid; gap:11px; }
.footer__col a { color: var(--slate-400); font-size:.95rem; }
.footer__col a:hover { color:#fff; }
.footer__bottom { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top: 48px; padding-top: 28px; border-top:1px solid rgba(255,255,255,.08); font-size:.86rem; }
.footer__stack { display:flex; align-items:center; gap:8px; color: var(--slate-500); }
.footer__stack .sf-icon { color: var(--emerald); }
@media (max-width: 900px){ .footer__grid{ grid-template-columns: 1fr 1fr; gap:32px; } .footer__brand{ grid-column:1/-1; } }
@media (max-width: 520px){ .footer__grid{ grid-template-columns:1fr 1fr; } }

/* ==========================================================================
   Content pages (blog, legal, generic)
   ========================================================================== */
.page-hero { padding-top: clamp(48px,6vw,80px); padding-bottom: clamp(28px,4vw,44px); }
.page-hero h1 { max-width: 18ch; }
.page-hero__sub { font-size: 1.24rem; color: var(--text-soft); max-width: 54ch; }

.prose { max-width: 720px; margin-inline:auto; font-size: 1.12rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6rem; }
.prose p { color: var(--slate-700); }
.prose .lede { font-size: 1.3rem; color: var(--slate-900); font-weight: 500; line-height:1.5; }
.prose ul, .prose ol { color: var(--slate-700); padding-left: 1.3em; }
.prose li { margin-bottom: .5rem; }
.prose blockquote { border-left: 3px solid var(--emerald); padding-left: 20px; color: var(--slate-600); font-style: italic; margin-inline:0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose code { background: var(--slate-100); padding: 2px 6px; border-radius: 5px; font-size: .9em; }

/* Blog */
.post-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.post-card { display:flex; flex-direction:column; background:var(--white); border:1px solid var(--border); border-radius: var(--r-lg); overflow:hidden; box-shadow: var(--shadow-xs); transition: transform .18s var(--ease), box-shadow .2s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card__thumb { aspect-ratio: 16/9; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.post-card__body { padding: 22px; display:flex; flex-direction:column; flex:1; }
.post-card__cat { font-size:.74rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color: var(--emerald-700); margin-bottom:10px; }
.post-card__body h3 { font-size:1.18rem; line-height:1.25; margin-bottom:.5em; }
.post-card__body h3 a { color: var(--slate-900); }
.post-card__body h3 a:hover { color: var(--emerald-700); }
.post-card__excerpt { color: var(--text-soft); font-size:.95rem; }
.post-card__meta { margin-top:auto; padding-top:16px; font-size:.82rem; color: var(--slate-400); display:flex; gap:10px; align-items:center; }
@media (max-width: 900px){ .post-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 600px){ .post-grid{ grid-template-columns:1fr; } }

/* thumb gradients (deterministic decorative) */
.thumb-a { background: linear-gradient(135deg, var(--emerald-900), var(--emerald-600)); }
.thumb-b { background: linear-gradient(135deg, var(--slate-900), var(--slate-700)); }
.thumb-c { background: linear-gradient(135deg, var(--emerald-700), var(--slate-800)); }
.post-card__thumb .sf-icon { color: rgba(255,255,255,.9); }
.post-card__thumb .thumb-glyph { position:absolute; right:-10px; bottom:-10px; opacity:.18; }

.single-hero { max-width: 760px; margin-inline:auto; text-align:center; }
.single-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top:.4em; }
.single-meta { color: var(--slate-500); font-size:.92rem; display:flex; gap:12px; justify-content:center; align-items:center; margin-top: 14px; }
.single-meta .dot{ width:4px;height:4px;border-radius:50%; background: var(--slate-300); }

/* ==========================================================================
   Forms (contact)
   ========================================================================== */
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display:flex; flex-direction:column; gap:7px; }
.field--full { grid-column: 1/-1; }
.field label { font-weight:600; font-size:.9rem; color: var(--slate-800); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; color: var(--slate-900);
  padding: 13px 15px; border:1.5px solid var(--border); border-radius: var(--r-md); background:var(--white);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(16,185,129,.14); }
.field textarea { resize: vertical; min-height: 130px; }
.honeypot { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-note { font-size:.86rem; color: var(--slate-500); }
.consent-field { display:flex; gap:11px; align-items:flex-start; font-size:.9rem; font-weight:400; color: var(--slate-600); cursor:pointer; line-height:1.5; }
.consent-field input { margin-top:3px; width:18px; height:18px; flex:none; accent-color: var(--emerald); cursor:pointer; }
.consent-field a { text-decoration: underline; text-underline-offset: 2px; }
.alert { padding: 14px 18px; border-radius: var(--r-md); font-size:.96rem; margin-bottom: 20px; border:1px solid; }
.alert--ok { background: var(--emerald-50); border-color: var(--emerald-100); color: var(--emerald-900); }
.alert--err { background:#FEF2F2; border-color:#FECACA; color:#991B1B; }
@media (max-width: 600px){ .form-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   404
   ========================================================================== */
.error-page { text-align:center; padding-block: clamp(60px,10vw,120px); }
.error-page .code { font-size: clamp(5rem, 14vw, 9rem); font-weight:800; letter-spacing:-0.04em; color: var(--emerald); line-height:1; }
.error-page h1 { margin-top:.2em; }
.error-page p { color: var(--text-soft); font-size:1.15rem; max-width: 42ch; margin-inline:auto; }

/* ==========================================================================
   Scroll reveal / motion (GSAP-driven)
   Elements start hidden ONLY while <html> has the `js` class. gsap-init.js
   animates them back in; if GSAP is missing or the user prefers reduced motion,
   the `js` class is dropped and everything is simply visible. So: no JS, no GSAP,
   or reduced motion all degrade to fully-visible, no-animation content.
   ========================================================================== */
html.js .reveal { opacity: 0; transform: translateY(20px); }

/* Feature rows animate their two halves, so the row itself stays visible. */
html.js .feature-row.reveal { opacity: 1; transform: none; }
html.js .feature-row__body,
html.js .feature-row__media { opacity: 0; }

/* Grid groups whose children stagger in. */
html.js .steps > *,
html.js .sec-grid > *,
html.js .quotes > *,
html.js .price-grid > *,
html.js .grid--4 > *,
html.js .post-grid > * { opacity: 0; transform: translateY(22px); }

/* Hero pieces, revealed by the load timeline (scoped to the home hero — .pill and
   .hero__cta are reused elsewhere and must not be hidden there). */
html.js .hero .pill,
html.js .hero__title,
html.js .hero__sub,
html.js .hero .hero__cta,
html.js .hero__note,
html.js .hero__visual { opacity: 0; }

/* Reduced motion: neutralize every hidden state up front (no flash, no animation). */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .feature-row__body,
  html.js .feature-row__media,
  html.js .steps > *,
  html.js .sec-grid > *,
  html.js .quotes > *,
  html.js .price-grid > *,
  html.js .grid--4 > *,
  html.js .post-grid > *,
  html.js .hero .pill,
  html.js .hero__title,
  html.js .hero__sub,
  html.js .hero .hero__cta,
  html.js .hero__note,
  html.js .hero__visual { opacity: 1 !important; transform: none !important; }
}

/* Split-cta helper on inner pages */
.mini-cta { display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; background:var(--white); border:1px solid var(--border); border-radius: var(--r-xl); padding: clamp(24px,4vw,40px); box-shadow: var(--shadow-sm); }
.mini-cta h3 { font-size:1.5rem; margin:0 0 .2em; }
.mini-cta p { color: var(--text-soft); margin:0; }

/* Feature page quick-jump sub-nav */
.feature-jump { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.feature-jump::-webkit-scrollbar { display: none; }
.feature-jump a { white-space: nowrap; font-size: .92rem; font-weight: 600; color: var(--slate-600); padding: 8px 14px; border-radius: var(--r-pill); }
.feature-jump a:hover { background: var(--slate-100); color: var(--slate-900); }

/* Pagination */
.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--white);
  color: var(--slate-700); font-weight: 600; transition: all .15s var(--ease);
}
.page-numbers:hover { border-color: var(--slate-400); color: var(--slate-900); }
.page-numbers.current { background: var(--slate-900); border-color: var(--slate-900); color: #fff; }
.page-numbers.dots { border: none; background: none; }

/* ==========================================================================
   Comparison pages (Beacon vs …)
   ========================================================================== */
.cmp-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; color: #fff; flex: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; line-height: 1;
}
.cmp-hero { text-align: center; }
.cmp-hero h1 { max-width: 18ch; margin-inline: auto; }
.cmp-hero .page-hero__sub { margin-inline: auto; }
.cmp-hero .hero__cta { justify-content: center; }
.cmp-hero__marks { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 24px; }
.cmp-hero__vs { color: var(--slate-400); font-weight: 700; font-size: 1.05rem; }

/* Overview cards */
.cmp-overview { align-items: stretch; }
.cmp-ov__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cmp-ov__head .cmp-mark { width: 40px; height: 40px; font-size: 1.2rem; border-radius: 11px; }
.cmp-ov__head strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--slate-900); }
.cmp-ov p { color: var(--text-soft); margin: 0; }
.cmp-ov--us { border-color: rgba(16,185,129,.4); background: linear-gradient(180deg, var(--emerald-50), var(--white) 62%); }

/* Comparison table */
.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); background: var(--white); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 580px; }
.cmp-table th, .cmp-table td { padding: 15px 20px; text-align: center; border-bottom: 1px solid var(--border-soft); }
.cmp-table thead th { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--slate-900); background: var(--slate-50); }
.cmp-table thead th.cmp-col-us { background: var(--emerald); color: #04231a; }
.cmp-table tbody th[scope="row"], .cmp-table .cmp-feature { text-align: left; font-weight: 600; color: var(--slate-700); font-size: .95rem; }
.cmp-table th.cmp-col-us, .cmp-table td.cmp-col-us { border-left: 1px solid rgba(16,185,129,.22); border-right: 1px solid rgba(16,185,129,.22); }
.cmp-table td.cmp-col-us { background: rgba(16,185,129,.06); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody tr:hover th, .cmp-table tbody tr:hover td { background: rgba(15,23,42,.02); }
.cmp-table tbody tr:hover td.cmp-col-us { background: rgba(16,185,129,.11); }
.cmp-yes { display: inline-flex; color: var(--slate-400); }
.cmp-yes--us { color: var(--emerald-600); }
.cmp-no { color: var(--slate-300); font-size: 1.2rem; }
.cmp-txt { font-size: .82rem; font-weight: 600; color: var(--slate-500); }
.cmp-txt--us { color: var(--emerald-700); }

/* In fairness */
.cmp-fair { text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(32px, 5vw, 56px); box-shadow: var(--shadow-sm); }
.cmp-fair h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cmp-fair p { color: var(--text-soft); font-size: 1.1rem; margin: 0; max-width: 60ch; margin-inline: auto; }

/* Cross-links + hub */
.cmp-crosslinks { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cmp-crosslink { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 8px 18px 8px 8px; font-weight: 600; color: var(--slate-700); box-shadow: var(--shadow-xs); transition: transform .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.cmp-crosslink:hover { border-color: var(--slate-400); color: var(--slate-900); transform: translateY(-2px); }
.cmp-crosslink .cmp-mark, .cmp-hub-vs .cmp-mark { width: 34px; height: 34px; font-size: 1rem; border-radius: 9px; }
.cmp-hub-card { display: flex; flex-direction: column; text-decoration: none; }
.cmp-hub-vs { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cmp-hub-x { color: var(--slate-400); font-weight: 700; }
.cmp-hub-card h3 { margin-bottom: .3em; }
.cmp-hub-card p { color: var(--text-soft); font-size: .95rem; margin-bottom: 16px; }
.cmp-hub-card .project-view-more { margin-top: auto; }

/* ==========================================================================
   How It Works page
   ========================================================================== */
.hiw-hero { position: relative; overflow: hidden; text-align: center; }
.hiw-hero h1 { max-width: 20ch; margin-inline: auto; }
.hiw-hero .page-hero__sub { margin-inline: auto; }
.hiw-hero .hero__cta { justify-content: center; }
.hiw-hero__rings {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle, transparent 118px, rgba(16,185,129,.18) 119px, transparent 123px),
    radial-gradient(circle, transparent 188px, rgba(16,185,129,.13) 189px, transparent 194px),
    radial-gradient(circle, transparent 268px, rgba(16,185,129,.09) 269px, transparent 275px),
    radial-gradient(circle, transparent 358px, rgba(16,185,129,.05) 359px, transparent 366px);
}

/* Step-by-step flow */
.steps-flow { max-width: 760px; margin-inline: auto; display: grid; gap: clamp(28px, 5vw, 44px); }
.step-flow { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; position: relative; }
.step-flow__num {
  position: relative; z-index: 1; flex: none;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--slate-900); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 0 0 8px rgba(16,185,129,.10), 0 0 0 16px rgba(16,185,129,.045);
}
.step-flow:last-child .step-flow__num { background: var(--emerald); color: #04231a; }
.step-flow:not(:last-child)::before {
  content: ""; position: absolute; left: 27px; top: 66px;
  bottom: calc(clamp(28px, 5vw, 44px) * -1); width: 2px;
  background: repeating-linear-gradient(180deg, var(--slate-200) 0 6px, transparent 6px 12px);
}
.step-flow__icon {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 14px;
  background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-100);
  display: flex; align-items: center; justify-content: center;
}
.step-flow__body h3 { font-size: 1.35rem; margin-bottom: .35em; }
.step-flow__body p { color: var(--text-soft); margin: 0; font-size: 1.02rem; }

/* Seat-tier chips (volume discount) */
.seat-tiers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.seat-tier { font-weight: 700; font-size: .85rem; padding: 7px 15px; border-radius: var(--r-pill); background: var(--slate-100); color: var(--slate-600); border: 1px solid var(--border); }
.seat-tier--best { background: var(--emerald); color: #04231a; border-color: var(--emerald); }
.seat-tiers__note { font-size: .85rem; color: var(--text-faint); margin-left: 4px; }

/* Enterprise callout */
.enterprise-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 18px 20px; background: var(--slate-50); border: 1px solid var(--border); border-radius: var(--r-md); }
.enterprise-note__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--emerald-50); color: var(--emerald-700); display: flex; align-items: center; justify-content: center; flex: none; }
.enterprise-note p { margin: 0; color: var(--text-soft); font-size: .98rem; }
.enterprise-note strong { color: var(--slate-900); }

/* Screenshot placeholder */
.shot { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.shot__bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--slate-50); border-bottom: 1px solid var(--border); }
.shot__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--slate-300); }
.shot__bar span:nth-child(1) { background: #F87171; }
.shot__bar span:nth-child(2) { background: #FBBF24; }
.shot__bar span:nth-child(3) { background: #34D399; }
.shot__body { position: relative; aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(180deg, var(--emerald-50), var(--slate-50)); overflow: hidden; }
.shot__rings { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 38px, rgba(16,185,129,.16) 39px, transparent 43px),
    radial-gradient(circle at 50% 50%, transparent 78px, rgba(16,185,129,.11) 79px, transparent 84px),
    radial-gradient(circle at 50% 50%, transparent 122px, rgba(16,185,129,.07) 123px, transparent 129px);
}
.shot__tag { position: relative; z-index: 1; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--emerald-700); background: #fff; border: 1px solid var(--emerald-100); padding: 5px 12px; border-radius: var(--r-pill); }
.shot__cap { position: relative; z-index: 1; font-weight: 600; color: var(--slate-500); font-size: .95rem; }

@media (max-width: 560px) {
  .step-flow { grid-template-columns: 1fr; gap: 14px; }
  .step-flow:not(:last-child)::before { display: none; }
  .step-flow__num { width: 48px; height: 48px; font-size: 1.2rem; }
}

/* ==========================================================================
   Homepage: centered hero, dashboard overview, tool grid, founder note
   ========================================================================== */
.hero--center { text-align: center; }
.hero--center .hero__center { max-width: 800px; margin-inline: auto; }
.hero--center .hero__sub { max-width: 62ch; margin-inline: auto; }
.hero--center .hero__cta { justify-content: center; }
.hero--center .hero__note { justify-content: center; }
.hero--center .hero__center { position: relative; z-index: 1; }

/* Lighthouse motif in the hero (left, large + faded into the background) */
.lighthouse { position: absolute; left: clamp(-16px, 1vw, 52px); bottom: -190px; width: 440px; height: 844px; z-index: 0; pointer-events: none; }
.lighthouse__svg { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; opacity: .42; }
/* Static soft glow at the lamp (no pulsing) */
.lighthouse__lamp {
  position: absolute; top: 20%; left: 50%; width: 160px; height: 160px; margin: -80px 0 0 -80px;
  border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.24), transparent 68%);
  filter: blur(4px);
}
/* Concentric rings pulsing out from the lamp (the Beacon motif). Rings grow via
   width/height so the outline stays a thin line as it expands, then fades out. */
.lighthouse__pulse { position: absolute; top: 20%; left: 50%; }
.lighthouse__pulse span {
  position: absolute; left: 0; top: 0; border: 2px solid var(--emerald); border-radius: 50%;
  opacity: 0; animation: lh-pulse 5.5s ease-out infinite;
}
.lighthouse__pulse span:nth-child(2) { animation-delay: 1.375s; }
.lighthouse__pulse span:nth-child(3) { animation-delay: 2.75s; }
.lighthouse__pulse span:nth-child(4) { animation-delay: 4.125s; }
@keyframes lh-pulse {
  0%   { width: 16px; height: 16px; margin: -8px 0 0 -8px; opacity: 0; }
  10%  { opacity: .5; }
  100% { width: 560px; height: 560px; margin: -280px 0 0 -280px; opacity: 0; }
}
@media (max-width: 900px) { .lighthouse { display: none; } }
@media (prefers-reduced-motion: reduce) { .lighthouse__pulse span { animation: none; } }

/* Dashboard overview */
.dash-showcase { max-width: 1000px; margin-inline: auto; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.dash-stat { background: var(--slate-50); border: 1px solid var(--border-soft); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.dash-stat--accent { background: var(--emerald-50); border-color: var(--emerald-100); }
.dash-stat__k { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-400); font-weight: 700; }
.dash-stat__v { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--slate-900); }
.dash-stat--accent .dash-stat__v { color: var(--emerald-900); }
.dash-stat__u { font-size: .9rem; color: var(--slate-400); font-weight: 600; }
.dash-list { border: 1px solid var(--border-soft); border-radius: var(--r-md); overflow: hidden; }
.dash-list__head, .dash-row { display: grid; grid-template-columns: 1.4fr 1fr .9fr 1.1fr; gap: 12px; align-items: center; padding: 12px 16px; }
.dash-list__head { background: var(--slate-50); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-400); font-weight: 700; }
.dash-row { border-top: 1px solid var(--border-soft); font-size: .86rem; }
.dash-row__name { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--slate-800); min-width: 0; }
.dash-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dash-row__client { color: var(--slate-500); }
.dash-num { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.dash-meter { width: 70px; height: 6px; background: var(--slate-100); border-radius: var(--r-pill); overflow: hidden; }
.dash-meter > span { display: block; height: 100%; background: var(--emerald); border-radius: var(--r-pill); }
.dash-pct { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--slate-600); font-size: .8rem; min-width: 34px; text-align: right; }
@media (max-width: 640px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-list__head, .dash-row { grid-template-columns: 1.5fr .9fr 1fr; }
  .dash-list__head span:nth-child(2), .dash-row__client { display: none; }
}

/* Compact tool cards (all-in-one grid) */
.tool-card { padding: 24px; }
.tool-card .card__icon { width: 42px; height: 42px; margin-bottom: 14px; }
.tool-card h3 { font-size: 1.1rem; margin-bottom: .3em; }
.tool-card p { color: var(--text-soft); font-size: .92rem; margin: 0; }

/* Star ratings on testimonials */
.quote__stars { color: #F59E0B; letter-spacing: 3px; font-size: 1rem; margin-bottom: 14px; }

/* Founder note */
.founder { text-align: center; }
.founder__badge { display: inline-flex; margin-bottom: 18px; }
.founder h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.founder__lead { font-size: 1.2rem; color: var(--slate-800); line-height: 1.55; }
.founder p { color: var(--text-soft); font-size: 1.08rem; }
.founder__sign { margin-top: 22px; }
.founder__sign strong { display: block; color: var(--slate-900); font-size: 1rem; }
.founder__sign span { color: var(--text-faint); font-size: .9rem; }

/* Anchor offset for sticky header */
:target { scroll-margin-top: 92px; }
.anchor { scroll-margin-top: 132px; }

/* Comments — kept minimal; theme is marketing-first */
.comment-respond, .comments-area { max-width: 720px; margin: 40px auto 0; }
