/* Filing Guardian: one stylesheet for the landing page and the demo.
   Dark, boardroom-calm fintech. NOT the look of any other product we run.
   Traffic-light colours appear ONLY on status and the two CTAs, never as
   decoration, so a red number always means exactly one thing.
   Print flips to light: the demo doubles as a leave-behind in meetings. */

:root {
  --bg: #0a0e15;
  --bg-raise: #0f1522;
  --panel: #121a2a;
  --panel-2: #0d1320;
  --line: #202b3f;
  --line-soft: #1a2334;
  --ink: #eaeef5;
  --ink-soft: #a8b2c3;
  --ink-faint: #6e7a8e;
  --green: #34d399;
  --green-deep: #10b981;
  --green-bg: rgba(52, 211, 153, 0.12);
  --amber: #fbbf24;
  --amber-bg: rgba(251, 191, 36, 0.10);
  --red: #f87171;
  --red-bg: rgba(248, 113, 113, 0.10);
  --blue: #7aa7e8;
  --blue-bg: rgba(122, 167, 232, 0.10);
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
}
/* A quiet radial glow behind the hero, the only ornament on the page.
   background-image ONLY: the `background` shorthand would reset the dark
   background-color to transparent, and a real browser paints white behind a
   transparent body. That bug shipped once; html carries the colour too so
   overscroll can never flash white. */
