/* =========================================================================
   NexoTasker Business — marketing site
   Direction: "Docket". A typeset page, not a landing page.

   The rules, which are load-bearing rather than decorative:
     one flush-left measure, nothing centred
     every division is a 1px rule; no shadow appears anywhere
     one accent, and one semantic colour used ONLY for money owed
     any number a reader would check twice is monospaced and tabular
     mono is the product speaking; sans is the author speaking

   Typography: Space Grotesk for display, a system stack for running text.
   The brand mark is built from Space Grotesk's geometry, so the site shares
   it — a signup page in a different face than the product it sells reads as
   a different company. Running text stays a system stack: the page should
   paint before any font arrives.

   Colour is the brand and nothing else: Nexo Navy is the ink, Ledger White
   is the paper, Task Green is the one accent. Task Green is 2.62:1 on white,
   so it is a FILL colour only; green text uses the darkened --accent-text.
   ========================================================================= */

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #0b1b3f;         /* Nexo Navy — 16.9:1 on white */
  --paper: #f4f6fa;       /* Ledger White, the app's own ground */
  --surface: #FFFFFF;
  --accent: #12b76a;      /* Task Green. FILLS AND RULES ONLY — see below */
  --accent-text: #0a7a46; /* green as text: 5.41:1 on white, 5.0 on paper */
  --blueprint: var(--accent-text);  /* links, kept as the old name's users */
  --rule: #dbe1ec;        /* navy-biased hairline, not a neutral grey */

  /* Money owed. The app's own --danger, so the page cannot contradict the
     screens it is showing. It always carries a word as well as a colour. */
  --owed: #b42318;

  --measure: 42rem;       /* ~672px of running text */
  --plate: 68rem;         /* screens break the measure; they are the evidence */

  --display: "Space Grotesk", "Helvetica Neue Condensed",
             "Arial Narrow", Helvetica, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-synthesis: none;
}
a { color: var(--blueprint); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.005em; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--plate); margin: 0 auto; padding: 0 1.5rem; }
.measure { max-width: var(--measure); }

/* Bands alternate; every division is a hairline. */
.band { border-bottom: 1px solid var(--rule); padding: 4.5rem 0; }
.band.paper { background: var(--paper); }
.band > .wrap > * + * { margin-top: 1.25rem; }

/* ------------------------------------------------------------ price rail */
.rail {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.rail .wrap { display: flex; gap: 1rem; align-items: center; padding-block: 0.7rem; flex-wrap: wrap; }
.rail b { font-weight: 700; }
.rail .spacer { flex: 1; }
.rail a { text-decoration: none; }
.rail a:hover { text-decoration: underline; }

/* Re-enters on scroll as a rail. No other sticky element on the page. */
.rail.stuck { position: fixed; top: 0; left: 0; right: 0; z-index: 10; }

/* -------------------------------------------------------------- headings */
h1 { font-size: clamp(2.15rem, 6.2vw, 3.5rem); line-height: 0.99; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); line-height: 1.05; }
h3 { font-size: 1.3rem; line-height: 1.2; }

