/* ==========================================================================
   TSA Server — tsaserver.com
   Sober, business-oriented identity.
   Palette: ink navy / slate / steel-blue accent on white.
   Type: IBM Plex Sans (display + body), IBM Plex Mono (protocol / spec data).
   ========================================================================== */

:root {
  --ink: #14212f;
  --slate: #46586c;
  --muted: #6b7c8f;
  --line: #dde4ec;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-deep: #0f1b28;
  --accent: #1a5d9f;
  --accent-deep: #123f6e;
  --accent-soft: #e8f0f8;
  --ok: #1e7f4f;
  --radius: 6px;
  --maxw: 1120px;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }

.brand .brand-mark {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent);
  font-size: 17px;
}

.brand .brand-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.main-nav { display: flex; align-items: center; gap: 26px; }

.main-nav a {
  color: var(--slate);
  font-size: 15px;
  font-weight: 500;
}
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
  padding-bottom: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 84px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero .lede {
  font-size: 18.5px;
  color: var(--slate);
  max-width: 54ch;
  margin-bottom: 32px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15.5px;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }

.btn-secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--slate); }

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.hero-note .mono { font-family: var(--mono); font-size: 13px; }

/* Hero illustration: Acrobat timestamp validation screenshot */

.hero-image {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 18px 44px rgba(15, 27, 40, 0.18);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section { padding: 76px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: 44px; }

h2 {
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 600;
  margin-bottom: 14px;
}

.section-head p { color: var(--slate); font-size: 17px; }

h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }

/* Card grids */

.grid { display: grid; gap: 26px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card p { color: var(--slate); font-size: 15.5px; }

.card .card-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Check list */

.checklist { list-style: none; }
.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--slate);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ok);
  font-weight: 700;
}
.checklist li strong { color: var(--ink); }

/* Spec table */

.spec-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  width: 34%;
  color: var(--ink);
  font-weight: 600;
  background: var(--bg-soft);
}
.spec-table td { color: var(--slate); }
.spec-table td .mono, td.mono { font-family: var(--mono); font-size: 14px; color: var(--ink); }

/* Pricing */

.price-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  max-width: 560px;
  padding: 40px 42px;
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 6px;
}
.price-figure .amount {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.price-figure .terms { color: var(--muted); font-size: 15px; }
.price-figure .amount-from { font-size: 24px; font-weight: 500; color: var(--slate); margin-right: 2px; }
.price-note { color: var(--muted); font-size: 15px; margin-top: 2px; }

.price-card .from { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Steps (use cases page intro / how it works) */

.usecase {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}
.usecase:last-of-type { border-bottom: 1px solid var(--line); }

.usecase .uc-label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.usecase h3 { font-size: 21px; }
.usecase .uc-body p { color: var(--slate); margin-bottom: 14px; }
.usecase .uc-body p:last-child { margin-bottom: 0; }

.uc-onprem {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--accent-deep);
}
.uc-onprem strong { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 4px; }

/* CTA band */

.cta-band {
  background: var(--bg-deep);
  color: #dbe6f0;
  padding: 64px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #9fb2c5; max-width: 60ch; margin-bottom: 26px; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(219, 230, 240, 0.35); }
.cta-band .btn-secondary:hover { border-color: #fff; }

/* Downloads */

.dl-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.dl-item:first-child { border-top: 1px solid var(--line); }
.dl-item .dl-meta { color: var(--muted); font-size: 14px; font-family: var(--mono); white-space: nowrap; }

/* Footer */

.site-footer {
  background: var(--bg-deep);
  color: #9fb2c5;
  padding: 52px 0 40px;
  font-size: 14.5px;
}
.site-footer a { color: #c7d5e4; }
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-weight: 500;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(199, 213, 228, 0.15);
  margin-top: 40px;
  padding-top: 22px;
  font-size: 13px;
  color: #7d90a3;
}
.footer-bottom .wrap { display: block; }

/* Page headers (inner pages) */

.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 58px 0 50px;
}
.page-head h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 12px;
}
.page-head p { color: var(--slate); font-size: 17.5px; max-width: 70ch; }

/* Prose blocks */

.prose { max-width: 760px; }
.prose p { color: var(--slate); margin-bottom: 16px; }
.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 + p, .prose h2 + ul { margin-top: 12px; }
.prose ul { color: var(--slate); padding-left: 24px; margin-bottom: 16px; }
.prose li { margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.contact-form { max-width: 680px; }

.form-row { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 7px;
}
.contact-form label .req { color: var(--accent); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.contact-form textarea { min-height: 170px; resize: vertical; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Honeypot: hidden from humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 15px;
}
.form-status.ok {
  display: block;
  background: #e9f6ef;
  border: 1px solid #bfe3cf;
  color: var(--ok);
}
.form-status.err {
  display: block;
  background: #fbeeee;
  border: 1px solid #ecc8c8;
  color: #a03434;
}

.form-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 54px; padding-bottom: 60px; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .usecase { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  section { padding: 56px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .dl-item { flex-direction: column; align-items: flex-start; gap: 8px; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 28px; }
  .main-nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
}
