/* Digital Footprint Check
   Scoped to this page. Uses the site obsidian tokens from css/style.css. */

.df-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 4.5rem;
  color: var(--text);
}

.df-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.5rem 0 1.25rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.df-crumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.df-crumb a:hover {
  color: var(--primary-soft);
}

.df-hero {
  position: static;
  top: auto;
  z-index: auto;
  max-width: 42rem;
  margin-bottom: 1.25rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.df-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--primary-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.df-hero h1,
.df-prose h2,
.df-faq h2,
.df-related h2,
.df-area-title,
.df-score-heading,
.df-action-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-brand), Georgia, serif;
  font-weight: 600;
}

.df-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.df-hero p,
.df-prose p,
.df-faq p,
.df-hint,
.df-detail,
.df-summary,
.df-share,
.df-checker,
.df-block,
.df-area-intro,
.df-done-count {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.df-hero p,
.df-area-intro,
.df-detail,
.df-summary,
.df-done-count {
  margin: 0 0 0.9rem;
}

.df-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.df-steps li {
  margin: 0;
  padding: 0.75rem 0.8rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.df-steps strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text);
}

.df-client {
  margin: 1.25rem 0 2rem;
}

.df-status {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  margin-bottom: 0.75rem;
}

.df-status p,
.df-recall p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

#df-progress,
#df-saved {
  color: var(--text);
  font-weight: 650;
}

#df-saved {
  text-align: right;
}

.df-meter {
  grid-column: 1 / -1;
  height: 6px;
  margin-top: 0.35rem;
  overflow: hidden;
  background: var(--bg-elevated);
  border-radius: 999px;
}

.df-meter-fill {
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 160ms ease;
}

.df-recall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  padding: 0.8rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.df-recall[hidden],
.df-recall button[hidden] {
  display: none;
}

