/* The classic 4-Sure site (www.4-sure.net), rebuilt in our own code — 29 Sep 2026.
   Hand-written to the measurements in docs/website-legacy/captures/shell.json;
   no Divi code. Components here, page-only rules in each page's <style>. */
:root {
  --g: #2ecc71;            /* 4-Sure green — buttons, active menu */
  --g1: #38ef7d;           /* gradient start (the illustrations' own) */
  --g2: #11998e;           /* gradient end */
  --ink: #000;
  --grey-50: #f8f8f8; --grey-100: #f5f5f5; --grey-200: #e0e0e0; --grey-400: #9e9e9e; --grey-600: #666;
  --row: 1080px;           /* Divi's content row at 1440 */
  --shadow: 0 1px 12px rgba(0, 0, 0, .1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: Roboto, Helvetica, Arial, Lucida, sans-serif; font-size: 16px; font-weight: 500;
       line-height: 1.7; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; padding-bottom: 10px; line-height: 1; }
p { margin: 0; }
p + p { margin-top: 1em; }

/* ── Rows and sections ─────────────────────────────────────────────── */
.row { width: 80%; max-width: var(--row); margin: 0 auto; }
.row-wide { width: 85%; max-width: 1224px; margin: 0 auto; }
.section { padding: 54px 0; position: relative; }
.section-lg { padding: 100px 0; }
.bg-grey { background: var(--grey-100); }
.bg-grey-50 { background: var(--grey-50); }
.center { text-align: center; }
.cols { display: grid; gap: 5.5%; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 3%; }
.stack > * + * { margin-top: 18px; }

/* ── Type (measured) ───────────────────────────────────────────────── */
.h-hero { font-size: 74.4px; font-weight: 600; letter-spacing: -1px; line-height: 1; }
.h-lead { font-size: 39.2px; font-weight: 500; letter-spacing: -1px; line-height: 1.2; }
.h-section { font-size: 60px; font-weight: 600; letter-spacing: -1px; line-height: 1.05; }
.h-card { font-size: 21.6px; font-weight: 800; line-height: 1; }
.h-feature { font-size: 30px; font-weight: 500; line-height: 1.05; }
.body-light { font-weight: 300; }
.body-sm { font-size: 14px; line-height: 1.6; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 100px; font-size: 14px; font-weight: 500;
        line-height: 23.8px; padding: 3px 15px; white-space: nowrap; transition: background .2s, color .2s; }
.pill-g { background: var(--g); color: #fff; }
.pill-g:hover { background: #27b863; }
.pill-line { border: 1px solid #000; color: #000; background: transparent; }
.pill-line:hover { background: #000; color: #fff; }
.pill-lg { font-size: 20px; padding: 6px 20px; line-height: 1.7; }
.pill .ico { width: 14px; height: 14px; flex: none; }
.pill-lg .ico { width: 18px; height: 18px; }

/* ── Top bar ───────────────────────────────────────────────────────── */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.topbar-main { height: 53px; background: rgba(255, 255, 255, .85); box-shadow: var(--shadow); backdrop-filter: blur(6px);
               -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; padding: 0 10%; position: relative; z-index: 2; }
.topbar-logo img { width: 53px; height: 22px; }
.topbar-nav { display: flex; align-items: center; gap: 22px; margin-left: 30px; height: 100%; }
.topbar-nav > .item { height: 100%; display: flex; align-items: center; }
.topbar-nav > .item > a { font-size: 14px; font-weight: 300; line-height: 14px; color: #000; transition: color .2s; }
.topbar-nav > .item:hover > a, .topbar-nav > .item.is-active > a { color: var(--g); }
.subbar { position: absolute; left: 0; right: 0; top: 53px; height: 43px; background: #f5f5f5; box-shadow: var(--shadow);
          display: flex; align-items: center; padding: 0 10% 0 calc(10% + 83px); gap: 22px; opacity: 0; visibility: hidden;
          transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 1; }
.subbar a.sub { font-size: 14px; font-weight: 300; color: #000; }
.subbar a.sub:hover { color: var(--g); }
.subbar .pill { margin-left: auto; }
.topbar-nav > .item:hover .subbar, .topbar-nav > .item:focus-within .subbar { opacity: 1; visibility: visible; transform: none; }
/* Section pages: the sub-bar stays open under a 56px top bar, with the
   section's Support pill on the right (measured off the old captures). */
.topbar.has-section .topbar-main { height: 56px; }
.topbar.has-section .subbar { top: 56px; height: 50px; z-index: 3; }
.subbar-open { height: 50px; background: #f4f4f4; box-shadow: 0 6px 10px rgba(0, 0, 0, .06); display: flex; align-items: center;
               gap: 22px; padding: 0 10% 0 calc(10% + 83px); position: relative; z-index: 1; }
.subbar-open a.sub { font-size: 14px; font-weight: 300; color: #000; }
.subbar-open a.sub:hover { color: var(--g); }
.topbar-support { margin-left: auto; border: 1px solid #c6c6c6; color: #a3a3a3; border-radius: 100px; font-size: 14px; font-weight: 500;
                  line-height: 23px; padding: 0 16px; }
.topbar-support:hover { border-color: var(--g); color: var(--g); }
main.has-section { padding-top: 106px; }
.topbar-burger { display: none; margin-left: auto; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--g); }
.mobile-menu { display: none; }
main { padding-top: 53px; }

/* ── Footer ────────────────────────────────────────────────────────── */
.footer { background: var(--grey-200); padding: 60px 0 32px; }
.footer-logo { width: 60px; margin-bottom: 52px; }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 2.2%; padding-bottom: 26px;
               border-bottom: 1px solid #cfcfcf; }
.footer-head { font-size: 16px; font-weight: 500; padding-bottom: 14px; border-bottom: 1px solid var(--grey-400);
               width: 74%; margin-bottom: 16px; }
.footer-links { padding-left: 10px; margin-top: 18px; font-weight: 300; font-size: 16px; line-height: 32px; }
.footer-links a:hover { color: var(--g); }
.footer-contact { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 2.2%; padding: 30px 0 36px;
                  border-bottom: 1px solid #cfcfcf; font-weight: 500; }
.footer-contact .c { display: flex; gap: 28px; align-items: flex-start; line-height: 27px; }
.footer-contact .c svg { width: 18px; height: 18px; flex: none; margin-top: 4px; }
.footer-contact .li { width: 32px; height: 32px; border-radius: 50%; background: #0077b5; display: inline-flex;
                      align-items: center; justify-content: center; }
.footer-legal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 2.2%; padding-top: 26px; font-size: 12px;
                font-weight: 300; line-height: 15.6px; color: #666; }
.footer-legal > * { padding-left: 10px; }

/* ── Animations (motion.js) — the old site's Divi entrance effects ──── */
.in-wait { opacity: 0; }
.in-go { animation-duration: var(--in-dur, 1000ms); animation-delay: var(--in-delay, 0ms);
         animation-timing-function: ease-in-out; animation-fill-mode: both; }
.in-fade { animation-name: in-fade; }
.in-zoom { animation-name: in-zoom; }
.in-bounce { animation-name: in-bounce; animation-timing-function: cubic-bezier(.215, .61, .355, 1); }
.in-slideBottom { animation-name: in-slide-bottom; }
.in-slideTop { animation-name: in-slide-top; }
.in-slideLeft { animation-name: in-slide-left; }
.in-slideRight { animation-name: in-slide-right; }
@keyframes in-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes in-zoom { from { opacity: 0; transform: scale(calc(1 - var(--in-int, .5))); } to { opacity: 1; transform: none; } }
@keyframes in-slide-bottom { from { opacity: 0; transform: translateY(calc(var(--in-int, .5) * 100%)); } to { opacity: 1; transform: none; } }
@keyframes in-slide-top { from { opacity: 0; transform: translateY(calc(var(--in-int, .5) * -100%)); } to { opacity: 1; transform: none; } }
@keyframes in-slide-left { from { opacity: 0; transform: translateX(calc(var(--in-int, .5) * -100%)); } to { opacity: 1; transform: none; } }
@keyframes in-slide-right { from { opacity: 0; transform: translateX(calc(var(--in-int, .5) * 100%)); } to { opacity: 1; transform: none; } }
@keyframes in-bounce {
  0% { opacity: 0; transform: scale3d(.3, .3, .3); } 20% { transform: scale3d(1.1, 1.1, 1.1); }
  40% { transform: scale3d(.9, .9, .9); } 60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
  80% { transform: scale3d(.97, .97, .97); } 100% { opacity: 1; transform: none; } }
.float-4s, .float-5s { animation: float 5s ease-in-out infinite; }
.float-4s { animation-duration: 4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(15px); } }
.no-motion .float-4s, .no-motion .float-5s { animation: none; }
/* Buttons, as the old site's: black on hover, letters spread, the arrow turns green. */
.pill { transition: background .3s, color .3s, letter-spacing .3s, border-color .3s; }
.pill-line:hover, .pill-g:hover { letter-spacing: 1px; }
.pill-g:hover { background: #000; color: #fff; }
.pill-line:hover .ico path, .pill-g:hover .ico path { stroke: #2ecc71; }
.pill-line:hover .ico circle { fill: #fff; }

/* ── Phones ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .row, .row-wide { width: 90%; }
  .h-hero { font-size: 56px; }
  .h-lead { font-size: 26px; letter-spacing: -.5px; }
  .h-section { font-size: 42px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; gap: 30px; }
  .topbar-main { padding: 0 7.5%; height: 60px; }
  .topbar-logo img { width: 53px; height: 22px; }
  .topbar-nav { display: none; }
  .topbar-burger { display: block; }
  .subbar-open, .topbar-support { display: none; }
  main.has-section { padding-top: 60px; }
  .topbar.has-section .topbar-main { height: 60px; }
  main { padding-top: 60px; }
  .mobile-menu { position: fixed; top: 60px; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); z-index: 49;
                 padding: 8px 7.5% 20px; border-top: 3px solid var(--g); }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; padding: 10px 5%; font-size: 14px; font-weight: 300; border-bottom: 1px solid rgba(0, 0, 0, .03); }
  .mobile-menu a.sub { padding-left: 10%; }
  /* Phone footer — gaps measured off the old site's 390px capture. */
  .footer { padding: 54px 0 20px; }
  .footer .row-wide { width: 85%; }
  .footer-logo { margin-bottom: 64px; }
  .footer-cols, .footer-contact, .footer-legal { grid-template-columns: 1fr; }
  .footer-cols { padding-bottom: 8px; }
  .footer-cols > div { margin-bottom: 22px; }
  .footer-head { width: 100%; }
  .footer-links { margin-top: 12px; }
  .footer-contact { padding: 22px 0 30px; }
  .footer-contact .c { margin-bottom: 26px; }
  .footer-legal > * { margin-bottom: 22px; }
}
