/**
 * Softaken Email Recovery - Category Page Stylesheet
 * Location: new-css/category/email-recovery.css
 * Palette matches index page: #4885D4 (Brand) · #243D5A (Dark) · #0F100C (Deep) · #eef2fb (Soft) · #d7e1f4 (Border)
 */

:root {
  --er-brand: #4885D4;
  --er-brand-dark: #243D5A;
  --er-brand-deep: #0F100C;
  --er-brand-soft: #eef2fb;
  --er-accent: #A0B6E8;
  --er-ink: #0F100C;
  --er-muted: #4a5568;
  --er-line: #d7e1f4;
  --er-bg: #f8fafc;
  --er-card: #ffffff;
  --er-success: #16a34a;
  --er-radius-sm: 8px;
  --er-radius-md: 14px;
  --er-radius-lg: 20px;
  --er-shadow-sm: 0 4px 12px rgba(15, 16, 12, 0.04);
  --er-shadow-md: 0 10px 28px rgba(36, 61, 90, 0.08);
  --er-shadow-lg: 0 18px 40px rgba(15, 16, 12, 0.12);
  --er-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Page wrapper & baseline */
body.er-page-body {
  background: #ffffff;
  color: var(--er-ink);
  font-family: var(--er-font);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.er-page * {
  box-sizing: border-box;
}

.er-wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

/* Breadcrumbs */
.er-breadcrumbs {
  background: #ffffff;
  border-bottom: 1px solid var(--er-line);
  padding: 12px 0;
  font-size: 14px;
}
.er-breadcrumbs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.er-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  color: var(--er-muted);
}
.er-breadcrumbs li+li::before {
  content: "/";
  margin-right: 8px;
  color: #94a3b8;
}
.er-breadcrumbs a {
  color: var(--er-brand-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.er-breadcrumbs a:hover {
  color: var(--er-brand);
  text-decoration: underline;
}
.er-breadcrumbs .current {
  color: var(--er-ink);
  font-weight: 600;
}

/* Hero Section */
.er-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 56px 0 60px;
  background:
    radial-gradient(ellipse 70% 80% at 88% 0%, rgba(160, 182, 232, 0.28), transparent 55%),
    linear-gradient(145deg, var(--er-brand-dark) 0%, #1a2d44 48%, var(--er-brand-deep) 100%);
}
.er-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.er-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}
.er-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}
.er-hero h1 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
}
.er-hero-lead {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 38em;
}
.er-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.er-hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  backdrop-filter: blur(4px);
}
.er-hero-meta li svg {
  width: 14px;
  height: 14px;
  fill: var(--er-accent);
}
.er-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.er-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  line-height: 1.2;
}
.er-btn-primary {
  background: var(--er-brand);
  color: #ffffff;
  border: 2px solid var(--er-brand);
  box-shadow: 0 4px 14px rgba(72, 133, 212, 0.35);
}
.er-btn-primary:hover {
  background: #3974c2;
  border-color: #3974c2;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(72, 133, 212, 0.45);
}
.er-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}
.er-btn-ghost:hover {
  background: #ffffff;
  color: var(--er-brand-dark);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.er-hero-visual {
  position: relative;
  text-align: center;
}
.er-hero-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--er-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}
.er-hero-img:hover {
  transform: scale(1.02);
}
.er-hero-badge-floating {
  position: absolute;
  bottom: -15px;
  right: 20px;
  background: #ffffff;
  color: var(--er-brand-dark);
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--er-line);
}
.er-hero-badge-floating strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--er-ink);
}
.er-hero-badge-floating span {
  display: block;
  font-size: 12px;
  color: var(--er-muted);
}
.er-hero-badge-floating .check-icon {
  width: 28px;
  height: 28px;
  background: #dcfce7;
  color: var(--er-success);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}

/* Trust Strip */
.er-trust-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--er-line);
  padding: 18px 0;
}
.er-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.er-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--er-radius-sm);
  background: var(--er-brand-soft);
  border: 1px solid var(--er-line);
}
.er-trust-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--er-brand);
  border: 1px solid var(--er-line);
}
.er-trust-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.er-trust-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--er-brand-dark);
  line-height: 1.25;
}
.er-trust-info span {
  display: block;
  font-size: 11.5px;
  color: var(--er-muted);
  line-height: 1.25;
}

