/* Stanmer brand: shared by the archiver's public pages (archiver.stanmersoftware.com) and the
   company site (stanmersoftware.com), which both serve this folder at /brand/.
   Plain CSS so the pages render without JavaScript, which platform review crawlers require.
   No inline styles anywhere: the Content-Security-Policy allows only this stylesheet.
   Hero photo: Unsplash 64YrPKiguAE by ThisisEngineering (Unsplash License). To change it,
   replace hero.webp (about 2400px wide) and hero-900.webp (900px wide). */

@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/brand/fonts/public-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/brand/fonts/public-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/brand/fonts/public-sans-800.woff2) format("woff2"); }

:root {
  --navy-950: #0b1026;
  --navy-900: #141a3d;
  --navy: #1e1b4b;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --eyebrow: #a5b4fc;
  --on-navy: #ffffff;
  --on-navy-muted: #cbd5e1;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --light: #f8fafc;
  --white: #ffffff;
  --radius: 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 16px/1.65 "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--eyebrow); }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--white); color: var(--text); padding: 8px 12px; }

/* Width: grows to 1240px, with side margins from 16px on phones. */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ---------- Header ---------- */
.site-header { background: var(--navy-950); border-bottom: 1px solid rgba(255, 255, 255, .08); position: relative; z-index: 2; }
/* On the home pages the header sits inside the hero, over the photo. */
.hero .site-header { background: transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none;
  font-weight: 800; font-size: 17px; letter-spacing: .01em; white-space: nowrap; }
.brand:hover { color: var(--on-navy); }
.brand-mark { width: 32px; height: 32px; flex: none; display: block; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.site-nav a { color: var(--on-navy-muted); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.site-nav a:hover { color: var(--on-navy); }
.site-nav a.btn { color: var(--on-navy); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 22px; border-radius: 6px; font: inherit; font-weight: 600; font-size: 15px;
  line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; text-align: center; }
.btn-primary { background: var(--accent); color: var(--on-navy); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-navy); }
.btn-outline { background: transparent; color: var(--on-navy); border-color: #64748b; }
.btn-outline:hover { background: rgba(255, 255, 255, .08); color: var(--on-navy); border-color: var(--on-navy-muted); }
.btn-outline.on-light { color: var(--navy); border-color: var(--navy); }
.btn-outline.on-light:hover { background: var(--light); color: var(--navy); }
.btn:disabled { opacity: .6; cursor: default; }
.site-nav .btn { padding: 9px 16px; }

/* ---------- Hero (photo behind, navy shade from the left) ---------- */
.hero { position: relative; background: var(--navy-950) url(/brand/hero.webp) 75% 12% / cover no-repeat; color: var(--on-navy-muted); }
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0b1026 0%, rgba(11, 16, 38, .94) 38%, rgba(11, 16, 38, .55) 68%, rgba(11, 16, 38, .25) 100%); }
.hero > * { position: relative; }
.hero-inner { padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 9vw, 124px); max-width: 640px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--eyebrow); }
.hero h1 { margin: 0 0 18px; color: var(--on-navy); font-weight: 800; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; letter-spacing: -.01em; }
.lead { margin: 0 0 28px; font-size: clamp(16px, 1.3vw, 19px); color: var(--on-navy-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Tablets and small laptops: the text column reaches further across the photo, so the shade stays
   strong all the way and the photo moves right. */
@media (min-width: 721px) and (max-width: 1100px) {
  .hero { background-position: 88% 12%; }
  .hero::before { background: linear-gradient(90deg, #0b1026 0%, rgba(11, 16, 38, .94) 55%, rgba(11, 16, 38, .78) 100%); }
}
/* Phones: the smaller photo under an even, strong shade, so the text never sits on her face. */
@media (max-width: 720px) {
  .hero { background-image: url(/brand/hero-900.webp); background-position: 70% 20%; }
  .hero::before { background: rgba(11, 16, 38, .86); }
}

/* ---------- "Trusted by" line ---------- */
.trusted { background: var(--white); border-bottom: 1px solid var(--line); }
.trusted .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 20px; padding-bottom: 20px; }
.trusted-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.trusted-item { font-size: 15px; color: var(--text-2); }
.trusted-item strong { color: var(--text); }
.trusted-item + .trusted-item::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: #94a3b8; margin-right: 28px; vertical-align: middle; }
/* Until the line fits on one row, stack it (no stray separator dot at a line start). */
@media (max-width: 1150px) {
  .trusted .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
  .trusted-item + .trusted-item::before { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6vw, 88px) 0; }
.section-light { background: var(--light); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { margin: 0 0 10px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; color: var(--navy); font-weight: 800; }
.section-intro { margin: 0 0 clamp(28px, 3vw, 44px); max-width: 720px; color: var(--text-2); font-size: 17px; }
.soon { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  vertical-align: middle; background: #e0e7ff; color: #3730a3; white-space: nowrap; }
.available { background: #dcfce7; color: #166534; }

/* Platforms: a compact row of short entries. */
.platforms { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.platforms li { background: var(--white); padding: 18px 20px; }
.platforms h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.platforms p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .platforms { grid-template-columns: 1fr; } }

/* Screenshot + text rows, alternating sides. */
.feature-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(48px, 6vw, 88px); }
.feature-row.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-row.reverse .feature-text { order: 2; }
.feature-text h3 { margin: 0 0 10px; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; color: var(--navy); font-weight: 800; }
.feature-text p { margin: 0 0 10px; color: var(--text-2); font-size: 16.5px; }
.feature-shot { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .06); background: var(--white); }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-text { order: 0; }
}

/* Smaller features: a two-column list of short items. */
.compact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-list li { padding-left: 18px; border-left: 3px solid var(--accent); }
.compact-list h3 { margin: 0 0 4px; font-size: 17px; color: var(--text); }
.compact-list p { margin: 0; color: var(--text-2); font-size: 15.5px; }
@media (max-width: 720px) { .compact-list { grid-template-columns: 1fr; } }

/* How it works: numbered steps. */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr)); color: var(--text-2); }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-size: 15.5px; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  margin-bottom: 12px; border-radius: 50%; background: var(--navy); color: var(--on-navy); font-weight: 800; font-size: 15px; }
.steps strong { color: var(--text); }
.note { margin: 24px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Product cards (company site). */
.products { display: grid; gap: 24px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 2.4vw, 32px); }
.product h3 { margin: 0 0 8px; font-size: 22px; color: var(--navy); }
.product p { margin: 0 0 12px; color: var(--text-2); }
.product ul { margin: 0 0 20px; padding-left: 20px; color: var(--text-2); }
.product li { margin-bottom: 4px; }
.product .feature-shot { margin: 4px 0 20px; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }

