/* ========================================
   DELIVERGUARD CALCULATOR — STYLES
   Design tokens inherited from main site
   ======================================== */

/* Tokens (standalone — overridden if parent page provides them) */
.dg-calc-page,
.dg-calc-widget {
  --navy: #1a2332;
  --navy-light: #243044;
  --navy-muted: #2d3d54;
  --navy-faint: #3a4d66;
  --green: #16a34a;
  --green-hover: #15803d;
  --green-glow: rgba(22, 163, 74, 0.15);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.1);
  --red: #dc2626;
  --red-soft: rgba(220, 38, 38, 0.08);
  --white: #ffffff;
  --off-white: #f8f7f4;
  --warm-gray: #f0eeea;
  --border: #e2dfd8;
  --text: #1a2332;
  --text-secondary: #5a6577;
  --text-muted: #8a92a1;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Instrument Sans', -apple-system, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --max-width: 1200px;
  --radius: 8px;
  --radius-lg: 16px;
}

/* ========================================
   CALCULATOR PAGE LAYOUT
   ======================================== */
.dg-calc-page {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

.dg-calc-page *,
.dg-calc-page *::before,
.dg-calc-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.dg-calc-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.dg-calc-section {
  padding: var(--space-xl) 0;
}

.dg-calc-section--alt {
  background: var(--off-white);
}

.dg-calc-section--dark {
  background: var(--navy);
  color: var(--white);
}

/* ========================================
   SECTION LABELS & TYPOGRAPHY
   ======================================== */
.dg-calc-page h1,
.dg-calc-page h2,
.dg-calc-page h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

.dg-calc-page h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.dg-calc-page h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
.dg-calc-page h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.dg-section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--space-sm);
}

/* ========================================
   CALCULATOR HERO
   ======================================== */
.dg-calc-hero {
  background: var(--off-white);
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.dg-calc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      transparent,
      transparent 39px,
      rgba(26, 35, 50, 0.03) 39px,
      rgba(26, 35, 50, 0.03) 40px
    );
  pointer-events: none;
}

.dg-calc-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(22, 163, 74, 0.04), transparent 70%);
  pointer-events: none;
}

.dg-calc-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.dg-calc-hero h1 {
  margin-bottom: var(--space-sm);
}

.dg-calc-hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   CALCULATOR CARD
   ======================================== */
.dg-calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: calc(-1 * var(--space-lg));
  position: relative;
  z-index: 2;
}

@media (min-width: 860px) {
  .dg-calc-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.dg-calc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 8px 32px rgba(26, 35, 50, 0.08),
    0 2px 8px rgba(26, 35, 50, 0.04);
  overflow: hidden;
}

