/* PB Services Group — shared styles for every page.
   Tokens and sizes come from the design handoff (README "Design Tokens"). */
:root {
  --dark: #1a1717;
  --footer: #121010;
  --page: #faf9f6;
  --card: #fff;
  --line: #e6e1dc;
  --ink: #1a1717;
  --muted: #6e6762;
  --cream: #fff8f2;
  --on-dark: #d8d1cb;
  --on-dark-2: #cfc8c2;
  --on-dark-muted: #8f8883;
  --back-link: #b9b1aa;
  --orange: #ee985d;
  --orange-deep: #d9773a;   /* icons, decoration on light */
  --orange-text: #b4561f;   /* small text on light: #d9773a is ~3.2:1 there */
  --orange-icon: #c25e23;
  --tile: #fff3eb;
  --lavender: #8b77d6;
  --rule: linear-gradient(90deg, #ee985d, #8b77d6);
  --btn-grad: linear-gradient(90deg, #ee985d 0%, #f3ad7d 40%, #8b77d6 100%);
  --focus: #b4561f;
  --mono: "Nova Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font: 17px/1.55 var(--sans);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
a:hover { color: var(--orange-text); }
::selection { background: var(--orange); color: var(--dark); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
svg.i { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--cream); color: var(--dark); font-weight: 700;
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.kicker { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(26, 23, 23, .94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--cream);
  --focus: var(--orange);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { flex: none; display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--cream); }
.brand:hover { color: var(--cream); }
.brand img { height: 34px; width: auto; display: block; }
.brand span { font-weight: 800; font-size: 24px; letter-spacing: .02em; }
/* Text links sit left of the buttons and drop off first when the bar is narrow:
   row-reverse + wrap places the buttons (order 0) rightmost, and a link that does not fit
   wraps onto a clipped second line. DOM order stays the reading order (tab order). */
.nav {
  flex: 1; min-width: 0; height: 68px; overflow: hidden;
  display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-content: flex-start; column-gap: 28px;
}
.nav > a { height: 68px; display: flex; align-items: center; text-decoration: none; color: var(--on-dark-2); font-size: 17px; white-space: nowrap; }
.nav > a:hover { color: var(--cream); }
.nav > a:nth-of-type(1) { order: 4; }
.nav > a:nth-of-type(2) { order: 3; }
.nav > a:nth-of-type(3) { order: 2; }
.nav > a:nth-of-type(4) { order: 1; }
.nav-actions { order: 0; height: 68px; display: flex; align-items: center; gap: 12px; }
.btn-login {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8.5px 14px; border: 1.5px solid rgba(255, 248, 242, .3); border-radius: 10px;
  color: var(--cream); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: border-color .15s, transform .15s;
}
.btn-login svg { width: 16px; height: 16px; color: var(--orange); }
.btn-login:hover { border-color: var(--orange); color: var(--cream); transform: translateY(-1px); }
@media (max-width: 900px) {
  .nav > a { display: none; }
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px;
  background: var(--btn-grad); background-size: 240% 100%; background-position: 0% 0;
  background-color: var(--orange);
  color: var(--dark); font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(238, 152, 93, 0);
  transition: transform .2s, background-position .45s ease, box-shadow .25s;
}
.btn:hover { background-position: 100% 0; transform: translateY(-2px); color: var(--dark); box-shadow: 0 12px 28px -8px rgba(238, 152, 93, .55); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; margin: 5px 0; }  /* the prototype's 18px icon-font glyph sets a 28px line */
.btn-sm { padding: 10px 16px; font-size: 16px; }
.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 14px 25px; border-radius: 10px; border: 1.5px solid rgba(255, 248, 242, .35);
  background: var(--dark); color: var(--cream); font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .15s;
}
.btn-ghost:hover { transform: translateY(-1px); color: var(--cream); }
.btn-ghost:active { transform: translateY(0); }

/* ── Dark sections and the dot matrix ─────────────────── */
.dark { position: relative; overflow: hidden; background: var(--dark); color: var(--cream); --focus: var(--orange); }
.dark a:not(.btn):hover { color: var(--cream); }  /* links on dark stay light; the orange button keeps its dark label */
.dots, .dots-hot { position: absolute; inset: -160px 0; pointer-events: none; background-size: 28px 28px; }
.dots { background-image: radial-gradient(circle, rgba(255, 248, 242, .11) 1px, transparent 1.6px); }
.hero .dots { background-image: radial-gradient(circle, rgba(255, 248, 242, .13) 1px, transparent 1.6px); }
.dots-hot {
  background-image: radial-gradient(circle, #ee985d 1.3px, transparent 1.9px);
  -webkit-mask-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 72%);
  mask-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 72%);
}
.dark > .wrap, .dark > .inner { position: relative; }

/* ── Sections, headings, rule ─────────────────────────── */
.section { padding: 84px 0; scroll-margin-top: 68px; }
.section.flush { padding-top: 0; }
h2 {
  font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -.015em; font-weight: 800;
  max-width: 32ch; text-wrap: balance;
}
.rule { width: 96px; height: 4px; border-radius: 2px; background: var(--rule); margin: 18px 0 25px; }
.lede { font-size: 18px; color: var(--muted); max-width: 72ch; text-wrap: pretty; }
.dark .lede { color: var(--on-dark-2); }

/* ── Home hero ────────────────────────────────────────── */
.hero { padding: 112px 0; }
.hero-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 48px clamp(32px, 5vw, 56px); align-items: stretch;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-copy .kicker { color: var(--orange); margin-bottom: 20px; }
.hero h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
.hero-copy .intro { font-size: 17px; color: var(--on-dark); margin-top: 20px; text-wrap: pretty; }
.ctas { margin-top: 28px; display: flex; gap: 16px; flex-wrap: wrap; }
.tools {
  border: 1px solid rgba(255, 248, 242, .14); border-radius: 16px; background: rgba(26, 23, 23, .72);
  padding: clamp(16px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 20px;
}
.tools ul {
  flex: 1; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr;
  gap: 1px; background: rgba(255, 248, 242, .1); border: 1px solid rgba(255, 248, 242, .1); border-radius: 10px; overflow: hidden;
}
.tools li {
  background: var(--dark); padding: 18px 6px; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: clamp(13.5px, 1.5vw, 16px); line-height: 1.3; color: var(--on-dark);
}
.tools .down { align-self: center; font-size: 30px; line-height: 1; color: var(--orange); transform: rotate(90deg); }
.tools .one {
  background: var(--rule); background-color: var(--orange); color: var(--dark); font-weight: 700; font-size: 19px; text-align: center;
  border-radius: 12px; padding: 20px 22px;
}

/* ── Cards and grids ──────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 29px; }
.grid-3or1 {
  display: grid; gap: 22px; margin-top: 47px;
  /* 3 across, or 1 column: never 2 + 1 */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(220px, calc((760px - 100%) * 999), 100%)), 1fr));
}
.problem h3 { font-size: 19px; margin-bottom: 8px; }
.problem p { color: var(--muted); }
.tile { width: 44px; height: 44px; border-radius: 10px; background: var(--tile); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--orange-icon); }
.tile svg { width: 22px; height: 22px; }

