/* Certixa — shared styles: keyframes, hover states, widget states, responsive */

html, body { margin: 0; padding: 0; background: #ffffff; }
body { font-family: 'Schibsted Grotesk', sans-serif; color: #131313; -webkit-font-smoothing: antialiased; }
a { color: #17694a; text-decoration: none; }
a:hover { color: #0f4d35; }
::selection { background: #17694a; color: #fff; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes letterIn { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes halo { 0% { box-shadow: 0 16px 36px -12px rgba(23,105,74,0.55), 0 0 0 0 rgba(45,154,110,0.45); } 70% { box-shadow: 0 16px 36px -12px rgba(23,105,74,0.55), 0 0 0 16px rgba(45,154,110,0); } 100% { box-shadow: 0 16px 36px -12px rgba(23,105,74,0.55), 0 0 0 0 rgba(45,154,110,0); } }
@keyframes cometSpin { to { transform: rotate(360deg); } }
@keyframes dashSpin { to { transform: rotate(-360deg); } }
@keyframes glowShift { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.55; } }
@keyframes scanSweep { 0% { left: -30%; } 100% { left: 110%; } }

/* ---- hover classes (replacing design's style-hover attrs) ---- */
.hl { color: #131313; }
.hl:hover { color: #17694a; }
.hl-muted { color: #8a8a85; }
.hl-muted:hover { color: #17694a; }
.hl-green { color: #17694a; }
.hl-green:hover { color: #0f4d35; }
.btn-dark { background: #131313; color: #fff; }
.btn-dark:hover { background: #17694a; color: #fff; }
.btn-black { background: #131313; color: #fff; }
.btn-black:hover { background: #000; color: #fff; }
.btn-white { background: #fff; color: #131313; }
.btn-white:hover { background: #e8e8e4; color: #131313; }
.btn-outline { border: 1px solid #d5d5d0; color: #131313; background: #fff; }
.btn-outline:hover { border-color: #131313; color: #131313; }
.card-h { transition: box-shadow 0.25s ease, transform 0.25s ease; }
.card-h:hover { box-shadow: 0 16px 40px -20px rgba(19,19,19,0.18); transform: translateY(-2px) !important; }
.footer-lnk { color: #131313; }
.footer-lnk:hover { color: #17694a; }

/* ---- reveal on scroll ---- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---- hero audit card tasks ---- */
.task { display: flex; align-items: center; gap: 12px; border: 1px solid #ececea; background: #fafaf8; border-radius: 12px; padding: 12px 14px; opacity: 0; transform: translateY(12px) scale(0.98); transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.task.shown { opacity: 1; transform: none; }
.task-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1.5px solid #d5d5d0; display: grid; place-items: center; color: #fff; flex-shrink: 0; transition: all 0.4s ease; }
.task-label { flex: 1; font-size: 13.5px; font-weight: 500; text-align: left; }
.task-meta { font-family: 'Geist Mono', monospace; font-size: 11px; color: #8a8a85; }
.task .mk { display: none; line-height: 0; }
.task.is-done { border-color: #ececea; background: #fff; }
.task.is-done .task-dot { background: #17694a; border: none; }
.task.is-done .mk-check { display: block; }
.task.is-warn { border-color: #eeddb8; background: #fdf8ec; }
.task.is-warn .task-dot { background: #d9a13b; border: none; }
.task.is-warn .mk-warn { display: block; }
.task.is-warn .task-meta { color: #a97b1e; }
.task.is-work { border-color: #cfe3d8; background: #f2f8f5; }
.task.is-work .task-dot { background: #2d9a6e; border: none; }
.task.is-work .mk-spin { display: block; }
.task.is-work .task-meta { color: #17694a; }

/* ---- lifecycle orbit ---- */
.onode { position: absolute; transform: translate(-50%, -50%) scale(1); width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1px solid #ececea; box-shadow: 0 8px 20px -12px rgba(19,19,19,0.18); display: grid; place-items: center; cursor: pointer; transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1); z-index: 3; padding: 0; }
.onode .ic-on { display: none; line-height: 0; }
.onode .ic-off { display: block; line-height: 0; }
.onode.active { transform: translate(-50%, -50%) scale(1.18); background: linear-gradient(135deg, #1d8a5f, #0f4d35); border-color: #17694a; box-shadow: 0 16px 36px -12px rgba(23,105,74,0.55); animation: halo 2.1s ease infinite; }
.onode.active .ic-on { display: block; }
.onode.active .ic-off { display: none; }
.olabel { position: absolute; font-size: 13px; font-weight: 500; color: #8a8a85; width: 110px; line-height: 1.25; transition: color 0.4s ease; pointer-events: none; }
.olabel.active { color: #17694a; font-weight: 700; }
.sdot { height: 4px; border-radius: 999px; flex: 1; background: #e3e3df; cursor: pointer; overflow: hidden; }
.sdot-fill { height: 4px; border-radius: 999px; background: #17694a; width: 0; transition: width 0.25s ease; }
.sdot.done .sdot-fill { width: 100%; }
.sdot.active .sdot-fill { width: 100%; transition: width 4.2s linear; }
#stageInner { transition: opacity 0.28s ease, transform 0.28s ease; }
#stageInner.fading { opacity: 0; transform: translateY(6px); }
#arcProg { transition: stroke-dashoffset 0.9s cubic-bezier(0.45, 0, 0.25, 1); }

/* ---- platform dashboard tour ---- */
.dtab { position: relative; overflow: hidden; cursor: pointer; background: #fafaf8; border: 1px solid #ececea; border-radius: 14px; padding: 14px 18px; transition: background 0.35s ease, border-color 0.35s ease; text-align: left; width: 100%; font-family: inherit; }
.dtab.active { background: #fff; border-color: #c9dfd2; }
.dtab-bar { position: absolute; left: 0; bottom: 0; height: 2.5px; background: #17694a; width: 0; transition: width 0.2s ease; }
.dtab.active .dtab-bar { width: 100%; transition: width 7s linear; }
.dtab.active.manual .dtab-bar { transition: width 0.2s ease; }
.dpanel { display: none; }
.dpanel.active { display: block; }
.dstat { background: #fff; border: 1px solid #ececea; border-radius: 14px; padding: 13px 14px; opacity: 0; transform: translateY(10px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.dpanel.active .dstat { opacity: 1; transform: none; }
.dpanel.active .dstat:nth-child(1) { transition-delay: 0.2s; }
.dpanel.active .dstat:nth-child(2) { transition-delay: 0.28s; }
.dpanel.active .dstat:nth-child(3) { transition-delay: 0.36s; }
.drow { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #ececea; border-radius: 11px; padding: 10px 13px; opacity: 0; transform: translateY(10px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.dpanel.active .drow { opacity: 1; transform: none; }
.dpanel.active .drow:nth-child(1) { transition-delay: 0.36s; }
.dpanel.active .drow:nth-child(2) { transition-delay: 0.52s; }
.dpanel.active .drow:nth-child(3) { transition-delay: 0.68s; }
.dpanel.active .drow:nth-child(4) { transition-delay: 0.84s; }
.dpanel.active .drow:nth-child(5) { transition-delay: 1.0s; }
.sideic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: transparent; transition: background 0.35s ease; }
.sideic .ic-on { display: none; line-height: 0; }
.sideic .ic-off { display: block; line-height: 0; }
.sideic.active { background: #17694a; }
.sideic.active .ic-on { display: block; }
.sideic.active .ic-off { display: none; }

/* ---- FAQ accordion ---- */
.fq { background: #fafaf8; border: 1px solid #ececea; border-radius: 14px; padding: 20px 22px; cursor: pointer; }
.fq-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.fq-head h3 { font-size: 15.5px; font-weight: 700; margin: 0; }
.fq-chev { font-size: 20px; color: #8a8a85; transform: rotate(0deg); transition: transform 0.25s ease; line-height: 1; }
.fq.open .fq-chev { transform: rotate(45deg); }
.fq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.fq.open .fq-a { max-height: 260px; }
.fq-a p { font-size: 14.5px; line-height: 1.65; color: #5b5b57; margin: 14px 0 0; }

/* ---- prose (blog, resources, legal) ---- */
.prose { max-width: 720px; margin: 0 auto; color: #3f3f42; font-size: 16.5px; line-height: 1.75; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 44px; color: #131313; font-size: 27px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.prose h3 { margin-top: 30px; color: #131313; font-size: 19px; font-weight: 700; }
.prose a { color: #17694a; font-weight: 500; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose blockquote { margin: 28px 0; padding: 20px 24px; border-left: 3px solid #17694a; border-radius: 0 12px 12px 0; background: #f2f8f5; color: #131313; font-weight: 500; }
.prose .meta { display: flex; flex-wrap: wrap; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid #ececea; color: #8a8a85; font-family: 'Geist Mono', monospace; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; }

.post-card { display: flex; flex-direction: column; gap: 11px; background: #fafaf8; border: 1px solid #ececea; border-radius: 18px; padding: 26px 24px; color: #131313; transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease; }
.post-card:hover { color: #131313; border-color: #c9dfd2; box-shadow: 0 16px 40px -20px rgba(19,19,19,0.18); transform: translateY(-2px); }
.post-card .tag { font-family: 'Geist Mono', monospace; font-size: 10.5px; color: #17694a; background: #e9f3ee; border-radius: 999px; padding: 4px 10px; align-self: flex-start; }
.post-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin: 0; line-height: 1.3; }
.post-card p { font-size: 14px; line-height: 1.6; color: #5b5b57; margin: 0; }
.post-card .pm { margin-top: auto; font-size: 12.5px; color: #a3a39c; }

/* ---- responsive (design is inline-styled; override by attribute) ---- */
@media (max-width: 980px) {
  div[style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: 1fr 1fr !important; }
  div[style*="grid-template-columns: 2fr 1fr 1fr 1fr"] { grid-template-columns: 1fr 1fr !important; }
  div[style*="grid-template-columns: 1fr 1.3fr"],
  div[style*="grid-template-columns: minmax(300px, 1fr) minmax(560px, 1.5fr)"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns: 292px 1fr"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 720px) {
  .nav-center { display: none !important; }
  .nav-signin { display: none !important; }
  h1[style] { font-size: 38px !important; }
  h2[style] { font-size: 30px !important; }
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(2, 1fr)"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 2fr 1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
  div[style*="padding: 44px 44px 0"] { padding: 28px 24px 0 !important; }
  div[style*="padding: 56px 52px"] { padding: 36px 26px !important; }
  div[style*="padding: 90px 40px"], div[style*="padding: 80px 40px"] { padding: 56px 24px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