/* Contact. */
.contact { text-align: center; }
.contact .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Request a demo form ---------- */
.demo-form { max-width: 780px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 2.4vw, 32px); }
.demo-form label { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.demo-form .optional { font-weight: 400; color: var(--muted); }
.demo-form input, .demo-form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-weight: 400;
  font-size: 15px; color: var(--text); background: var(--white); border: 1px solid #94a3b8; border-radius: 6px; }
.demo-form input:focus, .demo-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.demo-form .full { grid-column: 1 / -1; }
.demo-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo-form .actions { align-items: center; gap: 14px; }
.demo-form .status { margin: 0; font-size: 15px; color: var(--muted); }
.demo-form .status.ok { color: #047857; font-weight: 600; }
.demo-form .status.error { color: #b91c1c; }
@media (max-width: 600px) { .demo-form { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; padding-top: 44px; padding-bottom: 72px; color: var(--text-2); }
.legal h1 { margin: 0 0 4px; font-size: 34px; color: var(--navy); line-height: 1.2; }
.legal .updated { margin: 0 0 32px; color: var(--muted); }
.legal h2 { margin: 36px 0 8px; font-size: 20px; color: var(--text); }
.legal li { margin-bottom: 6px; }
.legal .callout { background: var(--light); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.flush { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-navy-muted); font-size: 14.5px; padding: 40px 0 32px; }
.site-footer .wrap { display: grid; gap: 24px; grid-template-columns: 1fr auto; align-items: start; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--eyebrow); text-decoration: underline; }
.site-footer p { margin: 6px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Narrow screens: the section links fold away before the menu gets crowded. */
@media (max-width: 860px) {
  .site-nav .hide-sm { display: none; }
}
/* ---------- Phones: compact header ---------- */
@media (max-width: 720px) {
  .site-header .wrap { min-height: 60px; gap: 10px; }
  .site-nav { gap: 12px; }
  .site-nav .hide-sm { display: none; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .site-nav .btn { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 380px) {
  .site-nav .hide-xs { display: none; }
}
