/* ============================================================
   SEOOrbit · main stylesheet
   Material-inspired, Google color palette, generous whitespace.
   ============================================================ */

:root {
  --g-blue: #4285F4;
  --g-blue-dark: #1a73e8;
  --g-red: #EA4335;
  --g-yellow: #FBBC05;
  --g-green: #34A853;

  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --bg-muted: #f1f3f4;
  --border: #dadce0;
  --border-strong: #bdc1c6;

  --text: #202124;
  --text-muted: #5f6368;
  --text-soft: #80868b;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(60, 64, 67, 0.08), 0 1px 3px rgba(60, 64, 67, 0.06);
  --shadow-2: 0 1px 3px rgba(60, 64, 67, 0.10), 0 4px 8px rgba(60, 64, 67, 0.06);
  --shadow-3: 0 4px 12px rgba(60, 64, 67, 0.12), 0 8px 24px rgba(60, 64, 67, 0.08);

  --font-sans: 'Roboto', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Roboto', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container-max: 1180px;
}

* { box-sizing: border-box; }

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

img { max-width: 100%; display: block; }

a {
  color: var(--g-blue-dark);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--g-blue); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.01em;
  margin-top: 0;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.18; font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1em; }

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

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--g-blue);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.btn-primary:hover {
  background: var(--g-blue-dark);
  color: #fff;
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--g-blue-dark);
  padding: 10px 14px;
}
.btn-ghost:hover { background: rgba(66, 133, 244, 0.08); }
.btn-danger {
  background: var(--g-red);
  color: #fff;
}
.btn-danger:hover { background: #c5221f; color:#fff; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* -------- Top nav -------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.8) blur(8px);
  border-bottom: 1px solid var(--border);
}
.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand-logo {
  width: 32px; height: 32px;
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-soft);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-ghost { display: none; }
  .mobile-toggle { display: inline-flex; }
}

/* -------- Hero -------- */
.hero {
  padding: 80px 0 56px;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(66,133,244,0.10), transparent 60%),
    radial-gradient(700px 360px at 0% 10%, rgba(52,168,83,0.08), transparent 60%);
}
.hero h1 .accent-blue { color: var(--g-blue); }
.hero h1 .accent-red { color: var(--g-red); }
.hero h1 .accent-green { color: var(--g-green); }
.hero h1 .accent-yellow { color: var(--g-yellow); }

.hero-lede {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin: 18px 0 28px;
  max-width: 640px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-url-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  max-width: 540px;
  box-shadow: var(--shadow-2);
  margin-bottom: 22px;
}
.hero-url-form input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  font-family: inherit;
}
.hero-url-form input::placeholder { color: var(--text-soft); }

.hero-mini-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.hero-mini-stats strong { color: var(--text); font-weight: 600; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* -------- Sections -------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
section.alt { background: var(--bg-soft); }
.section-eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--g-blue-dark);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

/* -------- Stat strip -------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-1);
}
.stat-strip .stat { text-align: left; }
.stat-strip .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-strip .stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}
.stat-strip .stat:nth-child(1) .stat-value { color: var(--g-blue); }
.stat-strip .stat:nth-child(2) .stat-value { color: var(--g-red); }
.stat-strip .stat:nth-child(3) .stat-value { color: var(--g-yellow); }
.stat-strip .stat:nth-child(4) .stat-value { color: var(--g-green); }

@media (max-width: 720px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* -------- Feature cards -------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-1);
  transition: box-shadow .18s ease, transform .18s ease;
  display: block;
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; color: var(--text); }
.card p { color: var(--text-muted); margin: 0; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}
.icon-blue { background: rgba(66,133,244,0.12); color: var(--g-blue); }
.icon-red { background: rgba(234,67,53,0.12); color: var(--g-red); }
.icon-yellow { background: rgba(251,188,5,0.16); color: #c08401; }
.icon-green { background: rgba(52,168,83,0.12); color: var(--g-green); }

/* -------- How it works steps -------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--g-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.step:nth-child(2) .step-num { background: var(--g-red); }
.step:nth-child(3) .step-num { background: var(--g-yellow); color: #5e4a00;}
.step:nth-child(4) .step-num { background: var(--g-green); }

/* -------- Comparison table -------- */
.compare-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th, .compare-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table th { background: var(--bg-soft); font-weight: 600; color: var(--text); }
.compare-table tr:last-child td { border-bottom: none; }
.check { color: var(--g-green); font-weight: 700; }
.x-mark { color: var(--g-red); font-weight: 700; }

