/* Paper Editing Services Review — styles.css */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --fg: #1a1a2e;
  --muted: #5b6472;
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --rank-1: #f59e0b;
  --rank-2: #94a3b8;
  --rank-3: #b45309;
  --maxw: 820px;
  --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}
.brand {
  font-weight: 800;
  font-size: 17px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--accent); }

/* Breadcrumbs */
.breadcrumbs { margin: 20px 0 8px; }
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs li::after { content: " / "; color: var(--border); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* Typography */
h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 12px 0 6px;
}
h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  padding-top: 8px;
}
h3 { font-size: 20px; margin: 24px 0 8px; }
h4 { font-size: 17px; margin: 16px 0 6px; }
p { margin: 0 0 14px; }
a { color: var(--accent); }

.updated-line {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Quick answer */
.quick-answer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0 8px;
}
.quick-answer h2 { margin-top: 0; }
.quick-answer ul { margin: 0; padding-left: 20px; }
.quick-answer li { margin-bottom: 8px; }

/* Service blocks */
.service {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 20px 0;
  background: var(--bg);
}
.service-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.service-head h3 { margin: 0; }
.rank-badge {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  background: var(--surface-2);
  color: var(--fg);
}
.rank-1 { background: var(--rank-1); color: #fff; }
.rank-2 { background: var(--rank-2); color: #fff; }
.rank-3 { background: var(--rank-3); color: #fff; }

.service ul { margin: 4px 0 8px; padding-left: 22px; }
.service li { margin-bottom: 4px; }
.cta-line {
  font-weight: 600;
  margin-top: 12px;
}

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--surface);
  font-weight: 700;
  font-size: 14px;
}
tbody tr:nth-child(even) { background: var(--surface); }

/* Checklists */
.checklist {
  list-style: none;
  padding-left: 0;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
}
.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-weight: 800;
}

.cta-final {
  font-size: 18px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 20px;
}
.footer-brand { font-weight: 800; margin: 0 0 6px; }
.footer-disc { font-size: 13px; color: var(--muted); max-width: 420px; margin: 0; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--accent); }
.copyright {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 14px 20px 24px;
  margin: 0;
}

/* Legal pages */
.legal h1 { font-size: 28px; }
.legal h2 { font-size: 19px; }
.legal p, .legal li { font-size: 16px; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
  h3 { font-size: 18px; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 12px 20px; }
  .site-nav { gap: 10px; font-size: 14px; }
}
