/* Self-hosted fonts — latin subset only.
   Source: Google Fonts CSS API at the time of self-host.
   Eliminates fonts.googleapis.com + fonts.gstatic.com requests entirely. */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/barlow-condensed-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/barlow-condensed-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/barlow-condensed-700.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-500.woff2') format('woff2');
}


/* ARC AFFILIATES — SHARED PAGE STYLES
   Used by /arc-rankings/, /services/*, etc. Mirrors the V9 system in
   index.html so visitors don't feel a design seam between pages. */

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

:root {
  --black:     #0a0a0f;
  --black2:    #111118;
  --black3:    #18181f;
  --panel:     #14141a;
  --line:      rgba(255, 255, 255, .13);
  --line2:     rgba(255, 255, 255, .07);
  --blue:      #0066ff;
  --blue-dim:  rgba(0, 102, 255, .12);
  --blue-line: rgba(0, 102, 255, .32);
  --blue-b:    #4d94ff;
  --blue-glow: rgba(0, 102, 255, .4);
  --white:     #eeeae4;
  --off:       #ccc8c0;
  --dim:       #7a7770;
  --green:     #00e87a;
  --red:       #ff3b3b;
  --gold:      #c8973a;
  --font-d:    'Barlow Condensed', sans-serif;
  --font-m:    'IBM Plex Mono', monospace;
  --font-b:    'IBM Plex Sans', sans-serif;
  --nav:       62px;
  --max:       1100px;
  --ease:      cubic-bezier(.25, .46, .45, .94);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* grain (matches home) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .5s steps(1) infinite;
}

  20%  { transform: translate(-2%, -1%) }
  40%  { transform: translate(1%, 2%) }
  60%  { transform: translate(-1%, 1%) }
  80%  { transform: translate(2%, -2%) }
  100% { transform: translate(0, 0) }
}

::-webkit-scrollbar       { width: 2px }
::-webkit-scrollbar-track { background: var(--black) }
::-webkit-scrollbar-thumb { background: var(--dim) }

/* nav */
nav.site {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav); z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(5, 5, 5, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px);
}
.nav-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; text-decoration: none }
.nav-mark {
  width: 32px; height: 32px; background: var(--blue);
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 22% 100%, 0 78%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 15px; font-weight: 700; color: #fff;
}
.nav-name {
  font-family: var(--font-d); font-size: 1.15rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--white);
}
.nav-sub {
  font-size: .42rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-b); margin-top: 2px; font-family: var(--font-m);
}
.nav-back {
  font-family: var(--font-m); font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dim); text-decoration: none;
  display: flex; align-items: center; gap: 8px; transition: color .2s;
}
.nav-back:hover { color: var(--blue-b) }
.nav-ctas { display: inline-flex; gap: 8px; align-items: center }
.nav-cta {
  font-family: var(--font-m); font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 500; color: #fff;
  background: var(--blue); padding: 10px 22px; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  box-shadow: 0 0 20px rgba(0, 102, 255, .25);
  display: inline-flex; align-items: center; line-height: 1; white-space: nowrap;
  border: 1px solid var(--blue);
}
.nav-cta:hover { background: var(--blue-b); color: #fff }
.nav-cta.nav-cta-ghost {
  background: transparent; color: var(--off);
  border: 1px solid var(--line); box-shadow: none;
}
.nav-cta.nav-cta-ghost:hover {
  color: var(--white); border-color: var(--blue-line);
  background: rgba(0, 102, 255, .05);
}
@media (max-width: 1100px) {
  .nav-cta-ghost { display: none }
}

/* sign-in dropdown (CSS-only via <details>) */
.signin-menu { position: relative }
.signin-menu summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-m); font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--off);
  padding: 10px 14px; transition: color .2s;
}
.signin-menu summary::-webkit-details-marker { display: none }
.signin-menu summary::after { content: '▾'; font-size: .65rem; transition: transform .2s }
.signin-menu summary:hover { color: var(--blue-b) }
.signin-menu[open] summary { color: var(--blue-b) }
.signin-menu[open] summary::after { transform: rotate(180deg) }
.signin-menu-list {
  position: absolute; top: calc(100% + 4px); right: 0; min-width: 240px;
  background: rgba(9, 9, 9, .98); border: 1px solid var(--blue-line);
  backdrop-filter: blur(20px); padding: 6px 0; z-index: 900;
  box-shadow: 0 6px 32px rgba(0, 102, 255, .12);
}
.signin-menu-list a {
  display: block; padding: 12px 18px; text-decoration: none;
  border-bottom: 1px solid var(--line2); transition: background .15s;
}
.signin-menu-list a:last-child { border-bottom: none }
.signin-menu-list a:hover { background: rgba(0, 102, 255, .12) }
.signin-menu-list .si-tag {
  display: block; font-family: var(--font-m); font-size: .48rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-b); margin-bottom: 3px;
}
.signin-menu-list .si-name {
  display: block; font-family: var(--font-b); font-size: .92rem;
  font-weight: 500; color: var(--white);
}
.signin-menu-list .si-sub {
  display: block; font-size: .76rem; color: var(--dim); margin-top: 2px;
}
@media (max-width: 720px) {
  .signin-menu-list { right: auto; left: 0; min-width: 220px }
}

