:root {
  --blue: #05529c;
  --cyan: #00b3ff;
  --sky: #edfbff;
  --ink: #000000;
  --text: #4e4e4e;
  --muted: #6a8098;
  --line: #e4e4e4;
  --footer: #0a1628;
  --footer-soft: #0d1e38;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.09);
  --deep-shadow: 0 18px 50px rgba(5, 82, 156, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.container {
  width: min(100% - 40px, 1315px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.nav {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 140px;
  height: 70px;
}

.brand img {
  width: 140px;
  height: 70px;
  object-fit: contain;
}

.brand-mark {
  color: var(--blue);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark span {
  color: var(--cyan);
}

.brand small {
  display: none;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 38px;
  color: #4d4d4d;
  font-size: 16px;
  font-weight: 500;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue);
}

.static-nav {
  display: flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: 10px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--cyan);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue);
}

.btn-dark {
  background: var(--blue);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background: var(--cyan);
  box-shadow: 0 10px 28px rgba(0, 179, 255, 0.25);
}

.nav-toggle,
.hamburger {
  display: none;
}

.hero {
  overflow: hidden;
  background: var(--sky);
  padding: 80px 20px 100px;
}

.hero-grid {
  display: flex;
}

.hero-copy {
  padding: 20px 20px 0px 0px;
  width: 50%;
}

.hero-copy h1 {
    font-family:  Sans-serif;
    font-size: 45px;
    font-weight: 800;
    text-transform: capitalize;
    line-height: 65px;
    letter-spacing: 0px;
    color: #000000;
}

.eyebrow {
  margin-bottom: 20px;
  color: #000000;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  text-transform: capitalize;
}

.eyebrow.blue {
  color: var(--blue);
  text-align: center;
}

.eyebrow.left {
  text-align: left;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(36px, 4vw, 45px);
  font-weight: 800;
  line-height: 1.44;
  letter-spacing: 0;
  text-transform: capitalize;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 35px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  /* max-width: 625px; */
  margin: -10px 0px 20px 0px;
  color: #222222;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
}

.hero-media {
  width: 50%;
}

.hero-media img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.hero-media:hover img {
  animation: wobble-vertical 0.95s ease-in-out both;
}

@keyframes wobble-vertical {
  16.65% { transform: translateY(8px); }
  33.3% { transform: translateY(-6px); }
  49.95% { transform: translateY(4px); }
  66.6% { transform: translateY(-2px); }
  83.25% { transform: translateY(1px); }
  100% { transform: translateY(0); }
}

.section {
  padding: 100px 20px;
}

.section-heading {
  max-width: 617px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading h2 {
  color: #000000;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  /* gap: 20px; */
}

.feature-card {
  min-height: 125px;
  display: flex;
  align-items: start;
  gap: 15px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.09);
    transition: background 0.3s, border 0.4s, border-radius 0.4s, box-shadow 0.4s;
    margin: 10px 10px 10px 10px;
    padding: 20px 20px 20px 20px;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  /* width: 50px;
  height: 50px; */
  padding: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.feature-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.feature-card h3 {
  margin-bottom: 5px;
  color: #000000;
  font-size: 18px;
  font-weight: 700;
  line-height: 23px;
}

.feature-card p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
}

.tone-blue .feature-icon,
.tone-blue:hover { background: #daf4ff; }
.tone-purple .feature-icon,
.tone-purple:hover { background: #efd2f6; }
.tone-green .feature-icon,
.tone-green:hover { background: #edf5d2; }
.tone-yellow .feature-icon,
.tone-yellow:hover { background: #fff2d0; }
.tone-sky .feature-icon,
.tone-sky:hover { background: #cadcee; }
.tone-lavender .feature-icon,
.tone-lavender:hover { background: #e4deff; }
.tone-orange .feature-icon,
.tone-orange:hover { background: #FFEADA; }
.tone-pink .feature-icon,
.tone-pink:hover { background: #ffd8e7; }

.stats-band {
  background: linear-gradient(90deg, #0965a7 0%, #08b7f0 100%);
  color: #ffffff;
  padding: 39px 20px 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.stat {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.stat .stats-img {
  width: 60px;
  height: 60px;
  box-sizing: border-box;
  object-fit: contain;
  padding: 15px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.3s ease;
}

.stat p {
  margin: 3px 0 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 2.5;
  white-space: nowrap;
}

.stat div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.stat strong {
  order: -1;
  display: block;
  color: #ffffff;
  font-size: 35px;
  font-weight: 800;
  line-height: 1;
}

.process-section {
  overflow: hidden;
  background: #eefdff;
  padding-bottom: 112px;
}

.process-section .section-heading {
  margin-bottom: 68px;
}

.process-section .section-heading h2 {
  max-width: 690px;
  margin-inline: auto;
}

.process-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  gap: 18px;
  min-height: 295px;
}

.process-flow::before {
  display: none;
}

.process-line-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 156px;
  pointer-events: none;
  z-index: 1;
}

.process-step {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
}

.process-step:nth-of-type(even) {
  padding-top: 76px;
}

.process-icon {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 8px #eefdff, 0 5px 16px rgba(5, 82, 156, 0.12);
  transition: transform 0.4s ease;
}

.process-step:hover .process-icon {
  transform: scale(1.1);
}

.process-icon img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.process-step h3 {
  max-width: 240px;
  margin: 0 auto 4px;
  color: #000000;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.13;
}

.process-step p {
  max-width: 235px;
  margin: 0;
  color: #4e4e4e;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 0.97fr 1fr;
  align-items: center;
  gap: 58px;
}

.benefits-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.benefits-image:hover img {
  animation: wobble-vertical 0.95s ease-in-out both;
}

.benefit-copy h2 {
  margin-bottom: 16px;
}

.benefit-copy > p {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

.accordion-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 32px 20px 0;
  cursor: pointer;
  list-style: none;
  color: #000000;
  font-size: 20px;
  font-weight: 700;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}

details[open] summary::after {
  content: "-";
  color: #000000;
  background: transparent;
  transform: rotate(180deg);
}

details p {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

.app-banner {
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(to right, var(--cyan), var(--blue));
}

.app-grid {
  min-height: 500px;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 62px 0 0;
}

.app-copy {
  max-width: 670px;
  padding-bottom: 62px;
}

.app-copy h2 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 35px;
}

.app-copy h3 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.17;
}

.app-copy p {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 17px;
  line-height: 1.7;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.store-card {
  display: inline-grid;
  grid-template-columns: 38px auto;
  align-items: center;
  gap: 10px;
  min-width: 185px;
  min-height: 64px;
  padding: 10px 16px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.36);
  transition: transform 0.2s ease, background 0.2s ease;
}

.store-card:hover {
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.26);
}

.store-card img {
  width: 38px;
  height: 38px;
}

.store-card small,
.store-card span {
  display: block;
}

.store-card small {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
}

.store-card span {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
}

.app-media {
  align-self: end;
}

.app-media img {
  width: min(100%, 612px);
  margin-left: auto;
}

.looms {
  background: #ffffff;
}

.loom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px;
  text-align: center;
}

.loom-grid article {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.loom-grid img {
  width: min(100%, 306px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.28s ease;
}

.loom-grid article:hover img {
  transform: scale(0.92);
}

.loom-grid h3 {
  margin: 0;
  color: var(--blue);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
}

.blogs {
  background: #f8fbff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* =========================================
   BLOG CARD — shared between homepage & archive
   ========================================= */
.blog-card {
  overflow: hidden;
  border: 1px solid rgba(5, 82, 156, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(10, 22, 40, 0.07);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 179, 255, 0.35);
  box-shadow: 0 22px 50px rgba(5, 82, 156, 0.15);
}

/* Image wrapper */
.blog-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e8f0f8;
  border-radius: 14px 14px 0 0;
  flex-shrink: 0;
}

/* Hover overlay */
.blog-media::after {
  content: "Read Article →";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(5, 82, 156, 0.72) 0%, rgba(0, 179, 255, 0.55) 100%);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.blog-card:hover .blog-media::after {
  opacity: 1;
}

/* Keep 16:9 blog artwork fully visible; generated assets are already 16:9. */
.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}

.blog-card:hover .blog-media img {
  transform: none;
}

/* Card body */
.blog-card > div {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Category tag */
.blog-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0, 179, 255, 0.1);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-card h3 {
  margin-bottom: 10px;
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.blog-card h3 a {
  transition: color 0.2s ease;
}

.blog-card h3 a:hover {
  color: var(--blue);
}

.blog-card p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

.read-more,
.blog-card a.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, gap 0.2s ease;
  margin-top: auto;
}

.read-more:hover {
  color: var(--cyan);
}

.centered {
  width: max-content;
  margin: 48px auto 0;
}

/* =========================================
   BLOG ARCHIVE PAGE STYLES
   ========================================= */
.blog-archive-hero {
  background: linear-gradient(135deg, #edfbff 0%, #f0f5ff 60%, #ffffff 100%);
  padding: 80px 20px 90px;
  position: relative;
  overflow: hidden;
}

.blog-archive-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 179, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.blog-archive-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.blog-archive-copy h1 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #000000;
}

.blog-archive-copy p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.blog-archive-hero-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(5, 82, 156, 0.18);
  transition: transform 0.45s ease;
}

.blog-archive-hero-image:hover img {
  transform: translateY(-6px);
}

/* Archive grid */
.blog-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Featured first card spans full width on archive page */
.blog-archive-grid .blog-card:first-child {
  grid-column: 1 / -1;
  flex-direction: row;
  max-height: 340px;
}

.blog-archive-grid .blog-card:first-child .blog-media {
  width: 50%;
  flex-shrink: 0;
  aspect-ratio: unset;
  border-radius: 14px 0 0 14px;
  min-height: 280px;
}

.blog-archive-grid .blog-card:first-child > div {
  padding: 36px 32px;
  justify-content: center;
}

.blog-archive-grid .blog-card:first-child h3 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 14px;
}

.blog-archive-grid .blog-card:first-child p {
  font-size: 15px;
  line-height: 1.7;
}

/* Section background for archive */
.blog-archive-section {
  background: #f8fbff;
  padding: 80px 20px 100px;
}

.contact-section {
  background: var(--sky);
  padding: 70px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 132px;
  padding: 24px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transform: scale(1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: scale(1.05);
  box-shadow: var(--deep-shadow);
}

.contact-card span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
  transition: background 0.25s ease;
}

.contact-card:hover span {
  background: var(--cyan);
}

.contact-card img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.contact-card p {
  margin: 0;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.contact-card strong {
  color: #000000;
  font-size: 18px;
  font-weight: 700;
}

.footer {
  padding: 30px 0 34px;
}

.ems-footer {
  overflow: hidden;
  margin: 0 auto;
  border-radius: 16px;
  color: #e8edf5;
  background: var(--footer);
  font-size: 14px;
  line-height: 1.6;
}

.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, #f0c040 0%, #e8a020 100%);
}

.cities-section {
  padding: 28px 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--footer-soft);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-label span,
.col-heading {
  color: #7eb8f7;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(126, 184, 247, 0.2);
}

.cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.city-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid rgba(100, 160, 255, 0.2);
  border-radius: 7px;
  color: #a8caf7;
  background: rgba(30, 90, 180, 0.16);
  font-size: 13px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.city-tag:hover {
  color: #ffffff;
  background: rgba(30, 90, 180, 0.28);
  border-color: rgba(100, 160, 255, 0.38);
}

.city-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #4a9eff;
}

.main-footer {
  display: grid;
  grid-template-columns: 2fr 2fr 1.2fr;
  gap: 40px;
  padding: 40px 36px;
}

.brand-logo {
  margin-bottom: 12px;
}

.brand-logo img {
  max-height: 50px;
  width: auto;
}

.brand-desc {
  max-width: 430px;
  margin: 0;
  color: #6a8098;
  font-size: 15px;
  line-height: 1.75;
}

.links-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.col-heading {
  margin-bottom: 16px;
}

.footer-nav {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: #6a8098;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #a8caf7;
}

.footer-contact-list {
  display: grid;
  gap: 13px;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #6a8098;
  font-size: 14px;
}

.footer-contact-row span {
  min-width: 22px;
  color: #4a9eff;
  font-size: 11px;
  font-weight: 800;
}

.footer-contact-row p {
  margin: 0;
}

.ems-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #071020;
}

.ems-footer .footer-bottom p {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
}

.ems-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  opacity: 0;
  background: rgba(10, 22, 50, 0.58);
  backdrop-filter: blur(6px);
  transition: opacity 0.35s ease;
}

.ems-overlay.active {
  pointer-events: all;
  opacity: 1;
}

.ems-modal {
  position: relative;
  width: min(880px, 100%);
  max-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 32px 80px rgba(10, 22, 50, 0.3);
  font-family: "Manrope", sans-serif;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ems-overlay.active .ems-modal {
  transform: translateY(0) scale(1);
}

.ems-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 20;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ems-close:hover {
  color: #1a5fcc;
  background: #ffffff;
  border-color: #ffffff;
}

.ems-image-panel {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.ems-image-panel > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ems-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(8, 28, 80, 0.78) 0%, rgba(26, 95, 204, 0.48) 100%);
}

.ems-image-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 30px;
  color: #ffffff;
}

.ems-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ems-logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
}

.ems-logo-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.ems-logo-text {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0.9;
}

.ems-hero-text h2 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.25;
}

.ems-hero-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.82;
}

