/* tempusguard.com: one stylesheet, system fonts, no external assets */

:root {
  --navy: #1e3358;
  --navy-dark: #152743;
  --gold: #b8952a;
  --gold-text: #7a6118;  /* gold darkened for text on white (AA contrast) */
  --ink: #1f2933;
  --muted: #52606d;
  --line: #dde3ea;
  --tint: #f4f6f9;
  --white: #fff;
  --radius: 6px;
  --wrap: 80rem;
  --measure: 42rem;      /* about 70 characters at body size */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy-dark); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3 { color: var(--navy-dark); line-height: 1.25; font-family: var(--serif); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 2em 0 0.6em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 0.4em; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--navy-dark); color: var(--white);
  padding: 0.5rem 1rem; z-index: 10; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 1.5rem; } }

/* Header */

.site-header { background: var(--navy-dark); color: var(--white); border-bottom: 3px solid var(--gold); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; min-height: 4rem; padding-block: 0.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--white); text-decoration: none;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.01em;
}
.brand:hover { color: var(--white); }
/* Approved logo kit artwork (horizontal-reverse.svg); kit minimum width is 140px */
.brand img { display: block; width: auto; height: 2rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; align-items: center; }
.site-nav a { color: #e6ebf2; text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--white); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); }

/* Buttons */

.btn {
  display: inline-block; padding: 0.7rem 1.3rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: #cba63a; color: var(--navy-dark); }
.btn-outline { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.site-nav .btn { padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.site-nav .btn-outline { color: var(--white); }

/* Landing page */

.hero { background: var(--navy); color: var(--white); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.hero h1 { color: var(--white); max-width: 28ch; }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 40rem; color: #e6ebf2; margin: 0 0 2rem; }
.hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.eyebrow {
  color: var(--gold-text); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.8rem; font-weight: 700; margin: 0 0 0.75rem;
}
.hero .eyebrow { color: #d9b850; }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.tint { background: var(--tint); }
.section > .wrap > h2:first-child, .section-head h2 { margin-top: 0; }
.section-head { max-width: var(--measure); margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin: 0; }

/* Hero: navy gradient with a gold arc along the bottom, product shot in a tilted frame */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 65% at 72% 42%, rgba(84, 116, 178, 0.32), transparent 70%),
    linear-gradient(165deg, #22396a 0%, #182c52 50%, #101f3d 100%);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(6rem, 22vw, 15rem);
  background: url("/img/hero-arc.svg") no-repeat center bottom / 100% 100%;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
.hero-shot { margin: 0; perspective: 2200px; }
/* Screenshots are too small to read on phones */
@media (max-width: 39.99rem) { .hero-shot, .faq-shot { display: none; } }
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; }
}
.device {
  background: #0b1427; padding: clamp(6px, 1vw, 12px); border-radius: clamp(12px, 2vw, 24px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 2px #31446a,
    0 2.5rem 5rem rgba(3, 8, 20, 0.55),
    0 0.75rem 1.5rem rgba(3, 8, 20, 0.35);
}
.device img { display: block; width: 100%; height: auto; border-radius: clamp(6px, 1.2vw, 14px); }
@media (min-width: 64rem) {
  .hero .device { transform: rotateY(-11deg) rotateX(3deg); transform-origin: 40% 50%; }
}
.hero .btn { padding: 0.9rem 1.4rem; font-size: 1.05rem; border-radius: 8px; }
.hero .reassure { color: #e6ebf2; font-size: 0.98rem; margin: 1.5rem 0 0; max-width: 40rem; }

.section.bridge { padding-bottom: clamp(1rem, 3vw, 2rem); }
.section.bridge .section-head { max-width: 48rem; margin-bottom: 0; }
.section.bridge .section-head p { color: var(--ink); }
.bridge-line { color: var(--muted); margin: 2rem 0 0; font-style: italic; }

.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step; background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.4rem;
}
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 700; margin-bottom: 0.6rem;
}
.steps h3 { margin: 0 0 0.35rem; }
.steps p { margin: 0; color: var(--muted); }

.features { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .features { grid-template-columns: repeat(2, 1fr); } }
.features h3 { margin: 0 0 0.3rem; padding-left: 0.85rem; border-left: 3px solid var(--gold); }
.features p { margin: 0; color: var(--muted); }

.security { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .security { grid-template-columns: 3fr 2fr; align-items: start; } }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: 0.85rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.5em;
  width: 0.55rem; height: 0.9rem; border: solid var(--gold); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.panel h3 { margin-top: 0; }
.panel ul { margin: 0; padding-left: 1.2rem; }
.panel li { margin-bottom: 0.4rem; }
.note { color: var(--muted); font-size: 0.95rem; }

.split { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .split { grid-template-columns: 3fr 2fr; align-items: start; } }
.split .section-head { margin-bottom: 0; }
.section-head p + p { margin-top: 1rem; }
.section-head .fine-print {
  color: var(--ink); font-size: 0.95rem;
  border-left: 3px solid var(--gold); padding-left: 0.85rem;
}
.panel .note { margin: 1rem 0 0; }

@media (min-width: 48rem) { .checklist.cols { columns: 2; column-gap: 2.5rem; } }
.checklist.cols li { break-inside: avoid; }

.link-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.faq { max-width: var(--measure); }
.faq-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
.faq-shot { margin: 0; }
.faq-shot .device { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 1.25rem 2.5rem rgba(15, 29, 56, 0.25); }
@media (min-width: 64rem) {
  .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3.5rem; align-items: start; }
  /* Stays in view while answers open and close */
  .faq-shot { position: sticky; top: 2rem; margin-top: 4.25rem; }
}
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.6rem; }
.faq summary {
  cursor: pointer; padding: 0.85rem 1.1rem 0.85rem 2.6rem; font-weight: 600; color: var(--navy-dark);
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
/* Our own marker, inside the card, so it lines up the same in every browser */
.faq summary::before {
  content: ""; position: absolute; left: 1.1rem; top: calc(0.85rem + 0.825em); /* middle of the first line */
  border-style: solid; border-width: 0.32rem 0 0.32rem 0.5rem;
  border-color: transparent transparent transparent var(--gold-text);
  transform: translateY(-50%); transition: transform 0.15s ease;
}
.faq details[open] summary::before { transform: translateY(-50%) rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .faq summary::before { transition: none; } }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { margin: 0; padding: 0.85rem 1.1rem 1rem; color: var(--ink); }

.cta { background: var(--navy-dark); color: var(--white); text-align: center; }
.cta .eyebrow { color: #d9b850; }
/* Centred paragraphs are hard to read on a narrow screen */
@media (max-width: 40rem) { .cta { text-align: left; } }
.cta h2 { color: var(--white); margin-top: 0; }
.cta p { color: #e6ebf2; max-width: 40rem; margin: 0 auto 1rem; }
.cta .actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Demonstration request form */

.wrap.narrow { max-width: 46rem; }
.request-form {
  text-align: left; max-width: 46rem; margin: 2rem auto 0;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem);
}
.cta .request-form p { color: var(--muted); max-width: none; margin: 0; }
.form-grid { display: grid; gap: 1.1rem 1.5rem; grid-template-columns: 1fr; margin-bottom: 1.5rem; }
@media (min-width: 40rem) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; color: var(--navy-dark); margin-bottom: 0.3rem; }
.field .req, .field .opt { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.field input, .field select, .field textarea {
  display: block; width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #8592a3; border-radius: var(--radius); padding: 0.55rem 0.7rem;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--navy); }
.field [aria-invalid="true"] { border: 2px solid #b42318; }
.field .hint { font-size: 0.92rem; margin: 0 0 0.4rem; }
.cta .request-form .field .hint { color: var(--ink); font-weight: 600; }
.field-error, .cta .request-form .field-error { color: #b42318; font-weight: 600; font-size: 0.95rem; margin: 0 0 0.35rem; }
.error-summary {
  border: 2px solid #b42318; border-radius: var(--radius); background: #fef3f2;
  padding: 1rem 1.25rem; margin: 0 0 1.5rem; color: var(--ink);
}
.error-summary h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: #b42318; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary p { margin: 0; }
.cta .request-form .error-summary a, .request-form a { color: var(--navy); }
.request-form .btn { border: 0; cursor: pointer; font-size: 1rem; }
.form-note { font-size: 0.92rem; color: var(--muted); }
.cta .request-form .form-note { margin-top: 1rem; }
.request-form > .form-note { margin: 1rem 0 0; }
/* Honeypot: off-screen for people, still present for form-filling scripts */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Legal pages */

.legal { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.legal .doc { max-width: var(--measure); margin: 0 auto; }
.legal h1 { margin-bottom: 0.3em; }
.legal h2 { padding-top: 0.25rem; scroll-margin-top: 1rem; }
.legal .meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.5rem; }
.legal .standing {
  border-left: 3px solid var(--gold); background: var(--tint);
  padding: 0.75rem 1rem; margin: 0 0 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: 0.5rem; }

.toc {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: 0 0 2rem; background: var(--white);
}
.toc h2 { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 0.5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2 14rem; column-gap: 2rem; }
.toc li { margin: 0 0 0.3rem; break-inside: avoid; font-size: 0.95rem; }

/* Wide content (tables, annexes) may exceed the reading measure */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 4px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--tint); color: var(--navy-dark); border-bottom: 2px solid var(--navy); }
tbody th { color: var(--navy-dark); width: 11rem; }
.legal.wide .doc { max-width: 60rem; }
.legal.wide .prose { max-width: var(--measure); }

.signatures { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.signatures .party { margin-bottom: 1.5rem; }
.signatures dl { display: grid; grid-template-columns: max-content 1fr; gap: 1rem 1rem; margin: 0.5rem 0 0; }
.signatures dt { color: var(--muted); }
.signatures dd { margin: 0; border-bottom: 1px solid var(--ink); min-height: 1.6em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* Footer */

.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding: 2rem 0; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: flex-start; }
.site-footer p { margin: 0 0 0.3rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.site-footer a { color: var(--navy); }

@media print {
  .site-header, .site-footer, .toc, .skip-link { display: none; }
  body { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
  .legal .doc, .legal.wide .doc { max-width: none; }
}
