:root {
  --dg-ink: #0f172a;
  --dg-ink-soft: #1e293b;
  --dg-muted: #64748b;
  --dg-line: #d7e0ea;
  --dg-bg: #f4f7fb;
  --dg-card: #ffffff;
  --dg-teal: #14b8a6;
  --dg-teal-dark: #0f766e;
  --dg-blue: #2563eb;
  --dg-green: #16a34a;
  --dg-purple: #7c3aed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dg-ink);
  background: var(--dg-bg);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: linear-gradient(180deg, #f8fafc 0%, #f4f7fb 72%, #edf3f9 100%); color: var(--dg-ink); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.dg-pricing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .97);
  backdrop-filter: blur(14px);
}

.dg-pricing-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.dg-pricing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.045em;
}

.dg-pricing-brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

.dg-pricing-brand__word span { color: #2dd4bf; }

.dg-pricing-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.dg-pricing-nav[hidden] { display: none !important; }
.dg-pricing-nav::-webkit-scrollbar { display: none; }
.dg-pricing-nav a,
.dg-pricing-nav button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 9px 12px;
  color: #cbd5e1;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.dg-pricing-nav a:hover, .dg-pricing-nav a.is-active, .dg-pricing-nav button:hover { background: rgba(255,255,255,.09); color: #fff; }
.dg-pricing-nav .dg-pricing-nav__cta { background: #2563eb; color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.28); }
.dg-pricing-nav .dg-pricing-nav__cta:hover { background: #1d4ed8; }
.dg-pricing-nav .dg-pricing-nav__signout {
  margin-left: 2px;
  border: 1px solid rgba(226,232,240,.34);
  background: rgba(255,255,255,.05);
  color: #e2e8f0;
}
.dg-pricing-nav .dg-pricing-nav__signout:hover {
  border-color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.10);
  color: #fff;
}
.dg-pricing-nav .dg-pricing-nav__signout:disabled { opacity: .65; cursor: wait; }
.dg-pricing-nav .dg-header-user {
  display: grid;
  flex: 0 0 auto;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-width: 38px;
  padding: 0 2px;
  line-height: 1;
}
.dg-pricing-nav .dg-header-user-avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #5eead4;
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
}
.dg-pricing-nav .dg-header-user-role {
  max-width: 64px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 34px; }
.dg-pricing-hero { max-width: 860px; margin: 0 auto 30px; text-align: center; }
.dg-pricing-eyebrow { margin: 0 0 10px; color: var(--dg-teal-dark); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.dg-pricing-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.04; letter-spacing: -.055em; }
.dg-pricing-lead { max-width: 760px; margin: 18px auto 0; color: #475569; font-size: clamp(16px, 2vw, 20px); line-height: 1.55; }

.dg-billing-toggle {
  width: fit-content;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5px;
  margin: 26px auto 0;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}
.dg-billing-toggle button { min-width: 132px; border: 0; border-radius: 9px; background: transparent; color: #475569; padding: 10px 15px; font: inherit; font-size: 13px; font-weight: 850; cursor: pointer; }
.dg-billing-toggle button[aria-pressed="true"] { background: #1d4ed8; color: #fff; box-shadow: 0 7px 16px rgba(37,99,235,.24); }

.dg-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; align-items: stretch; }
.dg-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--dg-line);
  border-radius: 20px;
  background: rgba(255,255,255,.97);
  padding: 26px;
  box-shadow: 0 16px 44px rgba(15,23,42,.08);
}
.dg-plan-card--individual { border-color: #93b4ff; }
.dg-plan-card--team { border: 1.5px solid #4ade80; box-shadow: 0 18px 52px rgba(22,163,74,.13); }
.dg-plan-card--enterprise { border-color: #c4b5fd; }
.dg-popular-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); border-radius: 999px; background: #16a34a; color: #fff; padding: 6px 13px; font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.dg-plan-card__heading { min-height: 178px; text-align: center; }
.dg-plan-label { margin: 0; color: var(--dg-blue); font-size: 14px; font-weight: 950; letter-spacing: .025em; text-transform: uppercase; }
.dg-plan-card--team .dg-plan-label { color: #15803d; }
.dg-plan-card--enterprise .dg-plan-label { color: var(--dg-purple); }
.dg-plan-audience { min-height: 42px; margin: 8px auto 0; color: #475569; font-size: 13px; line-height: 1.5; }
.dg-plan-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 17px; }
.dg-plan-price strong { font-size: 40px; line-height: 1; letter-spacing: -.055em; }
.dg-plan-price span { color: #64748b; font-size: 14px; font-weight: 700; }
.dg-plan-price--custom { margin-top: 25px; }
.dg-plan-price--custom strong { font-size: 35px; }
.dg-plan-billing { margin: 11px 0 0; color: #475569; font-size: 12px; font-weight: 750; }

.dg-feature-list { display: grid; gap: 11px; margin: 0 0 24px; border-top: 1px solid #dbe3ec; padding: 20px 0 0; list-style: none; color: #334155; font-size: 13px; line-height: 1.35; }
.dg-feature-list li { position: relative; padding-left: 25px; }
.dg-feature-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 999px; background: #eff6ff; color: #2563eb; font-size: 11px; font-weight: 950; }
.dg-plan-card--team .dg-feature-list li::before { background: #ecfdf5; color: #16a34a; }
.dg-plan-card--enterprise .dg-feature-list li::before { background: #f5f3ff; color: #7c3aed; }

.dg-plan-button { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; margin-top: auto; border: 1px solid; border-radius: 12px; padding: 11px 16px; text-decoration: none; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.dg-plan-button:hover { transform: translateY(-1px); }
.dg-plan-button--outline { border-color: #5b8cff; background: #fff; color: #1d4ed8; }
.dg-plan-button--outline:hover { background: #eff6ff; box-shadow: 0 10px 24px rgba(37,99,235,.12); }
.dg-plan-button--primary { border-color: #16a34a; background: #16a34a; color: #fff; box-shadow: 0 10px 24px rgba(22,163,74,.20); }
.dg-plan-button--primary:hover { background: #15803d; }
.dg-plan-button--enterprise { border-color: #a78bfa; background: #fff; color: #6d28d9; }
.dg-plan-button--enterprise:hover { background: #f5f3ff; }


.dg-core-summary { margin: 22px 4px 0; padding: 0; color: #475569; font-size: 13px; line-height: 1.55; text-align: center; }
.dg-core-summary strong { color: #0f172a; }

.dg-pricing-lower-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.65fr); gap: 22px; margin-top: 24px; }
.dg-comparison-card, .dg-assurance-card { border: 1px solid var(--dg-line); border-radius: 20px; background: rgba(255,255,255,.97); box-shadow: 0 14px 38px rgba(15,23,42,.06); }
.dg-comparison-card { overflow: hidden; }
.dg-section-heading { padding: 22px 24px 12px; }
.dg-section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.dg-table-wrap { overflow-x: auto; }
.dg-comparison-table { width: 100%; min-width: 700px; border-collapse: collapse; }
.dg-comparison-table th, .dg-comparison-table td { border-top: 1px solid #e2e8f0; padding: 12px 16px; text-align: center; font-size: 12px; }
.dg-comparison-table thead th { border-top: 0; background: #f8fafc; color: #475569; font-weight: 900; }
.dg-comparison-table th:first-child { width: 40%; text-align: left; }
.dg-comparison-table tbody th { color: #334155; font-weight: 800; }
.dg-comparison-table td { color: #475569; font-weight: 700; }
.dg-check { color: #16a34a; font-size: 17px; font-weight: 950; }
.dg-dash { color: #94a3b8; }

.dg-assurance-card { display: grid; align-content: start; gap: 0; padding: 6px 22px; }
.dg-assurance-item { display: grid; grid-template-columns: 42px 1fr; gap: 13px; border-bottom: 1px solid #e2e8f0; padding: 19px 0; }
.dg-assurance-item:last-child { border-bottom: 0; }
.dg-assurance-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #93c5fd; border-radius: 12px; background: #eff6ff; color: #1d4ed8; font-weight: 950; }
.dg-assurance-item h3 { margin: 0; font-size: 14px; }
.dg-assurance-item p { margin: 6px 0 0; color: #64748b; font-size: 12px; line-height: 1.5; }

.dg-enterprise-banner { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 24px; border: 1px solid #bfdbfe; border-radius: 16px; background: #eff6ff; padding: 18px 21px; }
.dg-enterprise-banner strong { color: #1e40af; font-size: 14px; }
.dg-enterprise-banner p { margin: 4px 0 0; color: #475569; font-size: 12px; }
.dg-enterprise-banner a { flex: 0 0 auto; border: 1px solid #60a5fa; border-radius: 10px; background: #fff; color: #1d4ed8; padding: 10px 16px; text-decoration: none; font-size: 12px; font-weight: 900; }

.dg-pricing-message { display: none; margin-top: 20px; border: 1px solid #bae6fd; border-radius: 14px; background: #f0f9ff; color: #075985; padding: 13px 16px; font-size: 13px; line-height: 1.5; }
.dg-pricing-message.is-visible { display: block; }
.dg-preview-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; border: 1px dashed #cbd5e1; border-radius: 14px; background: rgba(255,255,255,.70); padding: 13px 16px; color: #475569; font-size: 12px; line-height: 1.5; }
.dg-preview-note strong { flex: 0 0 auto; color: #334155; }

.dg-pricing-footer { width: min(1180px, calc(100% - 32px)); display: flex; justify-content: space-between; gap: 20px; margin: 0 auto; border-top: 1px solid #dbe3ec; padding: 20px 0 30px; color: #64748b; font-size: 12px; }

@media (max-width: 1000px) {
  .dg-plan-grid { grid-template-columns: 1fr 1fr; }
  .dg-plan-card--enterprise { grid-column: 1 / -1; }
  .dg-plan-card--enterprise .dg-plan-card__heading { min-height: auto; }
  .dg-pricing-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .dg-pricing-header__inner { width: min(100% - 20px, 1180px); min-height: 62px; }
  .dg-pricing-brand__word { display: none; }
  .dg-pricing-nav a, .dg-pricing-nav button { min-height: 34px; padding: 8px 9px; font-size: 12px; }
  .dg-pricing-nav > a:first-child { display: none; }
  .dg-pricing-nav .dg-header-user { min-width: 35px; }
  .dg-pricing-nav .dg-header-user-avatar { width: 29px; height: 29px; font-size: 9px; }
  .dg-pricing-nav .dg-header-user-role { font-size: 8px; }
  main { width: min(100% - 22px, 1180px); padding-top: 34px; }
  .dg-billing-toggle { width: 100%; grid-template-columns: 1fr 1fr; }
  .dg-billing-toggle button { min-width: 0; }
  .dg-plan-grid { grid-template-columns: 1fr; gap: 18px; }
  .dg-plan-card--enterprise { grid-column: auto; }
  .dg-plan-card { padding: 23px 20px; }
  .dg-plan-card__heading { min-height: auto; }
  .dg-plan-audience { min-height: auto; }
  .dg-enterprise-banner { align-items: stretch; flex-direction: column; }
  .dg-enterprise-banner a { text-align: center; }
  .dg-preview-note { flex-direction: column; gap: 4px; }
  .dg-pricing-footer { width: min(100% - 22px, 1180px); flex-direction: column; gap: 7px; }
}

@media (max-width: 440px) {
  .dg-pricing-nav .dg-pricing-nav__cta { display: none; }
  .dg-pricing-nav a, .dg-pricing-nav button { padding-inline: 7px; }
  .dg-plan-price strong { font-size: 36px; }
}


/* Paddle Sandbox checkout */
.dg-sandbox-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -18px auto 30px;
  border: 1px solid #f7c66b;
  border-radius: 13px;
  background: #fff8e8;
  padding: 11px 15px;
  color: #854d0e;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}
.dg-sandbox-banner[hidden] { display: none !important; }
.dg-sandbox-banner strong { color: #713f12; white-space: nowrap; }
.dg-plan-button:disabled { transform: none; opacity: .62; cursor: wait; box-shadow: none; }
.dg-pricing-message.is-info { border-color: #bae6fd; background: #f0f9ff; color: #075985; }
.dg-pricing-message.is-success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.dg-pricing-message.is-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }

.dg-checkout-success-main {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding-top: 54px;
  padding-bottom: 54px;
}
.dg-checkout-success-card {
  width: min(720px, 100%);
  border: 1px solid var(--dg-line);
  border-radius: 22px;
  background: rgba(255,255,255,.98);
  padding: clamp(26px, 5vw, 48px);
  text-align: center;
  box-shadow: 0 20px 58px rgba(15,23,42,.10);
}
.dg-checkout-success-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 30px;
  font-weight: 950;
}
.dg-checkout-success-card h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); letter-spacing: -.045em; }
.dg-checkout-success-lead { max-width: 590px; margin: 16px auto 0; color: #475569; font-size: 16px; line-height: 1.6; }
.dg-checkout-result-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
}
.dg-checkout-result-details[hidden] { display: none; }
.dg-checkout-result-details div { min-width: 0; border: 1px solid #e2e8f0; border-radius: 13px; background: #f8fafc; padding: 13px; }
.dg-checkout-result-details dt { color: #64748b; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .055em; }
.dg-checkout-result-details dd { margin: 7px 0 0; color: #0f172a; font-size: 13px; font-weight: 850; overflow-wrap: anywhere; }
.dg-checkout-result-details code { font-size: 11px; }
.dg-checkout-access-note {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  background: #fffbeb;
  padding: 15px 17px;
  color: #78350f;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
}
.dg-checkout-access-note strong { color: #713f12; }
.dg-checkout-success-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }

@media (max-width: 720px) {
  .dg-sandbox-banner { align-items: flex-start; flex-direction: column; gap: 3px; text-align: left; }
  .dg-checkout-success-main { padding-top: 34px; padding-bottom: 34px; }
  .dg-checkout-result-details { grid-template-columns: 1fr; }
  .dg-checkout-success-actions { grid-template-columns: 1fr; }
}

/* Secure Paddle entitlement confirmation */
.dg-checkout-access-note.is-success {
  border-left-color: #16a34a;
  background: #f0fdf4;
  color: #166534;
}
.dg-checkout-access-note.is-success strong { color: #14532d; }
.dg-checkout-access-note.is-error {
  border-left-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
}
.dg-checkout-access-note.is-error strong { color: #7f1d1d; }


/* Step 7D.1: prominent plan/workspace restriction dialog */
body.dg-modal-open { overflow: hidden; }
.dg-checkout-restriction-modal[hidden] { display: none; }
.dg-checkout-restriction-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
}
.dg-checkout-restriction-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15, 23, 42, .62);
  cursor: default;
  backdrop-filter: blur(4px);
}
.dg-checkout-restriction-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border: 1px solid #dbe3ec;
  border-radius: 22px;
  background: #fff;
  padding: 30px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}
.dg-checkout-restriction-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  background: #fff;
  color: #475569;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.dg-checkout-restriction-modal__close:hover { background: #f8fafc; color: #0f172a; }
.dg-checkout-restriction-modal__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 24px;
  font-weight: 950;
}
.dg-checkout-restriction-modal__eyebrow {
  margin: 0;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.dg-checkout-restriction-modal h2 {
  margin: 8px auto 0;
  max-width: 430px;
  font-size: clamp(24px, 4vw, 31px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.dg-checkout-restriction-modal__panel > p:last-of-type {
  margin: 15px auto 0;
  max-width: 430px;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}
.dg-checkout-restriction-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 24px;
}
.dg-checkout-restriction-modal__actions .dg-plan-button { margin: 0; min-height: 48px; }

@media (max-width: 560px) {
  .dg-checkout-restriction-modal { padding: 14px; }
  .dg-checkout-restriction-modal__panel { padding: 28px 20px 20px; }
  .dg-checkout-restriction-modal__actions { grid-template-columns: 1fr; }
  .dg-checkout-restriction-modal__actions #checkoutRestrictionPrimary { order: -1; }
}

/* Step 8A.5: shared review-before-checkout modal for signed-in and signed-out customers */
.dg-public-checkout-modal[hidden] { display: none; }
.dg-public-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: grid;
  place-items: center;
  padding: 22px;
}
.dg-public-checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15, 23, 42, .65);
  cursor: default;
  backdrop-filter: blur(4px);
}
.dg-public-checkout-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid #dbe3ec;
  border-radius: 24px;
  background: #fff;
  padding: 30px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .3);
}
.dg-public-checkout-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  background: #fff;
  color: #475569;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.dg-public-checkout-modal__close:hover { background: #f8fafc; color: #0f172a; }
.dg-public-checkout-modal__brand {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #0f172a;
  border-radius: 15px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -.04em;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
}
.dg-public-checkout-modal__eyebrow {
  margin: 18px 0 0;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.dg-public-checkout-modal h2 {
  margin: 7px 0 0;
  font-size: clamp(25px, 4vw, 32px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.dg-public-checkout-modal__panel > p:not(.dg-public-checkout-modal__eyebrow):not(.dg-public-checkout-modal__plan) {
  margin: 13px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}
.dg-public-checkout-modal__plan {
  display: inline-flex;
  margin: 16px 0 0;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #f0fdfa;
  padding: 7px 11px;
  color: #115e59;
  font-size: 12px;
  font-weight: 900;
}
.dg-public-checkout-modal form { display: grid; gap: 16px; margin-top: 20px; }
.dg-public-checkout-field { display: grid; gap: 7px; color: #334155; font-size: 13px; font-weight: 850; }
.dg-public-checkout-field[hidden] { display: none; }
.dg-public-checkout-field input {
  min-height: 48px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  padding: 11px 13px;
  color: #0f172a;
  font: inherit;
  font-weight: 650;
  outline: none;
}
.dg-public-checkout-field input:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.14); }
.dg-public-checkout-field small { color: #64748b; font-size: 11px; font-weight: 600; line-height: 1.5; }
.dg-public-checkout-modal__message { min-height: 18px; margin: -3px 0 0; color: #be123c; font-size: 12px; font-weight: 800; }
.dg-public-checkout-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.dg-public-checkout-modal__actions .dg-plan-button { margin: 0; min-height: 48px; }

@media (max-width: 560px) {
  .dg-public-checkout-modal { padding: 14px; }
  .dg-public-checkout-modal__panel { padding: 26px 20px 20px; }
  .dg-public-checkout-modal__actions { grid-template-columns: 1fr; }
  .dg-public-checkout-modal__actions button[type="submit"] { order: -1; }
}

.dg-checkout-activation-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px;
}
.dg-checkout-activation-panel[hidden] { display: none; }
.dg-checkout-activation-panel label { display: grid; gap: 7px; color: #334155; font-size: 12px; font-weight: 850; text-align: left; }
.dg-checkout-activation-panel label[hidden] { display: none; }
.dg-checkout-activation-panel select {
  min-height: 46px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  background: #fff;
  padding: 9px 11px;
  color: #0f172a;
  font: inherit;
}
.dg-checkout-activation-panel .dg-plan-button { margin: 0; }


/* Step 8A — launch legal, privacy and methodology foundation */
.dg-pricing-legal-consent { width:100%; display:flex; align-items:flex-start; gap:11px; margin:0; border:1px solid #cbd5e1; border-radius:15px; background:#f8fafc; padding:14px 16px; color:#475569; font-size:12px; font-weight:650; line-height:1.55; cursor:pointer; }
.dg-pricing-legal-consent input { width:17px; height:17px; flex:0 0 auto; margin-top:2px; accent-color:#0f766e; }
.dg-pricing-legal-consent a { color:#0f766e; font-weight:850; text-underline-offset:3px; }
.dg-pricing-legal-consent.is-invalid { border-color:#fb7185; background:#fff1f2; box-shadow:0 0 0 3px rgba(244,63,94,.10); }
.dg-pricing-footer > div { display:grid; gap:7px; }
.dg-footer-legal-links { display:flex; flex-wrap:wrap; gap:12px; }
.dg-footer-legal-links a { color:#334155; font-weight:800; text-decoration:none; }
.dg-footer-legal-links a:hover { color:#0f766e; text-decoration:underline; }

/* Step 8A.11: prominent runtime checkout error state */
.dg-checkout-restriction-modal[data-tone="error"] .dg-checkout-restriction-modal__icon {
  background: #fef2f2;
  color: #b91c1c;
}
.dg-checkout-restriction-modal[data-tone="error"] .dg-checkout-restriction-modal__eyebrow {
  color: #b91c1c;
}