.ems-badges {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ems-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  font-size: 12.5px;
}

.ems-badge-icon {
  font-size: 11px;
  font-weight: 800;
}

.ems-form-panel {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 34px 36px 28px;
}

.ems-form-header {
  margin-bottom: 20px;
}

.ems-form-header h3 {
  margin-bottom: 5px;
  color: #0a1632;
  font-size: 21px;
  font-weight: 800;
}

.ems-form-header p {
  margin: 0;
  color: #6b7896;
  font-size: 13px;
  line-height: 1.55;
}

.ems-field {
  margin-bottom: 14px;
}

.ems-field label {
  display: block;
  margin-bottom: 5px;
  color: #3a4768;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ems-field label span {
  color: #e05;
}

.ems-field input,
.ems-field textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #e2e7f5;
  border-radius: 10px;
  outline: none;
  resize: none;
  color: #0a1632;
  background: #f5f7fc;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ems-field input:focus,
.ems-field textarea:focus {
  border-color: #1a5fcc;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 95, 204, 0.11);
}

.ems-field input::placeholder,
.ems-field textarea::placeholder {
  color: #aab2cc;
}

.ems-field textarea {
  height: 82px;
}

.ems-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ems-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
  padding: 13px;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  background: #1a5fcc;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 20px rgba(26, 95, 204, 0.28);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.ems-submit:hover:not(:disabled) {
  background: #1450b0;
  box-shadow: 0 10px 28px rgba(26, 95, 204, 0.36);
  transform: translateY(-1px);
}

