/* Proxy IT 2.0 — shared components. All colours come from band props (tokens.css). */

/* ---------- Header: notice + nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; --bg: var(--navy); }
.notice { background: var(--blue); color: #fff; font-size: var(--step--1); }
.notice[hidden] { display: none; }
.notice__in { display: flex; gap: 8px 16px; align-items: center; justify-content: center; padding: 8px 44px 8px 0; position: relative; flex-wrap: wrap; }
.notice a { color: #fff; font-weight: 600; }
.notice__close { position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 32px; height: 32px; font-size: 20px; line-height: 1; border-radius: 6px; }
.notice__close:hover { background: rgba(255, 255, 255, .16); }
@media (max-width: 640px) {
  .notice__in { flex-wrap: nowrap; justify-content: flex-start; font-size: .8rem; line-height: 1.35; padding-right: 36px; }
  .notice a { white-space: nowrap; }
}

.nav { background: rgba(11, 27, 46, .82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.is-scrolled .nav { border-bottom-color: var(--line); background: rgba(7, 18, 31, .9); }
.nav__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.nav__brand { flex: none; display: block; }
.nav__brand img { height: 34px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__group { position: relative; }
.nav__top, .nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px; color: var(--fg); font-size: .95rem; font-weight: 500; text-decoration: none; }
.nav__top::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; translate: 0 -2px; opacity: .6; transition: rotate .2s; }
.nav__top:hover, .nav__link:hover, .nav__group:focus-within > .nav__top { background: rgba(91, 168, 224, .12); }
.nav__drop { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; padding: 8px; background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); opacity: 0; visibility: hidden; translate: 0 -6px; transition: opacity .18s, translate .18s var(--ease), visibility .18s; }
.nav__group:last-of-type > .nav__drop { left: auto; right: 0; }
.nav__drop::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav__group:hover > .nav__drop, .nav__group.is-open > .nav__drop, .nav__group:focus-within > .nav__drop { opacity: 1; visibility: visible; translate: 0 0; }
.nav__drop a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--fg); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav__drop a span { display: block; font-weight: 400; font-size: .82rem; color: var(--fg-3); margin-top: 1px; }
.nav__drop a:hover { background: rgba(0, 212, 255, .09); }
.nav__drop a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--cyan); }
.nav__cta { margin-left: 10px; }
.nav__toggle { display: none; margin-left: auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-weight: 500; font-size: .95rem; }

@media (max-width: 960px) {
  /* backdrop-filter would make .nav the containing block of the fixed menu */
  .nav, .is-scrolled .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--navy-deep); }
  .nav__toggle { display: inline-flex; }
  .nav__menu { position: fixed; inset: 0; top: var(--menu-top, var(--header-h)); margin: 0; padding: 20px var(--gutter) 48px; background: var(--navy-deep); flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; display: none; }
  .nav-open .nav__menu { display: flex; }
  .nav-open { overflow: hidden; }
  .nav__top { width: 100%; padding: 22px 0 6px; font-family: var(--display); font-size: 1.5rem; font-weight: 650; pointer-events: none; }
  .nav__top::after { display: none; }
  .nav__link { padding: 22px 0 6px; font-family: var(--display); font-size: 1.5rem; font-weight: 650; }
  .nav__drop { position: static; opacity: 1; visibility: visible; translate: none; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .nav__drop a { padding: 9px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__cta { margin: 28px 0 0; justify-content: center; }
}

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1.5px solid var(--btn-bg); transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--btn-bg) 70%, transparent); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--fg); border-color: color-mix(in srgb, var(--fg) 34%, transparent); }
.btn--ghost:hover { border-color: var(--fg); box-shadow: none; }
.btn--small { padding: 10px 18px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.more { font-weight: 600; color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); }
.more:hover { text-decoration-color: currentColor; }

