/* ============================================================
   paperdue.css  —  Shared Design System + Homepage
   Version: 2.0 | March 2026
   ============================================================
   Sections:
     1. RESET
     2. DESIGN TOKENS
     3. BASE
     4. READING PROGRESS BAR
     5. BUTTONS
     6. STICKY HEADER (incl. dropdown overrides)
     7. BREADCRUMB
     8. SHARED CARD BASE
     9. SIDEBAR PRIMARY CTA
    10. MOBILE STICKY CTA
    11. FOOTER
    12. ANIMATIONS
    13. SHARED RESPONSIVE
    14. HOMEPAGE — Hero
    15. HOMEPAGE — Proof Bar
    16. HOMEPAGE — Section Commons
    17. HOMEPAGE — Three Products Ecosystem
    18. HOMEPAGE — How It Works
    19. HOMEPAGE — Browse Topics Grid
    20. HOMEPAGE — Writing Tools Grid
    21. HOMEPAGE — Testimonials
    22. HOMEPAGE — Final CTA Band
    23. HOMEPAGE — Responsive
   ============================================================ */


/* ────────────────────────────────────────────────
   1. RESET
──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }


/* ────────────────────────────────────────────────
   2. DESIGN TOKENS  (all pages share these)
──────────────────────────────────────────────── */
:root {
  /* Brand */
  --pd-navy:          #1a2744;
  --pd-navy-dark:     #111c33;
  --pd-navy-mid:      #243358;
  --pd-orange:        #e8732a;
  --pd-orange-dk:     #c85e1f;
  --pd-orange-lt:     #fdf0e8;
  --pd-orange-glow:   rgba(232, 115, 42, .35);

  /* Neutrals */
  --pd-white:         #ffffff;
  --pd-bg:            #f4f5f7;
  --pd-bg2:           #eef0f5;
  --pd-ink:           #1a1f2e;
  --pd-ink2:          #3d4460;
  --pd-ink3:          #6b7299;
  --pd-ink4:          #a0a8c0;

  /* Accent — links, info states */
  --pd-blue:          #2a4fa8;
  --pd-blue-lt:       #eef2fc;

  /* Status */
  --pd-green:         #1e8a4a;
  --pd-green-lt:      #edfaf3;

  /* Accent palette — matches legacy writing-tools-dropdown ico-* swatches */
  --pd-purple:        #6b48c8;
  --pd-purple-lt:     #f3f0ff;
  --pd-teal:          #0f7a60;
  --pd-teal-lt:       #e6f9f4;

  /* Borders */
  --pd-border:        #e4e6ef;
  --pd-border2:       #d0d4e8;

  /* Shadows */
  --pd-shadow-sm:     0 1px 3px rgba(26, 39, 68, .07);
  --pd-shadow:        0 4px 20px rgba(26, 39, 68, .10);
  --pd-shadow-lg:     0 12px 48px rgba(26, 39, 68, .14);

  /* Border radii */
  --pd-r:             6px;
  --pd-r-lg:          10px;
  --pd-r-xl:          16px;
}


/* ────────────────────────────────────────────────
   3. BASE
──────────────────────────────────────────────── */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--pd-bg);
  color: var(--pd-ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pd-orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }


/* ────────────────────────────────────────────────
   4. READING PROGRESS BAR
──────────────────────────────────────────────── */
#pd-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pd-navy) 0%, var(--pd-orange) 100%);
  z-index: 9999;
  width: 0%;
  transition: width .08s linear;
}


/* ────────────────────────────────────────────────
   5. BUTTONS
──────────────────────────────────────────────── */

/* Base */
.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.pd-btn:hover { text-decoration: none; }

/* Primary — orange, used for main CTAs */
.pd-btn-primary {
  background: var(--pd-orange);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--pd-r);
  font-size: 15px;
  box-shadow: 0 3px 12px var(--pd-orange-glow);
}
.pd-btn-primary:hover {
  background: var(--pd-orange-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--pd-orange-glow);
}
.pd-btn-primary-lg { padding: 16px 36px; font-size: 16px; }
.pd-btn-primary-sm { padding: 9px 18px; font-size: 13.5px; }

