/* Goft UI — simple light theme, shared across home / cert-check / docs */
:root {
  --goft-bg: #f5f7fa;
  --goft-card: #ffffff;
  --goft-ink: #1e293b;
  --goft-muted: #64748b;
  --goft-line: #e2e8f0;
  --goft-accent: #0ea5e9;
  --goft-accent-deep: #0284c7;
  --goft-ok: #0d9488;
  --goft-card-w: min(750px, calc(100vw - 40px));
  --goft-radius: 20px;
}

/* Quiet background — kill heavy animated blobs */
html,
body {
  background: var(--goft-bg) !important;
  color: var(--goft-ink);
}

body .bg-anim,
body .bg-blob,
body .bg-orb,
body [class*="bg-anim"],
body [class*="blob"] {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
}

/* Unified card size + flat light panel */
.card-glass,
.docs-card,
.cert-card,
main .card,
.container .card-glass {
  width: var(--goft-card-w) !important;
  max-width: var(--goft-card-w) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: clamp(24px, 4vw, 36px) !important;
  border-radius: var(--goft-radius) !important;
  background: var(--goft-card) !important;
  border: 1px solid var(--goft-line) !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
  overflow: hidden !important;
  transition: box-shadow 0.18s ease !important;
  animation: none !important;
}

.card-glass::before,
.card-glass::after,
.docs-card::before,
.docs-card::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

.card-glass:hover,
.docs-card:hover {
  transform: none !important;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08) !important;
}

.card-glass .brand,
.card-glass .brand .title,
.card-glass h1.title,
.card-glass h1,
.docs-hero h1,
.docs-wrap h1 {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: var(--goft-ink) !important;
  letter-spacing: -0.02em !important;
}

.card-glass .small-muted,
.docs-wrap .lead,
.docs-wrap p.text-muted {
  color: var(--goft-muted) !important;
}

/* Toolbar — simple light chips */
.card-glass .toolbar,
.docs-wrap .toolbar,
.toolbar {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin-bottom: 18px !important;
  padding: 8px !important;
  border-radius: 16px !important;
  background: #f1f5f9 !important;
  border: 1px solid var(--goft-line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
  overflow: visible !important;
}

.toolbar::before,
.toolbar::after {
  display: none !important;
  animation: none !important;
}

.toolbar a.btn,
.toolbar .dropdown > .btn {
  flex: 1 1 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #475569 !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
  transform: none !important;
  animation: none !important;
}

.toolbar a.btn::before,
.toolbar .dropdown > .btn::before {
  display: none !important;
}

.toolbar a.btn i,
.toolbar .dropdown > .btn i {
  margin: 0 !important;
  opacity: 0.85;
}

.toolbar a.btn:hover,
.toolbar .dropdown > .btn:hover {
  background: #fff !important;
  border-color: #cbd5e1 !important;
  color: var(--goft-ink) !important;
  transform: none !important;
  box-shadow: none !important;
}

.toolbar a.btn.active,
.toolbar a.btn:nth-child(1).active,
.toolbar a.btn:nth-child(2).active,
.toolbar a.btn:nth-child(3).active {
  background: #fff !important;
  border-color: #bae6fd !important;
  color: var(--goft-accent-deep) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.toolbar a.btn.active i,
.toolbar a.btn.active .menu-label {
  color: inherit !important;
}

.toolbar .dropdown {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
}

.toolbar .dropdown > .btn {
  flex: 0 0 auto !important;
  min-width: 84px !important;
  background: #fff !important;
  border-color: var(--goft-line) !important;
}

.toolbar .dropdown-menu {
  border-radius: 12px !important;
  border: 1px solid var(--goft-line) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
  padding: 6px !important;
}

.toolbar .dropdown-item {
  border-radius: 8px !important;
  font-weight: 650 !important;
}

.toolbar .dropdown-item:hover {
  background: #f0f9ff !important;
  color: var(--goft-accent-deep) !important;
}

/* Step rail (home) */
.goft-smart-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}

.goft-smart-rail .step {
  padding: 10px 8px 9px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--goft-line);
  text-align: center;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.goft-smart-rail .step b {
  display: block;
  font-size: 13px;
  color: var(--goft-ink);
  margin-bottom: 2px;
  font-weight: 800;
}

.goft-smart-rail .step.is-done {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: var(--goft-ok);
}

.goft-smart-rail .step.is-done b { color: var(--goft-ok); }

.goft-smart-rail .step.is-active {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: var(--goft-accent-deep);
}

.goft-smart-rail .step.is-active b { color: var(--goft-accent-deep); }

/* Form fields */
.card-glass .form-label {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
}

.card-glass .form-control,
.card-glass .form-select {
  border-radius: 12px !important;
  border: 1px solid #cbd5e1 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.card-glass .form-control:focus,
.card-glass .form-select:focus {
  border-color: #7dd3fc !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12) !important;
}

.card-glass .goft-file-tile {
  border-radius: 14px;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  padding: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.card-glass .goft-file-tile.is-drag {
  border-color: var(--goft-accent);
  background: #f0f9ff;
}

.card-glass .goft-file-tile.is-ready {
  border-style: solid;
  border-color: #5eead4;
  background: #f0fdfa;
}

.card-glass .goft-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: var(--goft-accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.card-glass .goft-hint {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--goft-line);
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.card-glass .goft-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--goft-line);
  font-size: 12px;
  color: #475569;
  font-weight: 650;
}

.card-glass .goft-status-bar .pct {
  color: var(--goft-accent-deep);
  font-variant-numeric: tabular-nums;
}

.card-glass .btn-gradient,
.card-glass button.btn-gradient,
.card-glass #signForm button[type="submit"] {
  border-radius: 12px !important;
  background: var(--goft-accent-deep) !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  transition: background 0.15s ease, filter 0.15s ease !important;
  animation: none !important;
}

.card-glass .btn-gradient:hover,
.card-glass button.btn-gradient:hover {
  background: #0369a1 !important;
  transform: none !important;
  filter: none;
  box-shadow: none !important;
}

.card-glass .goft-ready-pulse {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18) !important;
  animation: none !important;
}

