@import url('./tokens.css');
@import url('../shared/motion-tokens.css');
@import url('./motion.css');

html {
  scroll-padding-bottom: 120px;
  scroll-padding-top: var(--dbk-space-6);
  /* Respect user/browser root font size for WCAG 2.2 AA 200% text resize */
  font-size: 100%;
  overflow-x: clip;
}

.dbk-life {
  --ink: var(--dbk-ink);
  --muted: var(--dbk-ink-muted);
  --paper: var(--dbk-surface);
  --green: var(--dbk-accent);
  --highlight: var(--dbk-accent-tint);
  --line: var(--dbk-border);
  --red: var(--dbk-error);
  background: var(--dbk-bg);
  color: var(--dbk-ink);
  font-family: var(--dbk-font-sans);
  font-size: var(--dbk-text-body);
  font-weight: var(--dbk-weight-regular);
  line-height: var(--dbk-lh-body);
  overflow-x: clip;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ============================================================================
 * 1. UNIFIED GRID & CONTAINER ALIGNMENT (Header, Main, Footer)
 * ========================================================================== */
.dbk-life :is(main, .top, footer) {
  width: min(calc(100% - var(--dbk-space-8)), var(--dbk-container-reading));
  margin-inline: auto;
}
.dbk-life:has(.hero) :is(main, .top, footer) {
  width: min(calc(100% - var(--dbk-space-8)), var(--dbk-container-wide));
}
.dbk-life.dbk-ops :is(main, .top, footer) {
  width: min(calc(100% - var(--dbk-space-8)), var(--dbk-container-ops));
}

.dbk-life .top {
  min-height: 68px;
  border-bottom: 1px solid var(--dbk-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dbk-space-3);
  padding-block: var(--dbk-space-2);
}
.dbk-life .top > a,
.dbk-life .top > a:link,
.dbk-life .top > a:visited,
.dbk-life .top > a:hover,
.dbk-life .top > a:focus,
.dbk-life .top > a:focus-visible,
.dbk-life .top > a:active {
  color: var(--dbk-ink);
  font-weight: var(--dbk-weight-bold);
  font-size: var(--dbk-text-subhead);
  display: inline-flex;
  align-items: center;
  gap: var(--dbk-space-2);
  text-decoration: none;
  text-decoration-line: none;
  border-bottom: 0;
  min-height: var(--dbk-touch-compact);
  transition: transform var(--dbk-motion-press) var(--dbk-ease-out), opacity .18s ease;
}
.dbk-life .top > a:hover { color: var(--dbk-ink); opacity: .82; }
.dbk-life .top > a:active { transform: scale(.97); opacity: .8; }
.dbk-life .top #account button {
  min-height: var(--dbk-touch-compact);
  padding: var(--dbk-space-2) var(--dbk-space-4);
  font-size: var(--dbk-text-caption);
}

