/* Camelio. Paper ground, Ink type, one bright "skin" colour per block (Leaf, Lagoon, Orchid,
   Coral, Sun). Skins are backgrounds with Ink text on top, never text colours on Paper.
   Compact spacing by design. Light only: the brand is a light design. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #12261F;
  --paper: #F5F7F2;
  --white: #FFFFFF;
  --muted: #4A5C54;          /* about 6.7:1 on Paper */
  --line: #DCE3DA;
  --leaf: #5CCB7A;   --leaf-t: #DCF2E1;   --leaf-d: #2F8A4A;
  --lagoon: #45C4D6; --lagoon-t: #D6F0F4; --lagoon-d: #23889A;
  --orchid: #A792F5; --orchid-t: #E8E3FC; --orchid-d: #6F55D6;
  --coral: #FF8A6B;  --coral-t: #FFE0D6;  --coral-d: #D9694B;
  --sun: #F7C744;    --sun-t: #FCEFC7;    --sun-d: #C99A1E;
  --skin: var(--leaf); --skin-t: var(--leaf-t); --skin-d: var(--leaf-d);
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
  color-scheme: light;
}
/* The page's current skin (set on <html> by base.njk, changed by site.js on the home page). */
:root[data-skin="leaf"]   { --skin: var(--leaf);   --skin-t: var(--leaf-t);   --skin-d: var(--leaf-d); }
:root[data-skin="lagoon"] { --skin: var(--lagoon); --skin-t: var(--lagoon-t); --skin-d: var(--lagoon-d); }
:root[data-skin="orchid"] { --skin: var(--orchid); --skin-t: var(--orchid-t); --skin-d: var(--orchid-d); }
:root[data-skin="coral"]  { --skin: var(--coral);  --skin-t: var(--coral-t);  --skin-d: var(--coral-d); }
:root[data-skin="sun"]    { --skin: var(--sun);    --skin-t: var(--sun-t);    --skin-d: var(--sun-d); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, .h3 { font-family: var(--display); line-height: 1.06; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
h3, .h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.stack { display: grid; gap: 12px; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 36rem; display: grid; gap: 8px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 0; font: 600 1rem var(--body); cursor: pointer; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.link { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 5; background: var(--paper); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.04em; text-decoration: none; display: inline-flex; align-items: baseline; line-height: 1.2; }
header.site .logo { font-size: 2.4rem; line-height: 1; }
.logo .eye { width: 0.6em; height: 0.6em; margin-left: 0.04em; transform: translateY(0.04em); overflow: visible; }
.eye-ring { fill: var(--skin); stroke: rgba(18, 38, 31, .18); stroke-width: 1.2; transition: fill 1.2s ease; }
.eye-white { fill: #FFFFFF; }
.eye-pupil { fill: var(--ink); }
nav.main { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
nav.main a { text-decoration: none; font-weight: 500; font-size: 0.97rem; }
nav.main a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--skin-d); }
nav.main .btn { padding: 8px 16px; }

main { padding-bottom: 36px; }
.band { padding-block: 32px; }
.band-tight { padding-top: 18px; }

/* Colour blocks */
.bg-leaf { background: var(--leaf); } .bg-lagoon { background: var(--lagoon); } .bg-orchid { background: var(--orchid); }
.bg-coral { background: var(--coral); } .bg-sun { background: var(--sun); }

/* Hero */
.hero-top { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: 32px; align-items: end; padding-block: 10px 14px; }
.hero-intro { text-align: right; }
.hero h1 span, .phead h1 span, .jobs-head h2 span { background: var(--skin); padding: 0 0.12em; border-radius: 14px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background 1.2s ease; }
.adapt { background: var(--skin-t); border-radius: 24px; padding: 16px 18px; transition: background 1.2s ease; min-width: 0; }
.adapt-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.adapt-top > div { min-width: 0; }
.adapt-top > div { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.adapt-label { font-weight: 600; font-size: 0.9rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 0.92rem var(--body); border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.example { background: var(--white); border-radius: 16px; padding: 12px 16px; margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; align-items: start; }
.example:not([hidden]) { animation: fadein .9s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.ex-main, .ex-side { display: grid; gap: 10px; min-width: 0; }
.incoming { display: grid; gap: 1px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--skin); border-radius: 10px; padding: 7px 12px; font-size: 0.92rem; }
.incoming .from { font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.incoming.arrive { animation: arrive .55s ease both; }
@keyframes arrive { from { transform: translateY(-10px); opacity: .15; } to { transform: none; opacity: 1; } }
.flow { list-style: none; margin: 0; padding: 0; display: grid; }
.flow li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; position: relative; padding-bottom: 7px; opacity: .4; transition: opacity .35s ease; }
.flow li:last-child { padding-bottom: 0; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--line); transition: background .35s ease; }
.flow li.on { opacity: 1; }
.flow li.on:not(:last-child)::after { background: var(--ink); }
.flow .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center; transition: background .35s ease, box-shadow .35s ease; }
.flow li.now .ic { background: var(--skin); box-shadow: 0 0 0 4px var(--skin-t); }
.flow .ic svg { width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow strong { display: block; font-size: 0.92rem; line-height: 1.3; font-weight: 600; }
.flow em { font-style: normal; font-size: 0.8rem; color: var(--muted); }
.flow-h { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.flow-h li { grid-template-columns: 1fr; gap: 6px; padding-bottom: 0; align-content: start; }
.flow-h li:not(:last-child)::after { left: 38px; right: -8px; top: 14px; bottom: auto; width: auto; height: 2px; }
.saved { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; background: var(--skin-t); border-radius: 12px; padding: 9px 14px; transition: background 1.2s ease; }
.saved .hrs { font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 1; grid-row: span 2; letter-spacing: -0.03em; }
.saved .hrs small { display: block; font-family: var(--body); font-size: 0.74rem; font-weight: 600; letter-spacing: 0; }
.saved .maths { font-size: 0.84rem; }
.saved .life { font-size: 0.86rem; font-weight: 600; }
.ex-side .saved { grid-template-columns: 1fr; gap: 6px; }
.ex-side .saved .hrs { grid-row: auto; display: flex; align-items: baseline; gap: 8px; }
.ex-side .saved .hrs small { display: inline; }

/* Chameleon (src/_includes/chameleon.njk). Each skin class sets body, dark and light tones. */
.cham { display: block; height: auto; --c: var(--leaf); --cd: var(--leaf-d); --cl: #A9E5BA; --branch: var(--ink); }
.skin-current { --c: var(--skin); --cd: var(--skin-d); --cl: var(--skin-t); }
.skin-sun { --c: var(--sun); --cd: var(--sun-d); --cl: #FBE29A; }
.skin-lagoon { --c: var(--lagoon); --cd: var(--lagoon-d); --cl: #A9E3EB; }
.skin-coral-soft { --c: #FFA184; --cd: var(--coral-d); --cl: #FFC7B6; }
.on-dark { --branch: var(--paper); }
.chm-c { fill: var(--c); transition: fill 1.2s ease; }
.chm-cd { fill: var(--cd); transition: fill 1.2s ease; }
.chm-cl { fill: var(--cl); transition: fill 1.2s ease; }
.chm-w { fill: #FFFFFF; }
.chm-ink { fill: #12261F; }
.chm-br-line { fill: none; stroke: var(--branch); stroke-width: 6; stroke-linecap: round; }
.chm-br-twig { fill: none; stroke: var(--branch); stroke-width: 3.5; stroke-linecap: round; }
.chm-leg { fill: none; stroke: var(--cd); stroke-width: 8; stroke-linecap: round; }
.chm-tail { fill: none; stroke: var(--cl); stroke-width: 4.5; stroke-linecap: round; }
.chm-crease { fill: none; stroke: var(--cd); stroke-width: 2; opacity: .55; }
.chm-smile { fill: none; stroke: #12261F; stroke-width: 3; stroke-linecap: round; }
.cham-small { width: 118px; flex: none; margin-top: -2px; }
.cham-band { width: 130px; }
.cham-cta { width: 100%; max-width: 220px; justify-self: center; }
.cham-side { width: 100%; max-width: 200px; }

/* Small jobs */
.jobs-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; margin-bottom: 14px; }
.jobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.job { border-radius: 16px; padding: 14px 16px; display: grid; align-content: start; gap: 4px; min-width: 0; }
.tint-leaf { background: var(--leaf-t); } .tint-lagoon { background: var(--lagoon-t); } .tint-orchid { background: var(--orchid-t); }
.tint-coral { background: var(--coral-t); } .tint-sun { background: var(--sun-t); }
.job h3 { font-size: 1.05rem; }
.job p { font-size: 0.92rem; }
.strip { margin-top: 12px; border: 2px solid var(--ink); border-radius: var(--r); padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Guidance band */

/* Process band */
.dark { background: var(--ink); color: var(--paper); }
.svc-band { padding-block: 22px; margin-bottom: 18px; }
.services { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.services li { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 2px solid rgba(245, 247, 242, .18); }
.services h3 { font-size: 1.1rem; }
.services p { color: #C9D3CD; font-size: 0.93rem; }
.services .link { color: var(--paper); font-weight: 600; align-self: flex-start; margin-top: auto; padding-top: 6px; }
.svc-leaf { color: var(--leaf); } .svc-lagoon { color: var(--lagoon); } .svc-orchid { color: var(--orchid); } .svc-coral { color: var(--coral); } .svc-sun { color: var(--sun); }
.dark-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step .n { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.n-1 { color: var(--leaf); } .n-2 { color: var(--lagoon); } .n-3 { color: var(--orchid); } .n-4 { color: var(--coral); }
.step h3 { font-size: 1.05rem; margin: 6px 0 4px; }
.step p:last-child { color: #C9D3CD; font-size: 0.93rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.faq > div { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; min-width: 0; display: grid; gap: 4px; align-content: start; }
.faq h3 { font-size: 1.02rem; }
.faq p { color: var(--muted); font-size: 0.95rem; }

/* Call to action */
.cta { background: var(--coral-t); border-radius: 26px; padding: 24px 32px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: center; }
.cta .stack { gap: 10px; }
.cta p { max-width: 30rem; }

/* Page heads */
.phead { padding-block: 22px 4px; display: grid; gap: 8px; }

/* Pricing */
.howpay { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay { border-radius: var(--r); padding: 16px 18px; display: grid; align-content: start; gap: 4px; min-width: 0; }
.pay .eyebrow { color: var(--ink); }
.amt { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.amt span { font-family: var(--body); font-weight: 500; font-size: 0.95rem; letter-spacing: 0; }
.pay p:last-child { font-size: 0.93rem; }
.pgroup { margin-top: 18px; }
.gh { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.tiers { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tier { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tier.feat { border: 2px solid var(--ink); }
.tier .amt span { color: var(--muted); }
.tier p { font-size: 0.93rem; }
.badge { align-self: flex-start; font-size: 0.75rem; font-weight: 600; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 3px 10px; }
.fine { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.terms { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.terms div { border-top: 2px solid var(--ink); padding-top: 8px; font-size: 0.95rem; }
.terms strong { display: block; font-family: var(--display); font-size: 1.05rem; }

/* Tech help */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.help-grid > div { background: var(--white); border-radius: 16px; padding: 14px 16px; border: 1px solid var(--line); min-width: 0; display: grid; gap: 4px; align-content: start; }
.help-grid .h3 { font-size: 1.02rem; }
.help-grid p { color: var(--muted); font-size: 0.93rem; }
.help-price { margin-top: 14px; background: var(--lagoon-t); border-radius: var(--r); padding: 16px 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.help-price .amt { font-size: 2.1rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; padding-top: 22px; align-items: start; }
.side { display: grid; gap: 14px; }
.card { border-radius: var(--r); padding: 18px 20px; display: grid; gap: 6px; }
.card .email { font-weight: 600; font-size: 1.1rem; word-break: break-word; }
form.cf { background: var(--white); border-radius: var(--r); padding: 20px; display: grid; gap: 12px; border: 1px solid var(--line); min-width: 0; }
.form-intro { font-size: 0.9rem; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.93rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: 400 1rem var(--body); color: var(--ink); background: var(--paper); border: 2px solid #9AA8A0; border-radius: 10px; padding: 8px 11px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field.checkbox { grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.field.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.field.checkbox label { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
select option.design-option { color: #5f5f5f; font-style: italic; }
.topic-note { margin: 6px 0 0; font-size: 0.9rem; color: var(--muted); border-left: 3px solid #8a8a8a; padding-left: 10px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.form-status.ok { background: var(--leaf-t); }
.form-status.error { background: #FCE3DC; color: #8A2A12; }
form.cf button[disabled] { opacity: .6; cursor: wait; }

/* Privacy */
.prose { max-width: 760px; }
.prose section { margin-top: 18px; display: grid; gap: 8px; }
.prose section p { color: var(--muted); }

/* Footer */
footer.site { border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 18px 8px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
footer.site .site-credits { padding-block: 0 16px; font-size: 0.8rem; }
footer.site .site-credits a { color: var(--muted); }

/* Printing: just the content, no navigation */
@media print {
  header.site nav, footer.site nav, .site-credits, .no-print, .skip-link { display: none !important; }
  header.site { position: static; }
  body { font-size: 12px; }
  main { padding-bottom: 0; }
  .need, .own { box-shadow: none; }
  @page { margin: 14mm; }
}

/* 404 */
.notfound { padding-block: 48px; display: grid; gap: 12px; justify-items: start; }

@media (max-width: 900px) {
  .cta, .contact, .hero-top, .example { grid-template-columns: 1fr; }
  .hero-top { gap: 8px; }
  .hero-intro { text-align: left; }
  .flow-h { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .flow-h li:nth-child(2)::after { display: none; }
  .help-grid, .terms, .howpay, .need dl { grid-template-columns: 1fr; }
  .jobs { grid-template-columns: 1fr 1fr; }
  .jobs-head { grid-template-columns: 1fr; gap: 8px; }
  .steps, .services { grid-template-columns: 1fr 1fr; }
  .help-price { grid-template-columns: 1fr; gap: 12px; justify-items: start; }
  .cta { padding: 22px 20px; }
}
@media (max-width: 600px) {
  .faq, .steps, .row2, .jobs, .services { grid-template-columns: 1fr; }
  nav.main { gap: 14px; }
  .cham-small { width: 84px; }
  .flow-h { grid-template-columns: 1fr; }
  .flow-h li { grid-template-columns: 30px 1fr; gap: 10px; padding-bottom: 7px; }
  .flow-h li:nth-child(2)::after { display: block; }
  .flow-h li:not(:last-child)::after { left: 14px; right: auto; top: 30px; bottom: -14px; width: 2px; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
