/* =========================
   DESIGN TOKENS
========================= */

:root {

  --s2m-primary: #2563eb;
  --s2m-primary-dark: #1e3a8a;
  --s2m-success: #16a34a;

  --s2m-bg: #f8fafc;
  --s2m-surface: #ffffff;
  --s2m-border: #e2e8f0;

  --s2m-text: #0f172a;
  --s2m-muted: #44345b;

  --s2m-radius: 8px;

  --s2m-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --s2m-shadow-hover: 0 14px 40px rgba(2, 6, 23, 0.12);

  --s2m-title-bar: #19263d;
}


/* =========================
   BASE STYLES
========================= */

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--s2m-text);
  background: var(--s2m-bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
}

.display-5 {
  letter-spacing: -0.03em;
}

.text-muted { color:var(--s2m-muted) !important; }

.recobox {
    background: var(--s2m-title-bar);
    color: #fff;
    padding: 5px 10px;
    text-align: center;
    border:1px solid #444;
    border-radius:8px;
    display:inline-block;
    font-weight:600;
  }

/* =========================
   HERO
========================= */

.hero {
  background: linear-gradient(
    135deg,
    var(--s2m-primary),
    #19263d
    /*var(--s2m-primary-dark)*/
  );
  color: white;
  padding: 100px 0;
}

.hero p {
  color: rgba(255,255,255,0.85);
}


/* =========================
   BUTTONS
========================= */

.btn-primary {
  background: var(--s2m-primary);
  border-color: var(--s2m-primary);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--s2m-primary-dark);
  border-color: var(--s2m-primary-dark);
}

.btn-outline-light {
  border-radius: 8px;
  font-weight: 600;
}


/* =========================
   CARDS
========================= */

.card {
  border: 1px solid var(--s2m-border);
  border-radius: var(--s2m-radius);
  box-shadow: var(--s2m-shadow);
  transition: all 0.2s ease;
}

.card:hover {
  xtransform: translateY(-4px);
      transform: scale(1.05);

  box-shadow: var(--s2m-shadow-hover);
}

.card-body {
  padding: 24px;
}


/* =========================
   SECTION SYSTEM
========================= */

section {
  padding: 80px 0;
}

.section-alt {
  background: var(--s2m-surface);
}


/* =========================
   BENEFITS BAR
========================= */

.benefit-bar {
  xbackground: white;
  xborder-top: 1px solid var(--s2m-border);
  xborder-bottom: 1px solid var(--s2m-border);
  padding: 16px 0 0 0;
  font-weight: 500;
}

.benefit-bar h1 { font-size: 1.5rem; }

.benefit-bar span {
  margin: 0 18px;
  color: var(--s2m-text);
}


/* =========================
   FLOW COMPONENT
========================= */

.flow-box {
  background: white;
  border-radius: var(--s2m-radius);
  padding: 18px;
  text-align: center;
  border: 1px solid var(--s2m-border);
  box-shadow: var(--s2m-shadow);
}

.flow-arrow {
  font-size: 24px;
  color: var(--s2m-primary);
}


/* =========================
   FORMS / ACCORDION
========================= */

input, select, textarea {
  border-radius: 8px !important;
  border: 1px solid var(--s2m-border) !important;
  padding: 10px 12px !important;
}

.accordion-button {
  border-radius: 8px;
}


/* =========================
   BACKGROUND DETAIL
========================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(37,99,235,0.05), transparent 40%),
    radial-gradient(circle at 80% 40%, rgba(22,163,74,0.04), transparent 35%);
  pointer-events: none;
  z-index: -1;
}

.container.homepage .container { min-height:auto; width:auto; max-width:96%; }
footer.bg-light { background:#19263d !important; border-radius:0;}
.card .fs-1 { font-size:20px; }


/* ==================================
   HERO FLOW ANIMATION
================================== */

.hero-flow {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    flex-wrap: nowrap;

}

.flow-card {

    width: 180px;
    min-height: 180px;

    background: rgba(255,255,255,0.95);

    border-radius: 20px;

    padding: 6px;

    text-align: center;

    box-shadow: 0 15px 40px rgba(0,0,0,.12);

    transition: transform .3s ease;
}

.flow-card:hover {
    transform: scale(1.05);
    xtransform: translateY(-5px);
}

.flow-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    color:lime;
}

.flow-title {

    font-weight: 700;
    font-size: 1.1rem;

    color: #0f172a;
}

.flow-subtitle {

    color: #64748b;
    font-size: .9rem;
}

.flow-connector {

    position: relative;
    width: 70px;
    height: 4px;
}

.flow-connector2 {

    position: absolute;
    width: 100%;
    height: 4px;
}
.flow-line2 {

    position: absolute;
    top: 0;
    left: 0;
    right:0;

    height: 4px;

    background: rgba(255,255,255,.5);

    border-radius: 20px;
}

.flow-dot2 {

    position: absolute;
    top: -6px;

    width: 16px;
    height: 16px;

    border-radius: 50%;

    background: white;

    box-shadow: 0 0 15px rgba(255,255,255,.9);
}

.flow-line {

    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background: rgba(255,255,255,.5);

    border-radius: 20px;
}


.flow-dot {

    position: absolute;

    top: -6px;

    width: 16px;
    height: 16px;

    border-radius: 50%;

    background: white;

    box-shadow: 0 0 15px rgba(255,255,255,.9);
}

.dot-1 {
    animation: moveDot 3s infinite linear;
}

.dot-2 {
    animation: moveDot 3s infinite linear;
    xanimation-delay: 1.5s;
}

@keyframes moveDot {

    from {
        left: 0;
    }

    to {
        left: calc(100% - 16px);
    }
}

.bridge-card {

    xtransform: scale(1.05);

    border: 3px solid rgba(255,255,255,.35);
}

.hmrc-card {

    border-left: 5px solid #22c55e;
}

.spreadsheet-card {

    border-left: 5px solid #60a5fa;
}

@media (max-width: 992px) {

    .hero-flow {

        flex-direction: column;
    }

    .flow-connector {

        width: 4px;
        height: 50px;
    }

    .flow-line {

        width: 4px;
        height: 100%;
    }

    .flow-dot {

        left: -6px;
    }

    @keyframes moveDot {

        from {
            top: 0;
        }

        to {
            top: calc(100% - 16px);
        }
    }
}