/* Digital Dignity — marketing pages only (homepage + landings)
 * Do not load app/dashboard style.css here.
 * Utilities: homepage-utilities.css (purged Tailwind, utilities-only — NO preflight)
 */
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{margin:0;}

/* Preflight-equivalent link reset (required after dropping Tailwind base/CDN)
 * Without this, UA #0000ee paints anchors on navy → contrast + brand failure. */
a {
  color: inherit;
  text-decoration: inherit;
}
a:visited { color: inherit; }

/* Marketing system stack — zero font network on critical path */
:root {
  --dd-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --dd-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --dd-fg: #e2e8f0;
  --dd-muted: #94a3b8;
  --dd-bg: #020617;
}
body {
  font-family: var(--dd-sans);
  font-feature-settings: "tnum";
  color: var(--dd-fg);
  background-color: var(--dd-bg);
}
.font-display { font-family: var(--dd-display); letter-spacing: -0.04em; font-weight: 650; }

:root { --teal: #14b8a6; --emerald: #10b981; }
    body { font-family: var(--dd-sans); }
    .font-display { font-family: var(--dd-display); letter-spacing: -0.05em; font-weight: 600; }
    .tail-container { max-width: 1200px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
    @media (min-width: 768px) { .tail-container { padding-left: 2rem; padding-right: 2rem; } }
    .premium-card { background: #0b111f; border: 1px solid #1f2937; border-radius: 24px; transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
    .premium-card:hover { transform: translateY(-4px); border-color: #134e4b; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.3); }
    /* No backdrop-filter: expensive composite on mobile (main-thread / TBT) */
    .glass { background: rgba(11,17,31,0.92); border: 1px solid rgba(148,163,184,0.15); }
    /* A11y: #64748b on #020617 fails AA for 14px text — use slate-400+ */
    .nav-link { color: #94a3b8; transition: all .2s ease; }
    .nav-link:hover { color: #f0fdfa; }
    .hero-bg { background: linear-gradient(180deg, #020617 0%, #0a0f1c 100%); }
    .section { padding-top: 4rem; padding-bottom: 4rem; }
    @media (min-width: 768px) { .section { padding-top: 5rem; padding-bottom: 5rem; } }
    .accent { color: #5eead4; }
    .luxury-shadow { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4); }
    .micro-hover { transition: transform .15s ease, box-shadow .15s ease; }
    .micro-hover:hover { transform: scale(1.015); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }
    .trust-bar { background: rgba(15,23,42,0.6); border: 1px solid rgba(255,255,255,0.06); }
    .feature-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(20,184,166,0.1); color: #14b8a6; flex-shrink: 0; }
    .gradient-text { background: linear-gradient(90deg, #14b8a6, #5eead4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
    .premium-btn { background: linear-gradient(90deg, #14b8a6, #0f766e); transition: all .2s ease; box-shadow: 0 10px 15px -3px rgb(16 185 129 / 0.3); }
    .premium-btn:hover { box-shadow: 0 20px 25px -5px rgb(16 185 129 / 0.4); transform: translateY(-1px); }
    .dd-version::after { content: var(--dd-version, " v0.098-20260715-landing-convert"); }
    .step-num { width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(135deg, #14b8a6, #0f766e); color: #022c22; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
    .faq-item { border: 1px solid #1f2937; border-radius: 16px; background: #0b111f; overflow: hidden; }
    .faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 1.25rem; font-weight: 600; color: #e2e8f0; }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary::after { content: "+"; float: right; color: #14b8a6; font-weight: 700; }
    .faq-item[open] summary::after { content: "−"; }
    .faq-item .faq-a { padding: 0 1.25rem 1.15rem; color: #94a3b8; font-size: 0.925rem; line-height: 1.6; }
    .compare-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
    .compare-table th, .compare-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .compare-table th { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: #94a3b8; }
    /* Override muted Tailwind slate-500 on dark navy for WCAG AA */
    .text-slate-500, .text-slate-600 { color: #94a3b8 !important; }
    /* Inline legal links: underline + brighter teal so they are not color-only */
    a.text-teal-400 {
      color: #5eead4 !important;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    a.text-teal-400:hover { color: #99f6e4 !important; }
    .stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    @media (min-width: 768px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
    .stat-pill { border: 1px solid rgba(255,255,255,0.08); background: rgba(15,23,42,0.55); border-radius: 16px; padding: 0.85rem 1rem; text-align: center; }
    .stat-pill .n { font-family: var(--dd-display); font-size: 1.35rem; font-weight: 600; color: #5eead4; letter-spacing: -0.03em; }
    .stat-pill .l { font-size: 0.7rem; color: #94a3b8; margin-top: 0.15rem; line-height: 1.3; }
    /* Mobile sticky primary CTA — A/B friendly single free path */
    .mobile-sticky-cta {
      display: none;
      position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
      padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
      background: rgba(2, 6, 23, 0.97);
      border-top: 1px solid rgba(255,255,255,0.1);
      box-shadow: 0 -10px 30px -12px rgba(0,0,0,0.5);
    }
    @media (max-width: 767px) {
      .mobile-sticky-cta { display: block; }
      body { padding-bottom: 5.5rem; }
    }
    @media (max-width: 640px) {
      .compare-table th, .compare-table td { padding: 0.65rem 0.5rem; font-size: 0.8rem; }
    }

.premium-btn:active { transform: scale(0.985); }

/* Version display via /VERSION.txt injector */
.dd-version::after {
  content: var(--dd-version, " v0.096-20260713-free-email-magic");
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  opacity: 0.7;
}
/* Pricing blocks from style.css */
.pricing-section { padding-top: 3.25rem; padding-bottom: 3.5rem; }

/* Free hook bar */
.pricing-free-bar {
  background: linear-gradient(90deg, #052e16 0%, #0a1f17 100%);
  border: 1px solid #166534;
  border-radius: 20px;
}

/* Minimal value bar */
.pricing-value-bar {
  background: #0b111f;
  border: 1px solid #1f2937;
  border-radius: 16px;
}

/* Packs */
.pricing-pack-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 640px) { .pricing-pack-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-pack {
  background: #0b111f; border: 1px solid #1f2937; border-radius: 20px;
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.pricing-pack:hover { border-color: #134e4b; transform: translateY(-1px); }

.pricing-pack-popular {
  border-color: #166534;
  background: linear-gradient(180deg, #052e16 0%, #0b111f 42%);
  box-shadow: 0 10px 26px -14px rgb(16 185 129 / 0.22);
  position: relative;
}
.pricing-pack-ribbon {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #10b981; color: #022c22; font-size: 9.5px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; padding: 3px 14px; border-radius: 999px;
}

/* Pack typography hierarchy (was only Tailwind utility classes before) */
.pricing-pack-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1.25;
}
.pricing-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: 0.15rem;
}
.pricing-words {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-top: 0.15rem;
}
.pricing-price { font-size: 2.05rem; line-height: .95; font-weight: 700; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; color: #f8fafc; }
.pricing-value { font-size: .85rem; color: #6ee7b7; }

.pricing-cta-primary {
  display: block; width: 100%; text-align: center;
  background: linear-gradient(90deg, #14b8a6, #0f766e); color: #022c22 !important;
  font-weight: 700; font-size: .9rem; padding: .75rem 1rem; border-radius: 14px;
  min-height: 44px;
  box-shadow: 0 7px 16px -5px rgb(16 185 129 / 0.38);
  transition: transform .1s ease, box-shadow .1s ease;
  text-decoration: none !important;
}
.pricing-cta-primary:hover,
.pricing-cta-primary:visited { color: #022c22 !important; transform: translateY(-1px); box-shadow: 0 12px 22px -6px rgb(16 185 129 / 0.4); }

.pricing-cta-secondary {
  display: block; width: 100%; text-align: center;
  background: #f8fafc; color: #0f172a !important; font-weight: 600; font-size: .84rem;
  padding: .7rem .95rem; border-radius: 14px;
  min-height: 44px;
  text-decoration: none !important;
}
.pricing-cta-secondary:hover,
.pricing-cta-secondary:visited { background: #fff; color: #0f172a !important; }

/* Subs */
.pricing-sub-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 640px) { .pricing-sub-grid { grid-template-columns: 1fr 1fr; } }

.pricing-sub {
  background: #0b111f; border: 1px solid #1f2937; border-radius: 20px;
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column;
}
.pricing-sub:hover { border-color: #334155; }

.pricing-sub-popular {
  border-color: #166534;
  background: linear-gradient(180deg, #052e16 0%, #0b111f 38%);
}

.pricing-sub-badge {
  font-size: 10px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: rgba(16,185,129,0.12);
  color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25);
}

.pricing-sub-price { font-size: 1.95rem; line-height: .95; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }

.pricing-sub-features {
  font-size: .81rem; line-height: 1.55; color: #cbd5e1; margin-top: .6rem;
}
.pricing-sub-features > div { display: flex; align-items: center; gap: .35rem; }

.pricing-trust-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .55rem;
}
.pricing-trust-pills span {
  font-size: 11px; color: #64748b; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}

/* Reduce style/layout cost for offscreen sections (CWV main-thread) */
#how-it-works,
#pricing,
#faq,
footer.section,
.pricing-section,
section.section:not(#hero):not(header) {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

/* SEO/mobile: ≥44px tap targets for footer links */
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
}
footer li {
  min-height: 44px;
}
