/*
  Palette
  - Brand orange (Cam): the logo colour, close to WGSN x Coloro's 2027 key colour Energy Orange.
  - Cloud Dancer (Pantone Colour of the Year 2026): light-mode background.
  - Transformative Teal (WGSN x Coloro Colour of the Year 2026): secondary accent.
  - Luminous Blue (WGSN x Coloro Colour of the Year 2027): AI / product accent.
  Hex values are on-screen approximations; text colours are darkened/lightened to pass WCAG AA.
*/
:root {
  --cloud: #f0eee9;
  --bg: var(--cloud);
  --bg-alt: #e8e4dc;
  --surface: #faf9f6;
  --border: #dcd6cc;
  --text: #1c1917;
  --muted: #5c544d;

  --orange: #ff7a1a;        /* fills: buttons, logo, highlights */
  --orange-text: #b8460c;   /* orange used as text on light backgrounds */
  --orange-soft: #ffe3cc;
  --teal: #2f8484;
  --teal-text: #1f6e6c;
  --teal-soft: #d5ebe8;
  --blue: #2f5bff;
  --blue-text: #2347d1;
  --blue-soft: #dfe5ff;
  --on-orange: #1c1917;

  --radius-sm: 8px;
  --radius: 12px;
  --wrap: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110f;
    --bg-alt: #1a1613;
    --surface: #1e1a17;
    --border: #322b25;
    --text: #f3efea;
    --muted: #b3a99f;
    --orange-text: #ff8a3d;
    --orange-soft: #3a2414;
    --teal-text: #5cc2bc;
    --teal-soft: #15302e;
    --blue-text: #8fa6ff;
    --blue-soft: #1b2340;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--on-orange); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; border-radius: 4px; }

/* Palette strip: the brand's three-colour signature */
.strip { display: flex; height: 4px; }
.strip i { flex: 1; }
.strip i:nth-child(1) { background: var(--orange); flex: 2; }
.strip i:nth-child(2) { background: var(--teal); }
.strip i:nth-child(3) { background: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75rem 1.25rem; border-radius: 999px;
  background: var(--orange); color: var(--on-orange);
  font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: #ff8f3f; transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--surface); border-color: var(--text); }
.btn--sm { padding: .5rem 1rem; font-size: .9rem; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

.link { color: var(--orange-text); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.1rem; font-weight: 700; line-height: 1.1; }
.brand b { color: var(--muted); font-weight: 500; }
.brand i { color: var(--orange-text); font-style: normal; }
.nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: 28px; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
@media (min-width: 860px) { .nav__links { display: flex; } }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero__inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.15fr 1fr; } }
.hero h1 .accent { color: var(--orange-text); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 500; }
.tags li:nth-child(3n+1) { background: var(--orange-soft); color: var(--orange-text); }
.tags li:nth-child(3n+2) { background: var(--teal-soft); color: var(--teal-text); }
.tags li:nth-child(3n) { background: var(--blue-soft); color: var(--blue-text); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--teal-text); margin-bottom: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* Hero product preview: a chat with the expense tracker */
.chat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.chat__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.chat__bar b { color: var(--text); font-weight: 600; }
.chat__body { display: grid; gap: 12px; padding: 20px 16px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: var(--radius); font-size: .95rem; }
.msg--user { justify-self: end; background: var(--orange); color: var(--on-orange); border-bottom-right-radius: 4px; }
.msg--ai { background: var(--bg-alt); border-bottom-left-radius: 4px; }
.msg--ai ul { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.msg--ai li { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: .85rem; }
.msg--ai small { color: var(--muted); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 600 .72rem var(--font); }
.chip--teal { background: var(--teal-soft); color: var(--teal-text); }
.chip--blue { background: var(--blue-soft); color: var(--blue-text); }
.chat__tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 16px; }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head p:not(.eyebrow) { color: var(--muted); }

/* Service cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.card__icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; margin-bottom: 16px; background: var(--orange-soft); }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--orange-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card--teal .card__icon { background: var(--teal-soft); }
.card--teal .card__icon svg { stroke: var(--teal-text); }
.card--blue .card__icon { background: var(--blue-soft); }
.card--blue .card__icon svg { stroke: var(--blue-text); }

/* Products */
.products { display: grid; gap: 16px; }
@media (min-width: 860px) { .products { grid-template-columns: 1fr 1fr; } }
.product { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 28px; }
.product--blue { border-top-color: var(--blue); }
.product p { color: var(--muted); }
.product q { font-family: var(--mono); font-size: .88rem; color: var(--text); quotes: "“" "”"; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 600 .75rem var(--font); letter-spacing: .04em; background: var(--teal-soft); color: var(--teal-text); margin-bottom: 12px; }
.badge--blue { background: var(--blue-soft); color: var(--blue-text); }

.stack { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 860px) { .stack { grid-template-columns: repeat(3, 1fr); } }
.stack div { padding-left: 16px; border-left: 2px solid var(--teal); }
.stack div:nth-child(2) { border-left-color: var(--blue); }
.stack div:nth-child(3) { border-left-color: var(--orange); }
.stack b { display: block; font-family: var(--display); margin-bottom: 4px; }
.stack p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Roadmap */
.roadmap { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: step; }
.roadmap li { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.roadmap b { display: block; font-family: var(--display); }
.roadmap span { color: var(--muted); font-size: .9rem; }
.roadmap .done { border-color: var(--teal); }
.roadmap .done b::after { content: " · done"; color: var(--teal-text); font: 500 .8rem var(--font); }
.roadmap .active { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.roadmap .active b::after { content: " · now"; color: var(--orange-text); font: 500 .8rem var(--font); }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { border-top: 2px solid var(--border); padding-top: 20px; }
.steps li:first-child { border-top-color: var(--orange); }
.steps__n { font: 600 .85rem var(--mono); color: var(--teal-text); display: block; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* Company facts */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.split > div > p:not(.eyebrow) { color: var(--muted); }
.facts { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.facts div { display: grid; gap: 4px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.facts div:last-child { border-bottom: 0; }
@media (min-width: 560px) { .facts div { grid-template-columns: 190px 1fr; gap: 16px; } }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts a { color: var(--orange-text); }

.person { display: flex; gap: 16px; align-items: center; margin-top: 24px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.person__avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--on-orange); font: 700 1.1rem var(--display); }
.person p { margin: 0; }
.person small { color: var(--muted); }

/* Contact */
.contact { text-align: center; }
.contact p { color: var(--muted); margin-bottom: 28px; }
.contact .contact__more { margin: 20px 0 0; }

/* Page header (inner pages) */
.page-head { padding: 64px 0 24px; }
.page-head p { color: var(--muted); max-width: 640px; font-size: 1.1rem; }
.page-head + .section { padding-top: 32px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: .88rem; }
.footer__inner { display: grid; gap: 16px; }
.footer__legal { margin: 0; max-width: 820px; }
.footer__legal b { color: var(--text); font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--text); text-decoration: underline; }
