/* The site's one stylesheet. Colours and sizes are set once here, at the top.
   The palette is navy and copper: navy for the dark bands and the headings, copper for links and buttons. */
:root {
  --bg: #f6f8fa;          /* the page */
  --panel: #ffffff;       /* cards and white bands */
  --ink: #14212e;         /* text */
  --muted: #51606e;       /* quieter text */
  --line: #dce3ea;        /* hairlines */
  --deep: #0f2a43;        /* navy: the dark bands, the headings, the logo mark */
  --on-deep: #c6d4e2;     /* quieter text on navy */
  --accent: #a85a14;      /* copper for links and small labels on a light background */
  --accent-dark: #86470e;
  --accent-soft: #fbeddc;
  --pop: #e08a2e;         /* bright copper: the main buttons, and labels on navy */
  --pop-hover: #eb9a44;
  --pop-ink: #1a1206;     /* text on a bright copper button */
  --note-bg: #fff6dd;
  --note-line: #e3c877;
  --wide: 1120px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(29, 35, 32, 0.06), 0 10px 30px rgba(29, 35, 32, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid #eaa55a; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; color: var(--deep); }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.6em; }

/* the draft notice (switched off in js/site.js) and other notes */
.draftbar { background: var(--note-bg); border-bottom: 1px solid var(--note-line); font-size: 0.9rem; padding: 8px 0; }
.note { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: var(--radius); padding: 12px 16px; font-size: 0.95rem; }
.note b { font-weight: 600; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand svg { width: 30px; height: 30px; flex: none; }
.menu { display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: center; }
.menu a { padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.98rem; }
.menu a:hover { background: var(--accent-soft); }
.menu a[aria-current="page"] { color: var(--accent-dark); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }

/* buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 9px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--deep); line-height: 1.2; }
.btn.primary { background: var(--pop); border-color: var(--pop); color: var(--pop-ink); }
.btn.primary:hover { background: var(--pop-hover); border-color: var(--pop-hover); color: var(--pop-ink); }
.btn.ghost { color: var(--deep); background: transparent; }
.btn.ghost:hover { background: #e9eef4; color: var(--deep); }
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover { background: #e6eaef; border-color: #cdd5de; color: var(--muted); cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* hero: a navy band */
.hero { padding: 64px 0 56px; background: var(--deep); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: center; }
.hero h1 { margin-bottom: 0.4em; color: #fff; }
.hero .lead { color: var(--on-deep); }
.hero .eyebrow { color: var(--pop); }
.hero .btn.ghost, .cta .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.hero .btn.ghost:hover, .cta .btn.ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.hero .shot { border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }

/* a screenshot in a frame */
.shot { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.shot img { width: 100%; }
.shot a { display: block; cursor: zoom-in; }
.shot figcaption { padding: 10px 14px; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); background: #fdfdfc; }

/* the four plain facts under the hero */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.facts ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; }
.facts li { font-size: 0.98rem; color: var(--muted); }
.facts b { display: block; color: var(--ink); font-size: 1.02rem; }

/* sections and cards */
.band { padding: 64px 0; }
.band.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band > .wrap > h2 { max-width: 26ch; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.band.alt .card { background: var(--bg); }
.card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.card a { font-weight: 600; text-decoration: none; }
.card a:hover { text-decoration: underline; }
.card .ico { width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 20px; height: 20px; }

/* a feature: words beside a picture, sides swapping down the page */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: start; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.feature:first-of-type { border-top: none; }
.feature.flip > :first-child { order: 2; }
.feature ul { padding-left: 1.1em; margin: 0; }
.feature li { margin: 0 0 0.55em; }
.feature li::marker { color: var(--accent); }
.onpage { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.onpage a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); text-decoration: none; font-size: 0.92rem; color: var(--ink); }
.onpage a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* page headings below the home page */
.pagehead { padding: 48px 0 8px; }
.pagehead h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* download and contact boxes */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.box h2 { font-size: 1.3rem; }
.box ul, .box ol { padding-left: 1.2em; margin: 0; }
.box li { margin: 0 0 0.5em; }
.version { font-size: 1.05rem; }
.version b { font-size: 1.5rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 18px; }
.price b { font-size: 2.8rem; line-height: 1; color: var(--deep); letter-spacing: -0.01em; }
.price span { color: var(--muted); font-size: 1.05rem; }

/* what's new */
.log { list-style: none; padding: 0; margin: 24px 0 0; border-left: 2px solid var(--line); }
.log > li { position: relative; padding: 0 0 30px 26px; }
.log > li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); }
.log h2 { font-size: 1.2rem; margin-bottom: 0.2em; }
.log time { color: var(--muted); font-size: 0.9rem; }
.log ul { margin: 0.5em 0 0; padding-left: 1.1em; }
.log ul li { margin-bottom: 0.35em; }

/* the closing call and the footer */
.cta { text-align: center; }
.band.alt.cta { background: var(--deep); border-color: var(--deep); }
.cta h2 { margin-left: auto; margin-right: auto; color: #fff; }
.cta .lead { margin-left: auto; margin-right: auto; color: var(--on-deep); }
.cta .actions { justify-content: center; }
.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 0.9rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: var(--muted); }

/* narrower screens: one column */
@media (max-width: 900px) {
  .hero { padding: 40px 0 36px; }
  .hero .wrap, .feature, .split { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .feature.flip > :first-child { order: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { padding: 44px 0; }
  .feature { padding: 40px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .facts ul { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .brand { width: 100%; }
  /* (the five menu entries on one row of a phone) */
  .menu { margin-left: -6px; gap: 0; }
  .menu a { padding: 8px 6px; font-size: 0.86rem; }
  .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .top, .draftbar, .actions { display: none; } body { background: #fff; } }

/* the walkthrough video */
.film { margin: 26px 0 0; max-width: 1040px; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15, 42, 67, 0.12); }
.film figcaption { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
