/* KruSource marketing site — shared stylesheet. No web fonts, no frameworks. */

:root {
  --green-900: #0f2a1f;
  --green-800: #14372a;
  --green-700: #1f4d38;
  --green-600: #2a6449;
  --green-100: #e3eee7;
  --green-50: #f2f7f3;
  --amber: #f2a33a;
  --amber-600: #d98a1f;
  --amber-100: #fdf0dc;

  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-2: #f2f7f3;
  --text: #17231d;
  --muted: #55645c;
  --line: #dde5df;
  --brand: #1f4d38;
  --brand-ink: #ffffff;
  --link: #1f4d38;
  --accent: #f2a33a;
  --accent-ink: #1a1408;
  --shadow: 0 1px 2px rgba(15, 42, 31, .06), 0 8px 24px rgba(15, 42, 31, .08);
  --radius: 14px;
  --font: -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1813;
    --surface: #13221b;
    --surface-2: #182b22;
    --text: #e7efe9;
    --muted: #a3b3aa;
    --line: #26392f;
    --brand: #2f6f51;
    --link: #f5b75f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 7vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 148px; height: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--link); }
.nav .nav-link { display: none; }
@media (min-width: 820px) { .nav .nav-link { display: inline; } .brand img { width: 168px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #f7b250; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.nav .btn { color: var(--accent-ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--amber) 16%, transparent), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, color-mix(in srgb, var(--green-700) 14%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; } .hero { padding: 84px 0 96px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eyebrow .bars i { display: block; width: 4px; background: var(--amber); border-radius: 1px; }
.eyebrow .bars i:nth-child(1) { height: 8px; }
.eyebrow .bars i:nth-child(2) { height: 14px; }
.eyebrow .bars i:nth-child(3) { height: 6px; }

.hero h1 .hl {
  color: var(--green-700);
  background: linear-gradient(transparent 74%, color-mix(in srgb, var(--amber) 55%, transparent) 74% 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-color-scheme: dark) { .hero h1 .hl { color: var(--amber); background: none; } }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.fineprint { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0; list-style: none; }
.fineprint li { display: inline-flex; align-items: center; gap: 6px; }
.fineprint li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); }

/* Hero visual: phone + profit card, built in CSS */
.visual { position: relative; display: flex; justify-content: center; padding: 0 0 40px; }
.phone {
  width: 100%; max-width: 300px;
  background: var(--green-900); border-radius: 38px; padding: 12px;
  box-shadow: 0 30px 60px rgba(15, 42, 31, .28), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.screen { background: #f7f8f5; color: #17231d; border-radius: 28px; padding: 18px 14px 16px; min-height: 470px; }
.screen-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.screen-top b { font-size: 1.05rem; }
.screen-top span { font-size: .78rem; color: #5b6a62; }
.clock { display: flex; align-items: center; gap: 8px; background: #e3eee7; color: #1f4d38; font-size: .8rem; font-weight: 700; padding: 7px 10px; border-radius: 10px; margin-bottom: 12px; }
.clock .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa36b; box-shadow: 0 0 0 3px rgba(47,163,107,.2); }
.job { background: #fff; border: 1px solid #e1e7e2; border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.job small { display: block; font-size: .72rem; color: #5b6a62; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.job strong { display: block; font-size: .98rem; margin: 2px 0 2px; }
.job .addr { font-size: .8rem; color: #5b6a62; }
.next { margin-top: 10px; background: #1f4d38; color: #fff; border-radius: 12px; padding: 11px 12px; font-weight: 700; font-size: .92rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.next em { font-style: normal; font-size: .72rem; font-weight: 600; opacity: .75; display: block; }
.next .arrow { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: #f2a33a; color: #1a1408; display: grid; place-items: center; font-size: 1rem; }
.voice { background: #fdf0dc; border: 1px solid #f3d7a9; border-radius: 14px; padding: 10px 12px; font-size: .82rem; }
.voice .wave { display: flex; align-items: center; gap: 3px; height: 18px; margin-bottom: 6px; }
.voice .wave i { width: 3px; border-radius: 2px; background: #d98a1f; }
.voice q { display: block; font-style: italic; color: #3d3423; margin-bottom: 8px; quotes: "\201C" "\201D"; }
.voice .ask { font-weight: 700; margin-bottom: 8px; }
.voice .acts { display: flex; gap: 6px; }
.voice .acts span { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; font-weight: 700; font-size: .78rem; }
.voice .acts .yes { background: #1f4d38; color: #fff; }
.voice .acts .no { background: #fff; border: 1px solid #e1e7e2; }
.mini { display: flex; gap: 6px; margin-top: 10px; }
.mini span { flex: 1; text-align: center; font-size: .7rem; font-weight: 700; color: #1f4d38; background: #fff; border: 1px solid #e1e7e2; border-radius: 10px; padding: 8px 2px; }

.profit-card {
  position: absolute; right: 0; bottom: 0; width: 230px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow);
}
.profit-card .label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.profit-card dl { margin: 8px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; font-size: .86rem; }
.profit-card dt { color: var(--muted); }
.profit-card dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.profit-card .total { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; font-weight: 800; color: var(--text); }
.profit-card .total.v { color: #2a8a5a; }
@media (prefers-color-scheme: dark) { .profit-card .total.v { color: #5fd398; } }
.profit-card .sample { margin-top: 8px; font-size: .7rem; color: var(--muted); }
@media (max-width: 520px) {
  .visual { flex-direction: column; align-items: center; padding-bottom: 0; }
  .profit-card { position: relative; right: auto; bottom: auto; margin: -36px auto 0; width: min(260px, 100%); }
}
@media (min-width: 521px) and (max-width: 959px) { .profit-card { right: max(0px, calc(50% - 330px)); } }
@media (min-width: 960px) { .visual { justify-content: flex-start; padding-left: 0; } .profit-card { width: 212px; } }

/* ---------- Trades strip ---------- */
.trades { border-block: 1px solid var(--line); background: var(--surface); }
.trades ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.trades li { font-weight: 700; font-size: .92rem; color: var(--muted); padding: 4px 12px; border-radius: 999px; background: var(--surface-2); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (min-width: 960px) { section { padding: 96px 0; } }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-600); margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--amber); } }

.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.grid > * { min-width: 0; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }

/* Problem */
.pain .num { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--amber); margin-bottom: 12px; letter-spacing: -0.04em; }
.pain p { color: var(--muted); }
.fix-line {
  margin-top: 28px; padding: 20px 24px; border-radius: var(--radius);
  background: var(--green-700); color: #fff; font-size: 1.15rem; font-weight: 700;
  display: flex; gap: 14px; align-items: center;
}
.fix-line img { width: 38px; flex-shrink: 0; }

/* Features */
.features { background: var(--surface-2); }
.feature { display: flex; flex-direction: column; }
.feature .tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--green-100); color: var(--green-700); margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .feature .tag { background: #20392d; color: #a9dcbf; } }
.feature h3 { font-size: 1.35rem; }
.feature > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 4px 0 0; }
.checks li { position: relative; padding-left: 26px; margin: 0 0 9px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 4px;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' fill='none' stroke='%231a1408' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.stages { margin-top: 40px; }
.stages h3 { margin-bottom: 14px; }
.stage-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: st; }
.stage-list li {
  counter-increment: st; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px 7px 8px; font-weight: 700; font-size: .95rem;
}
.stage-list li::before {
  content: counter(st); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-700); color: #fff; font-size: .78rem;
}
.stage-list li:last-child::before { background: var(--amber); color: var(--accent-ink); }

.extras { margin-top: 18px; }
.extra { display: flex; gap: 14px; align-items: flex-start; }
.extra .ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--amber-100); display: grid; place-items: center; }
.extra .ico svg { width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { .extra .ico { background: #3a2c14; } }
.extra h3 { font-size: 1.05rem; margin-bottom: .3em; }
.extra p { color: var(--muted); font-size: .95rem; margin: 0; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: step; }
.steps > li { min-width: 0; counter-increment: step; position: relative; padding: 24px; padding-top: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps > li::before {
  content: counter(step); position: absolute; top: 20px; left: 24px;
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-700); color: #fff; font-weight: 800;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* CFO */
.cfo { background: var(--green-800); color: #e8f1eb; position: relative; overflow: hidden; }
.cfo::after {
  content: ""; position: absolute; right: -110px; top: -90px; width: 260px; height: 260px; opacity: .06;
  background: url("img/krusource-mark.svg") center/contain no-repeat; pointer-events: none;
}
.cfo .wrap { position: relative; z-index: 1; }
.cfo h2 { color: #fff; }
.cfo .kicker { color: var(--amber); }
.cfo-grid { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }
.cfo-grid > * { min-width: 0; }
@media (min-width: 900px) { .cfo::after { right: -80px; top: -60px; width: 360px; height: 360px; } .cfo-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.cfo p { color: #c9d9cf; font-size: 1.06rem; }
.cfo .sig { color: #fff; font-weight: 700; margin-top: 18px; }
.cfo .sig span { display: block; font-weight: 500; color: #a9c2b3; font-size: .95rem; }
.ledger { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px 24px; }
.ledger h3 { color: #fff; font-size: 1.05rem; }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px dashed rgba(255,255,255,.16); color: #dbe7df; }
.ledger li:first-child { border-top: 0; }
.ledger li b { color: var(--amber); flex-shrink: 0; width: 22px; }

/* Pilot CTA */
.pilot { text-align: center; }
.pilot-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 48px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.pilot-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--green-700) 0 70%, var(--amber) 70% 100%); }
.pilot-box p { color: var(--muted); max-width: 40em; margin-inline: auto; }
.pilot-box .cta-row { justify-content: center; margin-bottom: 8px; }
.pilot-box .small { font-size: .88rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #c3d3c9; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.foot-grid > * { min-width: 0; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer img { width: 160px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.foot-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .85rem; color: #93a99c; }

/* ---------- Document pages (legal, support) ---------- */
.doc-hero { padding: 48px 0 28px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.doc-hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: .3em; }
.doc-hero p { color: var(--muted); margin: 0; }
.draft-note {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--amber-100); color: #7a4b0c; font-size: .82rem; font-weight: 700;
}
@media (prefers-color-scheme: dark) { .draft-note { background: #3a2c14; color: #f5c77f; } }
.doc { padding: 40px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 1.45rem; margin-top: 2em; padding-top: .2em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.1rem; margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .45em; }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 32px; }
.doc .toc h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; color: var(--muted); }
.doc .toc ol { margin: 0; columns: 1; }
@media (min-width: 640px) { .doc .toc ol { columns: 2; column-gap: 32px; } }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--amber); border-radius: 10px; padding: 16px 18px; margin: 0 0 1.2em; }
.callout p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 10px; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--surface-2); font-size: .85rem; }
.path { font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.keep-grid { margin-bottom: 1.2em; }
.keep-grid h3 { margin-top: 0; }
.keep-grid ul { margin: 0; }

details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--amber-600); font-weight: 600; }
details.faq[open] summary::after { content: "\2212"; }
details.faq > div { padding: 0 18px 16px; color: var(--muted); }
details.faq > div p:last-child { margin: 0; }

.help-cards { margin: 0 0 36px; }
.help-cards .card h3 { font-size: 1.05rem; }
.help-cards .card p { color: var(--muted); font-size: .97rem; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound img { width: 96px; margin: 0 auto 20px; }
.notfound p { color: var(--muted); }
.notfound .cta-row { justify-content: center; }

/* Alignment + anchor fixes */
.doc-hero .wrap.narrow { max-width: 780px; }
.help-cards .card h3, .keep-grid h3 { margin-top: 0; }
[id] { scroll-margin-top: 84px; }
