/* Shared styles for the NetGuard product pages (/netguard/assessment/, /netguard/pen/).
   Tokens mirror the main site's Casatech design system in /index.html. */
:root {
  --navy: #1c2b4a; --navy-mid: #243660; --gold: #b8883a; --gold-light: #d4a85a; --cta-hover: #e0b96f;
  --surface: #faf8f4; --surface-alt: #f2ede4; --surface-raised: #ffffff; --surface-inverse: #1c2b4a;
  --ink: #1a1a2e; --ink-mid: #4a4a6a; --heading: #1c2b4a; --accent-ink: #8a6420;
  --border: rgba(28,43,74,0.12); --border-strong: rgba(28,43,74,0.28);
  --on-inverse: #ffffff; --on-inverse-mid: rgba(255,255,255,0.74);
  --focus-ring: #8a6420;
  --shadow-card: 0 1px 2px rgba(28,43,74,0.06), 0 8px 24px rgba(28,43,74,0.06);
  --shadow-lift: 0 18px 40px rgba(28,43,74,0.16);
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mark: Cinzel, "Playfair Display", serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --surface: #121c31; --surface-alt: #18243f; --surface-raised: #1c2b4a; --surface-inverse: #0b1324;
  --ink: #f5f1ea; --ink-mid: #bfc4d4; --heading: #faf8f4; --accent-ink: #d4a85a;
  --border: rgba(250,248,244,0.12); --border-strong: rgba(250,248,244,0.3); --focus-ring: #d4a85a;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.25); --shadow-lift: 0 18px 40px rgba(0,0,0,0.45);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --surface: #121c31; --surface-alt: #18243f; --surface-raised: #1c2b4a; --surface-inverse: #0b1324;
  --ink: #f5f1ea; --ink-mid: #bfc4d4; --heading: #faf8f4; --accent-ink: #d4a85a;
  --border: rgba(250,248,244,0.12); --border-strong: rgba(250,248,244,0.3); --focus-ring: #d4a85a;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.25); --shadow-lift: 0 18px 40px rgba(0,0,0,0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 17px/1.65 var(--font-sans); }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--heading); line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--accent-ink); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 13px 22px; font-weight: 500; font-size: 16px; text-decoration: none; transition: background .15s, border-color .15s; }
.btn--primary { background: var(--gold-light); color: var(--navy); } .btn--primary:hover { background: var(--cta-hover); }
.btn--navy { background: var(--navy); color: #fff; } .btn--navy:hover { background: var(--navy-mid); }
.btn--outline { border: 1.5px solid var(--border-strong); color: var(--heading); } .btn--outline:hover { border-color: var(--heading); }
.inv .btn--outline { border-color: rgba(255,255,255,.45); color: #fff; } .inv .btn--outline:hover { border-color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { display: block; font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.inv .eyebrow { color: var(--gold-light); }

/* Header */
.site-head { background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 19px; font-weight: 600; white-space: nowrap; }
.logo span { color: var(--gold-light); }
.shield { position: relative; width: 32px; height: 36px; flex: none; }
.shield svg { width: 100%; height: 100%; display: block; }
.shield b { position: absolute; inset: 0 0 4px; display: grid; place-items: center; font: 500 15px/1 var(--font-mark); color: #fff; }
.site-head nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-head nav a { text-decoration: none; opacity: .82; } .site-head nav a:hover, .site-head nav a[aria-current] { opacity: 1; color: var(--gold-light); }
.site-head nav .btn { opacity: 1; padding: 9px 16px; font-size: 15px; }

/* Hero */
.hero { background: var(--surface-inverse); color: var(--on-inverse); padding-block: 64px 88px; position: relative; overflow: hidden; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.6vw, 58px); max-width: 18ch; margin-block: 14px 18px; }
.hero h1 em { color: var(--gold-light); }
.hero .lead { font-size: 19px; color: var(--on-inverse-mid); max-width: 56ch; margin: 0 0 30px; }
.hero-bg { position: absolute; right: -80px; top: -40px; width: 460px; height: 520px; opacity: .35; pointer-events: none; }
.hero .note { margin-top: 26px; font-size: 15px; color: var(--on-inverse-mid); }
.hero .note b { color: #fff; font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(212,168,90,.5); color: var(--gold-light); border-radius: 999px; padding: 5px 14px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); }

/* Bands */
.band { padding-block: 72px; }
.band--alt { background: var(--surface-alt); }
.head { max-width: 680px; margin-bottom: 36px; }
.head h2 { font-size: clamp(28px, 4vw, 40px); margin-block: 10px 12px; }
.head p { color: var(--ink-mid); margin: 0; }

.grid2, .grid3, .grid4 { display: grid; gap: 18px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 12px; padding: 26px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 22px; }
.card p { margin: 0; color: var(--ink-mid); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card--feat { border: 2px solid var(--gold-light); box-shadow: var(--shadow-lift); }
.tag { align-self: flex-start; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; background: var(--gold-light); color: var(--navy); padding: 4px 10px; border-radius: 999px; }
.ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(212,168,90,.16); color: var(--accent-ink); }
.ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.list { margin: 4px 0 8px; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 16px; }
.list li { padding-left: 24px; position: relative; }
.list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.list--x li::before { width: 12px; height: 2px; border: 0; background: var(--ink-mid); transform: none; top: .8em; }

.price { font-family: var(--font-display); font-size: 36px; color: var(--heading); line-height: 1.1; }
.price small { font: 400 15px var(--font-sans); color: var(--ink-mid); }
.meta { font-size: 14px; color: var(--ink-mid); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { border-top: 3px solid var(--gold-light); padding-top: 16px; }
.step b { display: block; font-family: var(--font-display); font-size: 21px; color: var(--heading); font-weight: 600; margin-bottom: 6px; }
.step b::before { counter-increment: step; content: counter(step) ". "; color: var(--accent-ink); }
.step p { margin: 0; color: var(--ink-mid); font-size: 16px; }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-size: 19px; color: var(--heading); font-weight: 600; background: var(--surface-alt); }
.compare tbody th { font-weight: 500; color: var(--ink-mid); width: 26%; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .here { background: rgba(212,168,90,.1); }
.table-scroll { overflow-x: auto; }

/* Callout / guarantee */
.callout { border-left: 4px solid var(--gold-light); background: var(--surface-raised); border-radius: 0 12px 12px 0; padding: 22px 26px; box-shadow: var(--shadow-card); }
.callout h3 { font-size: 21px; margin-bottom: 6px; }
.callout p { margin: 0; color: var(--ink-mid); }

/* Founder */
.about { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center; }
.about img { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; background: var(--navy); display: block; }
.about p { color: var(--ink-mid); margin: 0; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.creds span { border: 1px solid var(--border); background: var(--surface-raised); border-radius: 999px; padding: 5px 14px; font-size: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 800px; }
details { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
summary { cursor: pointer; font-weight: 500; font-size: 17px; color: var(--heading); }
details p { margin: 10px 0 0; color: var(--ink-mid); }

/* Final CTA + footer */
.final { background: var(--surface-inverse); color: #fff; text-align: center; padding-block: 76px; position: relative; overflow: hidden; }
.final h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); max-width: 22ch; margin: 10px auto 14px; }
.final h2 em { color: var(--gold-light); }
.final p { color: var(--on-inverse-mid); max-width: 54ch; margin: 0 auto 26px; }
.final .btns { justify-content: center; }
.final .small { font-size: 15px; margin-top: 22px; margin-bottom: 0; }
.site-foot { background: #0e1729; color: #aab3c5; font-size: 14px; padding-block: 24px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.site-foot a { text-decoration: none; } .site-foot a:hover { color: #fff; }

@media (max-width: 900px) {
  .grid3, .grid4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .site-head nav a:not(.btn) { display: none; }
  .grid2, .grid3, .grid4, .steps, .about { grid-template-columns: 1fr; }
  .about img { width: 128px; height: 128px; }
  .band { padding-block: 56px; }
  .hero { padding-block: 48px 64px; }
  .hero-bg { width: 300px; height: 340px; right: -120px; }
}