.dbk-life main {
  border: none;
  box-shadow: none;
  padding: var(--dbk-page-pad-y) 0 var(--dbk-space-12);
  border-radius: 0;
  min-height: 52vh;
  background: transparent;
}
.dbk-life footer {
  padding: var(--dbk-space-6) 0 var(--dbk-space-12);
  border-top: 1px solid var(--dbk-border);
  font-size: var(--dbk-text-caption);
  color: var(--dbk-ink-muted);
}
.dbk-life footer a {
  color: var(--dbk-ink-secondary);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.dbk-life footer a:hover { color: var(--dbk-accent); }

/* ============================================================================
 * 2. EDITORIAL TYPOGRAPHY & 4-LEVEL INFORMATION HIERARCHY
 * ========================================================================== */
.dbk-life h1 {
  font-size: var(--dbk-text-page-title);
  font-weight: var(--dbk-weight-bold);
  line-height: var(--dbk-lh-tight);
  letter-spacing: var(--dbk-tracking-tight);
  color: var(--dbk-ink);
  margin: 0 0 var(--dbk-space-4);
  text-wrap: balance;
}
.dbk-life .hero h1 {
  font-size: var(--dbk-text-display);
  line-height: var(--dbk-lh-display);
  max-width: var(--dbk-measure-heading);
}
.dbk-life h2 {
  font-size: var(--dbk-text-section);
  font-weight: var(--dbk-weight-semibold);
  line-height: var(--dbk-lh-heading);
  color: var(--dbk-ink);
  margin: 0 0 var(--dbk-space-3);
}
.dbk-life h3 {
  font-size: var(--dbk-text-subhead);
  font-weight: var(--dbk-weight-semibold);
  line-height: var(--dbk-lh-heading);
  color: var(--dbk-ink);
  margin: 0 0 var(--dbk-space-2);
}
.dbk-life p {
  margin: 0 0 var(--dbk-para-gap);
  color: var(--dbk-ink-secondary);
  max-width: var(--dbk-measure-body);
}
.dbk-life p:last-child { margin-bottom: 0; }
.dbk-life.dbk-ops p { max-width: 72ch; }
.dbk-life small, .dbk-life .muted {
  font-size: var(--dbk-text-caption);
  color: var(--dbk-ink-muted);
  line-height: var(--dbk-lh-support);
}
.dbk-life .eyebrow {
  font-size: var(--dbk-text-caption);
  font-weight: var(--dbk-weight-semibold);
  color: var(--dbk-accent);
  letter-spacing: var(--dbk-tracking-eyebrow);
  margin: 0 0 var(--dbk-space-2);
  text-transform: none;
}
.dbk-life .dbk-lead {
  font-size: var(--dbk-text-subhead);
  font-weight: var(--dbk-weight-regular);
  line-height: 1.62;
  color: var(--dbk-ink);
  max-width: 56ch;
}
.dbk-life .dbk-support {
  font-size: var(--dbk-text-support);
  line-height: var(--dbk-lh-support);
  color: var(--dbk-ink-secondary);
}
.dbk-life .dbk-meta {
  font-size: var(--dbk-text-caption);
  line-height: 1.5;
  color: var(--dbk-ink-muted);
}
.dbk-life code {
  font-family: var(--dbk-font-mono);
  font-size: 0.88em;
  background: var(--dbk-surface);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--dbk-ink);
}
.dbk-life a:not(.button) {
  color: var(--dbk-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.dbk-life a:not(.button):hover { color: var(--dbk-accent); }
.dbk-life header.top > a,
.dbk-life header.top > a:link,
.dbk-life header.top > a:visited,
.dbk-life header.top > a:hover,
.dbk-life header.top > a:focus,
.dbk-life header.top > a:focus-visible,
.dbk-life header.top > a:active {
  text-decoration: none;
  text-decoration-line: none;
  border-bottom: 0;
  color: var(--dbk-ink);
}

/* ============================================================================
 * 3. STANDARDIZED BUTTON SYSTEM (Primary / Secondary / Ghost / Icon)
 * Neutralizes pilot.css full-width stretch on desktop so buttons keep crisp hierarchy
 * ========================================================================== */
.dbk-life .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--dbk-space-3);
  margin-top: var(--dbk-space-4);
}
.dbk-life .actions .primary {
  flex: 0 1 auto;
}
.dbk-life :is(button, .button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--dbk-space-2);
  min-height: var(--dbk-touch-min);
  padding: var(--dbk-space-3) var(--dbk-space-6);
  border-radius: 10px;
  border: 1.5px solid var(--dbk-border-strong);
  background: var(--dbk-surface-elevated);
  color: var(--dbk-ink);
  font-family: var(--dbk-font-sans);
  font-size: var(--dbk-text-button);
  font-weight: var(--dbk-weight-semibold);
  line-height: var(--dbk-lh-ui);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dbk-motion-press) var(--dbk-ease-out),
              background-color var(--dbk-motion-select) var(--dbk-ease-out),
              border-color var(--dbk-motion-select) var(--dbk-ease-out);
}
.dbk-life :is(button, .button):hover:not(:disabled) {
  border-color: var(--dbk-ink);
  background: var(--dbk-surface-subtle);
}
.dbk-life :is(button, .button):active:not(:disabled) {
  transform: scale(.965);
}
.dbk-life :is(button, .button):disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.dbk-life :is(button, .button).primary {
  background: var(--dbk-accent);
  border-color: var(--dbk-accent);
  color: var(--dbk-ink-inverse);
  min-height: var(--dbk-touch-primary);
  padding-inline: var(--dbk-space-8);
}
.dbk-life :is(button, .button).primary:hover:not(:disabled) {
  background: var(--dbk-accent-hover);
  border-color: var(--dbk-accent-hover);
}
.dbk-life :is(button, .button).ghost {
  border-color: transparent;
  background: transparent;
  color: var(--dbk-ink-secondary);
  padding-inline: var(--dbk-space-3);
  font-weight: var(--dbk-weight-regular);
  font-size: var(--dbk-text-support);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.dbk-life :is(button, .button).ghost:hover:not(:disabled) {
  color: var(--dbk-accent);
  background: var(--dbk-surface-subtle);
  border-color: transparent;
}
.dbk-life :is(button, .button).compact {
  min-height: var(--dbk-touch-compact);
  padding: var(--dbk-space-2) var(--dbk-space-4);
  font-size: var(--dbk-text-caption);
}
.dbk-life :is(button, .button).icon-btn {
  min-width: var(--dbk-touch-compact);
  min-height: var(--dbk-touch-compact);
  padding: var(--dbk-space-2);
}
.dbk-life :focus-visible {
  outline: 3px solid var(--dbk-ink);
  outline-offset: 3px;
}

/* ============================================================================
 * 4. EDITORIAL SECTIONS, CARDS, DISCLOSURES & STATUS COMPONENTS
 * ========================================================================== */
.dbk-life section {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--dbk-border);
  border-radius: 0;
  padding: var(--dbk-section-gap) 0;
  margin-top: 0;
}
.dbk-life section.dbk-no-rule {
  border-top: 0;
  padding-top: var(--dbk-space-4);
}
.dbk-life section.dbk-surface-card,
.dbk-life .panel {
  background: var(--dbk-surface);
  border: 1px solid var(--dbk-border);
  border-radius: var(--dbk-radius-lg);
  padding: var(--dbk-component-pad);
  margin-top: var(--dbk-space-6);
}
.dbk-life details {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--dbk-border);
  border-radius: 0;
  padding: var(--dbk-space-3) 0;
  margin-top: 0;
}
.dbk-life details:last-of-type { border-bottom: 1px solid var(--dbk-border); }
.dbk-life details + details { margin-top: 0; }
.dbk-life summary {
  color: var(--dbk-ink);
  min-height: var(--dbk-touch-min);
  display: flex;
  align-items: center;
  font-weight: var(--dbk-weight-semibold);
  font-size: var(--dbk-text-support);
  cursor: pointer;
  list-style: none;
  justify-content: space-between;
  gap: var(--dbk-space-3);
  transition: opacity 150ms ease;
}
.dbk-life summary::-webkit-details-marker { display: none; }
.dbk-life summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--dbk-ink-muted);
  flex: 0 0 auto;
  transition: transform 200ms var(--dbk-ease-out);
}
.dbk-life details[open] > summary::after { content: '−'; }
.dbk-life details[open] > *:not(summary) {
  animation: v2-fade-up 240ms var(--dbk-ease-out) both;
}

