/* Vecta Compute — shared design system
   Light: white with a lavender tint · deep-navy ink · indigo accent edge.
   Dark: navy mirror. Header/footer identical on every page. */

:root {
  --bg:        #F5F6FC;
  --bg-tint:   rgba(58,70,201,0.05);
  --panel:     #FFFFFF;
  --panel-2:   #FBFBFE;
  --ink:       #171B2E;
  --muted:     #545C77;
  --faint:     #8A90A8;
  --accent:    #3A46C9;
  --accent-2:  #5866E6;
  --accent-ink:#2A338F;
  --wash:      rgba(58,70,201,0.06);
  --flip-front:#E9EAF6;
  --line:      rgba(23,27,46,0.12);
  --line-2:    rgba(23,27,46,0.06);
  --nav:       #0E1430;          /* deep navy header/footer, consistent */
  --nav-ink:   #E7EAF6;
  --nav-muted: rgba(231,234,246,0.62);
  --shadow:    0 1px 2px rgba(23,27,46,.05), 0 14px 38px -22px rgba(23,27,46,.32);
  --shadow-sm: 0 1px 2px rgba(23,27,46,.05), 0 8px 22px -16px rgba(23,27,46,.28);
  --fh: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --fb: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --fm: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#0A0E20; --bg-tint:rgba(124,135,245,0.08); --panel:#111634; --panel-2:#0E1330;
    --ink:#E6E9F6; --muted:#9BA2C1; --faint:#6B7397;
    --accent:#7C87F5; --accent-2:#96A0FF; --accent-ink:#AEB6FF; --wash:rgba(124,135,245,0.10); --flip-front:#171E3C;
    --line:rgba(255,255,255,0.11); --line-2:rgba(255,255,255,0.05);
    --nav:#080B1C; --nav-ink:#E7EAF6; --nav-muted:rgba(231,234,246,0.6);
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 24px 54px -30px rgba(0,0,0,.8);
    --shadow-sm:0 1px 2px rgba(0,0,0,.4), 0 14px 30px -22px rgba(0,0,0,.7);
  }
  .logo { filter: invert(1) brightness(1.7); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: radial-gradient(115% 65% at 92% -8%, var(--bg-tint), transparent 55%), var(--bg);
  color: var(--ink); font-family: var(--fb); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(22px, 4vw, 48px); }
.eyebrow { font-family: var(--fm); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }

/* ── Consistent header ─────────────────────────────── */
header.nav { position: sticky; top: 0; z-index: 30; background: var(--nav); border-bottom: 1px solid rgba(255,255,255,.07); }
.nav .row { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; transition: transform .16s ease; }
.brand:hover { transform: translateY(-1px); }
.brand .logo { width: 34px; height: 34px; background: none; padding: 0; object-fit: contain; filter: none; transition: filter .16s ease; }
.brand:hover .logo { filter: drop-shadow(0 0 13px rgba(255,176,64,.95)) drop-shadow(0 0 5px rgba(255,140,40,.85)); }
.brand .wordmark { font-family: var(--fh); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 13.5px; color: var(--nav-ink); transition: text-shadow .16s ease, color .16s ease; }
.brand:hover .wordmark { color: #FFD9A0; text-shadow: 0 0 16px rgba(255,176,64,.75); }
@media (prefers-reduced-motion: reduce) { .brand:hover { transform: none; } }
.brand .wordmark span { color: var(--nav-muted); font-weight: 500; }
.nav nav { display: flex; align-items: center; gap: 24px; }
.nav nav a.link { font-family: var(--fh); font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--nav-muted); text-transform: uppercase; }
.nav nav a.link:hover { color: #fff; }
@media (max-width: 820px) { .nav nav a.link { display: none; } }

/* Dropdown (Technology) — CSS only, hover + keyboard focus */
.dd { position: relative; }
.dd > .link { cursor: pointer; }
.dd > .link::after { content: "▾"; margin-left: 6px; font-size: 9px; opacity: .7; }
.dd .menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 236px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); padding: 7px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .14s ease, transform .14s ease, visibility .14s; z-index: 40; }
.dd:hover .menu, .dd:focus-within .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dd .menu a { display: block; padding: 9px 12px; border-radius: 7px; font-family: var(--fh); font-size: 13px; font-weight: 500; color: var(--ink); text-transform: none; letter-spacing: .01em; }
.dd .menu a:hover { background: var(--wash); color: var(--accent-ink); }

