/* ============================================================
   Leap IT — shared site styles
   Built on the teal / cool-gray style guide, extended for a
   modern multi-section marketing site.
   ============================================================ */

:root {
  /* Brand — Teal */
  --teal-50:  #e0f5f5;
  --teal-100: #b3e6e6;
  --teal-200: #80d4d4;
  --teal-300: #4dc2c2;
  --teal-400: #26b0b0;
  --teal-500: #008080;
  --teal-600: #006666;
  --teal-700: #004d4d;
  --teal-800: #003333;
  --teal-900: #001a1a;

  /* Neutral — Cool Gray */
  --gray-50:  #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Semantic */
  --success-subtle: #f0faf4; --success-border: #8fd9b0; --success-text: #145c38; --success-solid: #1a7a4a;
  --warning-subtle: #fffbeb; --warning-border: #fde68a; --warning-text: #92400e; --warning-solid: #b45309;
  --error-subtle:   #fef2f2; --error-border:   #fca5a5; --error-text:   #991b1b; --error-solid:   #c0392b;
  --info-subtle:    #eff6ff; --info-border:    #93c5fd; --info-text:    #1e40af; --info-solid:    #1d6fa8;

  /* Tokens */
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: var(--gray-50);
  --bg-tint: var(--teal-50);
  --border-default: var(--gray-200);
  --border-emphasis: var(--gray-300);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-muted: var(--gray-600);

  /* Accent (tweakable) */
  --accent: var(--teal-500);
  --accent-hover: var(--teal-600);
  --accent-deep: var(--teal-700);
  --accent-subtle: var(--teal-50);
  --accent-text: var(--teal-700);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow-md: 0 4px 16px -4px rgba(16,24,40,.10), 0 2px 6px -2px rgba(16,24,40,.06);
  --shadow-lg: 0 24px 48px -12px rgba(0,51,51,.18);

  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--teal-200); color: var(--teal-900); }

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

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-default);
}
.nav {
  display: flex; align-items: center; gap: 32px;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--gray-900); }
.brand-logo { height: 34px; width: auto; display: block; }
.footer-brand .brand-logo { height: 44px; }

/* Reusable Leap brand tile (teal square + white pinwheel) */
.leap-tile { background: var(--teal-600); display: inline-grid; place-items: center; border-radius: 14px; }
.leap-tile::after { content: ""; width: 52%; height: 52%; background: #fff; -webkit-mask: url(leap-mark.svg) center/contain no-repeat; mask: url(leap-mark.svg) center/contain no-repeat; }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px; font-size: 14.5px; font-weight: 500;
  color: var(--text-secondary); border-radius: 8px; cursor: pointer;
  background: none; border: none; font-family: var(--font);
  transition: background .14s, color .14s;
}
.nav-trigger:hover { background: var(--gray-100); color: var(--text-primary); }
.nav-trigger .chev { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: .55; transition: transform .18s; }
.nav-item:hover .chev { transform: rotate(45deg) translate(1px,1px); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; min-width: 320px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown::before { content: ""; position: absolute; bottom: 100%; left: 0; right: 0; height: 12px; }
.dd-link { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); transition: background .12s; }
.dd-link:hover { background: var(--teal-50); }
.dd-ico { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); font-size: 16px; }
.dd-tt { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.dd-ds { display: block; font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }

.nav-spacer { flex: 0 0 28px; }
.nav-right { display: flex; align-items: center; gap: 8px; margin-right: auto; }

/* ---------------- Mobile nav (hamburger + drawer) ---------------- */
.hamburger { display: none; width: 42px; height: 42px; border: 1px solid var(--border-default); border-radius: 10px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: transform .2s, opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-drawer { position: fixed; inset: 70px 0 0 0; background: #fff; z-index: 49; transform: translateX(100%); transition: transform .26s ease; overflow-y: auto; padding: 12px 0 48px; border-top: 1px solid var(--border-default); -webkit-overflow-scrolling: touch; }
.mobile-drawer.open { transform: translateX(0); }
body.drawer-open { overflow: hidden; }
.md-group { padding: 0 24px; }
.md-group .md-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; padding: 18px 0 4px; }
.md-link { display: block; font-size: 18px; font-weight: 600; color: var(--gray-900); padding: 13px 0; border-bottom: 1px solid var(--gray-100); }
.md-sub { display: block; font-size: 15.5px; color: var(--text-secondary); padding: 10px 0; }
.md-sub + .md-sub { border-top: 1px solid var(--gray-100); }
.md-cta { padding: 26px 24px 0; }
.md-cta .btn { width: 100%; }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 10px; padding: 11px 20px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: background .14s, transform .12s, box-shadow .14s, border-color .14s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--accent-text); border: 1px solid var(--border-emphasis); }
.btn-ghost:hover { border-color: var(--accent); background: var(--teal-50); }
.btn-light { background: #fff; color: var(--teal-700); }
.btn-light:hover { background: var(--teal-50); }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 11px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn .arr { transition: transform .16s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------------- Generic section ---------------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.eyebrow { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }

.h-sec { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; color: var(--gray-900); }
.lead { font-size: 18px; color: var(--text-muted); line-height: 1.6; max-width: 60ch; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head .lead { margin-top: 16px; }

/* badges / pills */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 100px; font-size: 13px; font-weight: 600; background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-100); }
.pill .dotpulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 0 rgba(0,128,128,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(0,128,128,.45);} 70%{box-shadow:0 0 0 7px rgba(0,128,128,0);} 100%{box-shadow:0 0 0 0 rgba(0,128,128,0);} }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--teal-900); color: var(--teal-100); padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-blurb { font-size: 14px; color: var(--teal-200); max-width: 30ch; line-height: 1.6; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--teal-300); margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; font-size: 14px; color: var(--teal-100); padding: 5px 0; transition: color .12s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--teal-300); }