/* Section Common Styling */
.er-section {
  padding: 56px 0;
}
.er-section-title-wrap {
  margin-bottom: 32px;
}
.er-section-title-wrap.center {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 40px;
}
.er-eyebrow {
  display: inline-block;
  background: var(--er-brand-soft);
  color: var(--er-brand);
  border: 1px solid var(--er-line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.er-section h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--er-brand-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.er-section p {
  margin: 0 0 16px;
  color: var(--er-muted);
  font-size: 15.5px;
  line-height: 1.75;
}

/* Why Email Recovery Matters (Intro Box) */
.er-intro-card {
  background: #ffffff;
  border: 1px solid var(--er-line);
  border-radius: var(--er-radius-md);
  padding: 32px 36px;
  box-shadow: var(--er-shadow-sm);
  position: relative;
  overflow: hidden;
  border-left: 5px solid var(--er-brand);
}
.er-intro-card p:last-child {
  margin-bottom: 0;
}

/* Why Needed Scenarios Grid */
.er-need-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.er-need-card {
  background: #ffffff;
  border: 1px solid var(--er-line);
  border-radius: var(--er-radius-md);
  padding: 28px;
  box-shadow: var(--er-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.er-need-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--er-shadow-md);
  border-color: var(--er-brand);
}
.er-need-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.er-need-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--er-brand-soft);
  color: var(--er-brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.er-need-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.er-need-card h3 {
  margin: 0;
  font-size: 19px;
  color: var(--er-brand-dark);
  font-weight: 700;
}
.er-need-card p {
  margin: 0;
  flex: 1;
}

/* Methods Section */
.er-methods-bg {
  background: var(--er-brand-soft);
  border-top: 1px solid var(--er-line);
  border-bottom: 1px solid var(--er-line);
}
.er-methods-box {
  background: #ffffff;
  border: 1px solid var(--er-line);
  border-radius: var(--er-radius-md);
  padding: 32px;
  box-shadow: var(--er-shadow-sm);
}
.er-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.er-method-step {
  background: #ffffff;
  border: 1px solid var(--er-line);
  border-radius: 12px;
  padding: 20px;
  position: relative;
}
.er-method-step-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--er-brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: block;
}
.er-method-step h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--er-brand-dark);
}
.er-method-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* Product Showcase Grid (The Core Category Tools) */
.er-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 32px;
}
.er-tool-card {
  background: #ffffff;
  border: 1px solid var(--er-line);
  border-radius: var(--er-radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--er-shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}
.er-tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--er-shadow-md);
  border-color: var(--er-brand);
}
.er-tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.er-tool-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--er-brand);
  background: var(--er-brand-soft);
  border: 1px solid var(--er-line);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.er-tool-img-wrap {
  text-align: center;
  margin: 8px 0 18px;
  min-height: 120px;
  display: grid;
  place-items: center;
}
.er-tool-img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.12));
  transition: transform 0.25s ease;
}
.er-tool-card:hover .er-tool-img {
  transform: scale(1.05);
}
.er-tool-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
}
.er-tool-card h3 a {
  color: var(--er-brand-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
.er-tool-card h3 a:hover {
  color: var(--er-brand);
}
.er-tool-card p {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.er-tool-features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border-top: 1px solid var(--er-line);
  padding-top: 14px;
}
.er-tool-features li {
  font-size: 13.5px;
  color: var(--er-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.er-tool-features li::before {
  content: "✓";
  color: var(--er-success);
  font-weight: 800;
  font-size: 13px;
}
.er-tool-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--er-brand-soft);
  color: var(--er-brand-dark);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--er-line);
  transition: all 0.2s ease;
}
.er-tool-cta:hover {
  background: var(--er-brand);
  color: #ffffff;
  border-color: var(--er-brand);
  box-shadow: 0 4px 12px rgba(72, 133, 212, 0.3);
  text-decoration: none;
}
.er-tool-cta span.arrow {
  transition: transform 0.2s ease;
}
.er-tool-cta:hover span.arrow {
  transform: translateX(3px);
}

/* Comparison Table (Google Helpful Content & User Matrix) */
.er-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--er-line);
  border-radius: var(--er-radius-md);
  box-shadow: var(--er-shadow-sm);
  background: #ffffff;
  margin-top: 24px;
}
.er-compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
  min-width: 640px;
}
.er-compare-table th,
.er-compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--er-line);
}
.er-compare-table thead th {
  background: var(--er-brand-dark);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.er-compare-table thead th:first-child {
  width: 25%;
}
.er-compare-table tbody tr:hover {
  background: var(--er-brand-soft);
}
.er-compare-table tbody tr:last-child td {
  border-bottom: none;
}
.er-badge-cell {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--er-brand-soft);
  color: var(--er-brand-dark);
}

