/* ============================================================
   Gratis Solutions — recreated styles
   ============================================================ */

:root {
  --navy: #2C4597;
  --navy-deep: #213471;
  --indigo: #2C4597;
  --indigo-dark: #223873;
  --ink: #14161c;
  --body: #3a3f4b;
  --muted: #6b7280;
  --line: #e6e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --green: #16a34a;
  --radius: 14px;
  --maxw: 1180px;
  --shadow: 0 18px 50px rgba(20, 27, 69, 0.10);
  --shadow-sm: 0 6px 20px rgba(20, 27, 69, 0.07);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.section-head p { margin-top: 14px; font-size: 18px; color: var(--muted); }
.section-head em { color: var(--body); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 10px 24px rgba(40,53,131,.32); }
.btn--primary:hover { background: var(--indigo-dark); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn--ghost:hover { background: var(--indigo); color: #fff; }
.btn--lg { padding: 16px 34px; font-size: 16px; }

/* ---------- Top Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}
.nav__logo img { height: 30px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav__links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--indigo); }
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__phone { font-weight: 700; color: var(--navy); font-size: 15px; white-space: nowrap; }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 120px 0 130px;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,30,34,.45), rgba(24,26,30,.66));
  z-index: -1;
}
.hero__kicker {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: .9;
  margin-bottom: 10px;
}
.hero__kicker em { font-style: italic; font-weight: 700; }
.hero h1 {
  color: #fff;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero p {
  max-width: 720px;
  margin: 22px auto 34px;
  font-size: 19px;
  color: rgba(255,255,255,.9);
}

/* ---------- Certification strip ---------- */
.cert {
  background: #fff;
  color: var(--ink);
  text-align: center;
  padding: 40px 0 8px;
}
.cert p { font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; margin: 0; letter-spacing: -0.01em; }

/* ---------- Ecosystem product cards ---------- */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.eco-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 34px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.eco-card--feature {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: var(--shadow);
}
.eco-card__logo { height: 64px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.eco-card__logo img { max-height: 58px; width: auto; }
.eco-card__tag { color: var(--muted); font-style: italic; font-size: 16px; margin-bottom: 18px; min-height: 48px; }
.eco-card h3 { font-size: 26px; font-weight: 800; margin-bottom: 26px; }
.eco-card--feature .eco-card__tag { color: rgba(255,255,255,.82); }
.eco-card--feature h3 { color: #fff; }

.checklist { list-style: none; text-align: left; display: inline-block; margin: 0 auto; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--body);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}
.eco-card--feature .checklist li { color: rgba(255,255,255,.92); }
.eco-card--feature .checklist li::before { color: #6ee7a8; }

/* ---------- Why grid ---------- */
.why-section { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); }
.why-section .section-head h2 { color: #fff; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 26px;
}
.why-card {
  padding: 14px 18px;
  text-align: center;
}
.why-card img { width: 72px; height: 72px; margin: 0 auto 20px; }
.why-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.why-card p { font-size: 15px; color: rgba(255,255,255,.82); line-height: 1.6; }

/* ---------- Integrations / logos ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  align-items: center;
}
.logo-grid .logo-cell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: box-shadow .18s ease;
}
.logo-grid .logo-cell:hover { box-shadow: var(--shadow-sm); }
.logo-grid img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: .8; transition: filter .2s ease, opacity .2s ease; }
.logo-grid .logo-cell:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Stats band ---------- */
.stats {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  text-align: center;
  padding: 78px 0;
}
.stats .eyebrow { color: rgba(255,255,255,.72); }
.stats h2 { color: #fff; font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; margin-bottom: 48px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}
.stat__num { font-size: clamp(42px, 6vw, 60px); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.stat__label { font-size: 16px; color: rgba(255,255,255,.82); margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item {
  border: 1px solid transparent;
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--bg-soft);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font);
}
.faq__q span.icon { color: var(--indigo); transition: transform .2s ease; font-size: 22px; flex-shrink: 0; }
.faq__item.open .faq__q span.icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 24px; }
.faq__item.open .faq__a { max-height: 300px; padding-bottom: 22px; }
.faq__a p { color: var(--muted); font-size: 16px; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(135deg, var(--indigo), var(--indigo-dark));
  color: #fff;
  text-align: center;
  padding: 84px 0;
}
.cta h2 { color: #fff; font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; }
.cta p { font-size: 18px; color: rgba(255,255,255,.92); margin: 16px auto 30px; max-width: 640px; }

/* ---------- Generic article / content pages ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  padding: 90px 0 80px;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.page-hero p { max-width: 720px; margin: 18px auto 0; font-size: 18px; color: rgba(255,255,255,.9); }

.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 30px; font-weight: 800; margin: 44px 0 16px; }
.prose h3 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.prose p { font-size: 17px; margin-bottom: 16px; }
.prose ul { margin: 0 0 18px 22px; }
.prose li { font-size: 17px; margin-bottom: 10px; }
.prose blockquote {
  border-left: 4px solid var(--indigo);
  background: var(--bg-soft);
  padding: 18px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--body);
  border-radius: 0 10px 10px 0;
}
.prose strong { color: var(--ink); }
.prose .center-img { margin: 36px auto; border-radius: var(--radius); box-shadow: var(--shadow); }

.support-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 34px;
  max-width: 560px;
  margin: 36px auto 0;
  text-align: center;
}
.support-card p { margin-bottom: 8px; font-size: 17px; }
.support-card a.email { color: var(--indigo); font-weight: 600; }

/* ---------- Blog grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-card__img { height: 190px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card__body h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; line-height: 1.25; }
.blog-card__body p { font-size: 15px; color: var(--muted); margin-bottom: 18px; flex: 1; }
.blog-card__body .blog-card__meta { font-size: 13px; color: var(--indigo); font-weight: 600; margin-bottom: 8px; flex: none; }
.blog-card__body .read { color: var(--indigo); font-weight: 700; font-size: 14px; }

/* Notion-generated post pages */
.post-cats { margin-bottom: 18px; }
.post-cat {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--indigo);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-right: 6px;
}

/* ---------- Demo / lead form ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 620px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field label .req { color: var(--indigo); }
.field input {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--indigo);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(44,69,151,.12);
}
.form-card .btn { width: 100%; margin-top: 6px; }
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 16px; }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: 10px; font-size: 15px; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #e9f7ef; color: #147a45; border: 1px solid #b6e4c9; }
.form-status.error { background: #fdecea; color: #b42318; border: 1px solid #f4c7c2; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 56px 0 30px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__logo img { height: 40px; margin-bottom: 14px; }
.footer__logo p { color: var(--muted); font-size: 14px; max-width: 280px; }
.footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); margin-bottom: 16px; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { color: var(--muted); font-size: 15px; transition: color .15s ease; }
.footer__col a:hover { color: var(--indigo); }
.footer__bottom {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
    gap: 16px;
  }
  .eco-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .stats__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .why-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; gap: 28px; }
  .form-card { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