.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px 63px; align-items: start;
}

/* List rows: one style everywhere */
.rows { list-style: none; display: grid; gap: 0; border-bottom: 1px solid var(--line); }
.rows li {
  display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; font-weight: 500;
}
.rows svg { width: 20px; height: 20px; margin: 5.5px 0; color: var(--orange-deep); }  /* the row is as tall as the prototype's 20px icon-font glyph (31px line) */

.industries {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; margin-top: 43px;
}
.ind-card { display: block; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.ind-card:hover { border-color: var(--orange); transform: translateY(-2px); color: var(--ink); }
.ind-card .kicker { color: var(--orange-text); margin-bottom: 16px; }
.ind-card p { font-size: 16px; margin-bottom: 10px; }
.ind-card .today { color: var(--muted); }
.ind-card .more { color: var(--orange-text); font-weight: 700; margin: 7px 0 0; }

.grid-4 {
  display: grid; gap: 22px; margin-top: 47px;
  /* 4 across, then 2 × 2, then 1 column */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(170px, calc((800px - 100%) * 999), max(calc(50% - 11px), calc((480px - 100%) * 999)))), 1fr));
}
.step { border-top: 2px solid rgba(255, 248, 242, .15); padding-top: 22px; }
.step .kicker { color: var(--orange); }
.step h3 { font-size: 19px; margin: 7px 0; }
.step p { color: var(--on-dark-2); }