/* Semantic Alerts */
.dbk-alert {
  border-radius: var(--dbk-radius-md);
  border: 1px solid var(--dbk-border);
  border-left-width: 4px;
  padding: var(--dbk-space-4);
  margin-block: var(--dbk-space-4);
  background: var(--dbk-surface);
  display: grid;
  gap: var(--dbk-space-1);
}
.dbk-alert-title {
  font-size: var(--dbk-text-support);
  font-weight: var(--dbk-weight-semibold);
  color: var(--dbk-ink);
  margin: 0;
}
.dbk-alert.is-info { background: var(--dbk-info-tint); border-color: var(--dbk-info-border); border-left-color: var(--dbk-info); }
.dbk-alert.is-success { background: var(--dbk-success-tint); border-color: var(--dbk-success-border); border-left-color: var(--dbk-success); }
.dbk-alert.is-warning { background: var(--dbk-warning-tint); border-color: var(--dbk-warning-border); border-left-color: var(--dbk-warning); }
.dbk-alert.is-error { background: var(--dbk-error-tint); border-color: var(--dbk-error-border); border-left-color: var(--dbk-error); }

/* Restrained Status Pills */
.dbk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: var(--dbk-radius-pill);
  font-size: var(--dbk-text-caption);
  font-weight: var(--dbk-weight-semibold);
  line-height: 1.5;
  background: var(--dbk-surface);
  color: var(--dbk-ink-secondary);
  border: 1px solid var(--dbk-border);
  white-space: nowrap;
}
.dbk-pill.is-active, .dbk-pill.is-done { background: var(--dbk-success-tint); color: var(--dbk-success); border-color: var(--dbk-success-border); }
.dbk-pill.is-pending { background: var(--dbk-warning-tint); color: var(--dbk-warning); border-color: var(--dbk-warning-border); }
.dbk-pill.is-danger { background: var(--dbk-error-tint); color: var(--dbk-error); border-color: var(--dbk-error-border); }
.dbk-pill.is-accent { background: var(--dbk-accent); color: var(--dbk-ink-inverse); border-color: var(--dbk-accent); }

/* Key-Value Specification List (Offer terms, Order summary, Case details) */
.dbk-kv {
  display: grid;
  gap: 0;
  margin: var(--dbk-space-4) 0;
  border-top: 1px solid var(--dbk-border);
}
.dbk-kv-row {
  display: grid;
  grid-template-columns: minmax(120px, 34%) minmax(0, 1fr);
  gap: var(--dbk-space-3);
  padding: var(--dbk-space-3) 0;
  border-bottom: 1px solid var(--dbk-border);
  align-items: baseline;
}
.dbk-kv dt {
  font-size: var(--dbk-text-caption);
  font-weight: var(--dbk-weight-semibold);
  color: var(--dbk-ink-muted);
  margin: 0;
}
.dbk-kv dd {
  font-size: var(--dbk-text-support);
  color: var(--dbk-ink);
  margin: 0;
}

/* Stepper Component — Clean Editorial Hairline Timeline (Anti-Slop: No Repetitive Boxes) */
.dbk-steps {
  list-style: none;
  margin: var(--dbk-space-4) 0 var(--dbk-space-6);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: var(--dbk-space-6);
}
.dbk-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--dbk-space-2);
  padding: var(--dbk-space-4) 0 0;
  border-radius: 0;
  border: 0;
  border-top: 2px solid var(--dbk-border);
  background: transparent;
}
.dbk-step.is-current {
  border-top-color: var(--dbk-accent);
  background: transparent;
}
.dbk-step.is-done {
  border-top-color: var(--dbk-success);
  background: transparent;
}
.dbk-step-num {
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline-block;
  font-size: var(--dbk-text-caption);
  font-weight: var(--dbk-weight-bold);
  letter-spacing: 0.06em;
  flex: 0 0 auto;
  background: transparent;
  color: var(--dbk-ink-muted);
}
.dbk-step.is-current .dbk-step-num { background: transparent; color: var(--dbk-accent); }
.dbk-step.is-done .dbk-step-num { background: transparent; color: var(--dbk-success); }
.dbk-step-label {
  font-size: var(--dbk-text-body);
  font-weight: var(--dbk-weight-semibold);
  color: var(--dbk-ink);
  line-height: 1.4;
}
.dbk-step-desc {
  font-size: var(--dbk-text-caption);
  color: var(--dbk-ink-muted);
  line-height: 1.52;
  margin-top: 2px;
}

/* ============================================================================
 * 5. FORMS, CHOICES & INPUTS
 * ========================================================================== */