html { background: var(--bg); }
.glow {
  background-image:
    radial-gradient(900px 420px at 75% -80px, rgba(52, 211, 153, 0.07), transparent 65%),
    radial-gradient(700px 380px at 10% -60px, rgba(122, 167, 232, 0.06), transparent 60%);
}
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 22px 90px; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0 18px; border-bottom: 1px solid var(--line-soft);
}
header.site .brand { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
header.site .brand a { color: var(--ink); text-decoration: none; }
header.site .brand .dot { color: var(--green); }
header.site nav { display: flex; align-items: center; gap: 20px; flex: none; }
header.site nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.92rem;
  white-space: nowrap;
}
header.site nav a.cta {
  color: #06130c; background: var(--green); font-weight: 700;
  padding: 8px 16px; border-radius: 999px;
}
/* Phones: the pill carries the whole job; the text links go. */
@media (max-width: 560px) {
  header.site nav a:not(.cta) { display: none; }
  header.site .brand { font-size: 1rem; }
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08;
  margin: 0 0 18px; letter-spacing: -0.03em; font-weight: 800;
}
h2 { font-size: 1.45rem; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 1.02rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); font-size: 0.85rem; }
.num { font-variant-numeric: tabular-nums; }
section { margin: 74px 0 0; }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 64px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.hero .sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 34em; }
.cta-row { margin: 26px 0 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.trust { font-size: 0.84rem; color: var(--ink-faint); margin-top: 10px; }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-size: 1rem; font-weight: 750; padding: 14px 24px; border-radius: 10px;
  background: var(--green); color: #06130c;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { border-color: var(--ink-faint); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }

/* the live guardian card in the hero */
.gcard {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.gcard .gc-head { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.gcard .big { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.gcard .big small { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.gcard .susp { margin: 6px 0 16px; font-size: 0.95rem; color: var(--ink-soft); }
.gcard .susp b { color: var(--red); font-weight: 800; }
.gc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 0.9rem;
}
.gc-row .when { color: var(--ink-faint); font-size: 0.84rem; white-space: nowrap; }
.gcard .gc-note { margin-top: 12px; font-size: 0.76rem; color: var(--ink-faint); }

.light { display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 9px; vertical-align: baseline; flex: none; }
.light.green { background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
.light.amber { background: var(--amber); box-shadow: 0 0 8px rgba(251, 191, 36, 0.45); }
.light.red, .light.overdue { background: var(--red); box-shadow: 0 0 8px rgba(248, 113, 113, 0.5); }
/* A date that has passed and is assumed filed: quiet, no glow, no drama. */
.light.passed { background: var(--ink-faint); }

/* The one honest question on a passed row. Styled as a quiet link. */
.marklink {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--blue); font-size: 0.84rem; text-decoration: underline;
  text-underline-offset: 2px;
}
.marklink:hover { color: var(--ink); }
.open-window { color: var(--red); }

/* ---- stat strip ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px; margin-top: 56px; }
.stat { background: var(--bg-raise); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 16px 18px; }
.stat .n { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.stat .n.red { color: var(--red); }
.stat .n.amber { color: var(--amber); }
.stat .l { font-size: 0.82rem; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; }

/* ---- cards, callouts ---- */
.card {
  background: var(--panel-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 20px 22px; margin: 16px 0;
}
.callout { border-left: 3px solid var(--green); background: var(--green-bg);
  border-radius: 0 10px 10px 0; padding: 14px 16px; margin: 14px 0; }
.callout.warn { border-color: var(--amber); background: var(--amber-bg); }
.callout p:last-child { margin-bottom: 0; }

/* feature grid */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--bg-raise); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 20px 22px; }
.feature h3 { color: var(--ink); }
.feature p { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }
.feature .ic { font-size: 1.25rem; margin-bottom: 10px; display: block; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg-raise); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 20px 22px; }
.step .k { font-size: 0.8rem; font-weight: 800; color: var(--green); letter-spacing: 1px; }
.step p { color: var(--ink-soft); font-size: 0.92rem; margin: 6px 0 0; }

/* ---- pricing ---- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 22px 0; }
.tier { border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; background: var(--bg-raise); position: relative; }
.tier.hero-tier { border-color: var(--green); background: linear-gradient(180deg, rgba(52, 211, 153, 0.06), var(--bg-raise) 45%); }
.tier .badge { position: absolute; top: -11px; left: 18px; background: var(--green);
  color: #06130c; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.6px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.tier .price { font-size: 2rem; font-weight: 800; margin: 6px 0 0; letter-spacing: -0.02em; }
.tier .per { color: var(--ink-faint); font-size: 0.84rem; margin-bottom: 6px; }
.tier ul { padding-left: 18px; margin: 12px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.tier li { margin-bottom: 6px; }

/* ---- form ---- */
label.f { display: block; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.6px; margin: 14px 0 5px; }
input[type="text"], input[type="email"], input[type="date"], select {
  width: 100%; font-size: 1rem; padding: 12px 13px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
  color-scheme: dark;
}
input:focus, select:focus { outline: 2px solid var(--green-deep); outline-offset: 0; border-color: var(--green-deep); }
input::placeholder { color: var(--ink-faint); }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .formgrid { grid-template-columns: 1fr; } }
.hint { font-size: 0.84rem; color: var(--ink-faint); margin-top: 5px; }

/* ---- demo page bits ---- */
.summary { border-left: 3px solid var(--blue); background: var(--blue-bg);
  border-radius: 0 10px 10px 0; padding: 14px 16px; margin: 18px 0; }
.summary strong { font-size: 1.05rem; }

table.cal { border-collapse: collapse; width: 100%; margin: 12px 0 6px; font-size: 0.92rem; }
table.cal th {
  text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.7px;
  color: var(--ink-faint); border-bottom: 1px solid var(--line); padding: 7px 8px;
}
table.cal td { border-bottom: 1px solid var(--line-soft); padding: 11px 8px; vertical-align: top; }
tr.overdue td { background: var(--red-bg); }
.days { font-weight: 750; }
.days.neg { color: var(--red); }
.susp-cell { color: var(--ink-soft); font-size: 0.85rem; }
.susp-cell .num { font-weight: 750; color: var(--ink); }
.fine { color: var(--red); font-size: 0.83rem; font-weight: 650; }
sup.vref { color: var(--blue); font-weight: 700; }

/* Phones: the six-column table becomes stacked cards. The demo gets opened
   from WhatsApp on a phone far more often than at a desk. */
@media (max-width: 700px) {
  table.cal thead { display: none; }
  table.cal, table.cal tbody, table.cal tr, table.cal td { display: block; width: 100%; }
  table.cal tr {
    border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
    padding: 12px 14px 10px; margin: 0 0 10px; background: var(--bg-raise);
  }
  table.cal tr.overdue { background: var(--red-bg); border-color: rgba(248, 113, 113, 0.35); }
  tr.overdue td { background: transparent; }
  table.cal td { border: 0; padding: 2px 0; }
  table.cal td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--ink-faint); font-size: 0.76rem;
    text-transform: uppercase; letter-spacing: 0.5px;
  }
}

.window { display: flex; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line-soft); padding: 9px 2px; font-size: 0.92rem; }
.window:last-child { border-bottom: 0; }
ul.plain { padding-left: 20px; margin: 6px 0; }
ul.plain li { margin-bottom: 7px; color: var(--ink-soft); }
ul.plain li strong { color: var(--ink); }

footer.site { margin-top: 80px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  color: var(--ink-faint); font-size: 0.84rem; }
footer.site a { color: var(--ink-soft); }
a { color: var(--blue); }

/* print: flip to light, the page doubles as a meeting leave-behind */
@media print {
  :root { --bg: #ffffff; --bg-raise: #ffffff; --panel: #ffffff; --panel-2: #ffffff;
    --ink: #16202e; --ink-soft: #45546a; --ink-faint: #7b8798; --line: #d9dee6;
    --line-soft: #e4e8ee; }
  .no-print { display: none !important; }
  body { font-size: 12px; background: #fff; color: #16202e; }
  .wrap { padding: 0; max-width: none; }
  .glow { background: none; }
  .card, .gcard, .stat, .feature, .step, .tier { border: 1px solid #ccc; box-shadow: none; background: #fff; }
  tr.overdue td { background: #fff; }
  a { color: #16202e; text-decoration: none; }
}