/* Docs page: flatten fancy step cards */
.docs-wrap .step-card,
.docs-wrap .feature-card,
.docs-wrap .card,
.docs-section .card {
  background: #fff !important;
  border: 1px solid var(--goft-line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  animation: none !important;
}

.docs-wrap [style*="gradient"],
.docs-wrap .gradient-text {
  background: none !important;
  color: var(--goft-ink) !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

/* Reduce motion / paint cost site-wide inside main surfaces */
.card-glass *,
.docs-wrap *,
.toolbar * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.15s !important;
}

@media (max-width: 768px) {
  :root {
    --goft-card-w: calc(100vw - 16px);
    --goft-radius: 16px;
  }

  .card-glass,
  .docs-card {
    margin: 10px auto 120px !important;
    padding: 14px 12px 18px !important;
  }

  .toolbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .toolbar a.btn,
  .toolbar .dropdown,
  .toolbar .dropdown > .btn {
    width: 100% !important;
    flex: none !important;
  }

  .toolbar a.btn,
  .toolbar .dropdown > .btn {
    min-height: 52px !important;
    flex-direction: column !important;
    gap: 4px !important;
    font-size: 0.78rem !important;
    white-space: normal !important;
  }

  .toolbar a.btn .menu-label {
    font-size: 0.72rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .goft-smart-rail {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }

  .goft-smart-rail .step {
    font-size: 9px;
    padding: 8px 2px;
  }
}


/* Footer free-cert subscribe */
.footer .goft-cert-sub a {
  color: #0284c7 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  font-size: 0.95rem;
}
.footer .goft-cert-sub a:hover {
  color: #0369a1 !important;
  text-decoration: underline !important;
}

/* Force main content cards identical to sign.html */
.cert-card,
.card-glass,
body .cert-card,
body .card-glass,
.page .cert-card,
.page-shell .cert-card {
  width: var(--goft-card-w) !important;
  max-width: var(--goft-card-w) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
@media (max-width: 768px) {
  .cert-card,
  .card-glass,
  body .cert-card {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    padding: 16px !important;
  }
}