/* Back + Home icons — subtle grey, no background square, on every inner page */
.pagenav { display: flex; align-items: center; gap: 2px; margin: 0 0 16px -7px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: var(--faint); background: none; border: 0; cursor: pointer; transition: color .15s ease, transform .15s ease, filter .15s ease; }
.iconbtn:hover { color: #F07020; transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 0 5px rgba(240,112,32,.7)); }
@media (prefers-reduced-motion: reduce) { .iconbtn:hover { transform: none; } }
.iconbtn svg { width: 20px; height: 20px; }

.btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--fh); background: var(--accent); color: #fff; font-weight: 600; padding: 10px 18px; border-radius: 9px; font-size: 13.5px; border: 0; cursor: pointer; box-shadow: 0 0 0 4px var(--wash); transition: transform .14s ease, box-shadow .14s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px rgba(46,178,110,.55), 0 8px 22px -8px rgba(46,178,110,.6); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.btn.ghost { background: transparent; color: var(--nav-ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); background: rgba(255,255,255,.06); }
.btn.on-light.ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.on-light.ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); background: transparent; }
.btn .m { font-family: var(--fm); font-weight: 600; opacity: .9; }

/* ── Hero (smaller headline than the one-pager) ─────── */
.hero { position: relative; padding: clamp(48px, 7vw, 84px) 0 clamp(20px, 4vw, 40px); overflow: hidden; }
.hero .mark-bg { position: absolute; right: -50px; top: 50%; transform: translateY(-50%); width: min(40vw, 380px); opacity: .05; pointer-events: none; filter: invert(0); }
@media (prefers-color-scheme: dark) { .hero .mark-bg { opacity: .08; filter: invert(1) brightness(1.7); } }
.hero h1 { font-family: var(--fh); font-size: clamp(21px, 2.8vw, 32px); line-height: 1.16; letter-spacing: -0.015em; font-weight: 780; margin: 16px 0 0; max-width: none; }
.hero h1 .g { color: var(--accent); }
.hero .lede { margin: 18px 0 0; font-size: clamp(15px, 1.5vw, 17.5px); color: var(--muted); max-width: 60ch; }
.hero .actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .note { margin-top: 13px; color: var(--faint); font-size: 12.5px; }

