/* CNNECT Lens — marketing and setup pages (index.html, setup.html, consent.html).
   Matches cnnect.com: black canvas with alternating deep-blue glows, a centred hero over moving blue silk (drawn by
   assets/js/site.js), a header that floats once you scroll, Inter headings with key words in the site's blue gradient,
   white Plus Jakarta Sans body text, outline gradient pill buttons with a ↗ arrow, and 40px bordered cards with large
   faint numbers. The report pages use cnnect.css. */

@import url("fonts.css");

:root {
  --ink: #010101;
  --navy-glow: 8, 59, 93;          /* rgb(8,59,93), the site's page glow */
  --blue: #145EFE;                  /* button border, gradient start */
  --blue-2: #1798D2;                /* gradient end */
  --link: #5B9BFF;                  /* 7:1 on black */
  --sub: #4FA3F5;                   /* italic blue sub-lines */
  --text: #FFFFFF;
  --text-2: #E2E6EE;
  --text-3: #A3ABBA;
  --line: rgba(255, 255, 255, .16);
  --card-line: rgba(171, 171, 171, .55);
  --radius: 40px;
  --head: "Inter", "Aptos", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --head-h: 94px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body.site {
  background-color: var(--ink);
  background-image:
    radial-gradient(circle farthest-side at 100% 22%, rgba(var(--navy-glow), .85), transparent 9%),
    radial-gradient(circle farthest-side at 0 40%, rgba(var(--navy-glow), .85), transparent 9%),
    radial-gradient(circle farthest-side at 100% 62%, rgba(var(--navy-glow), .85), transparent 9%),
    radial-gradient(circle farthest-side at 0 84%, rgba(var(--navy-glow), .85), transparent 9%);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.site a { color: inherit; text-decoration: none; }
.site h1, .site h2, .site h3 { font-family: var(--head); margin: 0; letter-spacing: -.01em; color: #fff; }
.site p { margin: 0; }
.site :focus-visible { outline: 2px solid #8CC4FF; outline-offset: 3px; border-radius: 6px; }
.site code, .site .mono { font-family: var(--mono); font-size: .88em; }
.site a.inline, .site p a, .site .note a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.site p a:hover, .site a.inline:hover { color: #fff; }
.hl { background: linear-gradient(270deg, var(--blue) 0%, var(--blue-2) 61%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.site .skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; font-weight: 600; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.site .skip:focus { left: 12px; }

/* ---------- Header (floats as a dark panel once scrolled) ---------- */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding: 12px 24px; transition: padding .25s ease; }
.head-in {
  position: relative; max-width: 1392px; margin: 0 auto; min-height: 70px; padding: 0 16px;
  display: flex; align-items: center; gap: 24px; border-radius: 16px;
  background: transparent; transition: background-color .25s ease, box-shadow .25s ease;
}
.site-head.scrolled { padding-top: 8px; }
.site-head.scrolled .head-in, .site-head.open .head-in {
  background: rgba(0, 0, 0, .8); box-shadow: 0 4px 30px rgba(0, 0, 0, .1);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { height: 36px; width: auto; display: block; }
.brand .product { font-family: var(--head); font-weight: 500; font-size: 20px; color: #fff; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .35); line-height: 1.2; }
.site-nav { display: flex; margin-left: auto; }
.site-nav a { padding: 12px 15px; font-size: 16px; color: #fff; transition: color .2s; }
.site-nav a:hover { color: var(--link); }
.site-nav a[aria-current="page"] { color: var(--link); }
.head-cta { display: flex; gap: 12px; flex: none; }
.head-cta .pill { padding: 13px 24px; }
.nav-toggle { display: none; }

/* ---------- Buttons: one style, as cnnect.com ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 20px 30px; border-radius: 30px; border: 1px solid var(--blue);
  background: linear-gradient(270deg, rgba(83, 155, 255, .32) 0%, rgba(8, 59, 93, .32) 100%);
  box-shadow: inset 0 0 22px 7px rgba(0, 0, 0, .5);
  color: #fff; font: 500 15px/1 var(--body); cursor: pointer; white-space: nowrap;
  transition: background-color .3s, border-color .3s;
}
.pill:hover { border-color: #5B9BFF; background-color: rgba(20, 94, 254, .18); }
.pill:active { transform: translateY(1px); }
.pill.solid { background-color: rgba(20, 94, 254, .22); }
.pill.solid:hover { background-color: rgba(20, 94, 254, .38); }
.pill.small { padding: 15px 22px; font-size: 15px; }
.pill .arr, .pf .arr { width: 14px; height: 14px; flex: none; stroke-width: 2.2; }
.pill [data-icon] { display: inline-flex; }
.pill[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Hero: centred copy over moving silk ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--head-h) + 110px) 0 96px; background: radial-gradient(70% 60% at 20% 20%, rgba(0, 71, 187, .3), transparent 70%); }
.hero > .silk { position: absolute; top: 0; left: 0; width: 100%; height: min(100%, 1000px); z-index: -2; pointer-events: none; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.hero::after { /* keeps text readable over the strands */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 42% at 50% 34%, rgba(1, 1, 1, .62), transparent 100%);
}
.hero-copy { text-align: center; max-width: 1100px; }
.hero-copy > div { min-width: 0; }
.eyebrow { font-size: 18px; font-weight: 500; font-style: italic; color: var(--sub); margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 72px); line-height: 1.04; font-weight: 700; overflow-wrap: break-word; }
.hero .lede { margin: 28px auto 0; font-size: 20px; line-height: 1.5; font-weight: 500; color: #fff; max-width: 860px; }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }

/* trust strip, in the place of cnnect.com's partner marquee */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 64px; margin: 88px 0 72px; padding: 28px 40px; border-top: 1px solid rgba(255, 255, 255, .35); border-bottom: 1px solid rgba(255, 255, 255, .35); font-size: 20px; color: #fff; }
.trust > span { display: inline-flex; align-items: center; gap: 14px; }
.trust svg { width: 26px; height: 26px; color: #5B9BFF; flex: none; }

/* Report preview (live numbers from the demo tenant): glass only here, because it sits on the silk */
.preview {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px;
  max-width: 1180px; margin: 0 auto; padding: 40px;
  border-radius: 25px; border: 1px solid var(--card-line);
  background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.preview .ph { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.preview .ph b { font-family: var(--head); font-size: 20px; font-weight: 600; }
.chip { font-size: 15px; font-style: italic; color: var(--sub); }
.big { font-family: var(--body); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -.02em; }
.big-sub { color: var(--text-2); font-size: 16px; margin-top: 10px; }
.kpis { margin-top: 26px; border-top: 1px solid var(--line); }
.kpi { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kpi .v { font-family: var(--body); font-weight: 700; font-size: 30px; line-height: 1; }
.kpi .l { color: var(--text-2); font-size: 16px; line-height: 1.35; }
.pf-h { font-family: var(--head); font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.flist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.flist li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.flist .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.flist .s { font-weight: 700; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.flist .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: none; }
.preview .pf { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--text-3); font-size: 14px; }
.preview .pf a { color: var(--link); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.preview .pf a:hover { color: #fff; }
.preview .pf [data-icon] { display: inline-flex; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-tight { padding-top: 24px; }
.section-head { max-width: 900px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.25; font-weight: 500; }
.section-head p { margin-top: 20px; font-size: 18px; line-height: 1.5; color: #fff; }

/* Cards, after cnnect.com's "Why cnnect" columns: thin grey border, 40px radius, navy glow, faint number */
.card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--card-line); padding: 40px;
  background: radial-gradient(110% 85% at 100% 100%, rgba(var(--navy-glow), .75), transparent 62%), radial-gradient(60% 60% at 0 0, rgba(0, 32, 110, .25), transparent 70%), var(--ink);
}
.card h3 { font-size: 24px; font-weight: 600; line-height: 1.25; }
.card p { color: #fff; margin-top: 14px; font-size: 16px; line-height: 1.55; }
.card .num { position: absolute; right: 28px; bottom: 6px; z-index: -1; font-family: var(--body); font-weight: 700; font-size: 104px; line-height: 1; color: rgba(20, 94, 254, .16); pointer-events: none; }
.tile { width: 60px; height: 60px; border-radius: 12px; border: 1px solid rgba(20, 94, 254, .75); display: grid; place-items: center; margin-bottom: 26px; background: linear-gradient(180deg, rgba(8, 59, 93, .55), rgba(1, 1, 1, .6)); }
.tile svg { width: 26px; height: 26px; color: #fff; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.ex { margin-top: 18px; font-size: 15px; font-style: italic; color: var(--sub); }

.step .k { font-size: 15px; font-style: italic; color: var(--sub); margin-bottom: 18px; }
.step .who { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }

.trust-grid { align-items: start; }
.trust-grid .section-head { margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.checks li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 16px; }
.checks svg { width: 22px; height: 22px; color: #5B9BFF; flex: none; margin-top: 2px; }
.checks b { color: #fff; font-weight: 600; }

/* Closing call to action: bordered panel with its own silk */
.band { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 96px 40px; border-radius: var(--radius); border: 1px solid var(--card-line); background: var(--ink); }
.band > .silk { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 60% at 50% 50%, rgba(1, 1, 1, .7), transparent 100%); }
.band h2 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; line-height: 1.2; }
.band p { margin: 18px auto 0; max-width: 680px; color: #fff; font-size: 18px; }
.band .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

/* ---------- Setup page ---------- */
.hero-sub { padding-bottom: 56px; }
.setup-steps { display: grid; gap: 30px; }
.setup-step { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 28px; align-items: start; }
.setup-step > * { min-width: 0; }
.setup-step .n { font-family: var(--body); font-weight: 700; font-size: 56px; line-height: 1; color: #fff; padding-top: 2px; }
.setup-step h2 { font-size: 30px; font-weight: 600; line-height: 1.25; }
.setup-step .lead { margin-top: 12px; color: #fff; font-size: 17px; line-height: 1.55; max-width: 900px; }
.role { display: flex; gap: 8px 24px; flex-wrap: wrap; margin-top: 16px; }
.role span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.role span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5B9BFF; flex: none; }
.field { display: grid; gap: 8px; margin-top: 24px; max-width: 600px; }
.field label { font-size: 16px; font-weight: 500; }
.field small { color: var(--text-3); font-size: 14px; }
.input { width: 100%; padding: 14px 20px; border-radius: 22px; border: 1px solid rgba(138, 138, 138, .63); background: transparent; color: #fff; font: 400 15px var(--body); }
.input::placeholder { color: #8E97A6; }
.input:focus { border-color: #5B9BFF; outline: 2px solid rgba(91, 155, 255, .5); outline-offset: 1px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; align-items: center; }
.note { margin-top: 18px; font-size: 14px; color: var(--text-3); }
.actions .note { margin: 0; }
.status { font-size: 14px; color: #8CC4FF; }
.linkbox { margin-top: 18px; padding: 14px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-family: var(--mono); font-size: 12.5px; color: var(--text-2); word-break: break-all; }
.code { margin-top: 16px; padding: 18px 20px; border-radius: 16px; background: #000; border: 1px solid var(--line); font-family: var(--mono); font-size: 13.5px; color: #CFE6FF; overflow-x: auto; white-space: pre; }
details.more { margin-top: 26px; border-top: 1px solid var(--line); }
details.more summary { cursor: pointer; font-weight: 500; color: #fff; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 4px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font: 300 26px/1 var(--head); color: #5B9BFF; }
details.more[open] summary::after { content: "−"; }
details.more > .note:first-of-type { margin-top: 12px; }
details.more .field { margin-top: 12px; }
.perm { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.perm th, .perm td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); vertical-align: top; }
.perm th { color: var(--text-3); font-weight: 500; font-size: 13px; }
.perm td:first-child { font-family: var(--mono); font-size: 12.5px; color: #fff; white-space: nowrap; }
.perm td { color: var(--text-2); }
.faq { border-top: 1px solid var(--line); max-width: 1100px; }
.faq details { border-bottom: 1px solid var(--line); padding: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-family: var(--head); font-weight: 500; font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 28px/1 var(--head); color: #5B9BFF; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: -8px 0 26px; color: var(--text-2); max-width: 900px; font-size: 16px; }

/* consent.html result */
.result-card { margin: 44px auto 0; max-width: 860px; text-align: left; }
.result-card .checks { margin-top: 18px; }

/* ---------- Footer, after cnnect.com ---------- */
.site-foot { padding: 80px 0 40px; color: var(--text-3); font-size: 16px; }
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.foot-brand img { height: 42px; width: auto; display: block; }
.foot-brand p { margin-top: 18px; color: #fff; font-size: 17px; }
.foot-col { display: grid; align-content: start; gap: 8px; }
.foot-h { font-family: var(--head); font-weight: 600; color: #fff; margin-bottom: 8px; }
.foot-col a { color: var(--text-3); width: fit-content; }
.foot-col a:hover { color: #fff; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 22px; font-size: 14px; color: #8A8A8A; }

/* ---------- Entrance: fade in, as on cnnect.com (CSS only, skipped for reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .trust, .preview { animation: lens-rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .trust { animation-delay: .15s; }
  .preview { animation-delay: .3s; }
  @keyframes lens-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav {
    /* the open header panel (backdrop-filter) is the containing block, so this hangs flush beneath it */
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 4px 20px 16px; border-radius: 0 0 16px 16px; background: #050505;
  }
  .site-head.open .head-in { background: #050505; }
  .site-head.open .site-nav { display: flex; }
  .site-head.open .head-in { border-radius: 16px 16px 0 0; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .head-cta { margin-left: auto; }
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; flex: none; cursor: pointer;
    border-radius: 50%; border: 1px solid var(--blue); background: rgba(8, 59, 93, .35); color: #fff;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .site-head.open .nav-toggle span { background: transparent; }
  .site-head.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .site-head.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --head-h: 76px; --radius: 28px; }
  .wrap { padding: 0 16px; }
  .site-head { padding: 8px 12px; }
  .head-in { min-height: 60px; gap: 12px; padding: 0 8px 0 12px; }
  .head-cta { display: none; }
  .nav-toggle { margin-left: auto; width: 44px; height: 44px; }
  .brand img { height: 28px; }
  .brand .product { font-size: 17px; padding-left: 10px; }
  .hero { padding: calc(var(--head-h) + 48px) 0 56px; }
  .hero > .silk { height: min(100%, 760px); }
  .eyebrow { font-size: 15px; margin-bottom: 16px; }
  .hero .lede { font-size: 17px; margin-top: 20px; }
  .hero .ctas { margin-top: 30px; }
  .hero .ctas .pill { flex: 1 1 100%; }
  .trust { flex-direction: column; align-items: flex-start; gap: 14px; margin: 56px 0 40px; padding: 22px 16px; font-size: 16px; }
  .trust svg { width: 22px; height: 22px; }
  .preview { padding: 24px 20px; border-radius: 22px; }
  .big { font-size: 44px; }
  .kpi { grid-template-columns: 84px 1fr; }
  .kpi .v { font-size: 26px; }
  .flist li { font-size: 15px; align-items: flex-start; }
  .flist .t { white-space: normal; }
  .flist .dot { margin-top: 9px; }
  .section { padding: 72px 0; }
  .section-tight { padding-top: 8px; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 32px; }
  .section-head p { font-size: 17px; }
  .grid3, .grid2 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .card { padding: 28px 24px; }
  .card .num { font-size: 80px; right: 20px; }
  .band { padding: 56px 20px; }
  .setup-step { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .setup-step .n { font-size: 44px; }
  .setup-step h2 { font-size: 24px; }
  .perm td:first-child { white-space: normal; word-break: break-all; }
  .faq summary { font-size: 18px; padding: 22px 0; }
  .site-foot { padding-top: 56px; }
  .foot-top { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .head-in, .site-head, .site-nav a, .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { transition: none; }
}
@media print {
  .site-head, .silk, .nav-toggle { display: none !important; }
  .hero { padding-top: 24px; }
}
