/* trojansystems.co.uk. One stylesheet for every page; generated pages come from build.js.
   Tokens are the fixed brand palette (see the design handoff): bronze is an accent only,
   never small text; bronze dark carries white text. Square corners except phone frames. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 500 900;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bronze: #AD783B;
  --bronze-dark: #986A34;
  --bronze-hover: #7F5729;
  --bronze-light: #E2C29C;
  --charcoal: #292A2B;
  --white: #FFFFFF;
  --body-grey: #4A4B4D;
  --on-dark: #DAD8D4;
  --on-dark-muted: #C9C7C4;
  --rule: #DDD9D2;
  --rule-dark: #3A3B3D;
  --rule-dark-2: #45474A;
  --shot-bg: #F4F5F7;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(20px, 5.5vw, 80px);
  --section: clamp(72px, 8vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bronze-dark); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--white); color: var(--charcoal); padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 16px; }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.dark { background: var(--charcoal); color: var(--white); }
.dark a:hover { color: var(--bronze-light); }
.bronze-ground { background: var(--bronze-dark); color: var(--white); }
.bronze-ground a:hover { color: var(--white); }

.eyebrow {
  font-family: var(--display); font-size: 14px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--body-grey);
}
.dark .eyebrow { color: var(--on-dark-muted); }
.bronze-ground .eyebrow { color: var(--white); }

.h1 {
  font-size: clamp(56px, 7.6vw, 112px); line-height: .92; font-weight: 900;
  font-stretch: 118%; letter-spacing: -.025em;
}
.h1 .accent { color: var(--bronze); }
.page-title {
  font-size: clamp(44px, 6vw, 88px); line-height: .95; font-weight: 900;
  font-stretch: 116%; letter-spacing: -.02em;
}
.h2 {
  font-size: clamp(38px, 4vw, 56px); line-height: 1; font-weight: 800;
  font-stretch: 112%; letter-spacing: -.015em;
}
.h3 { font-size: clamp(26px, 2.4vw, 30px); line-height: 1.1; font-weight: 800; font-stretch: 110%; }
.h4 { font-size: 24px; line-height: 1.15; font-weight: 800; font-stretch: 108%; }
.lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; max-width: 640px; }
.dark .lede, .dark .body { color: var(--on-dark); }
.body { font-size: 19px; line-height: 1.55; color: var(--body-grey); max-width: 560px; }
.muted { color: var(--body-grey); }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rule-bar { width: 64px; height: 4px; background: var(--bronze); }

/* Buttons and links */
.btn {
  display: inline-block; padding: 17px 28px; font-size: 18px; font-weight: 700;
  line-height: 1.2; text-align: center; border: 0; cursor: pointer;
}
.btn-primary { background: var(--bronze-dark); color: var(--white); }
.btn-primary:hover { background: var(--bronze-hover); color: var(--white); }
.btn-outline { border: 1.5px solid currentColor; padding: 15.5px 26px; }
.btn-outline:hover { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.dark .btn-outline:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.btn-white { background: var(--white); color: var(--charcoal); }
.btn-white:hover { background: var(--charcoal); color: var(--white); }
.btn-block { display: block; width: 100%; }
.text-link {
  align-self: flex-start; font-size: 18px; font-weight: 700;
  border-bottom: 2px solid var(--bronze); padding-bottom: 4px;
}
.prose a, .inline-link { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* Header */
.site-header { background: var(--charcoal); color: var(--white); position: relative; z-index: 4; }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 22px; border-bottom: 1px solid var(--rule-dark);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 44px; width: auto; }
/* The name is set as text beside the horse: the drawn lockups still say Trojan Systems. */
.logo-name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 2px; color: var(--white); white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; font-size: 17px; font-weight: 600; }
.nav a[aria-current="page"] { color: var(--bronze-light); }
.nav .signin { border: 1.5px solid var(--white); padding: 10px 18px; }
.nav .signin:hover { background: var(--white); color: var(--charcoal); }
.menu { display: none; }
.menu summary {
  list-style: none; cursor: pointer; border: 1.5px solid var(--white);
  padding: 9px 16px; font-weight: 700; font-size: 17px;
}
.menu summary::-webkit-details-marker { display: none; }
@media (max-width: 899px) {
  .nav-wide { display: none; }
  .menu { display: block; }
  .menu[open] summary { background: var(--white); color: var(--charcoal); }
  .menu .nav {
    position: absolute; left: 0; right: 0; z-index: 5; margin-top: 23px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--charcoal); border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
    padding: 8px var(--gutter) 24px;
  }
  .menu .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule-dark); }
  .menu .nav .signin { margin-top: 16px; text-align: center; border-bottom: 1.5px solid var(--white); }
}

/* Home hero */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(48px, 6vw, 96px); align-items: start;
  padding-block: clamp(56px, 8vw, 112px) clamp(160px, 14vw, 210px);
}
.hero .stack { gap: 32px; }
.demo-card {
  background: var(--white); color: var(--charcoal); padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 24px; max-width: 520px; width: 100%; justify-self: end;
}
.demo-card .title { font-family: var(--display); font-size: 30px; font-weight: 800; font-stretch: 110%; line-height: 1.1; }
.demo-card p { font-size: 18px; color: var(--body-grey); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 17px; line-height: 1.45; }
.steps .n { font-family: var(--display); font-weight: 800; color: var(--bronze-dark); }
.demo-card .or { font-size: 16px; color: var(--body-grey); text-align: center; }
.demo-card .or a { font-weight: 700; color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; }
.dark .demo-card a.inline-link:hover, .demo-card .or a:hover { color: var(--bronze-dark); }
.hero-shot { margin-top: clamp(-150px, -11vw, -110px); }

