/* Shared styles for SentryAC pages: base, nav, buttons, reveal, footer, legal layout */
:root {
  --bg: #060709;
  --panel: #0b0d11;
  --text: #ffffff;
  --body: rgba(255,255,255,.78);
  --muted: rgba(255,255,255,.6);
  --faint: rgba(255,255,255,.42);
  --line: rgba(255,255,255,.09);
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --gutter: clamp(16px, 6.3vw, 105px);
  --ease: cubic-bezier(.2,.7,.2,1);
  --ok: #34d399;
  --warn: #e8b04a;
  --bad: #f0716b;
  --blue: #3d6bff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.arrow { width: 14px; height: 14px; flex: none; transition: transform .3s var(--ease); }
a:hover > .arrow { transform: translateX(4px); }
.wrap { max-width: 1240px; margin: 0 auto; }
section { padding: 0 var(--gutter); }

/* dark navy glow behind the top of each page */
.backdrop {
  position: absolute; inset: 0 0 auto 0; height: 900px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 22%, #0c1120 0%, #070910 55%, var(--bg) 100%);
}

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: relative; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 33px var(--gutter) 0;
}
.brand { display: flex; align-items: center; gap: 26px; justify-self: start; }
.brand svg { width: 38px; height: 40px; }
.brand span { font-size: 15px; font-weight: 500; letter-spacing: .5em; text-transform: uppercase; }
.links { display: flex; gap: 62px; list-style: none; }
.links a { position: relative; font-size: 16px; color: rgba(255,255,255,.88); padding: 8px 0; transition: color .2s; }
.links a:hover { color: #fff; }
.links a.active { color: #fff; font-weight: 500; }
.links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: #fff; }
.dash {
  justify-self: end; display: inline-flex; align-items: center; gap: 10px;
  height: 43px; padding: 0 20px; border: 1px solid rgba(255,255,255,.75); border-radius: 2px;
  font-size: 15px; font-weight: 500; transition: background .2s, color .2s;
}
.dash:hover { background: #fff; color: #000; }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 26px; }
.login-link { font-size: 15px; color: rgba(255,255,255,.82); transition: color .2s; }
.login-link:hover { color: #fff; }
.m-only { display: none; }
.nav.open .m-only { display: list-item; }
.menu-btn { display: none; justify-self: end; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.16); border-radius: 2px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 1.5px; background: #fff; margin: 0 auto; position: relative; content: "";
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

/* ---------- Shared bits ---------- */
.eyebrow { font-size: 12.5px; font-weight: 500; letter-spacing: .36em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 48px; padding: 0 24px; border-radius: 2px; font-size: 15px; font-weight: 500;
  transition: background .2s, border-color .2s;
}
.btn-primary { background: #fff; color: #0a0a0a; }
.btn-primary:hover { background: #e9e9e9; }
.btn-ghost { border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: rgba(255,255,255,.7); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; padding-bottom: 40px; }
.sec-head h2 { font-size: clamp(28px, 2.8vw, 42px); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; max-width: 540px; }
.sec-head p { max-width: 460px; justify-self: end; font-size: 16px; line-height: 1.65; color: var(--muted); }
.close {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.close h2 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.01em; }
.close h2 span { color: var(--faint); }
.close .btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal-head { padding-top: clamp(64px, 10vh, 104px); padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.legal-head h1 { margin-top: 20px; font-size: clamp(36px, 4vw, 60px); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.legal-head p { margin-top: 18px; max-width: 620px; font-size: 16.5px; line-height: 1.65; color: var(--body); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; font-size: 13.5px; color: var(--faint); }
.legal-meta b { color: rgba(255,255,255,.75); font-weight: 500; }
.legal { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: 48px; }
.legal-toc { position: sticky; top: 28px; align-self: start; }
.legal-toc h5 { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.legal-toc ol { list-style: none; border-left: 1px solid var(--line); counter-reset: t; }
.legal-toc a {
  display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 1px solid transparent;
  font-size: 14px; color: var(--muted); transition: color .15s, border-color .15s;
}
.legal-toc a:hover { color: #fff; }
.legal-toc a.current { color: #fff; border-left-color: #fff; }
.legal-body { max-width: 760px; }
.legal-body section { padding: 0 0 40px; scroll-margin-top: 28px; }
.legal-body h2 { font-size: 22px; font-weight: 600; letter-spacing: -.005em; display: flex; gap: 14px; align-items: baseline; }
.legal-body h2 span { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--faint); }
.legal-body h3 { margin-top: 22px; font-size: 16px; font-weight: 600; }
.legal-body p, .legal-body li { font-size: 15.5px; line-height: 1.75; color: var(--body); }
.legal-body p { margin-top: 12px; }
.legal-body ul { margin: 12px 0 0 20px; }
.legal-body li + li { margin-top: 6px; }
.legal-body strong { color: #fff; font-weight: 500; }
.legal-body a.link { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.summary { margin-bottom: 44px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); }
.summary h4 { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.summary ul { margin-top: 12px; }
/* placeholders the site owner must fill in */
mark.ph { background: rgba(232,176,74,.12); color: #f3cf8a; padding: 0 4px; border-radius: 2px; border-bottom: 1px dashed rgba(232,176,74,.6); }

/* ---------- Footer ---------- */
.site-footer { --accent: #3d6bff; position: relative; overflow: hidden; margin-top: 130px; }
.site-footer::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 70%; pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.f-top { position: relative; display: grid; grid-template-columns: minmax(240px, 1.3fr) 3fr; gap: 64px; padding: 80px var(--gutter) 64px; border-top: 1px solid rgba(255,255,255,.06); }
.f-brand .brand { gap: 16px; }
.f-brand .brand svg { width: 30px; height: 32px; }
.f-brand .brand span { font-size: 14px; }
.f-brand p { margin-top: 22px; max-width: 300px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  font-size: 12.5px; color: rgba(255,255,255,.8); transition: border-color .2s;
}
.status-pill:hover { border-color: rgba(255,255,255,.3); }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52,211,153,.18); }
.f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.f-cols h4 { font-size: 11.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 22px; }
.f-cols ul { list-style: none; display: grid; gap: 13px; }
.f-link { position: relative; display: inline-block; padding-bottom: 3px; font-size: 15px; color: rgba(255,255,255,.82); transition: color .25s; }
.f-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s cubic-bezier(.65,0,.35,1);
}
.f-link:hover, .f-link:focus-visible, .f-link.active { color: #fff; }
.f-link:hover::after, .f-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.f-meta {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
  margin: 0 var(--gutter); padding: 26px 0; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px; color: rgba(255,255,255,.45);
}
.f-meta nav { display: flex; gap: 28px; }
.f-meta .f-link { font-size: 13px; color: rgba(255,255,255,.55); }
.f-meta .f-link.active { color: #fff; }
.f-end { display: flex; align-items: center; gap: 28px; }
.f-seal { display: block; flex: none; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.1); opacity: .8; transition: opacity .25s, transform .25s; }
.f-seal:hover, .f-seal:focus-visible { opacity: 1; transform: translateY(-1px); }
.f-seal img { display: block; width: 86px; height: auto; border-radius: 5px; }
.f-word { position: relative; display: block; width: 100%; margin-top: 8px; pointer-events: none; }
.f-word text { font-family: "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: -.04em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .links { gap: 36px; } }
@media (max-width: 980px) {
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .sec-head p { justify-self: start; }
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
@media (max-width: 900px) {
  .links, .nav-end { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav { grid-template-columns: 1fr auto; padding-top: 22px; }
  .nav.open .links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 76px; left: 16px; right: 16px; z-index: 30;
    padding: 14px 18px; background: rgba(8,10,14,.96); border: 1px solid rgba(255,255,255,.16);
  }
  .nav.open .links a.active::after { display: none; }
  .f-top { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; }
  .f-cols { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 560px) {
  .brand { gap: 14px; }
  .brand svg { width: 30px; height: 32px; }
  .brand span { font-size: 13px; letter-spacing: .38em; }
  .f-meta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

  /* brand logo image */
  .brand .logo { display: block; height: 34px; width: auto; }
  .f-brand .brand .logo { height: 28px; }
  @media (max-width: 560px) { .brand .logo { height: 26px; } }
