/* BlissfulScribe – Shared Stylesheet */

/* ── CSS Custom Properties ─────────────────────────────────────────────── */
:root {
  --color-primary:      #2563eb;
  --color-teal:         #0d9488;
  --color-text:         #0f172a;
  --color-muted:        #64748b;
  --color-bg:           #ffffff;
  --color-alt-bg:       #f8fafc;
  --color-border:       #e2e8f0;
  --gradient:           linear-gradient(135deg, #2563eb, #0d9488);
  --gradient-hover:     linear-gradient(135deg, #1d4ed8, #0f766e);
  --shadow-sm:          0 1px 3px 0 rgb(0 0 0 / 0.07), 0 1px 2px -1px rgb(0 0 0 / 0.07);
  --shadow-md:          0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.08);
  --shadow-lg:          0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --radius-sm:          0.375rem;
  --radius-md:          0.5rem;
  --radius-lg:          0.75rem;
  --radius-xl:          1rem;
  --radius-2xl:         1.5rem;
  --font-sans:          'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Base Reset & Typography ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }

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

/* ── Gradient Utilities ─────────────────────────────────────────────────── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: var(--gradient);
}

.gradient-border {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

/* ── Button Styles ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgb(37 99 235 / 0.35);
}

.btn-primary:hover {
  background: var(--gradient-hover);
  box-shadow: 0 6px 20px 0 rgb(37 99 235 / 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px 0 rgb(37 99 235 / 0.3);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  background: var(--color-alt-bg);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

.btn-lg {
  font-size: 1.0625rem;
  padding: 0.875rem 2.25rem;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
}

/* ── Card Styles ────────────────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease;
}

.card-elevated {
  box-shadow: var(--shadow-lg);
  border-color: #c7d2fe;
}

/* ── Badge / Pill Styles ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  letter-spacing: 0.01em;
}

.badge-popular {
  background: var(--gradient);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgb(37 99 235 / 0.4);
}

.badge-category {
  background: #eff6ff;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.badge-teal {
  background: #f0fdfa;
  color: var(--color-teal);
}

/* ── Section Padding ────────────────────────────────────────────────────── */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-lg {
  padding: 7rem 0;
}

.section-alt {
  background: var(--color-alt-bg);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile menu */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--color-text);
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.15s ease;
}

.nav-mobile-menu a:last-child {
  border-bottom: none;
}

.nav-mobile-menu a:hover {
  color: var(--color-primary);
}

.nav-mobile-cta {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .nav-links,
  .nav-right {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #1e293b;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #64748b;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #64748b;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.85rem;
  color: #475569;
}

.footer-company-note {
  font-size: 0.8rem;
  color: #334155;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ── Hero Section ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 99, 235, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 60%, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Features Grid ──────────────────────────────────────────────────────── */
.feature-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}

/* ── How It Works ───────────────────────────────────────────────────────── */
.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--gradient);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgb(37 99 235 / 0.3);
}

/* ── Pricing ────────────────────────────────────────────────────────────── */
.pricing-card {
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2rem;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.pricing-card-popular {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-card-popular:hover {
  transform: scale(1.02) translateY(-2px);
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-text);
  line-height: 1;
}

.price-period {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.feature-check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 0.625rem;
}

.feature-check::before {
  content: '';
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230d9488'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 0.15rem;
}

/* ── FAQ Accordion ──────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

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

details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary .faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: var(--color-alt-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.15s ease, transform 0.2s ease;
}

details[open].faq-item summary .faq-icon {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 1.25rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── Social Proof Strip ─────────────────────────────────────────────────── */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

/* ── Blog Cards ─────────────────────────────────────────────────────────── */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Article ────────────────────────────────────────────────────────────── */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #1e293b;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-size: 1.175rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 2rem 0 0.75rem;
}

.article-body p {
  margin: 0 0 1.25rem;
}

.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.25rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.article-body th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--color-alt-bg);
  font-weight: 600;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.article-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.article-body tr:nth-child(even) td {
  background: #fafafa;
}

.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-primary);
  transition: opacity 0.15s ease;
}

.breadcrumb a:hover {
  opacity: 0.8;
}

.breadcrumb-sep {
  color: var(--color-border);
}

/* ── Section Heading ────────────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

/* ── Contact Boxes ──────────────────────────────────────────────────────── */
.contact-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.contact-box-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* ── Guarantee strip ────────────────────────────────────────────────────── */
.guarantee-strip {
  font-size: 0.875rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 1.25rem;
}

.guarantee-strip span::before {
  content: '· ';
}

.guarantee-strip span:first-child::before {
  content: '';
}

/* ── Legal pages ────────────────────────────────────────────────────────── */
.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 2.5rem 0 0.75rem;
}

.legal-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.75rem 0 0.5rem;
}

.legal-body p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #334155;
}

.legal-body ul {
  margin: 0 0 1rem 1.25rem;
}

.legal-body li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 0.4rem;
}

.legal-last-updated {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* ── Utility ────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
