/* ────────────────────────────────────────────────────────────────────────
   Digivahti brand (auditointi.digivahti.fi)
   Sama ilme kuin digivahti.fi:ssä: yönsininen hero, oranssi toimintaväri,
   minttu onnistumisille, Quicksand (jo oletusfontti). Sisältöalue pysyy
   vaaleana kuten Webbiketulla, joten moduulien omiin väreihin ei kosketa.
   Kaikki säännöt on rajattu body[data-brand="digivahti"]:hin.

   Yhteydenottolomakkeet piilotetaan: Digivahdin kehotus on "aloita seuranta",
   ja branding/digivahti/brand.js ohjaa kehotusnapit rekisteröintiin.
   ──────────────────────────────────────────────────────────────────────── */

body[data-brand="digivahti"] {
  --brand-primary: #ff8400;
  --brand-primary-hover: #e67600;
  --brand-primary-soft: #fff7ed;
  --brand-secondary: #06caa7;
  --brand-secondary-soft: #f0fdf9;
  --brand-dark: #16263b;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
body[data-brand="digivahti"] .header-band {
  background:
    radial-gradient(900px 420px at 80% 30%, rgba(6, 202, 167, 0.14), transparent 60%),
    radial-gradient(700px 380px at 10% 100%, rgba(255, 132, 0, 0.12), transparent 60%),
    linear-gradient(180deg, #0f1b2b 0%, #13233a 100%);
}
body[data-brand="digivahti"] .header-wordmark-text {
  color: #fff;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1;
}
body[data-brand="digivahti"] .header-wordmark-text b { color: #ff8400; font-weight: 700; }
body[data-brand="digivahti"] .subtitle { color: rgba(255, 255, 255, 0.78); }
body[data-brand="digivahti"] .tagline {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

/* ── Toimintavärit: oranssi napit, yönsininen aktiivinen välilehti ───────── */
body[data-brand="digivahti"] .view-tab.active {
  background: #16263b;
  border-color: #16263b;
}
body[data-brand="digivahti"] .share-btn:hover { background: #16263b; border-color: #16263b; }
body[data-brand="digivahti"] .cta-score {
  background: #fff7ed;
  border-color: #ff8400;
}
body[data-brand="digivahti"] .cta-bottom-link,
body[data-brand="digivahti"] .contact-learn-more {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 100px;
  background: #ff8400;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
body[data-brand="digivahti"] .cta-bottom-link:hover { background: #e67600; color: #fff; }

/* ── Yhteydenottolomakkeet pois ──────────────────────────────────────────── */
body[data-brand="digivahti"] #contact-bubble,
body[data-brand="digivahti"] #contact-panel,
body[data-brand="digivahti"] .fab-contact,
body[data-brand="digivahti"] .cta-bottom-form > label,
body[data-brand="digivahti"] .cta-bottom-form > input,
body[data-brand="digivahti"] .cta-bottom-form > textarea,
body[data-brand="digivahti"] #ctaBottomSendBtn,
body[data-brand="digivahti"] #cta-bottom-feedback {
  display: none !important;
}

/* ── PDF-sähköpostilomake (brand.js) ──────────────────────────────────── */
.pdf-gate {
  margin: auto;  /* sivun * { margin: 0 } -nollaus kumoaa dialogin oman keskityksen */
  border: none;
  border-radius: 18px;
  padding: 28px;
  width: min(460px, calc(100vw - 32px));
  box-shadow: 0 30px 60px -20px rgba(15, 27, 43, 0.45);
  font-family: 'Quicksand', sans-serif;
  color: #0a0e1a;
}
.pdf-gate::backdrop { background: rgba(15, 27, 43, 0.55); }
.pdf-gate h2 { font-size: 21px; margin: 0 0 8px; color: #16263b; }
.pdf-gate p { margin: 0 0 16px; font-size: 15px; color: #343b47; line-height: 1.5; }
.pdf-gate label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.pdf-gate input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
}
.pdf-gate input[type="email"]:focus { outline: 3px solid rgba(255, 132, 0, 0.35); border-color: #ff8400; }
.pdf-gate .consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin: 14px 0;
  font-weight: 500;
  font-size: 13.5px;
  color: #343b47;
  line-height: 1.45;
}
.pdf-gate .consent input { margin-top: 2px; width: 18px; height: 18px; }
.pdf-gate .ts { min-height: 65px; margin: 4px 0 12px; }
.pdf-gate .msg { min-height: 1.4em; font-size: 14px; margin: 0 0 12px; }
.pdf-gate .msg.err { color: #b42318; }
.pdf-gate .msg.ok { color: #0a7a5b; font-weight: 600; }
.pdf-gate .row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.pdf-gate button {
  padding: 12px 24px;
  border-radius: 100px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pdf-gate .primary { background: #ff8400; color: #fff; }
.pdf-gate .primary:hover { background: #e67600; }
.pdf-gate .primary:disabled { background: #94a3b8; cursor: not-allowed; }
.pdf-gate .secondary { background: transparent; border-color: #16263b; color: #16263b; }