/* page shell */
main.page-body { padding-top: var(--nav); position: relative; z-index: 2 }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px }
.sec  { padding: 88px 32px; max-width: var(--max); margin: 0 auto }
.sec-sm { padding: 56px 32px; max-width: var(--max); margin: 0 auto }

/* typography */
.hl { font-family: var(--font-d); font-weight: 600; text-transform: uppercase; line-height: .92; letter-spacing: -.01em; color: var(--white) }
.hl-xl { font-size: clamp(2.6rem, 6vw, 5.2rem) }
.hl-lg { font-size: clamp(2.4rem, 5vw, 4.4rem) }
.hl-md { font-size: clamp(1.8rem, 3vw, 2.8rem) }
.hl-sm { font-size: clamp(1.4rem, 2vw, 1.9rem) }
.label {
  font-family: var(--font-m); font-size: .58rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--blue-b);
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: '//'; opacity: .4 }
.accent { color: var(--blue-b) }
p { font-size: 1.04rem; color: var(--off); line-height: 1.85; font-weight: 400 }
p + p { margin-top: .9em }
strong { color: var(--white); font-weight: 500 }
em { color: var(--blue-b); font-style: italic }
.rule { width: 100%; height: 1px; background: var(--line); margin: 32px 0 }

/* hero */
.p-hero { padding: 56px 32px 72px; max-width: var(--max); margin: 0 auto; position: relative }
.p-eye {
  font-family: var(--font-m); font-size: .56rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.p-eye-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1) }
  50%      { opacity: .3; transform: scale(.6) }
}
.p-sub {
  margin-top: 28px; max-width: 620px;
  font-size: 1.12rem; line-height: 1.8; color: var(--off);
}
.p-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-m); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 500;
  padding: 14px 30px; border: none; cursor: pointer;
  transition: all .2s; text-decoration: none;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 0 24px rgba(0, 102, 255, .22);
}
.btn-primary:hover { background: var(--blue-b); box-shadow: 0 4px 32px rgba(0, 102, 255, .4) }
.btn-ghost {
  background: transparent; color: var(--off);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--blue-line); color: var(--white) }

/* feature grid */
.f-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line) }
@media (max-width: 900px) { .f-grid { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 600px) { .f-grid { grid-template-columns: 1fr } }
.f-item { background: var(--black2); padding: 28px 24px; transition: background .25s }
.f-item:hover { background: var(--black3) }
.f-num {
  font-family: var(--font-m); font-size: .5rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 14px;
}
.f-title {
  font-family: var(--font-d); font-size: 1.5rem; font-weight: 600;
  text-transform: uppercase; color: var(--white); line-height: 1; margin-bottom: 10px;
}
.f-desc { font-size: .98rem; color: var(--off); line-height: 1.78 }

/* comparison table — wrap in .table-wrap for mobile horizontal scroll */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 28px }
.table-wrap > table { margin-top: 0 }
.cmp { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: .95rem }
.cmp th, .cmp td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left }
.cmp th {
  font-family: var(--font-m); font-size: .56rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dim); font-weight: 400;
  background: var(--black2);
}
.cmp tr:hover td { background: var(--black2) }
.cmp .col-arc { color: var(--blue-b); font-weight: 500 }
.cmp .col-them { color: var(--off) }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line) }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; cursor: pointer;
  font-family: var(--font-b); font-size: 1.05rem; color: var(--white);
  transition: color .2s;
}
.faq-q:hover { color: var(--blue-b) }
.faq-icon { font-family: var(--font-m); color: var(--blue); transition: transform .3s; flex-shrink: 0; margin-left: 16px }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s;
  font-size: 1rem; color: var(--off); line-height: 1.85;
}
.faq-item.open .faq-a    { max-height: 600px; padding-bottom: 22px }
.faq-item.open .faq-icon { transform: rotate(45deg) }