.dbk-life .stack, .dbk-life form {
  display: grid;
  gap: var(--dbk-form-gap);
}
.dbk-life label.field {
  display: grid;
  gap: var(--dbk-space-1);
  font-size: var(--dbk-text-support);
  font-weight: var(--dbk-weight-semibold);
  color: var(--dbk-ink);
}
.dbk-life .choice {
  display: flex;
  align-items: center;
  gap: var(--dbk-space-3);
  min-height: 52px;
  padding: var(--dbk-space-3) var(--dbk-space-4);
  border: 1.5px solid var(--dbk-border-strong);
  border-radius: var(--dbk-radius-md);
  background: var(--dbk-bg);
  color: var(--dbk-ink);
  font-size: var(--dbk-text-body);
  font-weight: var(--dbk-weight-regular);
  line-height: 1.52;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dbk-motion-press) var(--dbk-ease-out),
              border-color var(--dbk-motion-select) var(--dbk-ease-out),
              background-color var(--dbk-motion-select) var(--dbk-ease-out);
}
.dbk-life .choice:hover { border-color: var(--dbk-ink); }
.dbk-life .choice:active { transform: scale(.98); }
.dbk-life .choice:has(:checked) {
  border-color: var(--dbk-accent);
  background: var(--dbk-accent-tint);
  box-shadow: inset 0 0 0 1px var(--dbk-accent);
  font-weight: var(--dbk-weight-semibold);
  animation: v2-select-pop 200ms var(--dbk-ease-out);
}
.dbk-life .choice:focus-within { outline: 2px solid var(--dbk-ink); outline-offset: 2px; }
.dbk-life .choice :is(input, textarea) { accent-color: var(--dbk-accent); }

.dbk-life input:not([type=checkbox],[type=radio]),
.dbk-life textarea,
.dbk-life select {
  background: var(--dbk-bg);
  min-height: var(--dbk-touch-min);
  width: 100%;
  padding: var(--dbk-space-2) var(--dbk-space-3);
  border: 1.5px solid var(--dbk-border-strong);
  border-radius: var(--dbk-radius-sm);
  font-family: var(--dbk-font-sans);
  font-size: var(--dbk-text-body);
  font-weight: var(--dbk-weight-regular);
  color: var(--dbk-ink);
}
.dbk-life input:not([type=checkbox],[type=radio]):focus,
.dbk-life textarea:focus,
.dbk-life select:focus {
  border-color: var(--dbk-ink);
  outline: 2px solid rgba(20, 20, 20, 0.14);
  outline-offset: 1px;
}
.dbk-life .error {
  color: var(--dbk-error);
  background: var(--dbk-error-tint);
  border: 1px solid var(--dbk-error-border);
  border-radius: var(--dbk-radius-sm);
  padding: var(--dbk-space-3) var(--dbk-space-4);
  font-size: var(--dbk-text-support);
  font-weight: var(--dbk-weight-semibold);
  margin: var(--dbk-space-3) 0 0;
}

/* ============================================================================
 * 6. HERO, ILLUSTRATION & EDITORIAL GRIDS
 * ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  align-items: center;
  gap: var(--dbk-space-8);
  padding-block: var(--dbk-space-4) var(--dbk-space-12);
  border-bottom: 1px solid var(--dbk-border);
}
.hero p { max-width: 50ch; font-size: var(--dbk-text-body); }
.hero .dbk-hero-status {
  font-size: var(--dbk-text-support);
  font-weight: var(--dbk-weight-semibold);
  color: var(--dbk-ink);
  margin-bottom: var(--dbk-space-3);
}
.mascot {
  display: block;
  width: clamp(56px, 12vw, 84px);
  aspect-ratio: 1;
  pointer-events: none;
  flex: 0 0 auto;
}
.mascot img { width: 100%; height: 100%; object-fit: contain; }
.mascot-hero { width: clamp(140px, 24vw, 240px); justify-self: center; animation: v2-float 4.2s ease-in-out infinite; }

/* Visual Benefit Cards (4 Outcome Cards — Tactile Monograph Editorial) */
.dbk-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--dbk-space-4);
  margin-top: var(--dbk-space-4);
}
.dbk-benefit-card {
  display: flex;
  flex-direction: column;
  background: var(--dbk-surface-elevated);
  border: 1px solid var(--dbk-border);
  border-radius: var(--dbk-radius-md);
  overflow: hidden;
  transition: border-color var(--motion-micro, 220ms) ease;
}
.dbk-benefit-card:hover {
  border-color: var(--dbk-ink);
}
.dbk-benefit-stage {
  background: var(--dbk-surface-subtle);
  border-bottom: 1px solid var(--dbk-border);
  padding: var(--dbk-space-4) var(--dbk-space-4) var(--dbk-space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
}
.dbk-benefit-svg {
  width: min(100%, 212px);
  height: auto;
  display: block;
}
.dbk-benefit-body {
  padding: var(--dbk-space-4) var(--dbk-space-4) var(--dbk-space-6);
  display: grid;
  gap: var(--dbk-space-1);
  align-content: start;
}
.dbk-benefit-body h3 {
  font-size: var(--dbk-text-subhead);
  color: var(--dbk-ink);
  font-weight: var(--dbk-weight-semibold);
  margin: 0;
}
.dbk-benefit-body p {
  font-size: var(--dbk-text-support);
  color: var(--dbk-ink-secondary);
  margin: 0;
}

/* Animated Wheel of Life Product Preview — Editorial Specimen Frame */
.dbk-wheel-preview {
  margin: var(--dbk-space-6) auto 0;
  width: min(100%, 580px);
  background: var(--dbk-surface-elevated);
  border: 1px solid var(--dbk-border-strong);
  border-radius: var(--dbk-radius-md);
  padding: var(--dbk-space-4) var(--dbk-space-6) var(--dbk-space-6);
  display: grid;
  gap: var(--dbk-space-3);
}
.dbk-wheel-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--dbk-space-2);
  min-height: 44px;
  padding-bottom: var(--dbk-space-3);
  border-bottom: 1px solid var(--dbk-border);
}
.dbk-wheel-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--dbk-space-2);
  min-width: 0;
}
.dbk-sample-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--dbk-surface);
  border: 1px solid var(--dbk-border);
  color: var(--dbk-ink-secondary);
  font-size: 0.75rem;
  font-weight: var(--dbk-weight-semibold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.dbk-wheel-profile-name {
  font-size: var(--dbk-text-caption);
  color: var(--dbk-ink);
  font-weight: var(--dbk-weight-semibold);
  min-height: 1.5em;
}
.dbk-life .dbk-wheel-toggle {
  min-height: var(--dbk-touch-compact);
  padding: var(--dbk-space-1) var(--dbk-space-3);
  border-radius: 8px;
  border: 1px solid var(--dbk-border-strong);
  background: var(--dbk-surface-elevated);
  color: var(--dbk-ink);
  font-size: var(--dbk-text-caption);
  font-weight: var(--dbk-weight-semibold);
  gap: 6px;
}
.dbk-life .dbk-wheel-toggle:hover:not(:disabled) {
  border-color: var(--dbk-ink);
  background: var(--dbk-surface-subtle);
}
.dbk-wheel-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.dbk-wheel-preview-foot {
  display: grid;
  justify-items: center;
  gap: var(--dbk-space-2);
  text-align: center;
  padding-top: var(--dbk-space-1);
}
.dbk-wheel-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dbk-wheel-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: var(--dbk-radius-pill);
  background: var(--dbk-border-strong);
  transition: width 260ms var(--ease-soft-enter, cubic-bezier(0.16, 1, 0.3, 1)), background-color 260ms ease;
}
.dbk-wheel-dots i.is-active {
  width: 20px;
  background: var(--dbk-accent);
}
.dbk-wheel-note {
  font-size: 0.8rem;
  color: var(--dbk-ink-muted);
  line-height: 1.5;
}

