/* ConfidentIQ website, styles part two of four: the header, the page hero, the closing band and the footer.
   styles.css holds the tokens these rules read and must load first. */

/* Header: a floating bar that stays dark over every surface. It sits in the flow and the hero slides up under it. */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); padding: 14px var(--gutter) 0; pointer-events: none; }
.header-bar {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 1.25rem;
  height: 62px; max-width: 1240px; margin-inline: auto; padding: 0 11px 0 20px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border: 1px solid rgb(255 255 255 / 0.1); border-radius: 20px;
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 12px 32px -14px rgb(0 0 0 / 0.55);
}
.site-nav { margin-inline: auto; align-self: stretch; }
.site-nav > ul { display: flex; gap: 0.15rem; height: 100%; }
.site-nav > ul > li { position: relative; display: flex; align-items: center; }
.site-nav > ul > li > a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 0.85rem; border-radius: 999px; color: var(--text); font-weight: 500; font-size: 0.9375rem; text-decoration: none; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.site-nav > ul > li > a:hover, .site-nav > ul > li:focus-within > a { color: var(--ink); background: rgb(255 255 255 / 0.08); }
.site-nav > ul > li > a.is-current { color: var(--ink); }
.site-nav > ul > li > a.is-current::before { content: ""; width: 0.4rem; height: 0.4rem; margin-right: 0.5rem; background: var(--accent); border-radius: 1px; }
/* A drawn chevron marks the items that open a list. */
.has-menu > a::after { content: ""; display: inline-block; width: 0.36rem; height: 0.36rem; margin-left: 0.5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.12rem) rotate(45deg); opacity: 0.75; }
/* The list opens on hover and on keyboard focus; the top item is itself a link, so touch screens still get there. */
.submenu { position: absolute; top: calc(100% + 10px); left: -0.75rem; width: max-content; min-width: 20rem; padding: 0.5rem; display: grid; gap: 2px; background: var(--bg); border: 1px solid rgb(255 255 255 / 0.14); border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.7); visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s; }
/* An invisible bridge, so the pointer can cross the gap between the bar and the list. */
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.submenu--right { left: auto; right: -0.75rem; }
.submenu--two { grid-template-columns: repeat(2, minmax(0, 18rem)); column-gap: 0.25rem; }
.has-menu:hover > .submenu, .has-menu:focus-within > .submenu { visibility: visible; opacity: 1; transform: none; }
.submenu a { display: grid; align-content: start; gap: 0.15rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); text-decoration: none; transition: background-color 0.2s var(--ease); }
.submenu a:hover, .submenu a:focus-visible, .submenu a[aria-current="page"] { background: rgb(255 255 255 / 0.07); }
.submenu strong { color: var(--ink); font-weight: 600; font-size: 0.9375rem; }
.submenu a[aria-current="page"] strong { color: var(--accent); }
.submenu span { color: var(--muted); font-size: 0.875rem; line-height: 1.4; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; background: none; border: 0; border-radius: 999px; color: var(--muted); cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
/* The button stays hidden until the script that drives it has run. */
.theme-btn[hidden] { display: none; }
.theme-btn:hover { color: var(--ink); background: rgb(255 255 255 / 0.08); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
.menu { display: none; }
@media (max-width: 1040px) {
  .site-nav { display: none; }
  .header-bar { gap: 0.5rem; }
  .header-actions { margin-left: auto; }
  .menu { display: block; }
  .menu summary { list-style: none; display: inline-flex; align-items: center; gap: 0.55rem; min-height: 40px; padding: 0 1rem; border: 1.5px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: 0.9375rem; color: var(--ink); cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  /* Two drawn bars; they cross when the menu is open. */
  .menu-icon { width: 16px; height: 16px; flex: none; overflow: visible; }
  .menu-icon path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transform-box: fill-box; transform-origin: center; transition: transform 0.3s var(--ease); }
  .menu[open] summary { border-color: var(--ink); }
  .menu[open] .menu-icon path:first-child { transform: translateY(2.5px) rotate(45deg); }
  .menu[open] .menu-icon path:last-child { transform: translateY(-2.5px) rotate(-45deg); }
  .menu-links { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: grid; padding: 0.5rem 1.25rem 1rem; background: var(--bg); border: 1px solid rgb(255 255 255 / 0.14); border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.7); max-height: calc(100vh - var(--header-h) - 20px); max-height: calc(100dvh - var(--header-h) - 20px); overflow-y: auto; overscroll-behavior: contain; }
  .menu-links a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 1.05rem; text-decoration: none; }
  .menu-links a:last-child { border-bottom: 0; }
  .menu-links a[aria-current="page"] { color: var(--accent); }
  .menu-group { margin-top: 1.1rem; font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
}
@media (max-width: 480px) {
  .header-bar { padding: 0 9px 0 14px; border-radius: 18px; }
  .header-actions .btn { display: none; }
}
/* On the narrowest phones the menu button keeps its bars and its name for assistive technology, and drops the visible word. */
@media (max-width: 350px) {
  .menu summary { width: 40px; padding: 0; justify-content: center; }
  .menu summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Hero: every page opens on a night surface with its own light. */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem)) 0 clamp(2.75rem, 5vw, 4.5rem); background: var(--bg); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(52% 58% at 82% 22%, rgb(116 210 202 / 0.2), transparent 70%),
  radial-gradient(46% 56% at 4% 96%, rgb(64 112 232 / 0.2), transparent 72%),
  radial-gradient(40% 40% at 50% -10%, rgb(116 210 202 / 0.1), transparent 70%); }
