/*
 * IntelliSuite — shared stylesheet.
 *
 * Hand-written, no build step, matching the cwvermaak.co.za house pattern.
 * Colours come from intelli-accounting/branding/brand-tokens.css: cream ledger
 * paper, steel-blue mark, brick accent. The dark palette is the same file's
 * [data-theme="dark"] block, applied here by prefers-color-scheme rather than
 * by entitlement — on a public marketing site there is no tenant to gate on.
 */

:root {
  --surface:      #FBF5E9;   /* paper — light enough to read as white */
  --surface-2:    #F0E4CE;   /* cream — now only the alternating band */
  --surface-3:    #FFFFFF;
  --ink:          #2A2522;
  --ink-dim:      #6B5E50;
  --accent:       #3F5A78;   /* steel blue */
  --accent-deep:  #2C455F;
  --accent-pale:  #8BA8C0;
  --brick:        #A03A2E;
  --success:      #2A6B4A;
  --rule:         rgba(42, 37, 34, .14);
  --card:         #FFFFFF;
  --shadow:       0 1px 2px rgba(42,37,34,.06), 0 8px 24px rgba(42,37,34,.07);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface:     #1C1A18;
    --surface-2:   #26231F;
    --surface-3:   #221F1C;
    --ink:         #ECE6DC;
    --ink-dim:     #9A8F80;
    --accent:      #C97864;   /* rose gold */
    --accent-deep: #A45A48;
    --accent-pale: #F0BCA8;
    --brick:       #D67860;
    --success:     #6BC09A;
    --rule:        rgba(236, 230, 220, .16);
    --card:        #2A2623;
    --shadow:      0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.28);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Sans, not serif. A serif display face on a cream ground is the most
   recognisable AI-generated look there is, and a designer spotted it in
   seconds. The sister site sets headings the same way. */
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.16; margin: 0 0 .5em; letter-spacing: -.018em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- header ---------- */

header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
header.site nav { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; margin-right: auto; }
.logo svg { width: 30px; height: 30px; display: block; }
.logo .name { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
.logo .name b { font-weight: 600; color: var(--accent); }
.navlinks { display: flex; align-items: center; gap: 22px; }
.navlinks a { color: var(--ink-dim); text-decoration: none; font-size: .95rem; }
.navlinks a:hover { color: var(--ink); }
/* .navlinks a (0,1,1) outranks .btn (0,1,0), so without this the nav button
   renders its label in muted body colour on the accent fill - barely legible. */
.navlinks a.btn { color: var(--surface-3); }
.navlinks a.btn:hover { color: var(--surface-3); }

.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  background: var(--accent); color: var(--surface-3);
  font-size: .95rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-deep); color: var(--surface-3); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.lg { padding: 14px 26px; font-size: 1rem; }

/* ---------- hero ---------- */

.hero { padding: 84px 0 64px; position: relative; overflow: hidden; }
/* The ledger-rule flourish was removed with the serif face it belonged to.
   Without that face it read as texture for its own sake, and the sister
   site has no equivalent. */
.hero .wrap { position: relative; z-index: 1; }
/* text-wrap:balance evens the lines out instead of leaving a one-word
   last line. Preferred over wrapping phrases in inline-block spans: an
   inline-block longer than the container overflows, and .hero clips. */
.hero h1 { max-width: 20ch; text-wrap: balance; }
.hero h1 .accent { color: var(--accent); }
.lead { text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-dim); max-width: 62ch; }

.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .76rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 18px;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* status pill */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--ink-dim); background: var(--surface-3);
  white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.build  { color: var(--accent); }
.pill.plan   { color: var(--ink-dim); }
.pill.soon   { color: var(--brick); }

/* ---------- sections ---------- */

section { padding: 72px 0; }
section.alt { background: var(--surface-2); border-block: 1px solid var(--rule); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.kicker {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.section-head p { color: var(--ink-dim); }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 12px; padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-dim); font-size: .96rem; margin-bottom: 0; }
.card .ico { width: 34px; height: 34px; margin-bottom: 14px; color: var(--accent); }
.card .ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-head h3 { margin: 0; }

/* numbered list */
.why { display: flex; gap: 16px; }
.why .num { font-family: var(--mono); font-size: .8rem; color: var(--accent); padding-top: 5px; }
.why h3 { margin-bottom: .3em; }
.why p  { color: var(--ink-dim); font-size: .96rem; margin: 0; }

/* feature list with ledger ticks */
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--ink-dim); font-size: .96rem; }
ul.ticks li::before {
  content: ""; position: absolute; left: 3px; top: .52em;
  width: 11px; height: 6px; border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success); transform: rotate(-45deg);
}
ul.ticks li b { color: var(--ink); font-weight: 600; }

/* report/table strip */
.ledger { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ledger th, .ledger td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
.ledger th { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); font-weight: 600; }
.ledger td.num, .ledger th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* callout */
.note {
  border-left: 3px solid var(--accent); background: var(--surface-3);
  padding: 18px 22px; border-radius: 0 10px 10px 0; color: var(--ink-dim);
  font-size: .96rem;
}
.note b { color: var(--ink); }
.note p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

footer.site { border-top: 1px solid var(--rule); padding: 44px 0 56px; background: var(--surface-2); }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
footer.site a { color: var(--ink-dim); text-decoration: none; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 7px; font-size: .94rem; }
footer.site h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 12px; font-weight: 600; }
.legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-dim); font-size: .87rem; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

@media (max-width: 760px) {
  .navlinks { display: none; }
  .hero { padding: 56px 0 44px; }
  section { padding: 54px 0; }
}
