*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0f172a;
  background-color: #f3f4f6;
}

a {
  color: inherit;
  text-decoration: none;
}

.dd-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.dd-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}

.dd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.dd-logo-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dd-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.dd-logo-text {
  font-weight: 700;
  font-size: 18px;
  color: #1e4e7c;
}

.dd-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.dd-mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #1e4e7c;
  font-size: 24px;
  line-height: 1;
}

.dd-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 50;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.dd-mobile-menu.active {
  display: block !important;
}

.dd-mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 8px;
}

.dd-mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
  width: 100%;
}

.dd-mobile-nav a:hover,
.dd-mobile-nav a:active {
  background-color: #f3f4f6;
  color: #1e4e7c;
}


.dd-nav a,
.dd-nav a:visited {
  color: #4b5563;
  padding: 6px 8px;
  border-radius: 999px;
}

.dd-nav a:hover,
.dd-nav a:focus {
  background-color: #e5e7eb;
}

/* When a non-CTA nav item is "active"/pressed, show blue pill with white text */
.dd-nav a:not(.dd-nav-cta):active {
  background-color: #1e4e7c;
  color: #ffffff;
}

.dd-nav-cta,
.dd-nav-cta:visited {
  background-color: #1e4e7c;
  color: #ffffff;
  padding-inline: 14px;
}

/* Ensure CTA text stays visible on hover/active as well */
.dd-nav-cta:hover,
.dd-nav-cta:focus,
.dd-nav-cta:active {
  background-color: #163858;
  color: #ffffff;
}

.dd-hero {
  padding: 64px 0 40px;
}

.dd-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.dd-hero-copy h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 16px;
}

.dd-hero-subtitle {
  margin: 0 0 24px;
  color: #4b5563;
  max-width: 460px;
}

.dd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
}

.dd-btn-primary {
  background-color: #1e4e7c;
  color: #ffffff;
}

.dd-btn-primary:hover {
  background-color: #163858;
}

.dd-btn-ghost {
  border-color: #d1d5db;
  background-color: #ffffff;
}

.dd-btn-ghost:hover {
  background-color: #f3f4f6;
}

.dd-hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background-color: #e0f2fe;
  color: #1e40af;
  font-size: 12px;
}

.dd-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background-color: #1e4e7c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

.dd-pill-soft {
  background-color: #e0f2fe;
  color: #1d4ed8;
}

.dd-hero-preview {
  display: flex;
  justify-content: center;
}

.dd-phone-frame {
  width: 280px;
  border-radius: 32px;
  padding: 10px;
  background: linear-gradient(145deg, #0f172a, #1f2937);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
}

.dd-phone-inner {
  border-radius: 26px;
  background-color: #f9fafb;
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dd-phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}

.dd-phone-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background-color: #dcfce7;
  color: #166534;
}

.dd-phone-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.dd-phone-card {
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dd-phone-card .label {
  color: #6b7280;
  font-weight: 500;
}

.dd-phone-card .value {
  font-weight: 700;
  font-size: 12px;
}

.dd-phone-card.income {
  background-color: #ecfdf5;
}

.dd-phone-card.expense {
  background-color: #fef2f2;
}

.dd-phone-card.balance {
  background-color: #eff6ff;
}

.dd-phone-section-title {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
}

.dd-phone-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dd-phone-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 4px 6px;
}

.dd-phone-list .name {
  color: #111827;
}

.dd-phone-list .amount {
  font-weight: 600;
}

.dd-phone-list .amount.positive {
  color: #15803d;
}

.dd-phone-list .amount.negative {
  color: #b91c1c;
}

.dd-section {
  padding: 40px 0;
}

.dd-section-alt {
  background-color: #ffffff;
}

.dd-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 24px;
}

.dd-section-header h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.dd-section-header p {
  margin: 0;
  color: #4b5563;
}

.dd-grid {
  display: grid;
  gap: 20px;
}

.dd-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dd-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dd-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  border: 1px solid #e5e7eb;
}

.dd-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.dd-card p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.dd-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.dd-list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 0;
  color: #374151;
  font-size: 14px;
}

.dd-list li {
  margin-bottom: 6px;
}

.dd-report-card {
  background-color: #f9fafb;
  border-radius: 16px;
  padding: 18px 16px;
  border: 1px solid #e5e7eb;
}

.dd-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

.dd-report-graph-placeholder {
  position: relative;
  height: 120px;
  border-radius: 10px;
  background: linear-gradient(180deg, #e5e7eb, #f9fafb);
  overflow: hidden;
}

.dd-report-line {
  position: absolute;
  inset: 16px 12px;
  border-radius: 999px;
}

.dd-report-line-income {
  border: 2px solid rgba(22, 163, 74, 0.9);
}

.dd-report-line-expense {
  border: 2px solid rgba(239, 68, 68, 0.9);
  transform: translateY(12px);
}

.dd-report-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: #4b5563;
}

.dd-report-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 4px;
}

.dd-report-legend .dot.income {
  background-color: #16a34a;
}

.dd-report-legend .dot.expense {
  background-color: #ef4444;
}

