/* RotaMG shared styles */
:root {
  --navy: #131c28;
  --steel: #3f75a2;
  --steel-dark: #2f5c82;
  --steel-light: #e8eff5;
  --accent: #c8553d;
  --grey: #eeeeee;
  --light: #f8f8f8;
  --text: #131c28;
  --muted: #5b6a79;
  --line: #cfd6dd;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(900px, 100% - 40px); margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--steel);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  padding: 13px 44px;
  border-radius: 999px;
  transition: background .2s;
}
.btn:hover { background: var(--steel-dark); }
.btn-small { font-size: 13px; padding: 9px 22px; text-transform: none; }

.badge {
  position: absolute;
  top: -10px;
  right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

/* Header */
.site-header { background: var(--navy); color: #fff; margin-top: 38px; position: relative; z-index: 10; }
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; letter-spacing: .5px; margin-right: 96px; }
.logo b { font-weight: 800; color: #8fb8d9; }
.logo-mark { width: 26px; height: 26px; }
.main-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; }
.main-nav a:not(.btn):hover { color: #8fb8d9; }
.has-caret::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.main-nav .btn { color: #fff; margin-left: 96px; }
.nav-toggle, .nav-burger { display: none; }

/* Hero */
.hero {
  background: var(--grey);
  min-height: 446px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg svg { width: 100%; height: 100%; display: block; }
.hero-copy { position: relative; z-index: 1; text-align: center; max-width: 780px; padding: 40px 20px; }
.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero p { font-size: 20px; line-height: 1.4; margin: 0 auto 28px; max-width: 520px; }

/* Promo */
.promo { background: var(--light); padding: 44px 20px; }
.promo-card {
  position: relative;
  max-width: 790px;
  margin: 0 auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 14px rgba(19, 28, 40, .08);
  padding: 33px 33px;
  display: flex;
  align-items: center;
  gap: 33px;
}
.promo-card .badge { top: 8px; right: 0; border-radius: 3px 0 0 3px; }
.promo-art { width: 350px; flex: none; }
.promo-text { text-align: center; flex: 1; }
.promo-text h2 { font-size: 16.5px; font-weight: 800; text-transform: uppercase; margin-bottom: 15px; }
.promo-text .btn { padding: 13px 22px; font-size: 12px; font-weight: 700; text-transform: uppercase; }

/* Section titles */
.section-title { font-size: 29px; font-weight: 800; text-transform: uppercase; text-align: center; }
.section-title.small { font-size: 20px; }
.section-title .accent { color: var(--steel); }
.section-sub { text-align: center; font-size: 14px; color: var(--muted); max-width: 330px; margin: 7px auto 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 33px auto 40px; width: 80%; }

/* Services */
.services { padding: 44px 0 66px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 31px; }
.card { position: relative; text-align: center; padding: 13px 11px 0; }
.card-icon { width: 48px; height: 48px; margin: 7px auto 13px; color: var(--steel); }
.card h3 { font-size: 14px; font-weight: 800; text-transform: uppercase; line-height: 1.3; margin-bottom: 9px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.services-more { text-align: center; font-size: 16px; font-weight: 600; margin-top: 44px; }
.services-cta { text-align: center; margin-top: 18px; }

/* Banner */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  flex-wrap: wrap;
  background: var(--steel);
  color: #fff;
  padding: 18px 20px;
  font-size: 14px;
  text-align: center;
  transition: background .2s;
}
.banner:hover { background: var(--steel-dark); }
.banner strong { font-weight: 700; }
.pill { background: #fff; color: var(--navy); font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; }

/* FAQ */
.faq { background: var(--light); padding: 55px 0 44px; }
.faq .section-title { margin-bottom: 15px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 700;
  padding: 13px 33px 13px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 6px; height: 6px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { font-size: 15.5px; color: var(--muted); padding: 0 33px 18px 0; }

/* Founder */
.founder { background: var(--light); padding: 44px 0 88px; }
.founder .section-title { margin-bottom: 40px; }
.founder-grid { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; padding: 0 33px; }
.founder-photo { width: 100%; margin-top: -40px; border: 4px solid var(--navy); }
.founder-text p { font-size: 14px; line-height: 1.6; margin-bottom: 18px; }

/* Footer */
.site-footer { background: var(--steel); color: #fff; padding: 33px 20px 29px; }
.footer-inner { max-width: 990px; margin: 0 auto; }
.footer-logo { margin-bottom: 29px; }
.footer-logo b { color: #d6e6f3; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-bottom: 33px; }
.footer-cols h4 { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 13px; }
.footer-cols a { display: block; font-size: 11px; margin-bottom: 9px; opacity: .9; }
.footer-cols a:hover { opacity: 1; text-decoration: underline; }
.legal-links { display: flex; justify-content: center; gap: 20px; font-size: 11px; font-weight: 600; margin-bottom: 9px; flex-wrap: wrap; }
.disclaimer { font-size: 10.5px; line-height: 1.35; opacity: .9; }

/* Case studies */
.cs-intro { background: var(--grey); padding: 66px 0 56px; text-align: center; position: relative; overflow: hidden; }
.cs-intro .container { position: relative; z-index: 1; }
.cs-intro .section-title { font-size: clamp(28px, 3.6vw, 40px); }
.cs-lead { font-size: 18px; max-width: 560px; margin: 14px auto 0; }
.cs-lead, .cs-head p, .cs-cta p, .cs-cta .section-title, .services-more { text-wrap: balance; }
/* Dark band with a dot grid, like the n8n canvas, plus soft blue glows */
.cs-showcase {
  padding: 60px 0 56px;
  background:
    radial-gradient(circle at 10% 15%, rgba(63, 117, 162, .45), transparent 38%),
    radial-gradient(circle at 90% 85%, rgba(63, 117, 162, .4), transparent 42%),
    radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--navy);
}
.cs-wrap { width: min(1100px, 100% - 40px); margin: 0 auto; }
.cs-carousel { position: relative; }
.cs-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overflow-y: hidden;
  align-items: flex-start;
  scrollbar-width: none;
  border-radius: 8px;
  transition: height .3s;
}
.cs-track::-webkit-scrollbar { display: none; }
.cs-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e3e8ed;
  border-radius: 8px;
  padding: 36px 40px 40px;
}
.cs-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.cs-head h2 { font-size: 24px; font-weight: 800; text-transform: uppercase; margin: 0 0 8px; }
.cs-head p { font-size: 16px; color: var(--muted); }

.cs-slide figure { margin: 0; }
.cs-slide figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.cs-main img { width: 100%; border-radius: 6px; background: #1b1b1b; }
.cs-main a { display: block; transition: opacity .2s; }
.cs-main a:hover { opacity: .9; }

.cs-extras { display: flex; justify-content: center; align-items: flex-start; gap: 24px; margin-top: 30px; flex-wrap: wrap; }
.cs-extra img { border-radius: 6px; border: 1px solid #e3e8ed; background: #f1f3f6; }
.cs-tall img { width: 460px; height: 380px; object-fit: cover; object-position: top; }
.cs-wide img { width: 720px; }
.cs-phone { width: 220px; }
.cs-phone img { width: 100%; height: 330px; object-fit: cover; object-position: top; }

.cs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--steel);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(19, 28, 40, .2);
  transition: background .2s;
}
.cs-arrow:hover { background: var(--steel-dark); }
.cs-note { font-size: 12px; font-style: italic; color: var(--muted); text-align: center; margin-top: 28px; padding-top: 16px; border-top: 1px solid #e3e8ed; }
.cs-prev { left: -22px; }
.cs-next { right: -22px; }

.cs-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.cs-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: background .2s, width .2s; }
.cs-dots span.is-active { background: #8fb8d9; width: 24px; border-radius: 999px; }

.cs-cta { padding: 80px 0 90px; text-align: center; }
.cs-cta .section-title { font-size: clamp(26px, 3.2vw, 36px); }
.cs-cta p { font-size: 19px; color: var(--muted); max-width: 560px; margin: 14px auto 30px; }
.cs-cta .btn { font-size: 17px; padding: 17px 56px; }

/* Learn more */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bk-page { background: var(--grey); padding: 56px 0 80px; }
.bk-wrap { width: min(620px, 100% - 32px); margin: 0 auto; }
.bk-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 36px 40px 44px; }
.bk-intro h1 { font-size: 30px; font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.bk-intro p { font-size: 17px; color: var(--muted); margin-bottom: 10px; }
.bk-form { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.bk-form input, .bk-form select, .bk-form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--light);
  border: 1.5px solid #dde2e7;
  border-radius: 10px;
  padding: 15px 18px;
  outline: none;
  transition: border-color .2s;
}
.bk-form select { appearance: none; cursor: pointer; padding-right: 44px; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235b6a79' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.bk-form select:invalid { color: #7c8894; }
.bk-form textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.bk-form input::placeholder, .bk-form textarea::placeholder { color: #7c8894; }
.bk-form input:focus, .bk-form select:focus, .bk-form textarea:focus, .bk-phone:focus-within { border-color: var(--navy); }
.bk-form .is-bad { border-color: var(--accent); }
.bk-phone { display: flex; align-items: stretch; background: var(--light); border: 1.5px solid #dde2e7; border-radius: 10px; overflow: hidden; transition: border-color .2s; }
.bk-phone.is-bad { border-color: var(--accent); }
.bk-phone input { border: 0; border-radius: 0; background: transparent; }
.bk-cc { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-right: 1.5px solid #dde2e7; font-size: 16px; color: var(--text); }
.bk-flag { width: 24px; height: 16px; border-radius: 2px; background:
  linear-gradient(#3c3b6e, #3c3b6e) 0 0 / 45% 54% no-repeat,
  repeating-linear-gradient(#b22234 0 1.23px, #fff 1.23px 2.46px); }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk-hp { position: absolute; left: -9999px; }
.bk-consent { font-size: 14px; line-height: 1.6; margin-top: 4px; }
.bk-consent a { font-weight: 600; text-decoration: underline; }
.bk-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  font: inherit; font-size: 17px; font-weight: 600;
  color: #fff; background: var(--steel);
  border: 0; border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: background .2s;
}
.bk-btn:hover { background: var(--steel-dark); }
.bk-btn:disabled { opacity: .6; cursor: wait; }

.bk-error { color: var(--accent); font-size: 14px; text-align: center; margin-top: 10px; }
.bk-error:empty { display: none; }

.bk-done { text-align: center; padding: 30px 0 10px; }
.bk-check { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--steel); }
.bk-done h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.bk-done p { font-size: 17px; color: var(--muted); margin-bottom: 8px; }
.bk-done .btn { margin-top: 18px; }
[hidden] { display: none !important; }

@media (max-width: 600px) {
  .bk-page { padding: 24px 0 48px; }
  .bk-card { padding: 26px 18px 32px; }
  .bk-intro h1 { font-size: 25px; }
  .bk-intro p { font-size: 16px; }
  .bk-row { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 900px) {
  .site-header { margin-top: 0; }
  .nav-inner { justify-content: space-between; }
  .logo { margin-right: 0; }
  .nav-burger { display: flex; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; }
  .nav-burger span { width: 22px; height: 2px; background: #fff; display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy);
    padding: 8px 20px 20px;
    font-size: 15px;
  }
  .main-nav a:not(.btn) { padding: 10px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav .btn { margin-top: 14px; margin-left: 0; font-size: 14px; padding: 10px 24px; }
  .nav-toggle:checked ~ .main-nav { display: flex; }

  .hero { min-height: 0; }
  .hero-copy { padding: 48px 20px; }
  .hero p { font-size: 17px; }

  .promo-card { flex-direction: column; padding: 34px 20px 24px; gap: 18px; }
  .promo-art { width: 100%; max-width: 260px; }
  .card-grid { grid-template-columns: 1fr; row-gap: 34px; }
  .founder-grid { grid-template-columns: 1fr; padding: 0; }
  .founder-photo { max-width: 240px; margin: 0 auto; }
  .founder-text p { font-size: 14px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-cols a, .legal-links { font-size: 12px; }
  .footer-cols h4 { font-size: 11px; }
  .disclaimer { font-size: 11px; }

  .cs-intro { padding: 44px 0 36px; }
  .cs-lead { font-size: 16px; }
  .cs-slide { padding: 26px 16px 28px; }
  .cs-head h2 { font-size: 20px; }
  .cs-head p { font-size: 15px; }
  .cs-arrow { top: 30px; transform: none; width: 36px; height: 36px; }
  .cs-prev { left: 8px; }
  .cs-next { right: 8px; }
  .cs-extras { gap: 16px; }
  .cs-tall, .cs-wide { width: 100%; }
  .cs-tall img, .cs-wide img { width: 100%; }
  .cs-tall img { height: 340px; }
  .cs-phone { width: calc(50% - 8px); }
  .cs-phone img { height: 260px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 22px; }
}
