/* ================================================
   AutomateMyPlace.com — Site Stylesheet
   Design: Clean technical confidence. Electric blue
   accent on near-white. Mono-flavored headings.
   ================================================ */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: #1a1f2e;
  background: #f8f9fc;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* TOKENS */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --green: #16a34a;
  --red: #dc2626;
  --dark: #1a1f2e;
  --mid: #475569;
  --light: #94a3b8;
  --bg: #f8f9fc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-hover: 0 4px 16px rgba(37,99,235,0.14);
  --max-w: 1100px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { color: var(--mid); margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
em { font-style: normal; color: var(--blue); }

/* LAYOUT */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--white); }

/* NAVIGATION */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,249,252,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.logo-dot { color: var(--blue); }
.main-nav { display: flex; gap: 1.5rem; align-items: center; }
.main-nav a {
  color: var(--mid);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem !important;
}
.nav-cta:hover { background: var(--blue-dark); }

/* HERO */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #f8f9fc 60%, #eff6ff 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 1rem;
}
.hero-text h1 { margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* STAT BLOCK */
.hero-stat-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -1px;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--light);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* TRUST BAR */
.trust-bar {
  background: var(--dark);
  padding: 0.75rem 0;
}
.trust-inner {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.trust-inner span { color: #94a3b8; }
.trust-item { color: #e2e8f0 !important; font-weight: 500; }
.sep { color: #334155 !important; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-ghost:hover { background: var(--blue-light); text-decoration: none; }

/* SECTION HEADINGS */
.section-title { margin-bottom: 0.5rem; }
.section-sub { color: var(--mid); margin-bottom: 2.5rem; }

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  color: inherit;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
.card-icon { font-size: 1.75rem; }
.card h3 { font-size: 1rem; line-height: 1.3; }
.card p { font-size: 0.9rem; flex: 1; }
.card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: auto;
}

/* WHY SECTION */
.why-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}
.why-text h2 { margin-bottom: 1.25rem; }
.why-text p { font-size: 1rem; }
.why-text .btn { margin-top: 1.5rem; }

/* MATH BLOCK */
.why-math {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.math-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--light);
  margin-bottom: 1.25rem;
}
.math-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.math-row-total { border-bottom: none; padding-top: 1rem; }
.math-label { font-size: 0.9rem; color: var(--mid); }
.math-cost {
  font-weight: 700;
  font-size: 0.95rem;
}
.math-cost.bad { color: var(--red); }
.math-cost.good { color: var(--green); }

/* EMAIL SECTION */
.email-section { background: var(--dark); }
.email-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}
.email-copy h2 { color: var(--white); margin-bottom: 1rem; }
.email-copy p { color: #94a3b8; }
.email-bullets {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.email-bullets li {
  color: #cbd5e1;
  font-size: 0.9rem;
}
.email-form {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius);
  padding: 2rem;
}
.email-form input[type="email"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #475569;
  border-radius: 8px;
  background: #0f172a;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.email-form input::placeholder { color: #64748b; }
.email-form .btn-primary { width: 100%; justify-content: center; }
.form-fine { text-align: center; font-size: 0.78rem; color: #64748b; margin-top: 0.75rem; }

/* FOOTER */
.site-footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 3rem 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1e293b;
}
.footer-left .logo { color: var(--white); font-size: 1rem; }
.footer-left p { color: #64748b; font-size: 0.85rem; margin-top: 0.5rem; }
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav a { color: #94a3b8; font-size: 0.85rem; }
.footer-nav a:hover { color: var(--white); }
.footer-legal {
  padding: 1.25rem 0;
}
.footer-legal p { font-size: 0.78rem; color: #475569; }
.footer-legal a { color: #64748b; }

/* COMPARISON TABLE (used on affiliate pages) */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 2rem 0;
}
.comparison-table th {
  background: var(--dark);
  color: var(--white);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--mid);
  vertical-align: top;
}
.comparison-table tr:hover td { background: var(--blue-light); }
.comparison-table .winner { font-weight: 700; color: var(--dark); }
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-best { background: #dcfce7; color: #15803d; }
.badge-value { background: #fef9c3; color: #854d0e; }
.badge-advanced { background: #eff6ff; color: #1d4ed8; }

/* AFFILIATE CTA BOX */
.affiliate-box {
  background: var(--blue-light);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.affiliate-box-text { font-size: 0.95rem; color: var(--dark); font-weight: 500; }
.affiliate-box .btn { white-space: nowrap; flex-shrink: 0; }

/* BREADCRUMB */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--light);
  padding: 1rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb a { color: var(--light); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--border); }

/* PAGE HERO (inner pages) */
.page-hero {
  background: var(--dark);
  padding: 3.5rem 0;
}
.page-hero .eyebrow { color: #60a5fa; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero .hero-sub { color: #94a3b8; max-width: 640px; }

/* PRODUCT CARD */
.product-cards { display: flex; flex-direction: column; gap: 1.75rem; margin: 2.5rem 0; }
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.product-card-title { font-size: 1.1rem; font-weight: 700; }
.product-card-price { font-size: 1.1rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.product-card-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.88rem;
}
.pros h4 { color: var(--green); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.cons h4 { color: var(--red); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.pros ul, .cons ul { list-style: none; }
.pros li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.cons li::before { content: "✗ "; color: var(--red); }
.pros li, .cons li { padding: 0.2rem 0; color: var(--mid); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner,
  .why-inner,
  .email-inner { grid-template-columns: 1fr; }
  .hero-stat-block { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .main-nav { gap: 0.75rem; }
  .main-nav a { font-size: 0.8rem; }
  .card-grid { grid-template-columns: 1fr; }
  .product-card-pros-cons { grid-template-columns: 1fr; }
  .affiliate-box { flex-direction: column; }
  .footer-inner { flex-direction: column; }
  .footer-nav { flex-direction: column; gap: 0.75rem; }
}