/* Screenshots */
.shot {
  border: 1px solid var(--rule); background: var(--shot-bg); overflow: hidden; margin: 0;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot.lift { box-shadow: 0 24px 60px -30px rgba(41, 42, 43, .45); }
.ar-hero { aspect-ratio: 16 / 8.5; }
.ar-wide { aspect-ratio: 16 / 8; }
.ar-43 { aspect-ratio: 4 / 3; }
.ar-1610 { aspect-ratio: 16 / 10; }
.pos-tr img { object-position: top right; }
.dark .shot { border-color: var(--rule-dark); background: var(--white); }
figcaption.cap { font-size: 16px; color: var(--body-grey); margin-top: 12px; }
.dark figcaption.cap { color: var(--on-dark); }

/* Rows: number, title, text | screenshot */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px 48px; align-items: center; padding-block: 36px; border-top: 1px solid var(--rule);
}
.row-text { display: flex; gap: 28px; align-items: baseline; min-width: 0; }
.big-n {
  font-family: var(--display); font-size: 48px; font-weight: 900; font-stretch: 118%;
  color: var(--bronze); line-height: 1; flex: none;
}
.row-text .body { font-size: 18px; max-width: 520px; }
.row-text ul { margin: 4px 0 0; padding-left: 20px; color: var(--body-grey); font-size: 18px; }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px;
}
.section-head .h2 { max-width: 760px; }

.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px; align-items: center;
}

/* Phones */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.phone { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.phone .frame { border: 6px solid var(--charcoal); border-radius: 28px; overflow: hidden; background: var(--white); aspect-ratio: 9 / 17; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone figcaption { font-size: 16px; font-weight: 600; text-align: center; }

/* Pricing */
.price-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.price-head img { width: clamp(72px, 9vw, 132px); height: auto; }
.price-title {
  font-size: clamp(40px, 5.4vw, 80px); line-height: .95; font-weight: 900; font-stretch: 116%; letter-spacing: -.02em;
}
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.compare-card { border: 2px solid rgba(255, 255, 255, .45); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.compare-card .them-label { font-size: 15px; font-weight: 600; }
.compare-card .them { font-size: 19px; line-height: 1.4; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.compare-card .us-block { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .4); }
.compare-card .us { font-family: var(--display); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.05; font-weight: 800; font-stretch: 110%; }
.compare-card .us-body { font-size: 18px; line-height: 1.5; }
.price-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.price-foot p { font-size: clamp(18px, 1.5vw, 21px); max-width: 720px; }

/* Three columns with a top rule */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; }
.col { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 2px solid var(--charcoal); }
.col p { font-size: 18px; color: var(--body-grey); }
.dark .col { border-top-color: var(--bronze); }
.dark .col p { color: var(--on-dark); }

/* Contact cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.card-dark, .card-line { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 20px; min-height: 300px; }
.card-dark { background: var(--charcoal); color: var(--white); }
.card-dark p { color: var(--on-dark); font-size: 18px; max-width: 460px; }
.card-dark .eyebrow { color: var(--on-dark-muted); }
.card-line { border: 2px solid var(--charcoal); }
.card-line p { color: var(--body-grey); font-size: 18px; max-width: 460px; }
.card-title { font-family: var(--display); font-size: clamp(34px, 3.2vw, 44px); font-weight: 850; font-stretch: 112%; line-height: 1; }
.card-email { font-family: var(--display); font-size: clamp(26px, 3.2vw, 44px); font-weight: 850; font-stretch: 112%; line-height: 1; overflow-wrap: anywhere; }
.card-dark .btn, .card-line .btn { margin-top: auto; align-self: flex-start; }

/* Inner page hero */
.page-hero { padding-block: clamp(56px, 7vw, 104px); }
.page-hero .stack { max-width: 960px; }
.crumbs { font-size: 15px; color: var(--on-dark-muted); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { margin-inline: 8px; }

/* Questions and answers */
.faq { display: flex; flex-direction: column; }
.faq .qa { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px 48px; padding-block: 28px; border-top: 1px solid var(--rule); }
.faq h3 { font-size: 24px; line-height: 1.2; font-weight: 800; font-stretch: 108%; }
.faq p { color: var(--body-grey); font-size: 18px; }
.faq p + p { margin-top: 12px; }

/* Long-form pages: policies, terms */
.prose { max-width: 760px; font-size: 18px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.1; font-weight: 800; font-stretch: 110%; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); }
.prose h3 { font-size: 21px; line-height: 1.25; font-weight: 800; font-stretch: 106%; margin-top: 28px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose .note { background: var(--shot-bg); border-left: 4px solid var(--bronze); padding: 18px 20px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); }
.prose th { font-family: var(--display); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--body-grey); }
.table-wrap { overflow-x: auto; }
.layout-doc { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 24px; font-size: 16px; border-top: 2px solid var(--charcoal); padding-top: 18px; }
.toc ol { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 1023px) { .layout-doc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; order: -1; } }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--on-dark); }
.site-footer .inner { padding-block: 72px 40px; display: flex; flex-direction: column; gap: 56px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { height: 72px; width: auto; }
.foot-brand .logo-name { display: block; font-size: 26px; }
.foot-tagline { display: block; margin-top: 6px; color: var(--on-dark-muted); font-size: 16px; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(150px, auto)); gap: 12px 48px; font-size: 16px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 15px; border-top: 1px solid var(--rule-dark-2); padding-top: 24px; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a:hover { color: var(--bronze-light); }
@media (max-width: 479px) { .foot-links { grid-template-columns: 1fr; } .foot-brand img { height: 56px; } }