/* utility */
/* Business Central screenshot frame (reusable) */
.bcshot { background: #fff; border: 1px solid var(--border-default); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.bcshot-top { display: flex; align-items: center; gap: 8px; padding: 11px 15px; background: #1b1b1b; }
.bcshot-top .dn { display: flex; gap: 6px; }
.bcshot-top .dn i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.28); }
.bcshot-top .u { margin-left: 8px; font-size: 11.5px; color: rgba(255,255,255,.7); font-family: ui-monospace, monospace; background: rgba(255,255,255,.1); padding: 3px 11px; border-radius: 6px; }
.bcshot img { display: block; width: 100%; }
.bcshot-cap { font-size: 12.5px; color: var(--text-muted); padding: 11px 15px; border-top: 1px solid var(--border-default); background: var(--gray-50); }
.bcshot-cap b { color: var(--text-secondary); font-weight: 600; }

.placeholder-img {
  background:
    repeating-linear-gradient(45deg, rgba(0,128,128,.05) 0 10px, rgba(0,128,128,.10) 10px 20px);
  border: 1px dashed var(--teal-300); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--teal-700);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; text-align: center; padding: 16px;
}

@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .nav-right > a.nav-trigger { display: none; }
  .section { padding: 68px 0; }
}
@media (min-width: 921px) {
  .mobile-drawer, .hamburger { display: none !important; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
}

/* ---------- CTA band (shared) ---------- */
.cta-band { background: linear-gradient(135deg, var(--teal-600), var(--teal-800)); border-radius: var(--radius-lg); padding: 56px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content:""; pointer-events:none; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 40px 40px; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(28px,3.6vw,40px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.cta-band p { font-size: 17px; color: var(--teal-100); max-width: 52ch; margin: 0 auto 28px; }
.cta-band .hero-cta, .cta-band .cta-row { justify-content: center; }
@media (max-width: 560px) { .cta-band { padding: 40px 24px; } }

/* ---------- Product pages ---------- */
.prod-hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--teal-50), #fff); border-bottom: 1px solid var(--border-default); }
.crumbs { font-size: 13.5px; color: var(--text-muted); margin-bottom: 22px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent-text); }
.ph-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ph-h1 { font-size: clamp(32px,4.4vw,50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.ph-sub { font-size: 18.5px; color: var(--text-muted); margin-top: 18px; max-width: 46ch; line-height: 1.6; }
.ph-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feat { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius); padding: 24px; }
.feat h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 7px; }
.feat p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.feat .mk { display: none; }
.feat h3 { padding-top: 2px; }
.price-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: start; }
.price-card { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.price-card h3 { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 18px; }
.price-line { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.price-line:last-child { border-bottom: 0; }
.price-line .lbl { font-size: 14.5px; color: var(--text-secondary); }
.price-line .amt { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--gray-900); white-space: nowrap; }
.price-line .amt small { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.price-note { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-top: 16px; }
.res-card { border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 28px; background: var(--bg-subtle); }
.res-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.res-list { display: grid; gap: 10px; }
.res-list a { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--accent-text); }
.res-list a::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--teal-500); flex: none; }
.mini { background: #fff; border: 1px solid var(--border-default); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mini-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--teal-700); }
.mini-top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); }
.mini-top .u { margin-left: 6px; font-size: 12px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.12); padding: 4px 12px; border-radius: 6px; font-family: ui-monospace, monospace; }
.mini-body { padding: 20px; }
.mini-crumb { font-size: 11px; color: var(--gray-500); margin-bottom: 4px; }
.mini-title { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; }
.mini-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; }
.mini-row:nth-child(odd) { background: var(--gray-50); }
.mini-row .l { color: var(--text-secondary); font-weight: 500; }
.mini-row .v { color: var(--gray-900); font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: var(--success-subtle); color: var(--success-text); }
@media (max-width: 900px) { .ph-grid, .feat-grid, .price-wrap { grid-template-columns: 1fr; } }