/* ── Section scaffolding ────────────────────────────── */
section.band { padding: clamp(30px, 5vw, 58px) 0; }
.idx { font-family: var(--fm); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.idx b { color: var(--accent); font-weight: 700; }
.idx::after { content:""; flex:1; height:1px; background: var(--line-2); }
h2.head { font-family: var(--fh); font-size: clamp(21px, 2.6vw, 30px); font-weight: 750; letter-spacing: -0.018em; margin: 0; text-wrap: balance; }
.sub { color: var(--muted); font-size: clamp(14px, 1.4vw, 16px); margin: 10px 0 0; max-width: 66ch; }

/* ── Cards: 3px indigo top-edge, thin line, shadow ──── */
.card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 13px; box-shadow: var(--shadow-sm); padding: clamp(20px, 2.3vw, 26px); transition: transform .17s ease, box-shadow .17s ease, border-top-color .17s ease; }
.card.lead { box-shadow: var(--shadow); }
.card:hover { transform: translateY(-4px); border-top-color: var(--accent-2); box-shadow: 0 -5px 18px -5px var(--accent), 0 20px 44px -22px rgba(23,27,46,.42); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card h3 { font-family: var(--fh); }

/* Category card with a More footer */
.catgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.catcard { display: flex; flex-direction: column; }
.catcard .cap { font-family: var(--fm); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.capicon { color: var(--accent); line-height: 0; margin-bottom: 8px; }
.capicon svg { width: 26px; height: 26px; }

/* Flip cards — front is a label panel, click flips to reveal details */
.flip { perspective: 1400px; cursor: pointer; transition: transform .18s ease; }
.flip:hover { transform: translateY(-5px); }
.flip:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 14px; }
.flip-inner { display: grid; transition: transform .85s cubic-bezier(.2,.72,.2,1); transform-style: preserve-3d; height: 100%; }
.flip.flipped .flip-inner { transform: rotateX(180deg); }
.flip-front, .flip-back { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip-front { display: grid; place-items: center; text-align: center; padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 13px; background: var(--flip-front); box-shadow: var(--shadow-sm); }
.flip-back { transform: rotateX(180deg); }
.flip-label { font-family: var(--fh); font-weight: 780; font-size: clamp(17px, 2.2vw, 24px); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.flip-tip { position: fixed; z-index: 200; pointer-events: none; opacity: 0; transform: translate(14px, 16px); transition: opacity .12s ease; font-family: var(--fm); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.flip-tip.show { opacity: 1; }
/* Hover only lifts + glows. It must NEVER re-transform a face — the generic
   .card:hover lift was overriding the back's rotateX(180deg), which caused
   the flutter. Pin the faces so only a click flips them. */
.flip-front:hover { transform: none; }
.flip-back:hover { transform: rotateX(180deg); }
.flip:hover .flip-front, .flip:hover .flip-back { box-shadow: 0 -5px 18px -5px var(--accent), 0 22px 46px -22px rgba(23,27,46,.45); }
@media (prefers-reduced-motion: reduce) { .flip, .flip-inner { transition: none; } .flip:hover { transform: none; } }
.catcard h3 { margin: 12px 0 0; font-size: clamp(17px, 1.9vw, 21px); font-weight: 720; letter-spacing: -0.012em; line-height: 1.2; }
.catcard p { margin: 11px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.catcard ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.catcard ul li { display: grid; grid-template-columns: 15px 1fr; gap: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.catcard ul li .tick { color: var(--accent); font-family: var(--fm); font-size: 12px; margin-top: 1px; }
.catcard ul li b { color: var(--ink); font-weight: 600; }
.catcard .more { margin-top: auto; padding-top: 18px; }
.catcard .more a { display: inline-grid; place-items: center; width: 44px; height: 30px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); transition: background .15s ease, border-color .15s ease; }
.catcard .more a:hover { border-color: var(--accent); background: var(--wash); }
.catcard .more a svg { width: 20px; height: 20px; }
.soon { color: var(--accent-ink); font-weight: 600; font-size: 10.5px; letter-spacing: .04em; font-family: var(--fm); }

/* Exposure question grid */
.qgrid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 34px; }
.qgrid li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.qgrid .box { width: 15px; height: 15px; margin-top: 3px; border: 1.5px solid var(--accent); border-radius: 4px; }
.verdict { margin: 22px calc(-1 * clamp(20px,2.3vw,26px)) calc(-1 * clamp(20px,2.3vw,26px)); padding: 15px clamp(20px, 2.3vw, 26px); border-top: 1px solid var(--line); background: var(--wash); font-weight: 600; font-size: 15px; border-radius: 0 0 12px 12px; display: flex; gap: 10px; align-items: baseline; }
.verdict .arw { color: var(--accent); font-family: var(--fm); }
.verdict em { font-style: normal; color: var(--accent-ink); }

/* Try-free CTA card */
.trycard { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; background: linear-gradient(180deg, var(--wash), var(--panel) 46%); }
.trycard h3 { margin: 8px 0 0; font-size: clamp(20px, 2.4vw, 27px); font-weight: 760; letter-spacing: -0.015em; }
.trycard p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }
.trycard .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 780px) { .trycard { grid-template-columns: 1fr; } }

/* Trust band */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(22px,3vw,32px) 0; }
.trust .item { display: flex; gap: 14px; align-items: flex-start; }
.trust .badge { color: var(--accent); font-size: 18px; font-family: var(--fm); margin-top: 2px; }
.trust .item p { margin: 0; font-size: 14.5px; }
.trust .item p span { color: var(--muted); }

/* Detail-page hero */
.pagehero { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 34px); }
.pagehero h1 { font-family: var(--fh); font-size: clamp(24px, 3.2vw, 36px); font-weight: 770; letter-spacing: -0.02em; margin: 14px 0 0; text-wrap: balance; max-width: 22ch; }
.pagehero .lede { margin: 16px 0 0; color: var(--muted); font-size: clamp(15px,1.5vw,17px); max-width: 64ch; }
.crumb { font-family: var(--fm); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.crumb a:hover { color: var(--accent); }

/* Feature list on detail pages */
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.flist li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.flist li .tick { color: var(--accent); font-family: var(--fm); margin-top: 2px; }
.flist li b { color: var(--ink); font-weight: 650; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Form (try-free) */
.formcard { max-width: 560px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--fh); font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select { font-family: var(--fb); font-size: 15px; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); }
.field input:focus, .field select:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--faint); }
.radio-row { display: flex; gap: 18px; }
.radio-row label { font-weight: 500; display: flex; gap: 7px; align-items: center; font-family: var(--fb); font-size: 14px; }
.formnote { font-size: 12.5px; color: var(--faint); margin-top: 4px; }