/* Ghost white — dark backgrounds */
.pd-btn-ghost-white {
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.22);
  padding: 10px 20px;
  border-radius: var(--pd-r);
  font-size: 14px;
}
.pd-btn-ghost-white:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* Ghost dark — used for nav login button */
.pd-btn-ghost-dark {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.2);
  padding: 7px 14px;
  border-radius: var(--pd-r);
  cursor: pointer;
  transition: all .14s;
  text-decoration: none;
  display: inline-block;
}
.pd-btn-ghost-dark:hover { color: #fff; border-color: rgba(255,255,255,.45); text-decoration: none; }

/* Outline blue — secondary action on white backgrounds */
.pd-btn-outline {
  background: transparent;
  color: var(--pd-blue);
  border: 1.5px solid #c5d3f5;
  padding: 11px 22px;
  border-radius: var(--pd-r);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .14s;
  text-decoration: none;
  display: inline-block;
}
.pd-btn-outline:hover { background: var(--pd-blue-lt); border-color: var(--pd-blue); text-decoration: none; }

/* Green — TextCheckr */
.pd-btn-green {
  background: var(--pd-green);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--pd-r);
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all .14s;
  border: none;
  text-decoration: none;
  display: inline-block;
}
.pd-btn-green:hover { background: #176d3a; transform: translateY(-1px); text-decoration: none; }

/* Gate primary — full-width, large */
.pd-btn-gate {
  display: block;
  width: 100%;
  max-width: 420px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  background: var(--pd-orange);
  border: none;
  padding: 15px 24px;
  border-radius: var(--pd-r);
  cursor: pointer;
  transition: all .15s;
  box-shadow: 0 4px 16px var(--pd-orange-glow);
  margin-bottom: 11px;
}
.pd-btn-gate:hover { background: var(--pd-orange-dk); transform: translateY(-1px); box-shadow: 0 6px 22px var(--pd-orange-glow); }

/* Gate secondary — login link */
.pd-btn-gate-login {
  display: block;
  width: 100%;
  max-width: 420px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pd-blue);
  background: transparent;
  border: 1.5px solid #c5d3f5;
  padding: 11px 24px;
  border-radius: var(--pd-r);
  cursor: pointer;
  transition: all .14s;
  margin-bottom: 22px;
}
.pd-btn-gate-login:hover { background: var(--pd-blue-lt); border-color: var(--pd-blue); }


/* ────────────────────────────────────────────────
   6. STICKY HEADER (incl. dropdown overrides)
──────────────────────────────────────────────── */
.pd-header {
  background: var(--pd-navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}

.pd-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  flex-shrink: 0;
  margin-right: 8px;
  text-decoration: none;
}
.pd-logo span { color: var(--pd-orange); }
.pd-logo:hover { text-decoration: none; }

.pd-nav {
  display: flex;
  gap: 2px;
  list-style: none;
  margin-right: auto;
}
.pd-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  padding: 7px 12px;
  border-radius: var(--pd-r);
  text-decoration: none;
  transition: all .13s;
}
.pd-nav a:hover { color: #fff; background: rgba(255,255,255,.09); text-decoration: none; }

.pd-header-actions { display: flex; align-items: center; gap: 8px; }

/* Header CTA button (orange) */
.pd-btn-header {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: var(--pd-orange);
  border: none;
  padding: 8px 20px;
  border-radius: var(--pd-r);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--pd-orange-glow);
  transition: all .15s;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.pd-btn-header:hover { background: var(--pd-orange-dk); transform: translateY(-1px); text-decoration: none; }

/* Header auth buttons */
.pd-btn-login {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.28);
  padding: 0 18px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .14s;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.pd-btn-login:hover { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }

.pd-btn-signup {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: #e8732a;
  border: none;
  padding: 0 20px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(232,115,42,.4);
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.pd-btn-signup:hover { background: #c85e1f; transform: translateY(-1px); }

/* Nav list items */
.pd-nav li { list-style: none; }

/* Dropdown nav rules extracted to public/css/writing-tools-dropdown.css */
.pd-nav a { height: 36px; display: inline-flex; align-items: center; line-height: 1; }


/* ────────────────────────────────────────────────
   7. BREADCRUMB
──────────────────────────────────────────────── */
.pd-breadcrumb {
  font-size: 12.5px;
  color: var(--pd-ink4);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}
.pd-breadcrumb a { color: var(--pd-ink3); text-decoration: none; transition: color .12s; }
.pd-breadcrumb a:hover { color: var(--pd-orange); text-decoration: none; }
.pd-breadcrumb .sep { color: var(--pd-border2); }


/* ────────────────────────────────────────────────
   8. SHARED CARD BASE
──────────────────────────────────────────────── */
.pd-card {
  background: var(--pd-white);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-r-lg);
  box-shadow: var(--pd-shadow-sm);
}

.pd-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--pd-ink4);
  margin-bottom: 12px;
}