/* Clean 2-col Editorial Grid — Fixed Hierarchy (Heading bold & larger than body!) */
.dbk-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--dbk-space-6);
  margin-top: var(--dbk-space-4);
}
.dbk-editorial-item {
  display: grid;
  gap: var(--dbk-space-1);
  align-content: start;
}
.dbk-editorial-item h3 {
  font-size: var(--dbk-text-subhead);
  color: var(--dbk-ink);
  font-weight: var(--dbk-weight-semibold);
  margin: 0;
}
.dbk-editorial-item p {
  font-size: var(--dbk-text-support);
  color: var(--dbk-ink-secondary);
  margin: 0;
}
.dbk-num-index {
  font-size: var(--dbk-text-caption);
  font-weight: var(--dbk-weight-bold);
  color: var(--dbk-accent);
  letter-spacing: 0.04em;
}

/* Offer Box (Life Unlock Sales Page) */
.dbk-offer-box {
  background: var(--dbk-surface);
  border: 1.5px solid var(--dbk-ink);
  border-radius: var(--dbk-radius-lg);
  padding: var(--dbk-space-6);
  margin-top: var(--dbk-space-4);
}
.dbk-offer-price {
  font-size: var(--dbk-text-display);
  font-weight: var(--dbk-weight-bold);
  color: var(--dbk-ink);
  line-height: 1.2;
  margin: var(--dbk-space-1) 0 var(--dbk-space-2);
}

/* ============================================================================
 * 7. PROGRESS INDICATOR & ASSESSMENT FLOW
 * ========================================================================== */
.chapter { color: var(--dbk-ink-muted); font-size: var(--dbk-text-caption); font-weight: var(--dbk-weight-semibold); margin-bottom: var(--dbk-space-4); }
.segments { display: flex; gap: var(--dbk-space-1); margin-top: var(--dbk-space-2); transform-origin: left; }
.segments i { height: 4px; flex: 1; background: var(--dbk-border); border-radius: var(--dbk-radius-pill); }
.segments i.filled { background: var(--dbk-accent); }
.v2-progress-track { height: 6px; background: var(--dbk-border); border-radius: var(--dbk-radius-pill); overflow: hidden; margin-top: var(--dbk-space-2); }
.v2-progress-fill { height: 100%; background: var(--dbk-accent); border-radius: var(--dbk-radius-pill); transition: width 320ms var(--dbk-ease-out); }

