/* Shared TriClear theme. Black, logo green, and logo orange.
   Buttons use the solid brand colours with black text. A blend of green and
   orange is too muddy in the middle for either black or white text. */

:root {
  --black: #1c1316;
  --green: #06a105;
  --orange: #ef4905;
  --ink: #ffffff;
  --muted: #d8e6d4;
  --soft: #e7f0e2;
  --line: rgba(255, 255, 255, 0.22);
  --glass: rgba(255, 255, 255, 0.08);
  --good: #d5f5e3;
  --good-bg: #12331f;
  --warn: #ffe7b0;
  --warn-bg: #3a2e10;
  --bad: #ffd0d0;
  --bad-bg: #3a1414;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { color-scheme: dark; }
html { scroll-behavior: smooth; }
img, svg { max-width: 100%; }
body {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  background-color: var(--black);
  background-image:
    radial-gradient(circle at 15% 8%, rgba(6, 161, 5, 0.33), transparent 42%),
    radial-gradient(circle at 88% 16%, rgba(239, 73, 5, 0.30), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(6, 161, 5, 0.16), transparent 46%);
  overflow-wrap: break-word;
  overflow-x: clip;
}
a { color: inherit; }
.sprite { position: absolute; }
.w, .wrap, .header-inner, .site-footer .wrap {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
}
.bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 18px;
  min-height: 72px;
  padding: 10px 0;
}
.logo, .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 48px;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
}
.logo .mark, .brand .mark { height: 1.7em; width: calc(1.7em * 1.139); flex: none; }
.brand small { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 600; }
nav, .nav-form { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
nav a, .nav-form button, .linkish {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-form { display: inline-flex; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--black);
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 12px; }
.demo-banner {
  background: #f3d48a;
  color: #3f2a05;
  text-align: center;
  padding: 8px 16px;
  font-weight: 700;
}
main { padding: 12px 0 56px; }
.flash-error, .flash-success, .flash-info,
.banner-bad, .banner-soon, .banner-ok, .note, .vp-note, .vp-warn {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
}
.flash-error, .banner-bad, .vp-warn { background: var(--bad-bg); color: var(--bad); }
.flash-success, .banner-ok { background: var(--good-bg); color: var(--good); }
.flash-info, .banner-soon, .note, .vp-note { background: var(--warn-bg); color: var(--warn); }
.field-error { color: #ffb4b4; font-size: 0.95rem; margin: 4px 0 0; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 8px; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
h3 { font-size: 1.15rem; }
.lede, .lead { color: var(--soft); font-size: 1.05rem; max-width: 42rem; }
.muted, small, .hint { color: var(--muted); }
small, .hint { display: block; font-size: 0.9rem; font-weight: 400; }
.sub { text-align: center; color: var(--muted); margin: 0 0 22px; }

.glass, .card, .panel, .stat, .ledger {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 22px;
  min-width: 0;
}
.card, .panel, .glass { padding: 22px; }
.panel, .card { margin: 16px 0; }
.stat { padding: 16px; }
.stat .k { color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.stat .v { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-variant-numeric: tabular-nums; margin-top: 4px; font-weight: 800; }
.stat.main { background: var(--green); color: var(--black); border-color: var(--green); }
.stat.main .k { color: var(--black); }
.ledger { padding: 8px 12px 16px; overflow-x: auto; }
.narrow { max-width: 40rem; }

.btn, button, .button {
  display: inline-block;
  min-height: 48px;
  margin: 0 10px 10px 0;
  padding: 12px 22px;
  border-radius: 99px;
  border: 0;
  background: var(--green);
  color: var(--black);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary, button.secondary, .button.secondary { background: var(--green); color: var(--black); }
button.secondary, .button.secondary { background: var(--orange); }
.btn.quiet, button.ghost, .button.ghost {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}
#quote-submit:disabled, button:disabled {
  background: #4a4a4a;
  color: #f2f2f2;
  cursor: not-allowed;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.btn-note { max-width: 36rem; margin: 4px auto 0; color: var(--soft); font-size: 0.95rem; }

label { display: block; font-weight: 700; margin: 12px 0 4px; }
input, select, textarea {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  font: inherit;
  font-size: 17px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #8a8a8a;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  color-scheme: dark;
}
textarea { min-height: 96px; }
input::placeholder, textarea::placeholder { color: #c9d7c2; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid #ffd2a8;
  outline-offset: 2px;
  border-color: var(--orange);
}
select option, select optgroup { background: #fff; color: #1c1316; }
.fields { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.checks { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-weight: 400; }
.checks input { width: auto; min-height: 0; margin-top: 4px; }
.vp-cc { display: grid; grid-template-columns: 1fr; gap: 8px; }
.vp-age { color: #c8f7b4; font-weight: 700; margin: 8px 0 0; }

.ledger, .people { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 8px; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, 0.16); white-space: normal; overflow-wrap: normal; word-break: normal; }
th { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
td.num, th.num, .pill, td > a { white-space: nowrap; }
td.num, th.num { text-align: right; }
tr.subtotal td { font-weight: 700; background: rgba(6, 161, 5, 0.18); }
tr.grand td { font-weight: 800; font-size: 1.05rem; background: rgba(239, 73, 5, 0.2); }
.people td form { display: flex; flex-wrap: wrap; gap: 6px; }
.people input[type="password"] { width: min(160px, 100%); }

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.pill.submitted, .pill.under_review { background: var(--warn-bg); color: var(--warn); }
.pill.approved { background: #1a2744; color: #d6e4ff; }
.pill.disbursed, .pill.repaid { background: var(--good-bg); color: var(--good); }
.pill.declined, .pill.overdue, .pill.expired { background: var(--bad-bg); color: var(--bad); }
.pill.draft { background: #2a2428; color: #f3e8ee; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.filters a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #fff;
}
.filters a.on { background: var(--green); color: var(--black); border-color: var(--green); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 14px; border-left: 3px solid var(--orange); margin-left: 4px; }
.route { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; font-weight: 700; }
.route span { background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.route .here { background: var(--green); color: var(--black); border-color: var(--green); }
.route i { color: var(--orange); font-style: normal; }
.grid-2, .stats, .split { display: grid; gap: 16px; min-width: 0; }
.grid-2, .split { grid-template-columns: 1fr; }
.stats { grid-template-columns: 1fr; }
.right { text-align: right; }
.search { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.search input { width: min(220px, 100%); }
details { background: var(--glass); border-radius: 12px; padding: 8px 14px 14px; margin-top: 8px; }
summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.55em;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex: none;
}
details[open] summary::before { transform: rotate(45deg); }

.hero { padding: 28px 0 12px; text-align: center; }
.hero h1 { font-size: clamp(2.05rem, 8.4vw, 4rem); line-height: 1.08; margin: 0 0 16px; }
.hero h1 span { color: #c8f7b4; }
.hero .lead { margin: 0 auto 22px; }
.hero-actions { max-width: 26rem; margin: 0 auto; }
.landing-page .pill {
  max-width: 100%;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 18px;
}
.landing-page h2 { text-align: center; font-size: clamp(1.6rem, 5vw, 2.25rem); }
.landing-page section { padding: 28px 0; }
.landing-page .loan h2 { text-align: left; }
.ic {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.three, .loan, .steps, .grid { display: grid; gap: 16px; min-width: 0; grid-template-columns: 1fr; }
.three .ic { font-size: 36px; color: #9dff86; display: block; margin-bottom: 12px; }
.three p, .steps p, .loan-lead { color: var(--soft); margin: 6px 0 0; }
.loan { border-color: rgba(239, 73, 5, 0.75); }
.loan .btn { margin-top: 18px; }
.loan ul { list-style: none; padding: 0; margin: 8px 0 0; }
.loan li { display: flex; gap: 12px; padding: 8px 0; }
.loan li .ic { font-size: 22px; flex: none; color: #9dff86; margin-top: 3px; }
.steps .n {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: var(--black);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 12px;
}
.steps small { color: #c8f7b4; font-weight: 700; }
.steps p { font-size: 0.95rem; }
.shot { padding: 0; overflow: hidden; margin: 0; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.shot figcaption { padding: 12px 14px 14px; color: var(--soft); }

footer, .site-footer {
  padding: 28px 0 48px;
  text-align: center;
  color: #c9d7c2;
  font-size: 0.95rem;
  border-top: 0;
}
footer .logo, .site-footer .logo { margin-bottom: 8px; }
footer p, .site-footer p { margin: 8px auto; max-width: 40rem; }
.disclaimer { color: #d5e2ce; }
.site-footer strong { color: #fff; }

a:hover { text-decoration: underline; }
a.btn:hover, a.button:hover, .filters a:hover, .logo:hover { text-decoration: none; }
button:hover, .button:hover, .btn:hover { filter: brightness(0.92); }
nav a:hover, header .nav-form button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}
a:focus-visible, button:focus-visible, .button:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid #ffd2a8;
  outline-offset: 3px;
}
header .nav-form { display: inline-flex; align-items: center; margin: 0; }
header .nav-form button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
}

@media (max-width: 640px) {
  .hero-actions .btn, .actions button, .actions .button, .landing-page .btn {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}
@media (min-width: 640px) {
  .steps, .grid, .stats { grid-template-columns: 1fr 1fr; }
  .vp-cc { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 800px) {
  .hero { padding: 56px 0 28px; }
  .lead, .lede { font-size: 1.15rem; }
  .hero-actions { max-width: none; }
  .three, .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1.1fr 0.9fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .loan { grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
  .split { grid-template-columns: 1.4fr 0.8fr; }
  .fields, #calculator .fields { grid-template-columns: 1fr 1fr; }
  .landing-page section { padding: 48px 0; }
  .glass, .card, .panel { border-radius: 26px; }
}
@media (min-width: 980px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 span {
    background: linear-gradient(90deg, #7dff6a, #ffb27a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.terms-line { margin: 12px 0; font-weight: 700; }
.terms-line a { text-decoration: underline; }
.agent-choice { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 4px; align-items: center; margin: 12px 0; }
.agent-choice > label { display: flex; align-items: center; font-weight: 400; min-height: 44px; }
.agent-choice > input[type="radio"] { width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0; accent-color: #06a105; }
.extra-items { display: none; grid-column: 1 / -1; margin-top: 8px; }
#agent-trinnovations:checked ~ .extra-items { display: block; }

@media print {
  :root { color-scheme: light; }
  header, footer, .site-footer, .demo-banner, .no-print, nav, .actions { display: none !important; }
  *, *::before, *::after { color: #000 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important; filter: none !important; }
  body { background: #fff !important; }
  .glass, .card, .panel, .stat, .pill, .route span { border: 1px solid #999 !important; }
  .ledger, .people { overflow: visible !important; border: 0 !important; padding: 0 !important; }
  table { width: 100% !important; }
  th, td { white-space: normal !important; border-bottom: 1px solid #bbb !important; }
  td.num, th.num, .pill { white-space: nowrap !important; }
  tr.subtotal td, tr.grand td { border-top: 2px solid #000 !important; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  main, .w { padding: 0 !important; }
  h1 { font-size: 16pt !important; margin: 0 0 6pt !important; }
  .stats { gap: 6px !important; margin: 0 0 8pt !important; }
  .stat { padding: 4px !important; }
  .stat .v { font-size: 12pt !important; }
  .note { margin: 4pt 0 !important; padding: 4pt !important; }
}