/* ────────────────────────────────────────────────
   9. SIDEBAR PRIMARY CTA
──────────────────────────────────────────────── */
.pd-sb-cta {
  background: var(--pd-navy);
  border-radius: var(--pd-r-lg);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.pd-sb-cta::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(232,115,42,.16) 0%, transparent 70%);
  pointer-events: none;
}

.pd-sb-eyebrow {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 7px;
}
.pd-sb-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}
.pd-sb-title em { color: var(--pd-orange); font-style: normal; }
.pd-sb-body {
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  margin-bottom: 13px;
}
.pd-sb-list { list-style: none; margin-bottom: 14px; }
.pd-sb-list li {
  font-size: 12.5px;
  color: rgba(255,255,255,.7);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.pd-sb-list li::before { content: '✓'; color: #6ee7b7; font-weight: 700; flex-shrink: 0; }

.pd-btn-sb {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--pd-orange);
  border: none;
  padding: 11px;
  border-radius: var(--pd-r);
  cursor: pointer;
  transition: all .14s;
  box-shadow: 0 2px 8px var(--pd-orange-glow);
}
.pd-btn-sb:hover { background: var(--pd-orange-dk); transform: translateY(-1px); }

.pd-sb-footnote {
  font-size: 11px;
  color: rgba(255,255,255,.25);
  text-align: center;
  margin-top: 7px;
}


/* ────────────────────────────────────────────────
   10. MOBILE STICKY CTA
──────────────────────────────────────────────── */
.pd-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--pd-white);
  border-top: 1px solid var(--pd-border);
  padding: 12px 16px;
  z-index: 300;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .1);
  align-items: center;
  gap: 12px;
}
.pd-mobile-cta-text {
  flex: 1;
  font-size: 13px;
  color: var(--pd-ink2);
  line-height: 1.35;
}
.pd-mobile-cta-text strong {
  display: block;
  color: var(--pd-ink);
  font-weight: 700;
}
.pd-btn-mobile {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--pd-orange);
  border: none;
  padding: 11px 20px;
  border-radius: var(--pd-r);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px var(--pd-orange-glow);
}


/* ────────────────────────────────────────────────
   11. FOOTER
──────────────────────────────────────────────── */
.pd-footer {
  background: var(--pd-navy-dark);
  padding: 52px 24px 24px;
}
.pd-footer-inner { max-width: 1200px; margin: 0 auto; }

.pd-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.pd-footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.4px;
  margin-bottom: 10px;
  display: block;
  text-decoration: none;
}
.pd-footer-logo span { color: var(--pd-orange); }
.pd-footer-logo:hover { text-decoration: none; }
.pd-footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,.32);
  line-height: 1.7;
  max-width: 210px;
}

.pd-footer-col-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 14px;
}
.pd-footer-col ul { list-style: none; }
.pd-footer-col li { padding: 3.5px 0; }
.pd-footer-col a {
  font-size: 13.5px;
  color: rgba(255,255,255,.33);
  text-decoration: none;
  transition: color .12s;
}
.pd-footer-col a:hover { color: rgba(255,255,255,.78); }

.pd-footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.22);
  flex-wrap: wrap;
  gap: 8px;
}
.pd-footer-links { display: flex; gap: 18px; }
.pd-footer-links a { color: rgba(255,255,255,.28); text-decoration: none; transition: color .12s; }
.pd-footer-links a:hover { color: rgba(255,255,255,.65); }


