/* Cumbernauld Software Solutions: shared styles */
:root {
  --green-950: #06190d;
  --green-900: #0b2e18;
  --green-800: #0e3b1f;
  --green-700: #154d2a;
  --green-600: #1f6a3b;
  --green-100: #e7f2ea;
  --gold: #f2c94c;
  --gold-deep: #d9a92a;
  --gold-soft: #fbefc7;

  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #eef2ec;
  --text: #13201a;
  --muted: #56645b;
  --border: #dde4dc;
  --link: #17643a;
  --shadow: 0 1px 2px rgba(10, 30, 18, .06), 0 8px 24px rgba(10, 30, 18, .08);
  --radius: 14px;
  --max: 1160px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1a10;
    --surface: #10241a;
    --surface-2: #142d20;
    --text: #e8efe9;
    --muted: #9fb2a5;
    --border: #22392b;
    --link: #f2c94c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1a10;
  --surface: #10241a;
  --surface-2: #142d20;
  --text: #e8efe9;
  --muted: #9fb2a5;
  --border: #22392b;
  --link: #f2c94c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 5.4vw, 60px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block;
  font: 600 13px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--green-950); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 46, 24, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(242, 201, 76, .18);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand svg { flex-shrink: 0; }
.brand small { display: block; font-weight: 500; font-size: 12px; color: rgba(255,255,255,.65); letter-spacing: .02em; }
.brand span { line-height: 1.2; font-size: 16px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav .cta { background: var(--gold); color: var(--green-950); margin-left: 6px; }
.nav .cta:hover { background: #ffd862; color: var(--green-950); }
.menu-btn {
  display: none; margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 10px; width: 44px; height: 44px; font-size: 20px; cursor: pointer;
}
@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-900); padding: 8px 12px 16px; border-bottom: 1px solid rgba(242,201,76,.2);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 17px; }
  .nav .cta { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: #ffd862; color: var(--green-950); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(242,201,76,.22), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(31,106,59,.55), transparent 60%),
    linear-gradient(160deg, var(--green-800), var(--green-950));
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: url("img/contours.svg"); background-size: 900px; background-position: center;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: rgba(255,255,255,.78); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: rgba(255,255,255,.75); font-size: 14px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { color: var(--gold); }
.phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 250px; border-radius: 36px; padding: 10px;
  background: #0b0f0c; box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 2px #2a312c;
}
.phone img { border-radius: 27px; width: 100%; }
.phone.front { right: 40px; top: 0; z-index: 2; transform: rotate(3deg); }
.phone.back { right: 230px; top: 70px; transform: rotate(-6deg); opacity: .92; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .phones { height: 470px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { width: 210px; }
  .phone.front { right: 8px; }
  .phone.back { right: auto; left: 8px; }
}
@media (max-width: 420px) {
  .phones { height: 400px; }
  .phone { width: 180px; padding: 8px; border-radius: 30px; }
  .phone img { border-radius: 23px; }
}

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .section { padding: 60px 0; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.feature .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--green-800); color: var(--gold);
}
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

/* Showcase rows */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase + .showcase { margin-top: 88px; }
.showcase.flip .shot-frame { order: 2; }
.showcase ul { padding: 0; list-style: none; margin: 18px 0 0; }
.showcase li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.showcase li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306190d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.shot-frame {
  justify-self: center; width: 290px; border-radius: 40px; padding: 11px; background: #0b0f0c;
  box-shadow: 0 30px 60px rgba(10, 30, 18, .28), inset 0 0 0 2px #2a312c;
}
.shot-frame img { border-radius: 30px; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase.flip .shot-frame { order: 0; }
  .shot-frame { width: 250px; }
}