.dg-calc-card-header {
  padding: var(--space-sm) var(--space-md);
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dg-calc-card-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dg-calc-card-header-icon svg {
  width: 16px;
  height: 16px;
  color: var(--white);
}

.dg-calc-card-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.dg-calc-card-body {
  padding: var(--space-md);
}

/* ========================================
   FORM INPUTS
   ======================================== */
.dg-calc-field {
  margin-bottom: var(--space-md);
}

.dg-calc-field:last-child {
  margin-bottom: 0;
}

.dg-calc-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.dg-calc-helper {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.dg-calc-input-wrap {
  position: relative;
}

.dg-calc-input-wrap .dg-currency-prefix {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

.dg-calc-input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}

.dg-calc-input::-webkit-outer-spin-button,
.dg-calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dg-calc-input--currency {
  padding-left: 1.75rem;
}

.dg-calc-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.dg-calc-input::placeholder {
  color: var(--text-muted);
}

/* Validation error states */
.dg-calc-error {
  display: none;
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 0.25rem;
  font-weight: 500;
}

.dg-calc-field.has-error .dg-calc-input,
.dg-calc-field.has-error .dg-calc-select {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.dg-calc-field.has-error .dg-calc-error {
  display: block;
}

/* Shake animation for invalid form */
@keyframes dgShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.dg-shake {
  animation: dgShake 0.4s ease;
}

/* Optional field label hint */
.dg-calc-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Custom commission input */
.dg-calc-custom-commission {
  margin-top: 0.4rem;
}

.dg-pct-suffix {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
}

.dg-calc-custom-commission .dg-calc-input {
  padding-right: 2rem;
}

.dg-calc-select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238a92a1' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}

.dg-calc-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

/* Calculate button */
.dg-calc-btn {
  width: 100%;
  padding: 0.9rem var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.dg-calc-btn:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.dg-calc-btn:active {
  transform: translateY(0);
}

.dg-calc-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.dg-calc-btn:hover svg {
  transform: translateX(3px);
}

/* ========================================
   GHOST / SKELETON STATE
   ======================================== */
.dg-calc-ghost .dg-calc-card {
  border-style: dashed;
  border-color: var(--border);
}

.dg-ghost-prompt {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.dg-ghost-prompt svg {
  width: 40px;
  height: 40px;
  color: var(--border);
  margin-bottom: var(--space-sm);
}

.dg-ghost-prompt p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.dg-ghost-prompt span {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.dg-ghost-prompt strong {
  color: var(--text-secondary);
}

.dg-ghost-lines {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 var(--space-sm) var(--space-sm);
}

.dg-ghost-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.dg-ghost-bar {
  height: 10px;
  background: var(--warm-gray);
  border-radius: 5px;
  display: block;
}

.dg-ghost-bar--short {
  width: 60px !important;
  flex-shrink: 0;
}

/* ========================================
   RESULTS PANEL
   ======================================== */
.dg-calc-results {
  display: none;
}

.dg-calc-results.active {
  display: block;
  animation: dgCalcFadeIn 0.5s ease;
}

@keyframes dgCalcFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Primary loss callout */
.dg-result-hero {
  text-align: center;
  padding: var(--space-md);
  background: var(--red-soft);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
}

.dg-result-hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.25rem;
}

.dg-result-hero-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--red);
  line-height: 1.15;
}

.dg-result-hero-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Line items */
.dg-result-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dg-result-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.dg-result-line:last-child {
  border-bottom: none;
}

.dg-result-line-label {
  color: var(--text-secondary);
}

.dg-result-line-value {
  font-weight: 600;
  color: var(--text);
}

.dg-result-line-value--loss {
  color: var(--red);
  font-weight: 700;
}

.dg-result-line-value--green {
  color: var(--green);
  font-weight: 600;
}

.dg-result-line--annual {
  background: var(--off-white);
  margin: 0 calc(-1 * var(--space-md));
  padding: 0.8rem var(--space-md);
  border-bottom: none;
  font-weight: 600;
}

/* ========================================
   BENCHMARK PANEL
   ======================================== */
.dg-benchmark {
  margin-top: var(--space-md);
}

.dg-benchmark-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
}

.dg-benchmark-header svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
}

.dg-benchmark-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.dg-benchmark-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.dg-benchmark-bar {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dg-benchmark-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.dg-benchmark-bar-name {
  color: var(--text-secondary);
}

.dg-benchmark-bar-pct {
  font-weight: 600;
  color: var(--text);
}

.dg-benchmark-bar-track {
  height: 14px;
  background: var(--warm-gray);
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}

.dg-benchmark-bar-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.dg-benchmark-bar-fill--industry {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

.dg-benchmark-bar-fill--you {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.dg-benchmark-bar-fill--low {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

/* Social proof citation */
.dg-benchmark-citation {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

/* Insight callout */
.dg-benchmark-insight {
  padding: var(--space-sm);
  background: var(--amber-soft);
  border: 1px solid rgba(217, 119, 6, 0.15);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}

.dg-benchmark-insight strong {
  color: var(--amber);
}

/* ========================================
   WAITLIST CTA (Calculator-specific)
   ======================================== */
.dg-calc-waitlist {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.dg-calc-waitlist::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(22, 163, 74, 0.06), transparent 70%);
  pointer-events: none;
}

.dg-calc-waitlist-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.dg-calc-waitlist h2 {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.dg-calc-waitlist-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

/* Waitlist form */
.dg-calc-wl-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}

.dg-calc-wl-row {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--navy-muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dg-calc-wl-row:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.dg-calc-wl-input {
  flex: 1;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--navy-light);
  color: var(--white);
  border: none;
  outline: none;
}

.dg-calc-wl-input::placeholder {
  color: var(--navy-faint);
}

.dg-calc-wl-input--name {
  border-radius: var(--radius);
  border: 1.5px solid var(--navy-muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dg-calc-wl-input--name:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.dg-calc-wl-btn {
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.dg-calc-wl-btn:hover {
  background: var(--green-hover);
}

.dg-calc-wl-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: var(--space-xs);
}

/* Waitlist success */
.dg-calc-wl-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: var(--space-sm);
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius);
  animation: dgCalcFadeIn 0.4s ease;
  max-width: 480px;
  margin: 0 auto;
}

.dg-calc-wl-success svg {
  width: 24px;
  height: 24px;
  color: var(--green);
  flex-shrink: 0;
}

.dg-calc-wl-success p {
  font-size: 0.92rem;
  color: var(--green);
  text-align: left;
}

/* Waitlist custom email form (replaces GHL iframe) */
.dg-calc-waitlist .waitlist-email-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--navy-muted);
  background: var(--navy-light);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.dg-calc-waitlist .waitlist-email-form:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.dg-calc-waitlist .waitlist-email-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  padding: 0.85rem 1rem;
  line-height: 1.4;
}

.dg-calc-waitlist .waitlist-email-form input[type="email"]::placeholder {
  color: var(--navy-faint);
}

.dg-calc-waitlist .waitlist-email-form button {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  padding: 0.85rem 1.5rem;
  transition: background 0.2s;
  flex-shrink: 0;
}

.dg-calc-waitlist .waitlist-email-form button:hover {
  background: var(--green-hover);
}

.dg-calc-waitlist .waitlist-email-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: var(--space-sm);
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius);
  animation: dgCalcFadeIn 0.4s ease;
  max-width: 520px;
  margin: 0 auto;
}

.dg-calc-waitlist .waitlist-email-success p {
  font-size: 0.92rem;
  color: var(--green);
  margin: 0;
}

@media (max-width: 480px) {
  .dg-calc-waitlist .waitlist-email-form {
    flex-direction: column;
  }
  .dg-calc-waitlist .waitlist-email-form input[type="email"] {
    border-bottom: 1px solid var(--navy-muted);
  }
  .dg-calc-waitlist .waitlist-email-form button {
    justify-content: center;
  }
}

/* ========================================
   SEO CONTENT SECTIONS
   ======================================== */
.dg-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .dg-content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dg-content-block h3 {
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.dg-content-block p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.dg-content-block p:last-child {
  margin-bottom: 0;
}

.dg-content-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: var(--space-sm);
}

.dg-content-block li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.dg-content-block li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.dg-content-full {
  max-width: 780px;
}

.dg-content-full h3 {
  margin-bottom: var(--space-sm);
}

.dg-content-full p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

/* ========================================
   FAQ SECTION
   ======================================== */
.dg-faq-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.dg-faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.dg-faq-item {
  border-bottom: 1px solid var(--border);
}

.dg-faq-item:first-child {
  border-top: 1px solid var(--border);
}

.dg-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: var(--space-sm);
  transition: color 0.2s;
}