.dd-report-desc {
  margin: 10px 0 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.dd-report-pie {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(
    #16a34a 0deg 120deg,
    #ef4444 120deg 240deg,
    #3b82f6 240deg 360deg
  );
  margin: 20px auto;
}

.dd-report-pie-small {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(
    #16a34a 0deg 90deg,
    #ef4444 90deg 180deg,
    #3b82f6 180deg 270deg,
    #f59e0b 270deg 360deg
  );
  margin: 30px auto;
}

.dd-report-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 100%;
  padding: 16px 12px;
  gap: 8px;
}

.dd-report-bar {
  flex: 1;
  background: linear-gradient(180deg, #3b82f6, #1e40af);
  border-radius: 4px 4px 0 0;
  min-height: 20px;
  max-width: 24px;
}

.dd-report-bars-horizontal {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  padding: 20px 16px;
  gap: 12px;
}

.dd-report-bar-horizontal {
  height: 20px;
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
  border-radius: 0 4px 4px 0;
  min-width: 30px;
}

.dd-report-stacked {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 100%;
  padding: 16px 12px;
  gap: 8px;
}

.dd-report-stacked-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  max-width: 24px;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}

.dd-report-stacked-segment {
  width: 100%;
  transition: height 0.3s ease;
}

.dd-report-stacked-segment.income {
  background: linear-gradient(180deg, #16a34a, #15803d);
}

.dd-report-stacked-segment.expense {
  background: linear-gradient(180deg, #ef4444, #dc2626);
}

.dd-report-donut {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: conic-gradient(
    #16a34a 0deg 180deg,
    #ef4444 180deg 360deg
  );
  margin: 25px auto;
  position: relative;
}

.dd-report-donut::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f9fafb;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dd-report-bars-top {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  padding: 20px 16px;
  gap: 10px;
}

.dd-report-bar-top {
  height: 12px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  border-radius: 0 6px 6px 0;
  min-width: 20px;
}

.dd-section-center {
  text-align: center;
}

.dd-section-affiliate {
  background-color: #f9fafb;
}

.dd-affiliate-info {
  margin-bottom: 32px;
  text-align: center;
}

.dd-affiliate-note {
  display: inline-block;
  padding: 16px 20px;
  background-color: #e3f2fd;
  border-left: 4px solid #1a73e8;
  border-radius: 8px;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.dd-affiliate-note strong {
  color: #1a73e8;
}

.dd-affiliate-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.dd-affiliate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.dd-affiliate-logo {
  width: 64px;
  height: 64px;
  background-color: #f5f5f5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 8px;
}

.dd-amazon-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dd-affiliate-icon {
  font-size: 48px;
  margin-bottom: 16px;
  text-align: center;
}

.dd-affiliate-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #0f172a;
}

.dd-affiliate-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.dd-btn-affiliate {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dd-btn-icon {
  font-size: 18px;
  transition: transform 0.2s;
}

.dd-btn-affiliate:hover .dd-btn-icon {
  transform: translateX(4px);
}

.dd-pricing-card {
  display: inline-block;
  text-align: left;
  margin-top: 20px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  max-width: 360px;
}

.dd-price {
  font-size: 28px;
  font-weight: 700;
  margin: 4px 0 10px;
}

.dd-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.dd-store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background-color: #111827;
  color: #ffffff;
  min-width: 150px;
}

.dd-store-google {
  background: linear-gradient(135deg, #1e4e7c, #15803d);
}

.dd-store-apple {
  background: #111827;
}

.dd-store-disabled {
  opacity: 0.6;
  cursor: default;
}

.dd-store-label {
  font-size: 11px;
  color: #d1d5db;
}

.dd-store-name {
  font-size: 15px;
  font-weight: 600;
}

.dd-download-note {
  background-color: #f9fafb;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 18px 18px 16px;
}

.dd-download-note h3 {
  margin: 0 0 6px;
}

.dd-download-note p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
}

.dd-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.dd-faq-item {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 16px 16px 14px;
  border: 1px solid #e5e7eb;
}

.dd-faq-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.dd-faq-item p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.dd-footer {
  margin-top: 32px;
  background-color: #020617;
  color: #e5e7eb;
  font-size: 13px;
}

.dd-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 10px;
}

.dd-footer-copy {
  margin: 4px 0 0;
  color: #9ca3af;
}

.dd-footer-links {
  display: flex;
  gap: 12px;
}

.dd-footer-links a {
  color: #9ca3af;
}

.dd-footer-links a:hover {
  color: #e5e7eb;
}

.dd-footer-bottom {
  border-top: 1px solid #111827;
}

.dd-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 14px;
}

.dd-footer-meta {
  color: #6b7280;
}

@media (max-width: 960px) {
  .dd-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .dd-hero {
    padding-top: 40px;
  }

  .dd-nav {
    display: none;
  }

  .dd-mobile-menu-toggle {
    display: block;
  }

  .dd-two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .dd-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dd-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dd-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .dd-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .dd-faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dd-footer-inner,
  .dd-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