.ems-submit:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.ems-spinner {
  width: 17px;
  height: 17px;
  display: none;
  flex-shrink: 0;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ems-spin 0.7s linear infinite;
}

@keyframes ems-spin {
  to { transform: rotate(360deg); }
}

.ems-submit.ems-loading .ems-spinner {
  display: block;
}

.ems-submit.ems-loading .ems-btn-text {
  opacity: 0.82;
}

.ems-status {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  animation: ems-fade-up 0.3s ease;
}

@keyframes ems-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ems-status.ems-success {
  display: flex;
  border: 1.5px solid #4cbb8a;
  color: #1a7a55;
  background: #edfaf3;
}

.ems-status.ems-error {
  display: flex;
  border: 1.5px solid #f07070;
  color: #c0392b;
  background: #fff1f1;
}

.ems-status-icon {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 800;
}

.ems-privacy {
  margin: 12px 0 0;
  color: #9aa3be;
  text-align: center;
  font-size: 11px;
  line-height: 1.55;
}

.ems-privacy a {
  color: #1a5fcc;
}

.ems-privacy a:hover {
  text-decoration: underline;
}

.blog-archive-hero {
  padding: 78px 20px 72px;
  background: var(--sky);
  text-align: left;
}

.blog-archive-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 52px;
}