.dbk-life .question-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--dbk-space-3); margin-bottom: var(--dbk-space-4); }
.dbk-life .question-head h1 { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.v2-fieldset { border: 0; margin: 0; padding: 0 0 var(--dbk-space-6); }
.v2-counter { display: block; margin-bottom: var(--dbk-space-3); }
.v2-choice { scroll-margin-bottom: 120px; }
.v2-choice input { scroll-margin-bottom: 120px; }
.v2-choice.is-exclusive { border-style: dashed; }
.v2-scale-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--dbk-radius-pill); background: var(--dbk-surface); color: var(--dbk-ink); font-weight: var(--dbk-weight-semibold); font-size: var(--dbk-text-caption); flex: 0 0 auto; transition: transform 180ms var(--dbk-ease-out), background-color 180ms ease, color 180ms ease; }
.v2-choice:has(:checked) .v2-scale-num { background: var(--dbk-accent); color: #fff; transform: scale(1.08); }
.v2-note-box { margin-top: var(--dbk-space-3); scroll-margin-bottom: 120px; }
.v2-note-box textarea { scroll-margin-bottom: 120px; }
.v2-sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--dbk-space-3) 0 max(var(--dbk-space-3), env(safe-area-inset-bottom));
  border-top: 1px solid var(--dbk-border);
  margin-top: var(--dbk-space-4);
  justify-content: space-between;
}

/* ============================================================================
 * 8. RESULT HIERARCHY & VISUALIZATION
 * ========================================================================== */
.dbk-result-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--dbk-space-4);
  padding-bottom: var(--dbk-space-6);
  border-bottom: 1px solid var(--dbk-border);
}
.dbk-result-header h1 { margin-bottom: var(--dbk-space-2); }
.dbk-result-summary {
  font-size: var(--dbk-text-subhead);
  color: var(--dbk-ink);
  line-height: 1.58;
  margin-bottom: var(--dbk-space-4);
}
.dbk-section-eyebrow-block {
  margin-top: var(--dbk-space-8);
}

/* Focal Point 1: Key Insight Callout */
.dbk-insight-card {
  background: var(--dbk-surface);
  border: 0 !important;
  border-left: 4px solid var(--dbk-accent) !important;
  border-radius: 0 var(--dbk-radius-md) var(--dbk-radius-md) 0 !important;
  padding: var(--dbk-space-6) !important;
  margin-top: var(--dbk-space-4);
}
.dbk-insight-card h3 { font-size: var(--dbk-text-section); margin-bottom: var(--dbk-space-2); }
.dbk-insight-copy { font-size: var(--dbk-text-body); color: var(--dbk-ink); margin-bottom: var(--dbk-space-3); }
.dbk-insight-ask { font-size: var(--dbk-text-support); font-weight: var(--dbk-weight-semibold); color: var(--dbk-ink); }

/* Focal Point 2: Single Next Action Spotlight */
.dbk-action-spotlight {
  background: var(--dbk-accent-tint);
  border: 1px solid var(--dbk-accent-border) !important;
  border-radius: var(--dbk-radius-lg) !important;
  padding: var(--dbk-space-6) !important;
  margin-top: var(--dbk-space-6);
}
.dbk-action-spotlight .eyebrow { margin-bottom: var(--dbk-space-1); }

/* Wheel & Tables */
.v2-wheel-wrap { display: flex; justify-content: center; padding: var(--dbk-space-2) 0; width: 100%; }
.v2-wheel-svg { width: min(100%, 420px); height: auto; display: block; }
.v2-wheel-label { font-size: 12px; font-weight: 600; fill: var(--dbk-ink); }
.v2-wheel-label.is-null { fill: var(--dbk-ink-muted); font-weight: 400; }
.v2-wheel-table { width: 100%; border-collapse: collapse; font-size: var(--dbk-text-support); margin-top: var(--dbk-space-2); }
.v2-wheel-table th, .v2-wheel-table td { text-align: left; padding: var(--dbk-space-2) var(--dbk-space-3); border-bottom: 1px solid var(--dbk-border); vertical-align: top; }
.v2-lead { font-size: var(--dbk-text-body); color: var(--dbk-ink); line-height: var(--dbk-lh-body); }
.v2-sublist { margin: var(--dbk-space-2) 0 0; padding-inline-start: 1.25rem; display: grid; gap: var(--dbk-space-2); }
.v2-rule-meta { font-size: var(--dbk-text-caption); color: var(--dbk-ink-muted); margin-bottom: var(--dbk-space-2); display: flex; align-items: center; gap: var(--dbk-space-2); flex-wrap: wrap; }
.v2-badge { display: inline-block; padding: 2px 10px; border-radius: var(--dbk-radius-pill); background: var(--dbk-ink); color: #fff; font-size: 0.78rem; font-weight: var(--dbk-weight-semibold); }
.v2-refs-list { margin: var(--dbk-space-2) 0 0; padding-inline-start: 1.25rem; display: grid; gap: var(--dbk-space-2); font-size: var(--dbk-text-caption); }

/* Feedback, Chips, Empty & Loading States */
.v2-fb-group { border: 0; margin: 0 0 var(--dbk-space-4); padding: 0; }
.v2-fb-group legend { font-weight: var(--dbk-weight-semibold); font-size: var(--dbk-text-support); color: var(--dbk-ink); margin-bottom: var(--dbk-space-2); }
.v2-fb-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: var(--dbk-space-2); }
.v2-choice-compact { min-height: var(--dbk-touch-min); padding: var(--dbk-space-2) var(--dbk-space-3); font-size: var(--dbk-text-support); }
.v2-chips { display: flex; flex-wrap: wrap; gap: var(--dbk-space-2); margin-bottom: var(--dbk-space-3); }
.v2-chip { display: inline-block; padding: var(--dbk-space-1) var(--dbk-space-3); border-radius: var(--dbk-radius-pill); background: var(--dbk-bg); border: 1px solid var(--dbk-border-strong); font-size: var(--dbk-text-caption); color: var(--dbk-ink); }
.dbk-empty { padding: var(--dbk-space-8) var(--dbk-space-4); text-align: center; color: var(--dbk-ink-muted); border: 1px dashed var(--dbk-border-strong); border-radius: var(--dbk-radius-md); background: var(--dbk-surface-subtle); }
.dbk-loading { padding: var(--dbk-space-6) 0; color: var(--dbk-ink-muted); font-size: var(--dbk-text-support); }

