/* Shared layout for the service pages and the 404.
   Tokens match public/index.html. Change a brand color in both, or they drift. */
:root {
  --black: #0B0C0E;
  --ink-2: #16181C;
  --paper: #FFFFFF;
  --blue-pale: #EBF3FD;
  --blue-pale-2: #F5F8FE;
  --blue: #0047F5;
  --blue-deep: #0030E5;
  --blue-soft: rgba(0,71,245,0.18);
  --blue-lift: #4D86FF;
  --blue-btn: #0047F5;
  --text: #0B0C0E;
  --muted: #545A63;
  --on-black: #EDEFF2;
  --muted-black: #9AA2AD;
  --hairline: #DBE4EC;
  --hairline-ink: rgba(255,255,255,0.12);
  --radius: 3px;
  --maxw: 1120px;
  --serif: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,'Times New Roman',serif;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Segoe UI Mono', Consolas, 'Liberation Mono', monospace;
  --grad-brand: linear-gradient(135deg, #00ACFD 0%, #0047F5 55%, #000481 100%);
}

.nav, .hero, .band-ink, .on-ink, footer { --blue: var(--blue-lift); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-brand); z-index: 200; }

.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); background: var(--paper); color: var(--black); padding: 12px 16px; z-index: 300; }
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; display: inline-block; opacity: 0.75; }
.on-ink .eyebrow, .band-ink .eyebrow, .hero .eyebrow { color: var(--blue); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; }
h2 {
  font-size: clamp(1.95rem, 4vw, 2.95rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  text-wrap: balance;
  max-width: 22ch;
}
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.06rem, 1.7vw, 1.28rem); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.accent { color: var(--blue); }

.nav { position: sticky; top: 3px; z-index: 50; background: rgba(11,12,14,0.86); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--hairline-ink); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; height: auto; padding-block: 12px; }
.brand { display: inline-block; line-height: 0; text-decoration: none; flex: 0 0 auto; }
.brand img { display: block; height: 26px; width: auto; }
.nav-links { display: flex; gap: 1.15rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-black);
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--on-black); }
.nav-links a.here { color: var(--on-black); }
.nav-cta { color: #FFFFFF !important; background: var(--blue-btn); padding: 0.5rem 0.95rem; border-radius: var(--radius); font-weight: 600; }
.nav-cta:hover { background: #2E6BFF; color: #FFFFFF; }
@media (max-width: 980px) { .nav-links { gap: 0.85rem; } .nav-links a { font-size: 0.7rem; } }
@media (max-width: 720px) { .nav-links a.hide-sm { display: none; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6ch;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-accent { background: var(--blue-btn); color: #FFFFFF; }
.btn-accent:hover { background: #2E6BFF; transform: translateY(-1px); }
.btn .arrow { transition: transform 0.16s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.hero { background: var(--black); color: var(--on-black); }
.hero.compact .wrap { min-height: 0; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(56px, 8vh, 100px); }
.hero.fill .wrap { min-height: calc(100vh - 92px); }
body:has(.hero.fill) { background: var(--black); }
.hero.compact h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.2rem;
  max-width: 22ch;
  text-wrap: balance;
}
.hero .lead { color: var(--muted-black); }
.hero a:not(.btn) { color: var(--blue); text-underline-offset: 0.18em; }

section { padding-block: clamp(56px, 8vw, 96px); }
.hero.compact { padding-block: 0; }
.band-paper { background: var(--paper); }
.band-blue { background: var(--blue-pale); }
.band-ink { background: var(--black); color: var(--on-black); }
.band-ink p { color: var(--muted-black); }
.band-ink h2, .band-ink h3 { color: var(--on-black); }

.copy { max-width: 68ch; }
.copy h2 { margin-top: 2.5rem; max-width: 24ch; }
.copy > h2:first-child { margin-top: 0; }
.copy h3 { font-size: 1.35rem; margin: 1.5rem 0 0.4rem; letter-spacing: -0.01em; }
.copy a { color: var(--blue-deep); text-underline-offset: 0.18em; }
.band-ink .copy a { color: var(--blue); }
.copy p:last-child { margin-bottom: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 1.2rem; }
.step { padding-top: 1.3rem; border-top: 2px solid var(--black); }
.step .num { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.12em; color: var(--blue-deep); font-weight: 600; }
.step h3 { font-size: 1.45rem; font-weight: 600; margin: 0.7rem 0 0.6rem; letter-spacing: -0.01em; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.products { display: flex; flex-direction: column; max-width: 46rem; }
.product {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.4rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--hairline-ink);
  align-items: baseline;
}
.product:last-of-type { border-bottom: 1px solid var(--hairline-ink); }
.product .pname { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--on-black); text-decoration: none; }
a.pname:hover { color: var(--blue); }
a.pname .pgo { font-family: var(--mono); font-size: 0.62em; color: var(--blue); margin-left: 0.35em; vertical-align: 0.15em; }
.product .pmeta { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); grid-column: 1; white-space: nowrap; }
.product .pdesc { color: var(--muted-black); grid-column: 2; margin: 0; }
.product .ptop { grid-column: 2; }
@media (max-width: 640px) {
  .product { grid-template-columns: 1fr; }
  .product .pmeta, .product .ptop, .product .pdesc { grid-column: 1; }
}

.faq-item { padding: 1.15rem 0; border-top: 1px solid var(--hairline); }
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-item h3 { font-size: 1.28rem; margin: 0 0 0.4rem; max-width: 36ch; }
.faq-item p { color: var(--muted); margin: 0; max-width: 62ch; }

.map { list-style: none; padding: 0; margin: 0.4rem 0 0; max-width: 46rem; }
.map li { padding: 0.75rem 0; border-top: 1px solid var(--hairline); }
.map li:last-child { border-bottom: 1px solid var(--hairline); }

footer { background: var(--black); color: var(--muted-black); padding-block: clamp(48px, 7vw, 80px); border-top: 1px solid var(--hairline-ink); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.foot-brand .brand { margin-bottom: 0.9rem; }
.foot-brand .brand img { height: 34px; }
.foot-brand p { max-width: 34ch; font-size: 0.92rem; }
.social { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0.15rem 0 0; padding: 0; }
.social a { display: inline-flex; padding: 0.28rem; line-height: 0; color: var(--on-black); transition: color 0.16s ease; }
.social a:hover { color: var(--blue); }
.social svg { width: 1.15rem; height: 1.15rem; display: block; }
.foot-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-black); margin: 0 0 0.9rem; font-weight: 600; }
.foot-col a {
  display: block;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--on-black);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.16s ease;
}
.foot-col a:hover { color: var(--blue); }
.foot-col .note { display: block; font-size: 0.82rem; margin: -0.15rem 0 0.5rem; color: var(--muted-black); }
.foot-legal { width: 100%; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--hairline-ink); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; }

:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .band-ink :focus-visible, footer :focus-visible { outline-color: var(--blue); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