.blog-archive-copy {
  max-width: 720px;
}

.blog-archive-hero h1 {
  max-width: 720px;
  margin-inline: 0;
  margin-bottom: 18px;
}

.blog-archive-hero p:not(.eyebrow) {
  max-width: 690px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: 17px;
}

.blog-archive-hero .eyebrow.blue {
  text-align: left;
}

.blog-archive-hero .btn {
  margin-top: 8px;
}

.blog-archive-hero-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

/* =============================================
   BLOG DETAIL PAGE — Two-column header layout
   Title LEFT · Image RIGHT · Content below
   ============================================= */

/* Page wrapper */
.blog-detail {
  position: relative;
  background: #f4f7fb;
  padding-bottom: 100px;
}

/* Header band */
.blog-detail-header {
  background: linear-gradient(135deg, #05143c 0%, #0965a7 60%, #08b7f0 100%);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

.blog-detail-header::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,179,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Two-column grid */
.blog-detail-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.blog-detail-header-grid > * {
  min-width: 0; /* prevent grid blowout */
}

/* LEFT: text */
.blog-detail-header-copy {
  padding: 0 0 60px;
  color: #ffffff;
  animation: blog-detail-rise 0.6s ease both;
}

.blog-detail-header-copy .blog-tag {
  background: rgba(0, 179, 255, 0.2);
  border: 1px solid rgba(0, 179, 255, 0.45);
  color: #7ee8ff;
  font-size: 12px;
  margin-bottom: 20px;
  display: inline-block;
}

.blog-detail-header-copy h1 {
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: left;
}

.blog-detail-header-copy .blog-header-summary {
  margin: 0 0 28px;
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
}

.blog-detail-header-copy .blog-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.blog-detail-header-copy .blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* RIGHT: image flush at bottom — 16:9 ratio */
.blog-detail-header-image {
  align-self: end;
  animation: blog-detail-rise 0.6s ease 0.12s both;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 50px rgba(0,0,0,0.3);
  width: 100%;
  min-width: 0;
}

.blog-detail-header-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Article body */
.blog-detail-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 20px 0;
  animation: blog-detail-rise 0.65s ease 0.2s both;
}

/* Lead summary card inside content */
.blog-summary {
  margin: 0 0 40px;
  padding: 22px 28px;
  border-left: 5px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(135deg, #edfbff 0%, #f8fcff 100%);
  color: #1a3550;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
  box-shadow: 0 4px 18px rgba(0, 179, 255, 0.1);
  text-align: left;
}

/* Backward compat */
.blog-hero-image { display: none; }
.blog-detail-hero { display: none; }

@media (max-width: 860px) {
  .blog-detail-header-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .blog-detail-header-copy {
    padding-bottom: 0;
  }
  .blog-detail-header-image {
    border-radius: 12px 12px 0 0;
  }
}
@media (max-width: 600px) {
  .blog-detail-header { padding: 40px 0 0; }
  .blog-detail-header-copy h1 { font-size: 22px; }
  .blog-detail-inner { padding: 40px 16px 0; }
}



.blog-content {
  max-width: 880px;
  margin: 0 auto;
  color: #273b4c;
  font-size: 17px;
  line-height: 1.78;
}

.blog-content h2 {
  position: relative;
  margin: 48px 0 16px;
  padding-top: 18px;
  color: #071a2f;
  font-size: 28px;
  line-height: 1.22;
}

.blog-content h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.blog-content h3 {
  margin: 30px 0 12px;
  color: #082b4f;
  font-size: 21px;
  font-weight: 800;
}

.blog-content p,
.blog-content li {
  color: var(--text);
  font-weight: 500;
}

.blog-content p {
  margin-bottom: 18px;
}

.blog-content > p:first-child {
  /* no special first-child styling — summary is handled by .blog-summary above content */
}

.blog-content ul,
.blog-content ol {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.blog-content li {
  position: relative;
  padding: 13px 16px 13px 38px;
  border: 1px solid rgba(5, 82, 156, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(5, 82, 156, 0.06);
}

.blog-content li::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.blog-content a {
  color: var(--blue);
  font-weight: 800;
}

.blog-content strong {
  color: #071a2f;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 179, 255, 0.22) 0);
  font-weight: 800;
}

.blog-content mark {
  padding: 0 5px;
  border-radius: 4px;
  color: #071a2f;
  background: #dff6ff;
}

.blog-content blockquote,
.blog-content .highlight-box,
.blog-content .note-box {
  margin: 30px 0;
  padding: 24px 26px;
  border: 1px solid rgba(0, 179, 255, 0.22);
  border-left: 5px solid var(--cyan);
  border-radius: 10px;
  color: #14334d;
  background: linear-gradient(135deg, #f2fbff 0%, #ffffff 100%);
  box-shadow: 0 16px 38px rgba(5, 82, 156, 0.09);
}

.blog-content blockquote p:last-child,
.blog-content .highlight-box p:last-child,
.blog-content .note-box p:last-child {
  margin-bottom: 0;
}

.blog-content .responsive-table {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(5, 82, 156, 0.1);
}

.blog-content table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #ffffff;
}

.blog-content th,
.blog-content td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-align: left;
  vertical-align: top;
}

.blog-content th {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), #0879c4);
  font-weight: 800;
}

.blog-content tbody tr:nth-child(even) td {
  background: #f7fcff;
}

.blog-content tr:last-child td {
  border-bottom: 0;
}

.blog-content .article-cta {
  margin-top: 48px;
  padding: 36px 40px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue) 0%, #08b7f0 100%);
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(5, 82, 156, 0.28);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-content .article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.blog-content .article-cta p {
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  margin-bottom: 8px;
}

.blog-content .article-cta p:first-child {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.blog-content .article-cta p:last-child {
  margin-bottom: 0;
}

.blog-content .article-cta a {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 32px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.blog-content .article-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Breadcrumb / back navigation */
.blog-breadcrumb {
  background: #ffffff;
  border-bottom: 1px solid rgba(5, 82, 156, 0.07);
  padding: 14px 0;
}

.blog-breadcrumb-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.blog-breadcrumb-inner a {
  color: var(--blue);
  font-weight: 600;
  transition: color 0.2s ease;
}

.blog-breadcrumb-inner a:hover { color: var(--cyan); }
.blog-breadcrumb-inner span { color: #c0cad6; }

@keyframes blog-detail-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blog-image-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.footer-inner {
  overflow: hidden;
  color: #b8cadb;
  background: var(--footer);
  border-radius: 16px;
  border-top: 4px solid #f0c040;
}

.footer-inner .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 30px;
  background: #071020;
}

.footer-inner .footer-bottom p {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1120px) {
  .feature-grid,
  .stats-grid,
  .loom-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-archive-hero-grid {
    grid-template-columns: 1fr;
  }

  .process-flow {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 42px;
  }

  .process-flow::before,
  .process-step::after,
  .process-line-svg {
    display: none;
  }

  .process-step:nth-of-type(even) {
    padding-top: 0;
  }
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 32px, 1315px);
  }

  .nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .hamburger {
    display: inline-grid;
    gap: 5px;
    cursor: pointer;
  }

  .hamburger span {
    width: 28px;
    height: 3px;
    border-radius: 99px;
    background: var(--blue);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .static-nav {
    display: flex;
    grid-column: auto;
    justify-self: end;
    gap: 18px;
  }

  .nav-toggle:checked ~ .nav-links,
  .nav-toggle:checked ~ .nav-cta {
    display: flex;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .nav-toggle:checked ~ .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0 4px;
  }

  .nav-toggle:checked ~ .nav-cta {
    width: max-content;
    margin-bottom: 16px;
  }

  .hero {
    padding: 58px 0 72px;
  }

  .hero-grid,
  .benefits-grid,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    flex-direction: column;
  }

  .hero-copy {
    padding-right: 0;
    width: 100%;
  }

  .hero-media {
    width: 100%;
  }

  .app-grid {
    min-height: 0;
    padding-top: 54px;
  }

  .app-copy {
    padding-bottom: 0;
  }

  .app-media img {
    margin-inline: auto;
  }

  .contact-grid,
  .main-footer {
    grid-template-columns: 1fr;
  }

  .links-group {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 24px, 1315px);
  }

  .brand,
  .brand img {
    width: 110px;
    height: 58px;
  }

  .nav {
    min-height: 64px;
  }

  .hero,
  .section {
    padding: 54px 0;
  }

  .eyebrow {
    font-size: 16px;
  }

  h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  h2 {
    font-size: 24px;
    line-height: 1.25;
  }

  .hero-copy p:not(.eyebrow),
  .app-copy p {
    font-size: 15px;
  }

  .feature-grid,
  .stats-grid,
  .process-flow,
  .loom-grid,
  .blog-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .contact-card {
    grid-template-columns: 56px 1fr;
  }

  .stat {
    grid-template-columns: 56px 1fr;
  }

  .stat img {
    width: 56px;
    height: 56px;
    padding: 14px;
  }

  .stat strong {
    font-size: 30px;
  }

  .stat p {
    white-space: normal;
  }

  .process-icon {
    width: 78px;
    height: 78px;
  }

  summary {
    font-size: 18px;
  }

  .app-copy h2 {
    font-size: 28px;
  }

  .store-card {
    width: 100%;
  }

  .blog-card h3 {
    min-height: auto;
    font-size: 20px;
  }

  .blog-archive-grid .blog-card h3 {
    min-height: auto;
  }

  .blog-archive-hero {
    padding: 54px 0;
  }

  .blog-archive-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .blog-detail {
    padding: 44px 0 60px;
  }

  .blog-hero-image {
    width: 100%;
    border-width: 5px;
    border-radius: 8px;
  }

  .blog-content h2 {
    font-size: 24px;
  }

  .cities-section,
  .main-footer,
  .ems-footer .footer-bottom {
    padding-left: 18px;
    padding-right: 18px;
  }

  .links-group {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .ems-footer .footer-bottom,
  .footer-inner .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .ems-modal {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .ems-image-panel {
    display: none;
  }

  .ems-form-panel {
    padding: 26px 22px 22px;
  }

  .ems-fields-row {
    grid-template-columns: 1fr;
  }

  .ems-close {
    color: #333333;
    background: #f0f4ff;
    border-color: transparent;
  }

  .ems-close:hover {
    color: #ffffff;
    background: #1a5fcc;
  }
}

@media (max-width: 460px) {
  .feature-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .feature-icon,
  .contact-card span {
    margin-bottom: 4px;
  }

  .links-group {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-detail-inner,
  .blog-hero-image {
    animation: none;
  }
}