/* ============================================================================
 * 9. LIFE UNLOCK WORKSPACE COMPONENTS
 * ========================================================================== */
.dbk-focus-banner {
  background: var(--dbk-surface);
  border-left: 4px solid var(--dbk-accent);
  border-radius: 0 var(--dbk-radius-md) var(--dbk-radius-md) 0;
  padding: var(--dbk-space-4) var(--dbk-space-6);
  margin-bottom: var(--dbk-space-6);
}
.dbk-focus-banner p { margin-bottom: 0; }
.dbk-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: var(--dbk-radius-pill);
  background: var(--dbk-border);
  overflow: hidden;
  margin: var(--dbk-space-2) 0 var(--dbk-space-2);
}
.dbk-progress-bar-fill {
  height: 100%;
  background: var(--dbk-accent);
  border-radius: var(--dbk-radius-pill);
}
.dbk-task-card {
  background: var(--dbk-bg);
  border: 1.5px solid var(--dbk-border-strong);
  border-radius: var(--dbk-radius-md);
  padding: var(--dbk-space-6);
  margin-top: var(--dbk-space-4);
}
.dbk-task-card.is-spotlight {
  border-color: var(--dbk-ink);
  background: var(--dbk-surface-subtle);
}
.dbk-task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--dbk-space-3);
  margin-bottom: var(--dbk-space-2);
}
.dbk-life .work-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--dbk-space-2);
  margin: 0 0 var(--dbk-space-6);
  padding-bottom: var(--dbk-space-4);
  border-bottom: 1px solid var(--dbk-border);
}
.dbk-life .work-nav button {
  font-size: var(--dbk-text-support);
  min-width: 0;
  min-height: var(--dbk-touch-min);
  padding: var(--dbk-space-2) var(--dbk-space-3);
  border-radius: var(--dbk-radius-sm);
}

/* ============================================================================
 * 10. OWNER ADMIN DASHBOARD COMPONENTS
 * ========================================================================== */
.ops-tabs {
  display: flex;
  gap: var(--dbk-space-2);
  flex-wrap: wrap;
  padding-bottom: var(--dbk-space-4);
  border-bottom: 1px solid var(--dbk-border);
  margin-bottom: var(--dbk-space-6);
}
.ops-tabs button {
  min-height: var(--dbk-touch-compact);
  padding: var(--dbk-space-2) var(--dbk-space-4);
  font-size: var(--dbk-text-caption);
  border-radius: var(--dbk-radius-sm);
}
.ops-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: var(--dbk-space-4);
  margin-bottom: var(--dbk-space-6);
}
.ops-kpi {
  background: var(--dbk-surface);
  border: 1px solid var(--dbk-border);
  border-radius: var(--dbk-radius-md);
  padding: var(--dbk-space-4);
  display: grid;
  gap: var(--dbk-space-1);
  align-content: start;
}
.ops-kpi.is-highlight {
  border-left: 4px solid var(--dbk-accent);
}
.ops-kpi-label { font-size: var(--dbk-text-caption); color: var(--dbk-ink-muted); }
.ops-kpi-value { font-size: var(--dbk-text-page-title); font-weight: var(--dbk-weight-bold); color: var(--dbk-ink); line-height: 1.2; font-variant-numeric: tabular-nums; }
.ops-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--dbk-space-3);
  margin-bottom: var(--dbk-space-4);
}
.ops-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: var(--dbk-space-3);
  margin-bottom: var(--dbk-space-4);
  align-items: end;
}
.ops-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--dbk-border);
  border-radius: var(--dbk-radius-md);
  background: var(--dbk-bg);
}
.ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--dbk-text-caption);
  min-width: 620px;
}
.ops-table th {
  background: var(--dbk-surface);
  text-align: left;
  padding: var(--dbk-space-3);
  font-weight: var(--dbk-weight-semibold);
  color: var(--dbk-ink);
  border-bottom: 1px solid var(--dbk-border);
  white-space: nowrap;
}
.ops-table td {
  padding: var(--dbk-space-3);
  border-bottom: 1px solid var(--dbk-border);
  vertical-align: top;
  color: var(--dbk-ink-secondary);
}
.ops-table tbody tr:last-child td { border-bottom: 0; }
.ops-table details {
  margin-top: var(--dbk-space-2);
  padding: var(--dbk-space-2) var(--dbk-space-3);
  background: var(--dbk-surface-subtle);
}
.ops-table summary {
  min-height: var(--dbk-touch-compact);
  font-size: var(--dbk-text-caption);
}
.ops-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--dbk-space-3);
  margin-top: var(--dbk-space-4);
  padding-top: var(--dbk-space-3);
  border-top: 1px solid var(--dbk-border);
}
.ops-detail-panel {
  background: var(--dbk-surface-subtle);
  border: 1px solid var(--dbk-border);
  border-left: 4px solid var(--dbk-ink);
  border-radius: 0 var(--dbk-radius-md) var(--dbk-radius-md) 0;
  padding: var(--dbk-space-6);
  margin-top: var(--dbk-space-4);
}
.ops-chain {
  display: grid;
  gap: var(--dbk-space-3);
  margin-top: var(--dbk-space-3);
}
.ops-stat-bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) auto;
  gap: var(--dbk-space-3);
  align-items: center;
  padding-block: var(--dbk-space-1);
  font-size: var(--dbk-text-caption);
}
.ops-stat-track {
  height: 8px;
  background: var(--dbk-border);
  border-radius: var(--dbk-radius-pill);
  overflow: hidden;
}
.ops-stat-fill {
  height: 100%;
  background: var(--dbk-accent);
  border-radius: var(--dbk-radius-pill);
}

