/* ===================================================================
   SMTP Hopper — product site stylesheet
   Brand: navy #17479E · blue #2B6CB8 · orange #F7941D
   =================================================================== */

:root {
  --navy: #17479e;
  --navy-dark: #0f2f6b;
  --blue: #2b6cb8;
  --blue-light: #e8f0fa;
  --orange: #f7941d;
  --orange-dark: #d97706;
  --ink: #1a2333;
  --slate: #4b5768;
  --line: #dde5ef;
  --bg-alt: #f5f8fc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(23, 71, 158, 0.08);
  --shadow-lg: 0 12px 32px rgba(23, 71, 158, 0.14);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 48px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--navy); text-decoration: none; }
.nav-links a.active { color: var(--navy); border-bottom-color: var(--orange); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }

.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-dark); color: #fff; }

.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-ghost { color: var(--navy); background: transparent; padding: 12px 14px; }
.btn-ghost:hover { color: var(--orange); }

.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, #f0f5fc 0%, #e2ecf9 55%, #f8fafd 100%);
  padding: 72px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.15;
  color: var(--navy-dark);
  margin-bottom: 20px;
}

.hero h1 .accent { color: var(--orange); }

.hero .lede {
  font-size: 1.15rem;
  color: var(--slate);
  margin-bottom: 30px;
  max-width: 34em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-note { font-size: 0.88rem; color: var(--slate); }

.hero-art {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}

/* ---------- Sections ---------- */

.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy-dark); color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy-dark);
  margin-bottom: 14px;
  line-height: 1.25;
}
.section-navy .section-head h2 { color: #fff; }
.section-head p { color: var(--slate); font-size: 1.05rem; }
.section-navy .section-head p { color: #c4d3ec; }

/* ---------- Cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card h3 { color: var(--navy-dark); font-size: 1.12rem; margin: 14px 0 10px; }
.card p { color: var(--slate); font-size: 0.94rem; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 28px; height: 28px; }

.card ul { margin: 10px 0 0 18px; color: var(--slate); font-size: 0.92rem; }
.card ul li { margin-bottom: 6px; }

/* ---------- Feature rows (alternating) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }

.feature-row h3 { font-size: 1.5rem; color: var(--navy-dark); margin-bottom: 14px; }
.feature-row p { color: var(--slate); margin-bottom: 12px; }
.feature-row ul { margin: 0 0 12px 20px; color: var(--slate); }
.feature-row ul li { margin-bottom: 8px; }

.feature-art {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.step h3 { color: var(--navy-dark); font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 0.93rem; }

/* ---------- Stats band ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 2.3rem; font-weight: 800; color: var(--orange); line-height: 1.1; }
.stat .label { color: #c4d3ec; font-size: 0.92rem; margin-top: 6px; }

/* ---------- Integration logos ---------- */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.provider-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 1rem;
}
.provider-badge .dot { width: 12px; height: 12px; border-radius: 50%; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.cta-band p { color: #c4d3ec; margin-bottom: 28px; max-width: 40em; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */

.form-shell {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--navy-dark); }
.field .hint { font-size: 0.8rem; color: var(--slate); font-weight: 400; }

.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 108, 184, 0.15);
}
.field textarea { resize: vertical; min-height: 130px; }

.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d64545; }
.field .error-msg { color: #d64545; font-size: 0.8rem; display: none; }
.field.invalid .error-msg { display: block; }

.form-success {
  display: none;
  background: #eaf7ee;
  border: 1px solid #b7e0c3;
  color: #1e6b34;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
  font-weight: 600;
}
.form-success.show { display: block; }

.form-error {
  display: none;
  background: #fdeeee;
  border: 1px solid #ecc4c4;
  color: #a33030;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
  font-weight: 600;
}
.form-error.show { display: block; }

.form-note { font-size: 0.83rem; color: var(--slate); margin-top: 14px; }

/* ---------- Login ---------- */

.auth-wrap {
  min-height: calc(100vh - 72px - 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  background: var(--bg-alt);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}
.auth-card .brand { justify-content: center; margin-bottom: 20px; }
.auth-card h1 { font-size: 1.4rem; color: var(--navy-dark); text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--slate); font-size: 0.92rem; margin-bottom: 26px; }

/* ---------- Portal ---------- */

.portal-banner {
  background: var(--navy-dark);
  color: #fff;
  padding: 34px 0;
}
.portal-banner h1 { font-size: 1.6rem; }
.portal-banner p { color: #c4d3ec; font-size: 0.95rem; }

.portal-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.portal-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  overflow-x: auto;
}
.portal-nav a {
  display: block;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.portal-nav a:hover { color: var(--navy); text-decoration: none; }
.portal-nav a.active { color: var(--navy); border-bottom-color: var(--orange); }

/* ---------- Docs ---------- */

.docs-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 48px;
  align-items: start;
}

.docs-sidenav {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.docs-sidenav h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin-bottom: 10px; }
.docs-sidenav ul { list-style: none; }
.docs-sidenav a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}
.docs-sidenav a:hover { background: var(--blue-light); text-decoration: none; }

.docs-body h2 {
  color: var(--navy-dark);
  font-size: 1.45rem;
  margin: 44px 0 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.docs-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.docs-body h3 { color: var(--navy); font-size: 1.1rem; margin: 24px 0 10px; }
.docs-body p { color: var(--slate); margin-bottom: 12px; }
.docs-body ul, .docs-body ol { margin: 0 0 14px 22px; color: var(--slate); }
.docs-body li { margin-bottom: 6px; }

.docs-body code, .inline-code {
  background: #eef2f8;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86em;
  color: var(--navy-dark);
}

.docs-body pre {
  background: #0f2440;
  color: #d5e3f7;
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  margin-bottom: 16px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
  line-height: 1.5;
}
.docs-body pre code { background: none; border: none; color: inherit; padding: 0; }

.docs-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 0.9rem;
}
.docs-body th, .docs-body td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--slate);
}
.docs-body th { background: var(--bg-alt); color: var(--navy-dark); }

.callout {
  border-left: 4px solid var(--orange);
  background: #fff7ec;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-bottom: 16px;
  color: #6b4b12;
  font-size: 0.92rem;
}
.callout.info { border-left-color: var(--blue); background: var(--blue-light); color: var(--navy-dark); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: #c4d3ec;
  padding: 56px 0 28px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h3 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #c4d3ec; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--orange); text-decoration: none; }

.footer-brand img { height: 44px; background: #fff; border-radius: 8px; padding: 5px 10px; }
.footer-brand p { font-size: 0.9rem; margin-top: 14px; max-width: 28em; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: #8fa5c9;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: linear-gradient(160deg, #f0f5fc 0%, #e2ecf9 100%);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--navy-dark); margin-bottom: 12px; }
.page-hero p { color: var(--slate); font-size: 1.08rem; max-width: 42em; margin: 0 auto; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid, .feature-row, .docs-layout { grid-template-columns: 1fr; }
  .card-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-sidenav { position: static; }
  .feature-row .feature-art { order: -1; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .card-grid, .card-grid-2, .card-grid-4, .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 56px 0; }
  .form-shell { padding: 28px 22px; }
  .cta-band { padding: 40px 24px; }
}