/* Specifications Table */
.er-specs-card {
  background: #ffffff;
  border: 1px solid var(--er-line);
  border-radius: var(--er-radius-md);
  padding: 28px;
  box-shadow: var(--er-shadow-sm);
}
.er-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.er-specs-table th,
.er-specs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--er-line);
  text-align: left;
}
.er-specs-table th {
  width: 30%;
  background: var(--er-brand-soft);
  color: var(--er-brand-dark);
  font-weight: 700;
}
.er-specs-table tr:last-child th,
.er-specs-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion Section */
.er-faq-wrap {
  margin-top: 24px;
}
.er-faq-item {
  background: #ffffff;
  border: 1px solid var(--er-line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  transition: border-color 0.2s ease;
}
.er-faq-item.is-open {
  border-color: var(--er-brand);
}
.er-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--er-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease, background 0.2s ease;
}
.er-faq-q:hover {
  background: var(--er-brand-soft);
  color: var(--er-brand);
}
.er-faq-item.is-open .er-faq-q {
  color: var(--er-brand);
  background: var(--er-brand-soft);
}
.er-faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--er-line);
  display: grid;
  place-items: center;
  color: var(--er-brand);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}
.er-faq-item.is-open .er-faq-icon {
  background: var(--er-brand);
  color: #ffffff;
  border-color: var(--er-brand);
  transform: rotate(180deg);
}
.er-faq-a {
  display: none;
  padding: 16px 22px 20px;
  color: var(--er-muted);
  font-size: 15px;
  line-height: 1.75;
  border-top: 1px solid var(--er-line);
  background: #ffffff;
}
.er-faq-item.is-open .er-faq-a {
  display: block;
}

/* Bottom Trust & Security Banner (Identical to Index Page) */
.er-trust-banner {
  background: var(--er-brand-soft);
  border-top: 1px solid var(--er-line);
  padding: 40px 0;
}
.er-trust-banner-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: center;
}
.er-trust-banner-logo img {
  width: 160px;
  height: auto;
}
.er-trust-banner-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.er-trust-banner-text strong {
  display: block;
  font-size: 18px;
  color: var(--er-brand-dark);
  font-weight: 800;
  margin-bottom: 4px;
}
.er-trust-banner-text span {
  font-size: 14px;
  color: var(--er-muted);
}
.er-trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.er-trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--er-line);
  padding: 8px 14px;
  border-radius: 8px;
}
.er-trust-badge-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.er-trust-badge-item span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--er-brand-dark);
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .er-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .er-hero-lead {
    margin-inline: auto;
  }
  .er-hero-meta,
  .er-hero-actions {
    justify-content: center;
  }
  .er-hero-visual {
    order: -1;
  }
  .er-hero-img {
    max-width: 420px;
  }
  .er-tools-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
  .er-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .er-methods-grid {
    grid-template-columns: 1fr;
  }
  .er-trust-banner-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .er-trust-banner-logo {
    margin: 0 auto;
  }
  .er-trust-banner-content {
    justify-content: center;
  }
  .er-trust-badges-row {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .er-hero {
    padding: 36px 0 44px;
  }
  .er-hero h1 {
    font-size: 26px;
  }
  .er-need-grid {
    grid-template-columns: 1fr;
  }
  .er-trust-grid {
    grid-template-columns: 1fr;
  }
  .er-section {
    padding: 38px 0;
  }
  .er-hero-badge-floating {
    position: static;
    margin-top: 16px;
    display: inline-flex;
  }
  .er-intro-card {
    padding: 22px;
  }
  .er-specs-table th {
    width: 38%;
  }
}