/* check list */
.checks { display: grid; gap: 10px; margin-top: 24px }
.checks li {
  list-style: none; padding-left: 28px; position: relative;
  font-size: 1rem; color: var(--off); line-height: 1.7;
}
.checks li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 14px; height: 14px;
  background: var(--blue-dim); border: 1px solid var(--blue-line);
}
.checks li::after {
  content: ''; position: absolute; left: 4px; top: 12px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--blue-b); border-bottom: 1.5px solid var(--blue-b);
  transform: rotate(-45deg);
}

/* CTA band */
.cta-band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--black2); padding: 64px 32px; text-align: center;
}
.cta-band p { max-width: 540px; margin: 14px auto 28px }

/* sticky bottom CTA bar (shared across deep pages) */
.stickbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: rgba(7, 7, 10, .97);
  border-top: 1px solid var(--blue-line);
  backdrop-filter: blur(16px);
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  box-shadow: 0 -6px 28px rgba(0, 102, 255, .12);
}
.stickbar-msg {
  font-family: var(--font-m); font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--white);
}
.stickbar-msg em { color: var(--blue-b); font-style: normal }
.stickbar-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  font-family: var(--font-m); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; padding: 9px 18px;
  text-decoration: none; transition: background .2s;
  box-shadow: 0 0 16px rgba(0, 102, 255, .3);
}
.stickbar-cta:hover { background: var(--blue-b) }
.stickbar-ghost {
  display: inline-flex; align-items: center;
  font-family: var(--font-m); font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--off);
  text-decoration: none; padding: 9px 12px;
  border: 1px solid var(--line); transition: color .2s, border-color .2s;
}
.stickbar-ghost:hover { color: var(--white); border-color: var(--blue-line) }
.stickbar-close {
  background: transparent; border: none; color: var(--dim);
  cursor: pointer; font-size: 1.1rem; padding: 10px 14px;
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.stickbar-close:hover { color: var(--white) }
body.has-stickbar { padding-bottom: 64px }
/* iOS safe-area: respect home-indicator on phones */
@supports (padding: max(0px)) {
  .stickbar { padding-bottom: max(10px, env(safe-area-inset-bottom)) }
  body.has-stickbar { padding-bottom: max(64px, calc(64px + env(safe-area-inset-bottom))) }
}
@media (max-width: 720px) {
  .stickbar { padding: 10px 14px; gap: 10px; flex-wrap: wrap }
  .stickbar-msg { font-size: .62rem; flex: 1 1 auto; line-height: 1.4 }
  .stickbar-cta { padding: 12px 16px; font-size: .58rem; min-height: 44px }
  .stickbar-ghost { padding: 12px 14px; font-size: .58rem; min-height: 44px }
}

/* footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 32px 32px;
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--font-m); font-size: .58rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim);
}
footer.site a { color: var(--dim); text-decoration: none; transition: color .2s }
footer.site a:hover { color: var(--blue-b) }
.fnap { display: flex; gap: 18px; flex-wrap: wrap }

/* responsive */
@media (max-width: 720px) {
  nav.site { padding: 0 18px }
  .nav-sub, .nav-back { display: none }
  .nav-cta { padding: 11px 14px; min-height: 44px; display: inline-flex; align-items: center; font-size: .54rem }
  .signin-menu summary { padding: 12px 14px; min-height: 44px; display: inline-flex; align-items: center }
  .sec, .sec-sm, .p-hero { padding-left: 18px; padding-right: 18px }
  .p-actions { flex-direction: column; align-items: stretch }
  .p-actions .btn { justify-content: center; min-height: 44px }
  footer.site { flex-direction: column; align-items: flex-start; padding: 36px 18px 28px; font-size: .68rem }

  /* Comparison tables: keep table layout intact so columns line up across
     every row. Force a min-width so the .table-wrap parent kicks in
     overflow-x:auto and the table scrolls as ONE unit. */
  .cmp, .cmp-grouped, .spend {
    min-width: 600px;
  }
  .table-wrap { margin-top: 24px }
}
@media (max-width: 720px) {
  /* On every phone, drop the nav-CTA group so the Sign In dropdown stays
     readable in the top-right. The sticky bar at the bottom of every deep
     page still surfaces the primary "Start ARC Rankings AI" action. */
  nav.site .nav-ctas, nav.site .nav-cta { display: none }
}
