/* ==========================================================================
   SUITELANE — Manufacturing ERP
   Design system: "The Lane" — engineering precision meets modern SaaS.
   Ink navy structure · emerald signal · hairline blueprint grids · mono data.
   ========================================================================== */

/* --- 1. TOKENS ----------------------------------------------------------- */
:root {
  /* Core brand */
  --ink:        #0B1220;   /* deep navy / near-black */
  --ink-2:      #111C2E;
  --ink-3:      #1B2942;
  --navy:       #0F172A;
  --green:      #0E9F6E;   /* Suitelane green */
  --green-600:  #0B8A5F;
  --green-700:  #087551;
  --green-300:  #5BD3A6;
  --mint:       #E3F6EE;   /* soft mint */
  --mint-2:     #F1FBF7;
  --teal:       #0E7C86;
  --amber:      #F0A02A;   /* from logo swoosh — status only */
  --sky:        #0F75E0;   /* from logo cloud — status only */

  /* Surfaces */
  --white:      #FFFFFF;
  --bg:         #FFFFFF;
  --bg-2:       #F7F9FB;   /* very light gray-blue */
  --bg-3:       #F1F5F9;
  --line:       #E7ECF2;   /* subtle border */
  --line-2:     #DFE6EE;
  --line-strong:#CBD5E1;

  /* Type */
  --text:       #0F172A;
  --text-2:     #334155;
  --muted:      #4E5D70;
  /* Was #94A3B8 (2.56:1 on white) — the single largest source of contrast
     failures on the page, since it sets almost every micro-label in the
     product UI. #5B6B82 clears 4.5:1 on white, --bg-2 and --bg-3 alike while
     still reading as clearly subordinate to --text and --muted. */
  --muted-2:    #5B6B82;
  --on-ink:     #EEF3F9;
  --on-ink-mut: #94A6BF;

  /* Fonts */
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Space & shape */
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --maxw: 1240px;
  --gutter: 24px;
  --nav-h: 68px;

  /* Elevation — soft, cool-toned */
  --sh-xs: 0 1px 2px rgba(15,23,42,.05);
  --sh-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --sh:    0 4px 14px -4px rgba(15,23,42,.10), 0 2px 6px -2px rgba(15,23,42,.06);
  --sh-md: 0 12px 32px -10px rgba(15,23,42,.16), 0 4px 10px -4px rgba(15,23,42,.07);
  --sh-lg: 0 28px 64px -20px rgba(11,18,32,.26), 0 8px 22px -12px rgba(11,18,32,.12);
  --sh-green: 0 8px 22px -8px rgba(14,159,110,.45);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* --- 2. RESET ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
}
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "kern" 1;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--green); color: #fff; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); font-size: 14px; font-weight: 600;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- 3. TYPE SCALE ------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.4vw, 3.5rem); font-weight: 800; letter-spacing: -.036em; }
h2 { font-size: clamp(2rem, 3.9vw, 3.05rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.02em; line-height: 1.22; }
h4 { font-size: 1.0625rem; letter-spacing: -.015em; line-height: 1.3; }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: ""; width: 20px; height: 1px; background: currentColor; opacity: .55;
}
.eyebrow--center { justify-content: center; }
/* --green-700 is tuned for light surfaces; on ink it drops to 3.28:1. Both dark
   contexts get the light mint instead (--green-300 on --ink = 8.9:1). Listing
   .section--ink here is what lets #trial and #ops-finance drop their inline
   colour overrides. */
.on-ink .eyebrow, .section--ink .eyebrow, .trial .eyebrow { color: var(--green-300); }

.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 60ch;
}
.mono {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}

/* --- 4. LAYOUT ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 900px; }
.section { padding-block: clamp(68px, 7.4vw, 104px); position: relative; }
.section--tight { padding-block: clamp(56px, 6vw, 84px); }
.section--alt { background: var(--bg-2); }
.section--ink {
  background: var(--ink);
  color: var(--on-ink-mut);
}
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink .lede { color: var(--on-ink-mut); }
.rule { height: 1px; background: var(--line); border: 0; }

.s-head { max-width: 760px; }
.s-head--center { margin-inline: auto; text-align: center; }
.s-head .eyebrow { margin-bottom: 18px; }
.s-head h2 + .lede { margin-top: 20px; }

/* Hairline blueprint grid backdrop */
.grid-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,23,42,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}
.section--ink.grid-bg::before {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
}

