/* Shared styles for static SEO landing pages under public/<slug>/.
   Page-specific overrides may live in an inline <style> block per page. */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #1a73e8;
  --accent-hover: #1558b0;
  --accent-fg: #ffffff;
  --featured-accent: #8ab4f8;
  --border: #e4e4e0;
  --featured-bg: #1a1a2e;
  --featured-text: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 860px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.10), 0 12px 40px rgba(0, 0, 0, 0.08);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-fg) !important;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
  padding: 7px 16px;
}

.btn-primary:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  white-space: nowrap;
  padding: 7px 16px;
}

.btn-outline:hover {
  border-color: #bbb;
  background: rgba(0, 0, 0, 0.03);
  transform: translateY(-1px);
}

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}

.direct-answer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 0 0 48px;
  box-shadow: var(--shadow);
}

.direct-answer p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

/* Sections */
.section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}

.section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}

.section p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 16px;
}

.section p:last-child {
  margin-bottom: 0;
}

.section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.section ul li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  padding: 4px 0;
  padding-left: 24px;
  position: relative;
}

.section ul li::before {
  content: "·";
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
}

/* Page-specific elements */
.screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.tip-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}

.tip-box strong {
  color: var(--text);
}

kbd {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  background: #f0f0ec;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.95rem;
}

thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}

thead th.col-rewright {
  color: var(--accent);
}

tbody tr {
  border-bottom: 1px solid var(--border);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(26, 115, 232, 0.03);
}

tbody td {
  padding: 14px 18px;
  color: var(--text);
  vertical-align: top;
}

tbody td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 22%;
}

/* FAQ */
.faq-item {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.faq-item p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
}

/* CTA */
.cta-banner {
  background: var(--featured-bg);
  color: var(--featured-text);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  margin: 48px 0 64px;
}

.cta-banner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}

.cta-banner .btn-primary {
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
}

.cta-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.15s;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 600px) {
  .hero {
    padding: 48px 0 32px;
  }
  .cta-banner {
    padding: 36px 24px;
  }
  .nav-links .btn-outline {
    display: none;
  }
}
