/* Route Ready — routereadykits.com. No frameworks, system fonts, mobile-first. */

:root {
  --accent: #1a7f4b;
  --accent-dark: #14653c;
  --bg: #ffffff;
  --bg-soft: #f4f6f5;
  --text: #1c211e;
  --text-muted: #5b645f;
  --border: #dde3e0;
  --zebra: #f6f8f7;
  --code-bg: #f0f2f1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #2fa76a;
    --accent-dark: #26925b;
    --bg: #141816;
    --bg-soft: #1c211e;
    --text: #e6eae8;
    --text-muted: #9aa39e;
    --border: #2c332f;
    --zebra: #191e1b;
    --code-bg: #1f2521;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.brand-mark {
  flex: none;
  display: block;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); }

/* Main */
main { padding: 2rem 1.25rem 3rem; }

h1, h2, h3 {
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
}
h1 { font-size: 1.9rem; margin-top: 0.5rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: var(--bg-soft);
  color: var(--text-muted);
  border-radius: 0 6px 6px 0;
}
blockquote p:last-child { margin-bottom: 0.25rem; }
blockquote p:first-child { margin-top: 0.25rem; }

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.55;
}
code { font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  vertical-align: top;
}
th { background: var(--bg-soft); }
tbody tr:nth-child(even) { background: var(--zebra); }

/* Article */
.article-header { margin-bottom: 1.5rem; }
.byline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: -0.25rem;
}

/* Buttons + CTA */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin: 0.2rem 0.4rem 0.2rem 0;
}
.btn:hover { background: var(--accent-dark); color: #ffffff; }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.btn-secondary:hover { background: var(--bg-soft); color: var(--accent-dark); }
.btn-disabled,
.btn-disabled:hover {
  background: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.cta-block {
  margin: 1.75rem 0;
  padding: 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  text-align: center;
}

.guarantee {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  background: var(--bg-soft);
}

.email-form {
  margin: 1.75rem 0;
  padding: 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.email-form form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.5rem;
}
.email-form label { flex-basis: 100%; }
.email-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.65rem 0.8rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

/* Hero + cards (home) */
.hero {
  padding: 1.5rem 0 0.5rem;
}
.hero h1 { font-size: 1.9rem; }
.hero p { color: var(--text-muted); }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem;
  background: var(--bg-soft);
}
.card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card p { font-size: 0.92rem; margin-bottom: 0.6rem; color: var(--text-muted); }
.card .price { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.card-muted { opacity: 0.85; }

/* Guide lists */
.guide-list { list-style: none; padding: 0; }
.guide-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.guide-item a { font-weight: 600; text-decoration: none; }
.guide-item a:hover { text-decoration: underline; }
.guide-item p {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.cluster h2 { margin-top: 2.25rem; }

.credibility {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.site-footer .wrap { padding-top: 1.5rem; padding-bottom: 2rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }
.footer-note { margin-bottom: 0.5rem; }