/* --- 5. BUTTONS --------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600; font-size: .9375rem; letter-spacing: -.008em;
  padding: 12px 20px; border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent;
  white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

/* White on --green (#0E9F6E) is only 3.39:1 — below AA for the single most
   important control on the page. --green-700 takes it to 5.72:1 while reading
   as the same emerald; the brand green stays untouched everywhere else. */
.btn--primary {
  --btn-bg: var(--green-700); --btn-fg: #fff;
  box-shadow: 0 1px 2px rgba(8,117,81,.28), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn--primary:hover { --btn-bg: #096B4B; box-shadow: var(--sh-green); }
.btn--ghost {
  --btn-bg: #fff; --btn-fg: var(--text);
  border-color: var(--line-2); box-shadow: var(--sh-xs);
}
.btn--ghost:hover { border-color: var(--line-strong); box-shadow: var(--sh); }
.btn--dark { --btn-bg: var(--ink); --btn-fg:#fff; }
.btn--dark:hover { --btn-bg: var(--ink-3); box-shadow: var(--sh-md); }
.btn--onink {
  --btn-bg: rgba(255,255,255,.06); --btn-fg: #fff;
  border-color: rgba(255,255,255,.2); backdrop-filter: blur(6px);
}
.btn--onink:hover { --btn-bg: rgba(255,255,255,.12); border-color: rgba(255,255,255,.34); }
.btn--lg { padding: 15px 26px; font-size: 1rem; border-radius: 12px; }
.btn--sm { padding: 9px 15px; font-size: .875rem; border-radius: 9px; }
.btn--block { width: 100%; }

.btn--primary .arw, .btn--dark .arw { transition: transform .22s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.tlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .9375rem; color: var(--green-700);
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.tlink:hover { gap: 11px; color: var(--green-600); }
.on-ink .tlink, .section--ink .tlink { color: var(--green-300); }

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

/* --- 6. UTILITY BITS ---------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 11px 6px 9px; border-radius: 999px;
  background: var(--mint-2); color: var(--green-700);
  border: 1px solid rgba(14,159,110,.18);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.dot--amber { background: var(--amber); }
.dot--sky { background: var(--sky); }
.dot--slate { background: var(--muted-2); }
.dot--pulse { box-shadow: 0 0 0 0 rgba(14,159,110,.5); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(14,159,110,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(14,159,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(14,159,110,0); }
}

.ticks {
  display: flex; gap: 5px; align-items: center;
}
.ticks i { width: 1px; height: 8px; background: var(--line-strong); display: block; }
.ticks i:nth-child(5n+1) { height: 13px; background: var(--muted-2); }

.trust-list { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.trust-list li {
  display: flex; align-items: center; gap: 9px;
  font-size: .9375rem; font-weight: 500; color: var(--text-2);
}
.trust-list svg { color: var(--green); flex: none; }

.placeholder-note {
  font-family: var(--font-mono); font-size: .625rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.placeholder-note::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px;
  border: 1px dashed var(--line-strong);
}
/* Substantiates the screenshots claim right where the product is on show. */
.dash-note {
  margin-top: 16px; text-align: center;
  font-size: .8125rem; color: var(--muted);
}

/* Same note on a dark panel — the light-context muted grey fails contrast there. */
.placeholder-note--ink { margin-top: 18px; color: rgba(255,255,255,.5); }
.placeholder-note--ink::before { border-color: rgba(255,255,255,.34); }

/* "Coming soon" gate. Deliberately quiet — amber, not green — so a roadmap item
   never reads as a shipped one. Amber 800 on amber 50 is 5.9:1, which the 10.5px
   size needs. Sits inline in a heading, hence the baseline nudge. */
.soon {
  display: inline-flex; align-items: center; gap: 6px;
  vertical-align: middle; margin-left: 10px;
  padding: 4px 9px 3px; border-radius: 6px;
  background: #FDF3E1; border: 1px solid rgba(240,160,42,.24);
  font-family: var(--font-mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; color: #8A5A08;
  white-space: nowrap;
}
.soon::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #C77F0B; flex: none;
}
.on-ink .soon, .section--ink .soon {
  background: rgba(240,160,42,.14); border-color: rgba(240,160,42,.28); color: #F5C577;
}
.on-ink .soon::before, .section--ink .soon::before { background: #F0A02A; }

/* --- 7. SCROLL REVEAL --------------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
.reveal[data-d="5"] { transition-delay: .35s; }
.reveal[data-d="6"] { transition-delay: .42s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
