/* PASSCO Technologies — site styles
   Palette: pine #1E6B55, jade #46A188, trace #3F8F7C, ink #16261F, slate #4F605A, paper #F4F7F5, rule #D3DDD8
   Type: Barlow Semi Condensed (headings), Atkinson Hyperlegible Next (body) — both OFL, self-hosted */

@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-next-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/atkinson-next-700.woff2") format("woff2"); }

:root {
  --pine: #1E6B55;
  --pine-deep: #134A3B;
  --jade: #46A188;
  --trace: #3F8F7C;
  --ink: #16261F;
  --slate: #4F605A;
  --paper: #F4F7F5;
  --mist: #E6EFEA;
  --white: #FFFFFF;
  --rule: #D3DDD8;
  --ph-bg: #FFE48A;
  --ph-line: #B98A00;

  --display: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Atkinson Hyperlegible Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;   /* 17px */
  --step-1: 1.25rem;     /* 20px */
  --step-2: 1.5rem;      /* 24px */
  --step-3: 1.875rem;    /* 30px */
  --step-4: 2.5rem;      /* 40px */
  --step-5: clamp(2.4rem, 1.6rem + 3.2vw, 3.75rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--pine); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--jade); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.005em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: var(--step-5); font-weight: 700; letter-spacing: -0.012em; }
h2 { font-size: var(--step-4); margin-top: 0; }
h3 { font-size: var(--step-2); }
p, ul, ol, dl, table { margin: 0 0 1.1em; }
p, li, dd { max-width: 68ch; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 700; }
address { font-style: normal; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* Placeholders: visible until the real value is filled in */
.ph { background: var(--ph-bg); color: var(--ink); padding: 0 0.25em; border-radius: 2px; outline: 1px dashed var(--ph-line); font-weight: 700; font-size: 0.92em; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-icon { width: 44px; height: auto; }
.brand-word { width: 138px; height: auto; }
.brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-solutions > a { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: var(--radius); display: block; }
.nav > a:hover, .nav-solutions > a:hover, .nav a[aria-current="page"] { color: var(--pine); background: var(--mist); }
.nav-solutions { position: relative; }
.nav-solutions .submenu { position: absolute; top: 100%; left: 0; min-width: 320px; background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--pine); padding: 8px; display: none; list-style: none; margin: 0; }
.nav-solutions:hover .submenu, .nav-solutions:focus-within .submenu { display: block; }
.submenu li { margin: 0; }
.submenu a { display: block; padding: 8px 10px; text-decoration: none; color: var(--ink); border-radius: var(--radius); }
.submenu a:hover { background: var(--mist); color: var(--pine); }
.nav-cta { margin-left: 8px; }
.menu-mobile { display: none; }

/* Buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; padding: 12px 20px; border-radius: var(--radius); text-decoration: none; border: 2px solid var(--pine); }
.btn-primary { background: var(--pine); color: var(--white); }
.btn-primary:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: var(--white); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--pine); }
.btn-secondary:hover { background: var(--mist); color: var(--pine-deep); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--rule); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.hero h1 { max-width: 14ch; margin-bottom: 0.4em; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); max-width: 60ch; }
.hero-traces { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: min(820px, 70vw); height: auto; color: var(--jade); opacity: 0.22; pointer-events: none; }
.hero-traces path, .hero-traces circle { stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .hero-traces path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.6s ease-out 0.2s forwards; }
  .hero-traces circle { opacity: 0; animation: node 0.4s ease-out 1.5s forwards; }
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes node { to { opacity: 1; } }

/* Spec sheet (credentials at a glance) */
.spec { position: relative; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--pine); padding: 22px 24px 8px; }
.spec h2 { font-size: var(--step-2); margin-bottom: 12px; }
.spec table { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.98rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 10px 0; border-top: 1px solid var(--rule); }
.spec thead th { border-top: 0; padding-top: 0; font-family: var(--display); font-size: 1.05rem; color: var(--slate); font-weight: 600; }
.spec tbody th { font-weight: 700; width: 42%; padding-right: 14px; color: var(--slate); }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-band { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head p { color: var(--slate); font-size: var(--step-1); }

/* Solution grid — rule-separated, not boxed */
.solutions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 48px); row-gap: 8px; list-style: none; padding: 0; margin: 0; }
.solutions li { border-top: 2px solid var(--ink); padding: 22px 0 26px; margin: 0; max-width: none; }
.solutions .icon { width: 40px; height: 40px; color: var(--pine); margin-bottom: 12px; }
.solutions h3 { margin-bottom: 8px; }
.solutions h3 a { color: var(--ink); text-decoration: none; }
.solutions h3 a:hover { color: var(--pine); text-decoration: underline; }
.solutions p { color: var(--slate); margin-bottom: 0; }

/* Three-point rows */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin: 0; }
.points > div { border-left: 3px solid var(--jade); padding-left: 18px; }
.points h3 { font-size: var(--step-2); margin-bottom: 6px; }
.points p { margin: 0; color: var(--ink); }