/* Gallery */
.gallery {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery figure { margin: 0; flex: 0 0 210px; scroll-snap-align: start; }
.gallery img { border-radius: 22px; border: 6px solid #0b0f0c; box-shadow: var(--shadow); }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--green-950); font: 700 18px/1 var(--sans); margin-bottom: 14px;
}
.step p { margin: 0; color: var(--muted); }

/* Band */
.band {
  color: #fff; border-radius: 22px; padding: 48px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: radial-gradient(600px 300px at 100% 0, rgba(242,201,76,.25), transparent 60%), linear-gradient(140deg, var(--green-700), var(--green-950));
}
.band h2 { margin: 0 0 8px; }
.band p { margin: 0; color: rgba(255,255,255,.8); max-width: 560px; }
@media (max-width: 600px) { .band { padding: 32px 24px; } }

/* Company / contact */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { color: var(--gold-deep); flex-shrink: 0; margin-top: 3px; }
.contact-list strong { display: block; font-size: 14px; color: var(--muted); font-weight: 500; }
.contact-list a { font-weight: 600; word-break: break-word; }

/* Footer */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.7); padding: 56px 0 36px; margin-top: 0; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font: 600 14px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 14px; }

/* Page header (inner pages) */
.page-hero {
  color: #fff; padding: 56px 0 48px;
  background: radial-gradient(700px 300px at 90% 0, rgba(242,201,76,.2), transparent 60%), linear-gradient(160deg, var(--green-800), var(--green-950));
}
.page-hero .lead { color: rgba(255,255,255,.78); }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 50px); }
.crumbs { font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.crumbs a { color: rgba(255,255,255,.85); }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 6px; }

/* Wiki */
.wiki { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; padding: 48px 0 88px; }
@media (max-width: 900px) { .wiki { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; } }
.wiki-nav { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
@media (max-width: 900px) { .wiki-nav { position: static; max-height: none; } }
.wiki-search {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: 15px; margin-bottom: 18px;
}
.wiki-nav h4 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.wiki-nav ul { list-style: none; margin: 0; padding: 0; }
.wiki-nav a {
  display: block; padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 15px;
  border-left: 3px solid transparent;
}
.wiki-nav a:hover { background: var(--surface-2); }
.wiki-nav a[aria-current="page"] { background: var(--surface-2); border-left-color: var(--gold-deep); font-weight: 600; }
.wiki-nav details summary { display: none; }
@media (max-width: 900px) {
  .wiki-nav details { border: 1px solid var(--border); border-radius: 12px; padding: 4px 12px 12px; background: var(--surface); }
  .wiki-nav details summary { display: block; cursor: pointer; padding: 10px 0; font-weight: 600; }
}
.article { min-width: 0; }
.article .prose { max-width: 820px; }
.how-to { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; align-items: start; margin: 28px 0 40px; }
@media (max-width: 760px) { .how-to { grid-template-columns: 1fr; } .how-to .shot-frame { width: 230px; } }
.how-to figure { margin: 0; }
.how-to .shot-frame { width: 240px; padding: 8px; border-radius: 32px; justify-self: end; }
.how-to .shot-frame img { border-radius: 25px; }
.how-to figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
ol.numbered { list-style: none; counter-reset: n; padding: 0; }
ol.numbered > li { counter-increment: n; position: relative; padding-left: 46px; margin-bottom: 16px; }
ol.numbered > li::before {
  content: counter(n); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-800); color: var(--gold); font: 700 14px/1 var(--sans);
}
.tip {
  border: 1px solid var(--border); border-left: 4px solid var(--gold-deep); background: var(--surface);
  border-radius: 10px; padding: 14px 18px; margin: 20px 0; font-size: 16px;
}
.tip strong:first-child { color: var(--gold-deep); }
kbd, .ui {
  font: 600 14px/1.2 var(--sans); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 7px; white-space: nowrap;
}
.wiki-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 24px; }
.wiki-cards a {
  display: block; text-decoration: none; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color .15s, transform .15s;
}
.wiki-cards a:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.wiki-cards strong { display: block; font-family: var(--serif); font-size: 19px; margin-bottom: 4px; }
.wiki-cards span { color: var(--muted); font-size: 15px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pager a { text-decoration: none; font-weight: 600; }
.pager small { display: block; color: var(--muted); font-weight: 400; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.faq details p { color: var(--muted); }
.no-results { display: none; color: var(--muted); font-size: 14px; padding: 6px 12px; }
