/* Minerva Software — site styles
   Colours come from the StockPlan logo. Change them here and the whole site follows. */
:root {
  --ink: #17414f;        /* StockPlan dark teal */
  --blue: #0093cb;       /* StockPlan blue (slightly deepened for text contrast) */
  --blue-bright: #00a3df;
  --sky: #e6f4fa;        /* pale tint of the logo frame */
  --logo-navy: #0d1b3e;  /* Minerva logo: dark navy */
  --logo-ice: #dbe7f6;   /* Minerva logo: very light blue */
  --text: #213139;
  --muted: #56666e;
  --rule: #d2e0e6;
  --paper: #ffffff;
  --warn-bg: #fff6e0;
  --warn-rule: #e3b341;
  --font: "Archivo", "Segoe UI", Arial, sans-serif;
  --measure: 70ch;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; font-style: italic; font-stretch: 112%; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-stretch: 108%; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: .5em 1em; z-index: 10; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 18px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--logo-navy); }
.brand:hover { color: var(--logo-navy); }
.brand-mark { width: 46px; height: 46px; flex: none; display: block; }
.brand-name { display: block; font-weight: 700; font-size: 1.55rem; line-height: 1; letter-spacing: .015em; font-stretch: 104%; }
.brand-light { font-weight: 400; color: #34466f; }
.brand-tag { display: block; font-size: .82rem; color: #5d6b88; margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--logo-ice); letter-spacing: .02em; }

.nav-toggle {
  font: inherit; font-weight: 600; color: var(--ink); background: none;
  border: 1.5px solid var(--ink); border-radius: 6px; padding: .4em .9em; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: .55em 0;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); }

@media (max-width: 899px) {
  .site-nav { display: none; border-top: 1px solid var(--rule); }
  .site-nav.open { display: block; }
  .site-nav li + li { border-top: 1px solid var(--rule); }
  .brand-tag { display: none; }
  .brand-name { font-size: 1.3rem; white-space: nowrap; }
  .brand-mark { width: 40px; height: 40px; }
  .brand { gap: 10px; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.6rem; padding-bottom: 6px; }
  .site-nav a { padding: .35em 0 .5em; border-bottom: 3px solid transparent; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--blue-bright); color: var(--ink); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: .7em 1.2em; border-radius: 6px; border: 2px solid var(--ink); color: var(--ink); background: var(--paper);
}
.btn:hover { background: var(--sky); color: var(--ink); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #0f2f3a; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ---------- home ---------- */
.hero { background: var(--sky); padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 16ch; }
.hero-sub { font-size: 1.25rem; color: var(--ink); max-width: 34ch; font-weight: 500; }
.hero-product { margin-top: 1.25rem; font-weight: 700; }
.hero-product a { color: var(--ink); }

.plan-chart { margin: 0; background: var(--paper); border-radius: 10px; padding: 18px 18px 14px; border: 1px solid var(--rule); }
.plan-chart svg { width: 100%; height: auto; display: block; }
.c-grid { stroke: var(--rule); stroke-width: 1; }
.c-axis { font: 500 11px var(--font); fill: var(--muted); }
.c-band { fill: #bfe5f5; opacity: .7; }
.c-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.c-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.c-po { fill: #8aa8b2; }
.c-plan { fill: var(--blue-bright); }
.plan-chart figcaption { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.k-band { background: #bfe5f5; }
.k-line { background: var(--ink); height: 3px !important; }
.k-po { background: #8aa8b2; }
.k-plan { background: var(--blue-bright); }

.band-latest { background: var(--ink); }
.latest-link { display: block; color: #fff; font-weight: 700; padding: 14px 0; text-decoration-color: rgba(255,255,255,.5); }
.latest-link:hover { color: #bfe5f5; }

.section { padding: 56px 0; }
.section-tint { background: #f4f9fb; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.25fr; gap: 48px; } }
.split-top { align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; font-size: 1.2rem; }
.ticks li { position: relative; padding-left: 1.6em; margin-bottom: .7em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7em; height: .7em; background: var(--blue-bright); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.cta-row p { margin: 0; }
.exchequer { margin-top: 40px; color: var(--muted); }
.exchequer p { padding-top: 24px; border-top: 1px solid var(--rule); }

/* ---------- inner pages ---------- */
.page-head { background: var(--sky); padding: 40px 0 32px; border-bottom: 1px solid var(--rule); }
.page-head h1 { margin: 0; }
.lede { font-size: 1.2rem; max-width: var(--measure); margin: .75em 0 0; color: var(--ink); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; }
.note { color: var(--muted); font-size: .95rem; }

.shot { margin: 28px 0; }
.shot img { border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 1px 2px rgba(23,65,79,.08); }
.shot figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.prose .shot { max-width: none; }
.product-logo { max-width: 360px; width: 100%; justify-self: center; margin-top: 8px; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 48px; }
@media (min-width: 900px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li { padding: 16px 0 16px 1.6em; border-top: 1px solid var(--rule); position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: .6em; height: .6em; background: var(--blue-bright); clip-path: polygon(0 0, 100% 50%, 0 100%); }

.gallery { display: grid; gap: 20px; margin-bottom: 40px; align-items: start; }
.gallery .shot { margin: 0; }
@media (min-width: 800px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .span2 { grid-column: span 2; } }

.callout { background: var(--warn-bg); border-left: 5px solid var(--warn-rule); padding: 20px 24px 8px; margin: 32px 0; border-radius: 0 6px 6px 0; }
.callout h2 { margin-top: 0; font-size: 1.25rem; }

/* details page */
.detail-grid { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 56px; }
@media (min-width: 1000px) { .detail-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; } .toc { position: sticky; top: 24px; align-self: start; } }
.toc { border-left: 3px solid var(--blue-bright); padding-left: 16px; }
.toc-title { font-weight: 700; color: var(--ink); margin-bottom: .4em; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .95rem; }
.toc li { margin: .3em 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
.detail-sec + .detail-sec { border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 8px; }
.detail .shot { max-width: 834px; }
.numbered { display: grid; grid-template-columns: 2em 1fr; }
.num { font-weight: 800; color: var(--blue); }

/* video page */
.video-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .video-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
.player video { width: 100%; height: auto; aspect-ratio: 801 / 601; background: #0f2f3a; border-radius: 6px; display: block; }
.now-playing { margin-top: 12px; font-weight: 600; color: var(--ink); }
.now-playing.missing { color: #8a5a00; font-weight: 500; }
.playlist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
@media (min-width: 1000px) { .playlist { max-height: 640px; overflow-y: auto; } }
.pl-group { background: var(--sky); color: var(--ink); font-weight: 700; padding: 8px 14px; font-size: .9rem; }
.playlist button {
  all: unset; box-sizing: border-box; display: grid; grid-template-columns: 2em 1fr; width: 100%;
  padding: 9px 14px; cursor: pointer; border-top: 1px solid var(--rule); font-size: .95rem; color: var(--text);
}
.playlist button:hover { background: #f4f9fb; }
.playlist button:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: -3px; }
.playlist button[aria-current="true"] { background: var(--ink); color: #fff; }
.pl-num { color: var(--muted); font-variant-numeric: tabular-nums; }
.playlist button[aria-current="true"] .pl-num { color: #bfe5f5; }

/* version history */
.releases { padding-top: 24px; padding-bottom: 56px; }
.release { display: grid; gap: 8px 40px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 800px) { .release { grid-template-columns: 180px minmax(0, 1fr); } .release-meta { position: sticky; top: 16px; align-self: start; } }
.release-meta h2 { margin: 0; font-size: 1.5rem; }
.release-meta p { margin: 0; color: var(--muted); }
.changes { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.changes li { margin-bottom: 20px; }
.changes h3 { display: inline; font-size: 1.05rem; }
.changes p { margin: .35em 0 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 3px; margin-right: 8px; vertical-align: 2px; background: var(--sky); color: var(--ink); }
.tag-change { background: #eef0f2; color: #3c4a52; }

/* pricing */
.modules { display: grid; gap: 20px; margin-bottom: 40px; }
@media (min-width: 900px) { .modules { grid-template-columns: 1.2fr 1fr 1fr; } }
.module { border: 1px solid var(--rule); border-top: 4px solid var(--blue-bright); padding: 22px 24px 8px; border-radius: 4px; }
.module-core { border-top-color: var(--ink); background: #f4f9fb; }
.module h2 { font-size: 1.2rem; }

/* downloads */
.downloads { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.dl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.dl:first-child { border-top: 1px solid var(--rule); }
.dl > div { flex: 1 1 420px; }
.dl h2 { font-size: 1.15rem; margin-bottom: .25em; }
.dl p { margin: 0 0 .25em; }
.meta { color: var(--muted); font-size: .9rem; }

/* news */
.news { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--rule); max-width: 760px; }
.news li { position: relative; padding: 0 0 22px 8px; }
.news li::before { content: ""; position: absolute; left: -27px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--blue); }
.news li:first-child::before { background: var(--blue); }
.news p { margin: 0; }
.news-date { font-weight: 700; color: var(--ink); font-size: .95rem; }

/* about */
.contact { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; font-size: 1.15rem; }
.contact dt { font-weight: 700; color: var(--ink); }
.contact dd { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d7e6eb; font-size: .95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 24px; }
.footer-row p { margin: 0; }
.site-footer a { color: #fff; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* cloud coming-soon */
.soon { display: inline-block; font-size: .72rem; font-weight: 700; background: var(--logo-navy); color: #fff; padding: 1px 7px; border-radius: 10px; margin-left: 4px; vertical-align: 2px; }
.cloud-shot { margin-top: 0; }
.cloud-shot img { width: 100%; border: 1px solid #c9d3dc; border-radius: 8px; box-shadow: 0 12px 32px rgba(13,27,62,.14), 0 2px 6px rgba(13,27,62,.08); }
.cloud-shot figcaption { margin-top: 14px; }
.cloud-pill { display: none; }
@media (min-width: 900px) {
  .site-nav .nav-cloud { display: none; }
  .cloud-pill {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--logo-navy);
    background: var(--logo-ice); border: 1px solid #c3d5ee; border-radius: 999px; padding: .45em .6em .45em 1.1em;
  }
  .cloud-pill:hover, .cloud-pill[aria-current="page"] { background: #cfdff4; color: var(--logo-navy); }
  .cloud-pill .soon { margin-left: 0; }
}

a[href^="tel:"] { white-space: nowrap; }