.df-recall-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.df-card {
  min-height: 280px;
  padding: 1.25rem 1.2rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.df-card.is-fresh {
  animation: df-in 180ms ease;
}

.df-kicker,
.df-action-kicker {
  margin: 0 0 0.45rem;
  color: var(--primary-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.df-area-title,
.df-score-heading {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.05;
}

.df-item {
  margin: 0 0 1rem;
  padding: 0.9rem 0.85rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.df-item:last-of-type {
  margin-bottom: 0.4rem;
}

.df-prompt {
  padding: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
}

.df-choices {
  display: grid;
  gap: 0.45rem;
}

.df-choice {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.7rem;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 0.75rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.df-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.df-choice-text {
  font-size: 0.98rem;
  line-height: 1.4;
}

.df-choice-key {
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
}

.df-choice:has(input:checked) {
  border-color: var(--primary-soft);
  box-shadow: inset 4px 0 0 var(--primary);
}

.df-choice.is-handled:has(input:checked) {
  box-shadow: inset 4px 0 0 #86efac;
}

.df-choice.is-partial:has(input:checked) {
  box-shadow: inset 4px 0 0 #fde68a;
}

.df-choice.is-open:has(input:checked) {
  box-shadow: inset 4px 0 0 #fecaca;
}

.df-actions,
.df-score-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1rem;
}

.df-actions .df-next:only-child,
.df-score-actions .df-clear {
  grid-column: 1 / -1;
}

.df-next,
.df-back,
.df-copy,
.df-again,
.df-clear,
.df-recall-actions button {
  min-height: 52px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.df-next,
.df-recall-actions [data-action='saved'] {
  color: var(--primary-ink);
  background: var(--primary);
  border: 1px solid transparent;
}

.df-back,
.df-copy,
.df-again,
.df-clear,
.df-recall-actions [data-action='clear'] {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
}

.df-next:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.df-next:hover,
.df-back:hover,
.df-copy:hover,
.df-again:hover,
.df-clear:hover,
.df-recall-actions button:hover,
.df-choice:hover {
  border-color: var(--primary-soft);
}

.df-score-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.df-ring {
  --df-pct: 0;
  display: grid;
  place-items: center;
  width: 6.5rem;
  height: 6.5rem;
  background: conic-gradient(var(--primary) calc(var(--df-pct) * 1%), var(--bg-elevated) 0);
  border-radius: 50%;
}

.df-ring-value {
  display: grid;
  place-items: center;
  width: 4.7rem;
  height: 4.7rem;
  color: var(--text);
  font-family: var(--font-brand), Georgia, serif;
  font-size: 1.7rem;
  background: var(--card);
  border-radius: 50%;
}

.df-score-num {
  margin: 0.15rem 0 0.35rem;
  color: var(--text);
  font-weight: 650;
}

.df-radar-wrap {
  margin: 0.4rem auto 0.8rem;
  max-width: 24rem;
  padding: 0.25rem 0.5rem 0;
}

.df-radar {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.df-radar-ring,
.df-radar-axis {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1;
}

.df-radar-shape {
  fill: rgba(194, 65, 12, 0.35);
  stroke: var(--primary-soft);
  stroke-width: 2;
}

.df-radar-label {
  fill: var(--text);
  font-size: 12px;
  font-family: var(--font-body), Outfit, sans-serif;
}

.df-bars {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.df-bars li {
  display: grid;
  grid-template-columns: 5.2rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.df-bar-name {
  color: var(--text);
  font-weight: 650;
}

.df-bar-track {
  display: block;
  height: 8px;
  overflow: hidden;
  background: var(--bg-elevated);
  border-radius: 999px;
}

.df-bar-fill {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
}

.df-bars .is-quiet .df-bar-fill {
  background: #86efac;
}

.df-bars .is-some .df-bar-fill {
  background: #fde68a;
}

.df-bars .is-open .df-bar-fill {
  background: #fecaca;
}

.df-bar-value {
  min-width: 3.4rem;
  text-align: right;
}

.df-plan-heading {
  margin: 0.9rem 0 0.45rem;
  font-family: var(--font-brand), Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.df-leads,
.df-more {
  display: grid;
  gap: 0.7rem;
}

.df-action {
  padding: 0.9rem 0.95rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.df-action.is-lead {
  border-color: var(--border-strong);
}

.df-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
  cursor: pointer;
}

.df-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--primary);
}

.df-action-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.df-block {
  margin: 0.45rem 0 0;
}

.df-block-label {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.df-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.df-links a,
.df-checker a,
.df-prose a,
.df-faq a {
  color: var(--primary-soft);
}

.df-share {
  padding: 0.75rem 0.8rem;
  overflow-wrap: anywhere;
  background: var(--bg-elevated);
  border-radius: 12px;
}

.df-copy-status {
  min-height: 1.2em;
  margin: 0.55rem 0 0;
  color: var(--text);
  font-weight: 650;
}

.df-choice:focus-within,
.df-next:focus-visible,
.df-back:focus-visible,
.df-copy:focus-visible,
.df-again:focus-visible,
.df-clear:focus-visible,
.df-recall-actions button:focus-visible,
.df-check:focus-within,
.df-area-title:focus-visible,
.df-score-heading:focus-visible,
.df-links a:focus-visible,
.df-related-grid a:focus-visible,
.df-prose a:focus-visible,
.df-crumb a:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 3px;
}

.df-prose,
.df-faq,
.df-related {
  max-width: 42rem;
  margin: 2rem 0;
}

.df-prose h3 {
  margin: 1.4rem 0 0.4rem;
  font-family: var(--font-brand), Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.df-faq details {
  border-top: 1px solid var(--border);
}

.df-faq summary {
  padding: 0.85rem 0;
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
}

.df-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.df-related-grid a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.df-related-grid a:hover {
  border-color: var(--primary-soft);
}

.df-related-grid strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.df-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes df-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 700px) {
  .df-page {
    padding: 1rem 0.9rem 4rem;
  }

  .df-steps,
  .df-related-grid,
  .df-status,
  .df-score-row,
  .df-bars li {
    grid-template-columns: 1fr;
  }

  #df-saved,
  .df-bar-value {
    text-align: left;
  }

  .df-card {
    padding: 1rem 0.9rem;
  }

  .df-actions,
  .df-score-actions {
    grid-template-columns: 1fr;
  }

  .df-choice-key {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .df-card,
  .df-card.is-fresh,
  .df-meter-fill,
  .df-bar-fill,
  .df-next,
  .df-back,
  .df-copy,
  .df-again,
  .df-clear,
  .df-choice {
    animation: none;
    transition: none;
  }
}