/* A faint square grid, the ground the trust diagrams are drawn on. It fades away from the light. */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(to right, rgb(255 255 255 / 0.055) 1px, transparent 1px), linear-gradient(to bottom, rgb(255 255 255 / 0.055) 1px, transparent 1px); background-size: 56px 56px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 75% 70% at 72% 30%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 75% 70% at 72% 30%, #000 10%, transparent 72%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy > * + * { margin-top: 1.5rem; }
.hero-copy .eyebrow + h1 { margin-top: 1.25rem; }
.hero-copy .actions { margin-top: 2.25rem; }
.hero-grid--top { align-items: start; }
.hero-sub { margin-top: 2.5rem; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
.hero-copy .checks { margin-top: 1.1rem; }
/* Beside a figure the heading has half the width, so it is set a step smaller. The home page keeps the largest size. */
.hero-grid h1 { font-size: clamp(2.4rem, 3.2vw + 1rem, 3.75rem); }
.hero--home h1 { font-size: clamp(2.7rem, 4.6vw + 0.9rem, 4.75rem); line-height: 1; }
@media (min-width: 901px) { .hero--home .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); } }
.hero--plain .hero-copy { max-width: 52rem; }
/* A hero that is the whole page: it runs straight into the footer. */
.hero--full { border-radius: 0; }
.hero--full.hero--center { display: grid; align-items: center; min-height: min(78vh, 780px); }
.hero--center .hero-copy { margin-inline: auto; text-align: center; }
.hero--center .eyebrow, .hero--center .actions { justify-content: center; }
.hero--center .lead { margin-inline: auto; }
.lead { font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem); line-height: 1.55; color: var(--text); max-width: 35em; }
.hero-figure { margin: 0; padding: clamp(1rem, 2.4vw, 2rem); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgb(255 255 255 / 0.06), rgb(255 255 255 / 0.02)); border: 1px solid rgb(255 255 255 / 0.1); box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.07); }
.hero-figure > h2 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; margin-bottom: 1.1rem; }
/* Blocks that close a hero: a set of stages, or links to the parts of the page. */
.hero-journey, .hero-jump { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.hero-journey { padding-top: 1.75rem; border-top: 1px solid rgb(255 255 255 / 0.12); }
.hero-journey > h2 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; margin-bottom: 1.75rem; }
.hero-jump h2 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
.hero-jump .card-go svg { transform: rotate(90deg); }
/* A row of short facts closing the hero. */
.hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem 2.5rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); padding-top: 1.75rem; border-top: 1px solid rgb(255 255 255 / 0.12); }
.hero-facts li { display: grid; gap: 0.35rem; align-content: start; font-size: 0.975rem; line-height: 1.5; color: var(--muted); }
.hero-facts strong { font: 600 1.0625rem/1.3 var(--display); letter-spacing: -0.01em; color: var(--ink); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) { .hero-figure { padding: 0.9rem; border-radius: var(--radius); } }

/* Closing band */
.band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(4rem, 9vw, 8rem) 0; background: var(--bg); border-radius: var(--radius-xl) var(--radius-xl) 0 0; text-align: center; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(50% 80% at 50% 115%, rgb(116 210 202 / 0.26), transparent 70%),
  radial-gradient(36% 60% at 12% 0%, rgb(64 112 232 / 0.16), transparent 72%); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(to right, rgb(255 255 255 / 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgb(255 255 255 / 0.05) 1px, transparent 1px); background-size: 56px 56px; background-position: center bottom; -webkit-mask-image: radial-gradient(ellipse 60% 90% at 50% 100%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 60% 90% at 50% 100%, #000 10%, transparent 72%); }
.band h2 { max-width: 16em; margin-inline: auto; font-size: clamp(2.2rem, 3.6vw + 1rem, 4rem); line-height: 1.02; letter-spacing: -0.04em; }
.band p { margin: 1.4rem auto 0; max-width: 34em; font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.2rem); }
.band .actions { margin-top: 2.5rem; justify-content: center; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: 0.9375rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.footer-brand p { margin-top: 1rem; max-width: 22em; }
.site-footer h2 { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.site-footer li + li { margin-top: 0.6rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.875rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { gap: 2rem 1rem; } }