/* ────────────────────────────────────────────────
   12. ANIMATIONS
──────────────────────────────────────────────── */
@keyframes pd-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pd-anim-1 { animation: pd-fade-up .4s ease both; }
.pd-anim-2 { animation: pd-fade-up .4s .06s ease both; }
.pd-anim-3 { animation: pd-fade-up .4s .12s ease both; }
.pd-anim-4 { animation: pd-fade-up .4s .18s ease both; }


/* ────────────────────────────────────────────────
   13. SHARED RESPONSIVE
──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .pd-mobile-cta { display: flex; }
  body { padding-bottom: 70px; }
  .pd-footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .pd-nav { display: none; }
  .pd-footer-top { grid-template-columns: 1fr; }
}


/* ============================================================
   HOMEPAGE — paperdue.com index page
   ============================================================ */


/* ────────────────────────────────────────────────
   14. HOMEPAGE — Hero
──────────────────────────────────────────────── */
.hp-hero {
  background: var(--pd-navy);
  position: relative;
  overflow: hidden;
  padding: 72px 24px 80px;
}
.hp-hero-glow {
  position: absolute;
  pointer-events: none;
}
.hp-hero-glow-1 {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(232,115,42,.12) 0%, transparent 65%);
}
.hp-hero-glow-2 {
  bottom: -60px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(42,79,168,.15) 0%, transparent 70%);
}
.hp-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.hp-hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--pd-orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.hp-hero-h1 {
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  line-height: 1.13;
  letter-spacing: -.8px;
  margin-bottom: 18px;
}
.hp-hero-h1 em { font-style: normal; color: var(--pd-orange); }

.hp-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.58);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hp-hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.hp-hero-price-note {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  letter-spacing: .01em;
}
.hp-hero-price-note strong { color: rgba(255,255,255,.55); }

/* Search bar */
.hp-hero-search {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--pd-r-lg);
  padding: 5px 5px 5px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  margin: 32px auto 0;
}
.hp-hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  min-width: 0;
}
.hp-hero-search input::placeholder { color: rgba(255,255,255,.38); }
.hp-hero-search-btn {
  background: var(--pd-orange);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .14s;
}
.hp-hero-search-btn:hover { background: var(--pd-orange-dk); }