.dg-faq-question:hover {
  color: var(--green);
}

.dg-faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s, color 0.2s;
}

.dg-faq-item.open .dg-faq-icon {
  transform: rotate(45deg);
  color: var(--green);
}

.dg-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.dg-faq-item.open .dg-faq-answer {
  max-height: 400px;
  padding-bottom: var(--space-sm);
}

.dg-faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   INLINE RESULTS CTA
   ======================================== */
.dg-inline-cta {
  text-align: center;
  padding: var(--space-md);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: var(--space-md);
}

.dg-inline-cta p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.dg-inline-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  transition: gap 0.2s;
}

.dg-inline-cta a:hover {
  gap: 0.6rem;
}

.dg-inline-cta a svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   RECALCULATE / RESET
   ======================================== */
.dg-calc-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: var(--space-sm);
  padding: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.dg-calc-reset:hover {
  color: var(--text);
}

.dg-calc-reset svg {
  width: 14px;
  height: 14px;
}

/* Prominent recalculate variant */
.dg-calc-reset--prominent {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.dg-calc-reset--prominent:hover {
  background: var(--warm-gray);
  border-color: var(--text-muted);
  color: var(--text);
}

.dg-calc-reset--prominent svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   SCROLL REVEAL (standalone)
   ======================================== */
.dg-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dg-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.dg-reveal-d1 { transition-delay: 0.1s; }
.dg-reveal-d2 { transition-delay: 0.2s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 859px) {
  .dg-calc-grid {
    margin-top: var(--space-sm);
  }
}

@media (max-width: 640px) {
  .dg-calc-hero {
    padding: var(--space-xl) 0 var(--space-md);
  }

  .dg-result-hero-value {
    font-size: 2rem;
  }

  .dg-calc-wl-row {
    flex-direction: column;
  }

  .dg-calc-wl-btn {
    padding: 0.85rem;
    text-align: center;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .dg-calc-waitlist,
  .dg-calc-btn,
  .dg-calc-reset,
  .dg-inline-cta {
    display: none;
  }

  .dg-calc-results {
    display: block !important;
  }
}