.fit {
  gap: 18px; margin-top: 43px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(170px, calc((800px - 100%) * 999), max(calc(50% - 9px), calc((480px - 100%) * 999)))), 1fr));
}
.fit > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 23px; }
.fit b { display: block; font-size: 22px; line-height: 1.15; margin-bottom: 6px; }
.fit span { color: var(--muted); font-size: 16px; }

/* ── Industry page ────────────────────────────────────── */
.ind-hero { padding: 90px 0 80px; }
.back { display: inline-block; color: var(--back-link); text-decoration: none; margin-bottom: 29px; font-size: 17px; }
.back:hover { color: var(--cream); }
.ind-hero .kicker { color: var(--orange); }
.ind-hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; max-width: 18ch; text-wrap: balance; }
.ind-hero .lead { font-size: 18px; color: var(--on-dark); max-width: 72ch; margin-top: 18px; text-wrap: pretty; }
.split h2 { max-width: none; }
.start { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; font-size: 18px; font-weight: 500; }
.start-note { font-size: 17px; color: var(--muted); max-width: 52ch; margin-top: 18px; }
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 18px 43px; margin-top: 36px; }
.caps > div { border-top: 1px solid var(--line); padding-top: 18px; }
.caps h3 { font-size: 18px; margin-bottom: 4px; }
.caps p { color: var(--muted); font-size: 16px; }
.replace { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.replace li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px;
  color: var(--muted); text-decoration: line-through; text-decoration-color: var(--orange-deep);
}

/* ── Contact ──────────────────────────────────────────── */
.talk p.say { color: var(--on-dark-2); font-size: 18px; max-width: 72ch; margin: 18px 0 32px; }
.talk .addr { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-top: 25px; color: var(--on-dark-muted); font-size: 15.3px; overflow-wrap: anywhere; }
.talk .others-label { font-weight: 400; margin-top: 54px; color: var(--on-dark-muted); }
.others { list-style: none; display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.others a {
  display: inline-block; color: var(--on-dark-2); border: 1px solid rgba(255, 248, 242, .2); border-radius: 999px;
  padding: 7px 16px; text-decoration: none; font-size: 16px; background: var(--dark);
  transition: border-color .15s, color .15s;
}
.others a:hover { color: var(--cream); border-color: var(--orange); }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--footer); color: var(--on-dark-muted); font-size: 16px; padding: 28px 0; --focus: var(--orange); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--on-dark-2); }
.site-footer a:hover { color: var(--cream); }

/* ── 404 ──────────────────────────────────────────────── */
body.nf { min-height: 100vh; display: flex; flex-direction: column; }
.nf-hero { flex: 1; display: flex; align-items: center; padding: 96px 0; }
.nf-hero .inner { width: 100%; }
.nf-hero .kicker { color: var(--orange); margin-bottom: 20px; }
.nf-hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; max-width: 18ch; text-wrap: balance; }
.nf-hero .lead { font-size: 18px; color: var(--on-dark); max-width: 60ch; margin-top: 18px; }

/* ── Small screens ────────────────────────────────────── */
/* Spacing stays the prototype's at every width; only tap targets (44 px) and the header's fit change. */
@media (max-width: 720px) {
  .ind-hero { padding-top: 81px; }        /* the back link gains 9px of tap area above; its text stays put */
  .back { padding: 9px 0; margin-bottom: 20px; }
  .others a { padding: 9.5px 16px; }
}
@media (max-width: 400px) {
  .site-header .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .brand img { height: 30px; }
  .brand span { font-size: 22px; }
  .nav-actions { gap: 8px; }
  .btn-login { padding: 8.5px 11px; gap: 6px; }
  .btn-sm { padding: 10px 12px; }
}
@media (max-width: 360px) {
  .wrap { padding: 0 20px; }
  .site-header .wrap { padding: 0 16px; }
  .btn-login svg { display: none; }
}