.hp-hero-search-hints {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  margin: 12px auto 0;
  flex-wrap: wrap;
}
.hp-hero-hint-label { font-size: 12px; color: rgba(255,255,255,.32); flex-shrink: 0; }
.hp-hero-hint {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .13s;
}
.hp-hero-hint:hover { color: #fff; background: rgba(255,255,255,.12); }


/* ────────────────────────────────────────────────
   15. HOMEPAGE — Proof Bar
──────────────────────────────────────────────── */
.hp-proof-bar {
  background: var(--pd-navy-dark);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hp-proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hp-proof-item {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.hp-proof-item:last-child { border-right: none; }
.hp-proof-num { font-size: 24px; font-weight: 800; color: #fff; line-height: 1; }
.hp-proof-num-accent { color: var(--pd-orange); }
.hp-proof-label { font-size: 12.5px; color: rgba(255,255,255,.4); margin-top: 3px; }


/* ────────────────────────────────────────────────
   16. HOMEPAGE — Section Commons
──────────────────────────────────────────────── */
.hp-section { padding: 80px 24px; }
.hp-section-inner { max-width: 1200px; margin: 0 auto; }
.hp-section-header { text-align: center; margin-bottom: 52px; }
.hp-section-bg { background: var(--pd-bg); }

.hp-section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--pd-orange);
  background: var(--pd-orange-lt);
  border: 1px solid rgba(232,115,42,.25);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.hp-section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--pd-navy);
  line-height: 1.2;
  letter-spacing: -.4px;
  margin-bottom: 12px;
}
.hp-section-sub {
  font-size: 16px;
  color: var(--pd-ink3);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ────────────────────────────────────────────────
   17. HOMEPAGE — Three Products Ecosystem
──────────────────────────────────────────────── */
.hp-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hp-product-card {
  border-radius: var(--pd-r-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .2s, box-shadow .2s;
}
.hp-product-card:hover { transform: translateY(-3px); box-shadow: var(--pd-shadow-lg); }

.hp-product-card-primary { background: var(--pd-navy); color: #fff; }
.hp-product-card-ai      { background: linear-gradient(135deg, #1a2744 0%, #2a3d6e 100%); color: #fff; }
.hp-product-card-tc      { background: var(--pd-white); border: 1.5px solid var(--pd-border); color: var(--pd-ink); }

.hp-product-card::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  pointer-events: none;
}
.hp-product-card-primary::after { background: radial-gradient(circle, rgba(232,115,42,.2) 0%, transparent 70%); }
.hp-product-card-ai::after      { background: radial-gradient(circle, rgba(42,79,168,.3) 0%, transparent 70%); }
.hp-product-card-tc::after      { background: radial-gradient(circle, rgba(30,138,74,.1) 0%, transparent 70%); }

.hp-product-name { font-size: 20px; font-weight: 800; line-height: 1.2; margin-bottom: 4px; }
.hp-product-url  { font-size: 11.5px; opacity: .5; font-weight: 500; margin-bottom: 2px; }
.hp-product-desc { font-size: 14px; line-height: 1.7; opacity: .72; flex: 1; }

.hp-product-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.hp-product-features li {
  font-size: 13.5px;
  opacity: .75;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.hp-product-features li::before { content: '✓'; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.hp-pf-primary li::before { color: #fbbf8a; }
.hp-pf-ai li::before      { color: #93b4f8; }
.hp-pf-tc li::before      { color: var(--pd-green); }


/* ────────────────────────────────────────────────
   18. HOMEPAGE — How It Works
──────────────────────────────────────────────── */
.hp-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.hp-steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--pd-orange) 0%, var(--pd-blue) 100%);
  opacity: .25;
  pointer-events: none;
}
.hp-step-card { text-align: center; padding: 0 16px; }
.hp-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pd-navy);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 3px solid var(--pd-bg);
  box-shadow: 0 0 0 3px var(--pd-navy);
  position: relative;
  z-index: 1;
}
.hp-step-card:nth-child(2) .hp-step-num { background: var(--pd-blue); box-shadow: 0 0 0 3px var(--pd-blue); }
.hp-step-card:nth-child(3) .hp-step-num { background: var(--pd-orange); box-shadow: 0 0 0 3px var(--pd-orange); }
.hp-step-title { font-size: 17px; font-weight: 700; color: var(--pd-navy); margin-bottom: 8px; }
.hp-step-desc  { font-size: 14px; color: var(--pd-ink3); line-height: 1.7; }


/* ────────────────────────────────────────────────
   19. HOMEPAGE — Browse Topics Grid
──────────────────────────────────────────────── */
.hp-topics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.hp-topic-card {
  background: var(--pd-white);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-r-lg);
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  transition: all .14s;
  text-decoration: none;
  display: block;
}
.hp-topic-card:hover {
  border-color: var(--pd-orange);
  box-shadow: 0 0 0 3px rgba(232,115,42,.07);
  transform: translateY(-1px);
  text-decoration: none;
}
.hp-topic-icon  { font-size: 22px; margin-bottom: 8px; }
.hp-topic-name  { font-size: 13px; font-weight: 600; color: var(--pd-navy); margin-bottom: 3px; line-height: 1.3; }
.hp-topic-count { font-size: 11px; color: var(--pd-ink4); }
.hp-topics-more { text-align: center; }


/* ────────────────────────────────────────────────
   20. HOMEPAGE — Writing Tools Grid
──────────────────────────────────────────────── */
.hp-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hp-tool-card {
  background: var(--pd-white);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-r-lg);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all .14s;
  text-decoration: none;
  color: inherit;
}
.hp-tool-card:hover { border-color: var(--pd-blue); box-shadow: var(--pd-shadow); text-decoration: none; }
.hp-tool-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pd-blue-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.hp-tool-name  { font-size: 14px; font-weight: 700; color: var(--pd-navy); margin-bottom: 4px; }
.hp-tool-desc  { font-size: 12.5px; color: var(--pd-ink3); line-height: 1.55; }
.hp-tool-try {
  font-size: 12px;
  font-weight: 600;
  color: var(--pd-orange);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.hp-tool-try::after { content: '→'; }


/* ────────────────────────────────────────────────
   21. HOMEPAGE — Testimonials
──────────────────────────────────────────────── */
.hp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hp-testi-card {
  background: var(--pd-white);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-r-xl);
  padding: 28px;
}
.hp-testi-stars { color: var(--pd-orange); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.hp-testi-quote {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  font-style: italic;
  color: var(--pd-ink2);
  line-height: 1.8;
  margin-bottom: 20px;
}
.hp-testi-author { display: flex; align-items: center; gap: 12px; }
.hp-testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pd-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hp-testi-name { font-size: 13.5px; font-weight: 700; color: var(--pd-ink); }
.hp-testi-loc  { font-size: 12px; color: var(--pd-ink4); }


/* ────────────────────────────────────────────────
   22. HOMEPAGE — Final CTA Band
──────────────────────────────────────────────── */
.hp-cta-band {
  background: var(--pd-navy);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.hp-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 120%, rgba(232,115,42,.14) 0%, transparent 70%);
  pointer-events: none;
}
.hp-cta-band-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.hp-cta-band-title {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}
.hp-cta-band-title em { font-style: normal; color: var(--pd-orange); }
.hp-cta-band-sub {
  font-size: 17px;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin-bottom: 36px;
}
.hp-cta-band-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.hp-cta-band-note { font-size: 13px; color: rgba(255,255,255,.3); }
.hp-cta-band-note a { color: rgba(255,255,255,.45); text-decoration: underline; }


/* ────────────────────────────────────────────────
   23. HOMEPAGE — Responsive
──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hp-products-grid { grid-template-columns: 1fr; }
  .hp-topics-grid   { grid-template-columns: repeat(4, 1fr); }
  .hp-tools-grid    { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hp-hero-h1          { font-size: 36px; }
  .hp-hero-sub         { font-size: 16px; }
  .hp-section-title    { font-size: 26px; }
  .hp-proof-inner      { grid-template-columns: repeat(2, 1fr); }
  .hp-proof-item:nth-child(2) { border-right: none; }
  .hp-steps-grid       { grid-template-columns: 1fr; gap: 28px; }
  .hp-steps-grid::before { display: none; }
  .hp-topics-grid      { grid-template-columns: repeat(3, 1fr); }
  .hp-testimonials-grid { grid-template-columns: 1fr; }
  .hp-cta-band-title   { font-size: 30px; }
}
@media (max-width: 480px) {
  .hp-hero   { padding: 52px 20px 60px; }
  .hp-hero-h1 { font-size: 30px; }
  .hp-section { padding: 56px 20px; }
  .hp-topics-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-tools-grid  { grid-template-columns: 1fr; }
  .hp-proof-inner { grid-template-columns: 1fr 1fr; }
}


/* ============================================================
   PLANS PAGE — /plans
   ============================================================ */


/* ────────────────────────────────────────────────
   Plans Hero
──────────────────────────────────────────────── */
.plans-hero {
  background: var(--pd-navy);
  border-bottom: 3px solid var(--pd-orange);
  padding: 44px 24px 48px;
  position: relative;
  overflow: hidden;
}
.plans-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 130%, rgba(232,115,42,.1) 0%, transparent 70%);
  pointer-events: none;
}
.plans-hero-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.plans-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.7);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.plans-hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--pd-orange);
  border-radius: 50%;
  flex-shrink: 0;
}
.plans-hero-h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 10px;
}
.plans-hero-h1 em { font-style: normal; color: var(--pd-orange); }
.plans-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
}


