/* ScribeVetted Editorial & Affiliate Design System */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-light: #ccfbf1;
  --fiverr: #1dbf73;
  --fiverr-hover: #19a463;
  --accent: #f59e0b;
  --pro: #4f46e5;
  --pro-light: #e0e7ff;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --success: #16a34a;
  --success-light: #dcfce7;
  --radius: 14px;
  --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Affiliate Disclosure Topbar */
.disclosure-bar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 12.5px;
  padding: 8px 0;
  text-align: center;
}
.disclosure-bar strong {
  color: #ffffff;
}

/* Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  color: var(--text);
  letter-spacing: -0.03em;
}
.brand-badge {
  background: var(--primary);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
}
.nav-links a {
  color: var(--text-muted);
}
.nav-links a:hover {
  color: var(--primary);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}
.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.lang-switch a.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
  color: #ffffff;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 184, 166, 0.18);
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: #99f6e4;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 26px;
  max-width: 640px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: #e2e8f0;
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  padding: 7px 13px;
  border-radius: 8px;
}

/* Interactive Cost Calculator Card */
.calc-card {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.calc-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.calc-card p.sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.calc-field {
  margin-bottom: 15px;
}
.calc-field label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.calc-field select,
.calc-field input[type="range"] {
  width: 100%;
}
.calc-field select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  background: var(--surface-alt);
}
.calc-result {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-result .price-big {
  font-size: 26px;
  font-weight: 800;
  color: #15803d;
}
.calc-result .agency-compare {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Buttons */
.btn-fiverr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--fiverr);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(29, 191, 115, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn-fiverr:hover {
  background: var(--fiverr-hover);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  color: var(--text) !important;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 10px;
  transition: all 0.15s ease;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

/* Sections */
.section {
  padding: 56px 0;
}
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header {
  margin-bottom: 32px;
}
.section-header h2 {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 720px;
}

/* Category Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}
.cat-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.cat-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.cat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--primary);
}

/* Writer Review Card (List Item) */
.writer-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.writer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.writer-card.pro-border {
  border: 2px solid var(--pro);
}
.rank-ribbon {
  position: absolute;
  top: -12px;
  left: 24px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.rank-ribbon.pro-ribbon {
  background: var(--pro);
}
.writer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.writer-identity {
  display: flex;
  gap: 16px;
  align-items: center;
}
.avatar {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.writer-title h3 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 4px;
}
.writer-title h3 a {
  color: var(--text);
}
.writer-title h3 a:hover {
  color: var(--primary);
}
.writer-tagline {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.badge-human {
  background: var(--success-light);
  color: #166534;
}
.badge-pro {
  background: var(--pro-light);
  color: #3730a3;
}
.badge-ppw {
  background: #fef3c7;
  color: #92400e;
}
.badge-native {
  background: var(--surface-alt);
  color: var(--text);
}

.score-box {
  text-align: right;
  background: var(--surface-alt);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.score-box .score-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
}
.score-box .score-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.writer-verdict {
  background: var(--surface-alt);
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 18px;
  font-size: 15px;
}
.writer-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}
.metric-item span.label {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.metric-item span.val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.writer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Pros & Cons Grid */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.pros-box, .cons-box {
  padding: 20px;
  border-radius: 12px;
}
.pros-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.cons-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.pros-box h4 {
  color: #166534;
  margin-bottom: 12px;
  font-size: 16px;
}
.cons-box h4 {
  color: #991b1b;
  margin-bottom: 12px;
  font-size: 16px;
}
.pros-box ul, .cons-box ul {
  list-style: none;
}
.pros-box li, .cons-box li {
  font-size: 14.5px;
  margin-bottom: 8px;
  padding-left: 22px;
  position: relative;
}
.pros-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 900;
}
.cons-box li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 900;
}

/* Packages Table */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
table.pkg-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}
table.pkg-table th {
  background: var(--surface-alt);
  padding: 14px 16px;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}
table.pkg-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.pkg-table tr:last-child td {
  border-bottom: none;
}

/* Detail Review Layout */
.review-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.sticky-sidebar {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.content-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}
.content-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 22px 0 10px;
}
.content-card p {
  margin-bottom: 14px;
  color: #334155;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--primary);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-q {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text);
}
.faq-a {
  font-size: 15px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 0 36px;
  font-size: 14px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.site-footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
}
.site-footer li {
  margin-bottom: 8px;
}
.site-footer a {
  color: #94a3b8;
}
.site-footer a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .hero-grid,
  .review-layout,
  .pros-cons,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .writer-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 30px;
  }
  .nav-links {
    display: none;
  }
}