/* -------- Article previews -------- */
.article-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-1);
  height: 100%;
}
.article-preview .meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.tag {
  display: inline-block;
  background: var(--bg-muted);
  color: var(--text-muted);
  padding: 4px 10px;
  font-size: 0.76rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}
.tag-blue { background: rgba(66,133,244,0.10); color: var(--g-blue-dark); }
.tag-red { background: rgba(234,67,53,0.10); color: #b3261e; }
.tag-yellow { background: rgba(251,188,5,0.16); color: #8d6500; }
.tag-green { background: rgba(52,168,83,0.10); color: #1e7e3e; }

/* -------- Integrations row -------- */
.logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-1);
}

/* -------- Testimonials -------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-1);
}
.testimonial blockquote {
  margin: 0 0 16px;
  font-size: 1.06rem;
  color: var(--text);
}
.testimonial .author {
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g-blue), var(--g-green));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
}
.author-info strong { display: block; color: var(--text); }
.author-info span { color: var(--text-muted); font-size: 0.88rem; }

/* -------- Pricing -------- */
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-2);
  max-width: 460px;
  margin: 0 auto;
  position: relative;
  text-align: left;
}
.price-card .price {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.price-card .price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.price-card ul.checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
}
.price-card ul.checks li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text);
}
.price-card ul.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  background: var(--g-green);
  border-radius: 50%;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.2l-3.5-3.6L4 14.1 9 19l11-11-1.5-1.5z'/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.2l-3.5-3.6L4 14.1 9 19l11-11-1.5-1.5z'/></svg>") center/contain no-repeat;
}
.badge {
  position: absolute;
  top: 18px; right: 18px;
  background: rgba(52,168,83,0.12);
  color: var(--g-green);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
}
.billing-toggle {
  display: inline-flex;
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 28px;
}
.billing-toggle button {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}
.billing-toggle button.active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-1);
}

/* -------- FAQ -------- */
.faq-list { max-width: 820px; margin: 0 auto; }
details.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-1);
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
details.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: transform .15s ease;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p { margin-top: 12px; color: var(--text-muted); }

/* -------- Footer -------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 { color: var(--text); margin-bottom: 14px; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a { color: var(--text-muted); font-size: 0.95rem; }
.site-footer ul li a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.color-bar {
  display: inline-flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-right: 10px;
  width: 64px;
  vertical-align: middle;
}
.color-bar span { flex: 1; height: 100%; display: block; }

/* -------- Flash -------- */
.flash {
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.flash-success { background: rgba(52,168,83,0.10); color: #1e7e3e; }
.flash-error { background: rgba(234,67,53,0.10); color: #b3261e; }

/* -------- Forms -------- */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--g-blue);
  box-shadow: 0 0 0 3px rgba(66,133,244,0.18);
}
.form-aside {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-2);
}
.form-aside h1 { font-size: 1.7rem; margin-bottom: 6px; }
.form-aside .sub { color: var(--text-muted); margin-bottom: 22px; }
.form-aside .alt-link { text-align: center; margin-top: 18px; color: var(--text-muted); font-size: 0.92rem; }

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  color: var(--text-soft);
  font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Google sign-in button — Material-style */
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 18px;
  background: #fff;
  color: #3c4043;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-family: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-google:hover {
  background: var(--bg-soft);
  color: #3c4043;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
}
.btn-google img { width: 18px; height: 18px; display: block; }

/* Tighter hero used on the auth pages so the lede doesn't sit miles
   above the form. */
.auth-hero {
  padding: 36px 0 8px;
}
.auth-hero h1 { margin: 0 0 6px; }
.auth-hero .auth-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* -------- CTA banner -------- */
.cta-banner {
  background: linear-gradient(135deg, #1a73e8 0%, #4285F4 70%, #34A853 130%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-shadow: var(--shadow-3);
}
.cta-banner h2 { color: #fff; margin: 0 0 8px; }
.cta-banner p { color: rgba(255,255,255,0.92); margin: 0; max-width: 540px; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--g-blue-dark);
}
.cta-banner .btn-primary:hover { background: var(--bg-soft); color: var(--g-blue-dark); }
@media (max-width: 780px) {
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
}

/* -------- Misc -------- */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.row-gap-12 > * + * { margin-top: 12px; }
.spacer-md { height: 36px; }
.kbd {
  font-family: var(--font-mono);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.85em;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
}
.delta-up { color: var(--g-green); }
.delta-down { color: var(--g-red); }

/* article-style content (legal, blog post) */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text);
}
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 28px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