/* Brands */
.brand-list { display: flex; flex-wrap: wrap; gap: 10px 12px; list-style: none; padding: 0; margin: 0 0 18px; }
.brand-list li { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.25rem; border: 1px solid var(--rule); background: var(--white); padding: 6px 14px; border-radius: var(--radius); }

/* FAQ — always open, never hidden */
.faq { margin: 0; border-top: 1px solid var(--rule); max-width: 880px; }
.faq dt { font-family: var(--display); font-weight: 600; font-size: var(--step-2); line-height: 1.2; padding-top: 22px; color: var(--ink); max-width: none; }
.faq dd { margin: 8px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--rule); max-width: none; }

/* Inner pages */
.page-head { background: var(--white); border-bottom: 1px solid var(--rule); padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 5vw, 48px); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); max-width: 26ch; }
.crumbs { font-size: var(--step--1); margin-bottom: 18px; color: var(--slate); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--slate); }
.answer { font-size: var(--step-1); line-height: 1.55; max-width: 64ch; margin-bottom: 0; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.content > section { padding: 0 0 8px; }
.content > section + section { padding-top: 24px; border-top: 1px solid var(--rule); }
.content h2 { font-size: var(--step-3); }
.aside { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--pine); padding: 22px; }
.aside h2 { font-size: var(--step-2); }
.aside p { font-size: 0.98rem; }
.aside .btn { width: 100%; text-align: center; margin-bottom: 10px; }
.aside dl { margin: 16px 0 0; font-size: 0.95rem; }
.aside dt { font-weight: 700; color: var(--slate); }
.aside dd { margin: 0 0 10px; }

/* Data tables */
.table-wrap table { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--rule); background: var(--white); }
.data { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 640px; }
.data caption { text-align: left; padding: 14px 16px 0; font-family: var(--display); font-weight: 600; font-size: var(--step-1); }
.data th, .data td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.data thead th { font-family: var(--display); font-weight: 600; font-size: 1.05rem; border-bottom: 2px solid var(--pine); background: var(--white); }
.data tbody tr:last-child th, .data tbody tr:last-child td { border-bottom: 0; }
.data tbody th { font-weight: 700; }

ol.steps { list-style: none; padding: 0; counter-reset: step; margin: 0 0 1.4em; }
ol.steps li { counter-increment: step; position: relative; padding: 0 0 18px 56px; margin: 0; max-width: 68ch; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border: 2px solid var(--pine); border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--pine); }

dl.routes { margin: 0 0 1.4em; }
dl.routes dt { font-family: var(--display); font-weight: 600; font-size: var(--step-2); margin-top: 18px; }
dl.routes dd { margin: 4px 0 0; }

.cta-band { background: var(--pine); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.cta-band h2 { color: var(--white); font-size: var(--step-3); margin: 0; }
.cta-band p { margin: 6px 0 0; color: #DCEBE4; }
.cta-band .btn-primary { background: var(--white); color: var(--pine); border-color: var(--white); }
.cta-band .btn-primary:hover { background: var(--mist); color: var(--pine-deep); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.nap { font-style: normal; }
.nap dt { font-weight: 700; color: var(--slate); margin-top: 14px; }
.nap dd { margin: 2px 0 0; }
form.quote { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--pine); padding: clamp(20px, 3vw, 32px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--slate); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #9DB0A8; border-radius: var(--radius); padding: 11px 12px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--pine); outline: 3px solid rgba(70,161,136,0.35); outline-offset: 0; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.92rem; color: var(--slate); }

/* Footer */
.site-footer { background: var(--pine-deep); color: #DCEBE4; padding: 56px 0 32px; margin-top: 0; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)); gap: 32px; }
.site-footer h2 { color: var(--white); font-size: 1.35rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.18); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-legal p { margin: 0; max-width: none; }
.site-footer .ph { color: var(--ink); }

/* Prose pages (privacy, terms) */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--step-3); margin-top: 1.4em; }

/* Responsive */
@media (max-width: 1020px) {
  .nav, .nav-cta { display: none; }
  .menu-mobile { display: block; }
  .menu-mobile summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.15rem; border: 2px solid var(--pine); color: var(--pine); border-radius: var(--radius); padding: 8px 14px; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile[open] summary { background: var(--pine); color: var(--white); }
  .menu-mobile nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 18px; max-height: calc(100vh - 76px); overflow-y: auto; }
  .menu-mobile ul { list-style: none; margin: 0; padding: 0; }
  .menu-mobile li { margin: 0; border-top: 1px solid var(--rule); }
  .menu-mobile li.sub a { padding-left: 18px; font-family: var(--body); font-weight: 400; font-size: 1rem; }
  .menu-mobile a { display: block; padding: 12px 0; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
  .menu-mobile .btn { margin-top: 12px; text-align: center; display: block; color: var(--white); }
  .hero .wrap { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .solutions, .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .brand-word { width: 116px; }
  .brand-icon { width: 38px; }
  .solutions, .points { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-traces { display: none; }
  .spec { padding: 18px 16px 4px; }
}

@media print {
  .site-header, .site-footer, .cta-band, .aside, .hero-traces, .menu-mobile { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  a { color: #000; }
  .layout { grid-template-columns: 1fr; }
  .page-head, .hero { border: 0; }
}