/* Legacy & Previews Helpers */
.dbk-life .feature { background: transparent; border-bottom: 1px solid var(--dbk-border); padding: var(--dbk-space-6) 0; }
.dbk-life .dimensions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--dbk-space-2) var(--dbk-space-3); margin: 0; }
.dimensions dd { margin: 0; max-width: 16ch; }
.dimensions dt { font-weight: 400; }
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--dbk-space-4); margin-block: var(--dbk-space-6); }
.examples figure { margin: 0; background: var(--dbk-surface); border: 1px solid var(--dbk-border); border-radius: var(--dbk-radius-md); padding: var(--dbk-space-4); }
.examples figcaption { font-weight: var(--dbk-weight-semibold); color: var(--dbk-ink); }
.examples img { display: block; width: 100%; height: auto; border: 1px solid var(--dbk-border); margin-block: var(--dbk-space-3); border-radius: var(--dbk-radius-sm); background: var(--dbk-bg); }
.pose-change { display: grid; isolation: isolate; }
.pose-change .mascot { grid-area: 1/1; }
.pose-change .incoming { opacity: 0; }

/* ============================================================================
 * 11. RESPONSIVE BREAKPOINTS (320, 360, 390, 430, 768, 1024, 1440 px)
 * ========================================================================== */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: var(--dbk-space-4); padding-block: var(--dbk-space-3) var(--dbk-space-8); }
  .hero .mascot-hero { order: -1; width: clamp(128px, 36vw, 184px); }
  .hero .primary { width: 100%; }
  .dbk-benefit-grid { grid-template-columns: 1fr; gap: var(--dbk-space-3); }
  .dbk-wheel-preview { padding: var(--dbk-space-3) var(--dbk-space-4); }
  .dbk-editorial-grid { grid-template-columns: 1fr; gap: var(--dbk-space-4); }
  .dbk-kv-row { grid-template-columns: 1fr; gap: var(--dbk-space-1); }
}
@media (max-width: 600px) {
  .dbk-life .work-nav {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    margin: var(--dbk-space-6) 0 0;
    padding: var(--dbk-space-2) 0 max(var(--dbk-space-2), env(safe-area-inset-bottom));
    border-bottom: 0;
    border-top: 1px solid var(--dbk-border);
  }
  .dbk-life .work-nav button { font-size: var(--dbk-text-caption); padding: var(--dbk-space-2); }
}
@media (max-width: 440px) {
  .dbk-life :is(main, .top, footer),
  .dbk-life:has(.hero) :is(main, .top, footer),
  .dbk-life.dbk-ops :is(main, .top, footer) { width: calc(100% - var(--dbk-space-6)); }
  .dbk-life .actions { gap: var(--dbk-space-2); }
  .dbk-life .actions > * { flex: 1 1 100%; }
  .dbk-life .actions > .ghost { flex: 0 1 auto; }
  .dbk-life .v2-sticky-actions > *:first-child { flex: 0 0 auto; }
  .dbk-life .v2-sticky-actions > *:last-child { flex: 1 1 0; }
  .dbk-result-header { grid-template-columns: 1fr; }
  .dbk-result-header .mascot { order: -1; }
}
@media (max-width: 360px) {
  .dbk-life .dimensions { grid-template-columns: minmax(0, 1fr); }
  .dimensions dd { margin-bottom: var(--dbk-space-2); }
}

/* ============================================================================
 * 12. EXISTING MOTION KEYFRAMES & REDUCED MOTION (OWNED BY MOTION TEAM — PRESERVED)
 * ========================================================================== */
.v2-reveal { opacity: 1; transform: none; transition: opacity var(--motion-reveal, 700ms) var(--ease-soft-enter, cubic-bezier(0.16, 1, 0.3, 1)), transform var(--motion-reveal, 700ms) var(--ease-soft-enter, cubic-bezier(0.16, 1, 0.3, 1)); }
.v2-reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
.v2-tap-pulse { animation: v2-tap-bounce var(--motion-button, 300ms) var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1)); }
@keyframes v2-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes v2-select-pop { 0% { transform: scale(.985); } 55% { transform: scale(1.01); } 100% { transform: scale(1); } }
@keyframes v2-tap-bounce { 0% { transform: scale(.96); } 60% { transform: scale(1.015); } 100% { transform: scale(1); } }
@keyframes v2-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  .dbk-life *, .dbk-life *::before, .dbk-life *::after { animation: none !important; transition: none !important; }
  .dbk-life :is(button, .button):active:not(:disabled), .dbk-life .choice:active { transform: none; }
  .v2-reveal { opacity: 1 !important; transform: none !important; }
}