.lede { font-size: 1.18rem; line-height: 1.55; }
.note { color: #4a5a75; }

/* mono utility: specs, captions, margin notes */
.spec {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.45;
  letter-spacing: 0.02em; text-transform: uppercase; color: #4a5a75;
}
.caption { font-family: var(--mono); font-size: 12px; color: #8795ac; letter-spacing: 0.02em; padding-top: 0.6rem; }

/* ------------------------------------------------------------------- cta */
.cta-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }
/* The same button as the app's primary: Task Green with navy on it. White
   on Task Green is 2.62:1 and fails WCAG AA; navy is 6.44:1. Someone who
   signs up here and then opens the product should press the same button. */
.btn {
  display: inline-block; background: var(--accent); color: var(--ink);
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  padding: 0.7rem 1.15rem; border-radius: 2px; text-decoration: none;
  border: 1px solid var(--accent);
}
.btn:hover { background: #0fa35e; border-color: #0fa35e; }
.btn.ghost { background: none; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { background: var(--paper); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--blueprint); outline-offset: 2px; }

/* ---------------------------------------------------------- module table */

/* ------------------------------------------------------------- the plate
   The app screens, rebuilt in this page from the app's own tokens. They
   bleed off the right edge so the app reads as a surface continuing
   underneath, rather than a picture pasted onto it. */
.plate {
  border: 1px solid var(--rule); background: var(--bg, #f4f6fa);
  margin-top: 1.75rem;
  /* Scroll, never clip. `overflow: hidden` silently cut the Balance and Due
     columns off on a phone — the exact figures the page's argument rests on,
     invisible on the device this audience actually reads on. Clipping evidence
     is worse than making it scroll. */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.plate > .app { min-width: 34rem; }
.plate-wide { margin-right: calc(-1 * max(0px, (100vw - var(--plate)) / 2) - 1.5rem); border-right: 0; }
@media (max-width: 68rem) { .plate-wide { margin-right: -1.5rem; } }

/* ---- app surface, using the app's real token values -------------------- */
.app { background: #f4f6fa; font-size: 14px; color: #0b1b3f; }
.app-bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.1rem; background: #fff; border-bottom: 1px solid #e4e9f2;
  font-weight: 500;
}
.app-bar .muted { color: #8795ac; font-weight: 400; margin-left: auto; font-size: 13px; }
.app-body { padding: 1.1rem; }

.app-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; margin-bottom: 1.1rem; }
.app-kpi { background: #fff; border: 1px solid #e4e9f2; border-radius: 6px; padding: 0.8rem 0.9rem; }
.app-kpi .k { font-size: 12px; color: #4a5a75; }
.app-kpi .v { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-top: 0.2rem; font-variant-numeric: tabular-nums; }
.app-kpi.owed { border-left: 3px solid var(--owed); }
.app-kpi.owed .v { color: var(--owed); }

table.app-t { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e4e9f2; border-radius: 6px; }
table.app-t th {
  text-align: left; font-size: 11.5px; font-weight: 500; color: #4a5a75;
  background: #edf0f7; padding: 0.55rem 0.75rem; border-bottom: 1px solid #e4e9f2;
  text-transform: none; letter-spacing: 0;
}
table.app-t td { padding: 0.6rem 0.75rem; border-bottom: 1px solid #e4e9f2; }
table.app-t tr:last-child td { border-bottom: 0; }
table.app-t .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 13px; }
table.app-t .owed { color: var(--owed); font-weight: 500; }
.chip {
  display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid;
}
.chip.sent { color: #4455d6; background: #eceefe; border-color: #c7cdfa; }
.chip.paid { color: #0c8b50; background: #e7f8f0; border-color: #b7e9d1; }
.chip.over { color: var(--owed); background: #fdeeed; border-color: #f0c5c2; }

/* ---------------------------------------------------------------- pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0; border: 1px solid var(--rule); margin-top: 2rem; }
.tier { padding: 1.4rem 1.25rem; border-right: 1px solid var(--rule); }
.tier:last-child { border-right: 0; }
@media (max-width: 44rem) { .tier { border-right: 0; border-bottom: 1px solid var(--rule); } .tier:last-child { border-bottom: 0; } }
.tier .amount { font-family: var(--mono); font-size: 2.1rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tier .per { font-family: var(--mono); font-size: 12px; color: #8795ac; }
.tier h3 { margin-bottom: 0.5rem; }
.tier ul { margin: 0.9rem 0 0; padding-left: 1.05rem; }
.tier li { margin-top: 0.3rem; }

/* ------------------------------------------------------------------ lists */

/* ----------------------------------------------------------------- footer */
footer { padding: 2.5rem 0 3.5rem; font-family: var(--mono); font-size: 12px; color: #8795ac; }
footer a { color: var(--blueprint); }

/* Nothing on this page animates on scroll. The only motion is a link
   underline, which respects a reduced-motion preference by having none. */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- the mark ---------------------------------------------------------
   The N and the check that closes it. `currentColor` on the letter means it
   takes the rail's ink wherever the rail is used; only the check is pinned
   to Task Green, because the check is the part that carries the meaning. */
.rail .mark {
  width: 1.15em; height: 1.15em; vertical-align: -0.25em;
  margin-right: 0.45em; color: var(--ink);
}
.rail b { display: inline-flex; align-items: center; }

/* ---- the three reasons -------------------------------------------------
   Three columns on a desk, one on a phone. No cards, no shadows: the page's
   rule is that divisions are hairlines, and three boxes would make the
   selling points look like a pricing table. */
.points {
  display: grid; gap: 2rem; margin-top: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.point h3 { font-size: 1.22rem; margin-bottom: 0.5rem; }
.point p { color: #4a5a75; }

/* ---- how it works ------------------------------------------------------
   Numbered because it IS a sequence: you cannot open the dashboard before
   the books are connected. The number is the only ornament on the page. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 1rem;
  padding: 1.1rem 0; border-top: 1px solid var(--rule);
  max-width: var(--measure);
}
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-size: 1.5rem; font-weight: 700;
  color: var(--accent); line-height: 1.1;
}
.steps li > div { min-width: 0; }
.steps b { display: block; }

/* ---- the ten screens ---------------------------------------------------
   A list, not ten essays. Name and one line, because this section answers
   "is the thing I need in here?" and nothing more. */
.grid-ten {
  display: grid; gap: 0 2rem; margin-top: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-ten > div {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0; border-top: 1px solid var(--rule);
}
.grid-ten b { font-weight: 600; }
.grid-ten span { color: #4a5a75; font-size: 0.95rem; }

@media (max-width: 760px) {
  .points { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .grid-ten { grid-template-columns: minmax(0, 1fr); }
  .grid-ten > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
}

/* Used on the homepage and the legal pages alike, so it lives in the shared
   stylesheet. It was previously defined only in legal.css, which index.html
   does not load — the homepage's asides were silently unstyled. */
.aside {
  border-left: 2px solid var(--rule); padding-left: 1rem;
  color: #4a5a75; font-size: 16px;
  max-width: var(--measure); margin-top: 1.5rem;
}