/* ---------- Chips (tech / capability tags) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips > * { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--fg-2); white-space: nowrap; }

/* ---------- Stats (definition grid) ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats > div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.stats dt { font-family: var(--display); font-weight: 650; font-size: var(--step-3); line-height: 1; letter-spacing: -0.03em; color: var(--fg); }
.stats dd { margin-top: 8px; font-size: var(--step--1); color: var(--fg-2); line-height: 1.45; max-width: 30ch; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats > div { border-bottom: 0; }
  .stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
}

/* ---------- Screenshot frames ---------- */
.frame { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-family: var(--mono); font-size: .74rem; color: var(--fg-3); border-bottom: 1px solid var(--line); }
.frame__bar::before { content: ""; width: 34px; height: 8px; flex: none; margin-right: 8px; background: radial-gradient(circle 4px at 4px 4px, currentColor 98%, transparent) 0 0 / 13px 8px repeat-x; opacity: .5; }
.frame img, .frame video { width: 100%; }
.phone { border: 6px solid #0A1522; outline: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: #0A1522; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.phone img, .phone video { width: 100%; }
.figure figcaption { margin-top: 12px; font-size: var(--step--1); color: var(--fg-3); max-width: 70ch; }

/* ---------- Rows (a titled list with hairlines) ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; gap: 8px 40px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.row h3, .row h4 { font-size: var(--step-2); }
.row p { color: var(--fg-2); max-width: 54ch; }
@media (min-width: 820px) { .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: baseline; } }

/* ---------- Tick list ---------- */
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--fg-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); rotate: -45deg; }

/* ---------- Panel (a quiet surface) ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 3.5vw, 44px); }
.panel > * + * { margin-top: 14px; }

/* ---------- Pricing tiers ---------- */
.tiers { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 980px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier { display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 2.6vw, 36px); position: relative; }
.tier--pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 70px -40px color-mix(in srgb, var(--accent) 60%, transparent); }
.tier__flag { position: absolute; top: -13px; left: 28px; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: var(--bg); font-size: .78rem; font-weight: 600; }
.tier__name { font-family: var(--display); font-weight: 650; font-size: var(--step-2); letter-spacing: -0.02em; }
.tier__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tier__price b { font-family: var(--display); font-weight: 650; font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1; }
.tier__price span { color: var(--fg-2); font-size: var(--step--1); }
.tier__note { color: var(--fg-2); font-size: var(--step--1); }
.tier .ticks { font-size: .95rem; }
.tier .btn { margin-top: auto; }

/* ---------- Steps (a real sequence) ---------- */
.steps { counter-reset: step; display: grid; gap: 28px; }
.steps > li { counter-increment: step; position: relative; padding-top: 22px; border-top: 1px solid var(--line); }
.steps > li::before { content: counter(step); position: absolute; top: -15px; left: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); font-family: var(--display); font-weight: 650; font-size: .9rem; }
.steps h3, .steps h4 { font-size: var(--step-1); margin-bottom: 6px; }
.steps p { color: var(--fg-2); font-size: .98rem; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 0; } .steps > li { padding-right: 28px; } }

/* ---------- Finding (the plain-words report card) ---------- */
.finding { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius-m); padding: clamp(20px, 2.6vw, 32px); }
.finding > * + * { margin-top: 14px; }
.finding__sev { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--amber); color: #2A1B00; font-size: .78rem; font-weight: 700; }
.finding__title { font-family: var(--display); font-weight: 650; font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.1; }
.finding__path { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: .84rem; }
.finding__path span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.finding__path i { flex: 1 1 60px; min-width: 40px; border-top: 2px dashed var(--amber); font-style: normal; text-align: center; font-size: .74rem; color: var(--fg-2); padding-top: 4px; }
.finding dl { display: grid; gap: 12px; }
.finding dt { font-weight: 600; font-size: var(--step--1); color: var(--fg); }
.finding dd { color: var(--fg-2); font-size: .98rem; }
.finding__note { font-size: var(--step--1); color: var(--fg-3); }