/* ── Consistent footer ─────────────────────────────── */
footer.foot { background: var(--nav); color: var(--nav-ink); margin-top: 30px; padding: 34px 0 30px; }
footer.foot .frow { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.foot .fnav { display: flex; gap: 8px; flex-wrap: wrap; }
footer.foot .fnav a { font-family: var(--fh); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--nav-muted); padding: 6px 12px; border-radius: 6px; }
footer.foot .fnav a:hover { color: #fff; background: rgba(255,255,255,.07); }
footer.foot .fbot { border-top: 1px solid rgba(255,255,255,.08); margin-top: 20px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer.foot .fbot span { font-family: var(--fm); font-size: 11.5px; color: var(--nav-muted); letter-spacing: .04em; }
.totop { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: var(--nav-muted); border: 0; background: none; cursor: pointer; transition: color .15s ease, transform .15s ease, filter .15s ease; }
.totop:hover { color: #FF6B6B; transform: translateY(-3px) scale(1.08); filter: drop-shadow(0 0 8px rgba(240,60,60,.85)); }
.totop svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .totop:hover { transform: none; } }

/* Downloads page */
.dl-list { display: grid; gap: 14px; margin-top: 26px; }
.dlcard { display: flex; align-items: center; gap: 18px; justify-content: space-between; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 13px; box-shadow: var(--shadow-sm); padding: 20px 22px; }
.dlcard .dlinfo .cap { font-family: var(--fm); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.dlcard .dlinfo h3 { font-family: var(--fh); margin: 8px 0 0; font-size: clamp(17px,1.9vw,20px); font-weight: 730; }
.dlcard .dlinfo p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; max-width: 62ch; }
.dlbtn { flex-shrink: 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 66px; height: 66px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: #D0342C; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, opacity .15s ease; }
.dlbtn svg { width: 26px; height: 26px; }
.dlbtn b { font-family: var(--fm); font-size: 8.5px; letter-spacing: .12em; }
.dlbtn:hover { transform: translateY(-2px); border-color: #D0342C; box-shadow: 0 8px 20px -8px rgba(208,52,44,.55); }
.dl-locked .dlbtn { opacity: .4; filter: grayscale(.7); cursor: not-allowed; }
.dl-locked .dlbtn:hover { transform: none; border-color: var(--line); box-shadow: none; }

@media (max-width: 820px) { .catgrid, .qgrid, .trust, .grid2 { grid-template-columns: 1fr; } .dlcard { flex-wrap: wrap; } }
