/* =========================
   Base Styles
   ========================= */
:root {
  --main-text: #222;
  --soft-text: #555;
  --soft: #f7f7f7;
  --line: #ddd;
  --radius: 8px;
  --main-butbg: #2d79c7;
  --main-buttext: #fff;
  --main-butbg-hover: #1c5fa7;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--main-text);
  background: var(--soft);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-weight: 600;
  margin-top: 0;
  color: var(--main-text);
}

p, ul, li {
  margin: 5;
  padding: 5;
  /* list-style: none; */
}

a {
  color: var(--main-butbg);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
}

/* =========================
   Layout
   ========================= */
/* =========================
   Header (Charcoal variant)
   ========================= */
.site-header {
  background: #2c2c2c; /* Charcoal */
  border-bottom: 1px solid #1a1a1a;
  color: #fff;
  width: 100%;
}

.header-inner {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  flex-wrap: nowrap;
}

.brand-row img {
  /* height: 48px; */
  height: 120px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.nameblock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 240px;
}

.company {
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}

.tagline {
  color: #bbb;
  font-size: 0.9rem;
  margin-top: 2px;
}

.topnav {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 8px;
}

.topnav a {
  color: #f4f4f4;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.topnav a:hover {
  color: #2d79c7; /* Blue accent */
}

/* Active nav state */
.topnav a.active {
  color: #2d79c7;              /* PyTools blue accent */
  font-weight: 600;
  border-bottom: 2px solid #2d79c7;
  padding-bottom: 2px;
}

/* =========================
   Sections
   ========================= */
main {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 0 60px;
}
.section {
  margin-bottom: 50px;
}
.hero {
  text-align: center;
  margin: 40px 0 50px;
}
.hero p.muted {
  margin-bottom: 10px;
}

.muted {
  color: var(--soft-text);
  font-size: 0.9rem;
}

/* =========================
   Buttons
   ========================= */
.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--main-butbg);
  color: var(--main-butbg);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.button:hover {
  background: var(--main-butbg);
  color: var(--main-buttext);
  text-decoration: none;
}
.button.primary {
  background: var(--main-butbg);
  color: var(--main-buttext);
}
.button.primary:hover {
  background: var(--main-butbg-hover);
}

/* =========================
   Grids and Cards
   ========================= */
.grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 800px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* =========================
   Automation Ladder
   ========================= */
.ladder-img {
  display: block;
  margin: 20px auto;
  max-width: 640px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.ladder-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 1024px) {
  .ladder-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 24px;
    align-items: start;
  }
}

.ladder-tier {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ladder-tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.ladder-tier h3 {
  color: var(--main-butbg);
  margin-bottom: 6px;
}
.ladder-tier ul {
  margin: 6px 0 12px 20px;
}
.ladder-tier h4 {
  margin-top: 4px;
  color: var(--soft-text);
  font-size: 0.95rem;
}

/* =========================
   Flow Steps
   ========================= */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}
@media (min-width: 680px) {
  .flow-steps {
    flex-direction: row;
    justify-content: space-between;
  }
}
.flow-step {
  flex: 1;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}
.flow-step span {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 6px;
  color: var(--main-butbg);
}

/* =========================
   Pricing Table
   ========================= */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.pricing-table th,
.pricing-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}
.pricing-table th {
  background: var(--soft);
  font-weight: 600;
}
.pricing-table tr:nth-child(even) {
  background: #fafafa;
}

/* =========================
   Footer (Charcoal variant)
   ========================= */
footer {
  background: #1e1e1e; /* Slightly darker than header for contrast */
  color: #ddd;
  text-align: center;
  font-size: 0.9rem;
  padding: 24px 0;
  border-top: 1px solid #111;
}

footer a {
  color: #2d79c7; /* PyTools blue accent */
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}

footer .footer-links a {
  color: #ddd;
  font-weight: 500;
}

footer .footer-links a:hover {
  color: #2d79c7;
}