/* ---------- Sub-page hero ---------- */
.pagehead { padding-block: clamp(36px, 4.5vw, 64px) clamp(40px, 5vw, 72px); }
.pagehead h1 { font-size: var(--step-4); line-height: 1; max-width: 18ch; }
.pagehead .lede { margin-top: 24px; }
.pagehead .actions { margin-top: 32px; }
.pagehead__note { margin-top: 20px; font-size: var(--step--1); color: var(--fg-3); max-width: 52ch; }
.crumb { display: flex; gap: 8px; font-size: var(--step--1); color: var(--fg-3); margin-bottom: 20px; }
.crumb a { color: var(--fg-2); }
.price-line { font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: var(--fg); letter-spacing: -0.01em; }
.price-line b { color: var(--accent); font-weight: 650; }

/* ---------- Long-form prose (case studies) ---------- */
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-3); margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--fg-2); }
.prose .lede { color: var(--fg); }

/* ---------- Feature (title + text with top rule) ---------- */
.feature { padding-top: 20px; border-top: 1px solid var(--line); }
.feature h3, .feature h4 { font-size: var(--step-1); margin-bottom: 8px; }
.feature p { color: var(--fg-2); font-size: .98rem; }
.feature__kicker { display: block; font-size: var(--step--1); color: var(--accent); font-weight: 600; margin-bottom: 6px; }

/* ---------- Contact band ---------- */
.contact h2 { font-size: var(--step-3); max-width: 40ch; line-height: 1.08; }
.contact__ways { display: grid; gap: 0; margin-top: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--line); }
.contact__way { display: grid; gap: 4px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.contact__way span { font-size: var(--step--1); color: var(--fg-2); }
.contact__way b { font-family: var(--display); font-weight: 650; font-size: var(--step-2); letter-spacing: -0.02em; transition: color .2s; overflow-wrap: anywhere; }
.contact__way:hover b { color: var(--accent); }
@media (min-width: 860px) {
  .contact__ways { grid-template-columns: repeat(var(--ways, 2), minmax(0, 1fr)); }
  .contact__way { padding: 28px 28px 28px 0; }
  .contact__way + .contact__way { padding-left: 28px; border-left: 1px solid var(--line); }
}
.contact .actions { margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: var(--fg-2); padding-block: 64px 36px; font-size: .95rem; border-top: 1px solid var(--line); }
.footer__top { display: grid; gap: 40px; }
.footer__brand img { height: 40px; width: auto; }
.footer__brand p { margin-top: 16px; max-width: 34ch; }
.footer h2 { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; letter-spacing: 0; color: var(--fg); margin-bottom: 12px; }
.footer ul { display: grid; gap: 8px; list-style: none; padding: 0; }
.footer a { color: var(--fg-2); text-decoration: none; }
.footer a:hover { color: var(--fg); text-decoration: underline; }
.footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--fg-3); display: flex; flex-wrap: wrap; gap: 6px 32px; justify-content: space-between; }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.6fr repeat(4, 1fr); } }

/* ---------- Gizmo ---------- */
.gizmo { width: 56px; height: auto; overflow: visible; }
.gizmo .g-shell { fill: #E8EEF5; }
.gizmo .g-limb { fill: #9FB3C8; }
.gizmo .g-visor { fill: var(--navy-deep); }
.gizmo .g-eye { fill: var(--cyan); transform-box: fill-box; transform-origin: center; animation: g-blink 5s infinite; }
.gizmo .g-tip { fill: var(--amber); }
.gizmo .g-ant, .gizmo .g-tool { fill: none; stroke: #9FB3C8; stroke-width: 1.6; stroke-linecap: round; }
.gizmo .g-chest { fill: var(--cyan); }
.gizmo .g-shadow { fill: rgba(0, 0, 0, .35); }
@keyframes g-blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