/* ────────────────────────────────────────────────
   Tier Cards
──────────────────────────────────────────────── */
.pl-tiers-section {
  padding: 64px 24px;
  background: var(--pd-bg);
}
.pl-tiers-inner {
  max-width: 980px;
  margin: 0 auto;
}
.pl-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.pl-tier-card {
  background: var(--pd-white);
  border: 2px solid var(--pd-border);
  border-radius: var(--pd-r-xl);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pl-tier-featured {
  border-color: var(--pd-navy);
  box-shadow: 0 8px 32px rgba(26,39,68,.14);
}

/* Badge chips */
.pl-tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.pl-badge-value   { background: var(--pd-green); color: #fff; }
.pl-badge-popular { background: var(--pd-navy);  color: #fff; }

.pl-tier-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--pd-ink4);
  margin-bottom: 14px;
}
.pl-tier-amount {
  font-size: 46px;
  font-weight: 800;
  color: var(--pd-navy);
  line-height: 1;
  margin-bottom: 4px;
}
.pl-tier-amount sup {
  font-size: 22px;
  font-weight: 700;
  vertical-align: super;
  line-height: 0;
}
.pl-tier-period {
  font-size: 13px;
  color: var(--pd-ink4);
  margin-bottom: 4px;
}
.pl-tier-equiv {
  font-size: 13px;
  color: var(--pd-green);
  font-weight: 600;
  margin-bottom: 2px;
}
.pl-tier-save {
  font-size: 12.5px;
  color: var(--pd-ink3);
  margin-bottom: 16px;
}
.pl-tier-renewal {
  font-size: 11.5px;
  color: var(--pd-ink4);
  line-height: 1.55;
  padding: 14px 0;
  border-top: 1px solid var(--pd-border);
  border-bottom: 1px solid var(--pd-border);
  margin-bottom: 20px;
}
.pl-tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
  flex: 1;
}
.pl-tier-features li {
  font-size: 13.5px;
  color: var(--pd-ink2);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.pl-tier-features li::before {
  content: '✓';
  color: var(--pd-green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pl-tier-features li.feat-no {
  color: var(--pd-ink4);
}
.pl-tier-features li.feat-no::before {
  content: '–';
  color: var(--pd-ink4);
}
.pl-tier-cta {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--pd-orange);
  border: none;
  padding: 14px 20px;
  border-radius: var(--pd-r);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all .15s;
  box-shadow: 0 3px 12px var(--pd-orange-glow);
  margin-bottom: 10px;
}
.pl-tier-cta:hover {
  background: var(--pd-orange-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--pd-orange-glow);
  text-decoration: none;
}
.pl-tier-trust {
  font-size: 12px;
  color: var(--pd-ink4);
  text-align: center;
  line-height: 1.5;
}


/* ────────────────────────────────────────────────
   Plans FAQ
──────────────────────────────────────────────── */
.pl-faq-section {
  padding: 64px 24px;
  background: var(--pd-white);
}
.pl-faq-inner {
  max-width: 720px;
  margin: 0 auto;
}
.pl-faq-header {
  text-align: center;
  margin-bottom: 36px;
}
.pl-faq-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--pd-navy);
  letter-spacing: -.3px;
}
.pl-faq-wrap {
  background: var(--pd-white);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-r-lg);
  overflow: hidden;
  box-shadow: var(--pd-shadow-sm);
}
.pl-faq-item { border-bottom: 1px solid var(--pd-border); }
.pl-faq-item:last-child { border-bottom: none; }
.pl-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pd-ink);
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background .12s;
}
.pl-faq-q::-webkit-details-marker { display: none; }
.pl-faq-q:hover { background: #fafbff; }
details[open] .pl-faq-q {
  background: var(--pd-bg);
  border-bottom: 1px solid var(--pd-border);
}
.pl-faq-chevron {
  font-size: 17px;
  color: var(--pd-orange);
  font-style: normal;
  flex-shrink: 0;
  transition: transform .2s;
}
details[open] .pl-faq-chevron { transform: rotate(180deg); }
.pl-faq-a {
  padding: 14px 20px 16px;
  font-size: 13.5px;
  color: var(--pd-ink2);
  line-height: 1.75;
}


/* ────────────────────────────────────────────────
   Plans Responsive
──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pl-tiers-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}
@media (max-width: 640px) {
  .plans-hero-h1   { font-size: 26px; }
  .pl-tiers-section { padding: 48px 20px; }
  .pl-faq-section  { padding: 48px 20px; }
}

/* ─── AI tools — topic deep-links (universal partial) ─────────────────────── */
.topic-deep-links { padding: 56px 24px 48px; background: var(--pd-bg); }
.topic-deep-links-inner { max-width: 1100px; margin: 0 auto; }
.topic-deep-links-head { text-align: center; margin-bottom: 28px; }
.topic-deep-links-eyebrow { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--pd-orange); margin-bottom: 6px; }
.topic-deep-links-title { font-size: 26px; font-weight: 800; color: var(--pd-navy); margin: 0 0 6px; letter-spacing: -.4px; }
.topic-deep-links-sub { font-size: 14.5px; color: var(--pd-ink3); margin: 0; }
.topic-deep-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.topic-deep-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 6px;
  color: var(--pd-ink2);
  font-size: 13.5px; font-weight: 600;
  text-decoration: none;
  transition: border-color .12s, transform .12s, box-shadow .12s, color .12s;
}
.topic-deep-link:hover {
  border-color: var(--pd-blue);
  color: var(--pd-blue);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(42,79,168,.08);
  transform: translateY(-1px);
}
.topic-deep-link-count { font-size: 11px; color: var(--pd-ink4); font-weight: 500; }
.topic-deep-link-all { justify-content: center; background: var(--pd-navy); color: #fff; border-color: var(--pd-navy); }
.topic-deep-link-all:hover { background: var(--pd-orange); border-color: var(--pd-orange); color: #fff; }
.topic-deep-link-all svg { width: 12px; height: 12px; }
@media (max-width: 900px) { .topic-deep-links-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── AI tools — sibling tool grid (universal partial) ────────────────────── */
.tool-grid-section { padding: 56px 24px 56px; background: #fff; border-top: 1px solid var(--pd-border); }
.tool-grid-inner { max-width: 1100px; margin: 0 auto; }
.tool-grid-head { text-align: center; margin-bottom: 28px; }
.tool-grid-eyebrow { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--pd-orange); margin-bottom: 6px; }
.tool-grid-title { font-size: 26px; font-weight: 800; color: var(--pd-navy); margin: 0 0 6px; letter-spacing: -.4px; }
.tool-grid-sub { font-size: 14.5px; color: var(--pd-ink3); margin: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-grid-card {
  background: #fff; border: 1px solid var(--pd-border); border-radius: 10px;
  padding: 18px 20px; text-decoration: none;
  display: flex; gap: 14px; align-items: flex-start;
  transition: border-color .13s, transform .13s, box-shadow .13s;
}
.tool-grid-card-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tool-grid-card-icon svg { width: 18px; height: 18px; }
.tool-grid-card-icon.ico-blue   { background: var(--pd-blue-lt);   color: var(--pd-blue); }
.tool-grid-card-icon.ico-orange { background: var(--pd-orange-lt); color: var(--pd-orange-dk); }
.tool-grid-card-icon.ico-green  { background: var(--pd-green-lt);  color: var(--pd-green); }
.tool-grid-card-icon.ico-purple { background: var(--pd-purple-lt); color: var(--pd-purple); }
.tool-grid-card-icon.ico-teal   { background: var(--pd-teal-lt);   color: var(--pd-teal); }
.tool-grid-card-body { min-width: 0; flex: 1; }
.tool-grid-card:hover {
  border-color: var(--pd-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(42,79,168,.1);
  text-decoration: none;
}
.tool-grid-card-name { font-size: 15px; font-weight: 700; color: var(--pd-navy); margin-bottom: 4px; }
.tool-grid-card-desc { font-size: 13px; color: var(--pd-ink3); line-height: 1.55; margin-bottom: 10px; }
.tool-grid-card-arrow { font-size: 12.5px; font-weight: 700; color: var(--pd-blue); }
@media (max-width: 800px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .tool-grid { grid-template-columns: 1fr; } }

/* ─── AI tools — progressive loading status (universal) ───────────────────── */
.tool-loading-status {
  margin-top: 16px;
  padding: 12px 18px;
  background: var(--pd-blue-lt);
  border: 1px solid var(--pd-blue);
  border-radius: 6px;
  color: var(--pd-blue);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  display: none;
}
.tool-loading-status::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--pd-blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: tool-loading-spin .8s linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}
@keyframes tool-loading-spin { to { transform: rotate(360deg); } }
