/* Shopify & WooCommerce e-invoice integration pages for ehub-it.com.my.
   Self-contained: copies the site's colours, type and chrome so these
   static pages match the SPA without depending on a hashed CSS filename. */

:root {
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Courier New", monospace;
  --background: #fafaf7;
  --foreground: #2d3139;
  --primary: #0d0f12;
  --primary-foreground: #fafaf7;
  --secondary: #f4f3ee;
  --muted: #f4f3ee;
  --muted-foreground: #6b7280;
  --accent: #3b82f6;
  --lilac: #3b82f6;
  --dawn: #93c5fd;
  --border: #e8e6df;
  --navy: #060e1e;
  --cta-band: #1e40af;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 200;
  background: #fff;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
}

/* ----- Header (matches the eHUB SPA chrome) ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: rgba(13, 15, 18, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: padding 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  padding: 14px 40px;
  background: rgba(13, 15, 18, 0.96);
}
.site-header .brand {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.site-header .brand img {
  height: 38px;
  width: auto;
  display: block;
}
.site-header .links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-header .links a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.site-header .links a:hover,
.site-header .links a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.site-header .right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header .phone {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.site-header .phone:hover { color: rgba(255, 255, 255, 0.8); }
.btn-header {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: #0d0f12;
  background: #fff;
  padding: 9px 20px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.menu-toggle {
  display: none;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  line-height: 0;
}
.menu-toggle svg { width: 20px; height: 20px; display: block; }

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(13, 15, 18, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  flex-direction: column;
  gap: 4px;
}
.site-header.is-open .mobile-nav { display: flex; }
.mobile-nav a {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
}
.mobile-nav a:hover { background: rgba(255, 255, 255, 0.06); }
.mobile-nav .phone {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  padding: 8px 16px;
}
.mobile-nav .btn-header {
  margin: 8px 0 4px;
  justify-content: center;
  padding: 13px 20px;
}
.mobile-nav .nav-foot {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ----- Page sections ----- */
.ei-wrap { max-width: 1200px; margin: 0 auto; }

.ei-hero {
  background: var(--navy);
  color: #fafaf7;
  padding: 150px 40px 96px;
  position: relative;
  overflow: hidden;
}
.ei-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 520px at 8% 0%, rgba(59, 130, 246, 0.5), transparent 55%),
    radial-gradient(ellipse 760px 500px at 96% 88%, rgba(37, 99, 235, 0.32), transparent 52%);
}
.ei-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(147, 197, 253, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 25%, transparent 75%);
}
.ei-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.ei-back {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(250, 250, 247, 0.6);
  text-decoration: none;
  margin-bottom: 22px;
}
.ei-back:hover { color: #fff; }

.ei-badge {
  display: table;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dawn);
  border: 1px solid rgba(147, 197, 253, 0.4);
  background: rgba(59, 130, 246, 0.14);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 22px;
}

/* Tasteful red accent labels. #dc2626 on white is ~4.85:1 (WCAG AA). */
.ei-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #fff;
  background: #dc2626;
  border-radius: 999px;
  padding: 9px 18px;
  margin: 0;
}
.ei-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
}
.ei-badge + .ei-tags { margin-top: -8px; }
.ei-head .ei-tag { margin-bottom: 14px; }
.ei-cta-box .ei-tag { margin-bottom: 18px; }
.ei-dark .ei-tag,
.ei-cta-box .ei-tag {
  color: #fff;
  background: #dc2626;
}

.ei-h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: #fafaf7;
}
.ei-h1 em,
.ei-h2 em {
  font-style: italic;
  background: linear-gradient(95deg, var(--lilac), var(--dawn));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ei-lead {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: rgba(250, 250, 247, 0.9);
  max-width: 640px;
  margin: 0 0 16px;
}
.ei-lead:last-of-type { margin-bottom: 30px; }

.ei-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.ei-ctas.center { justify-content: center; }

.ei-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: #0d0f12;
  background: #fafaf7;
  padding: 15px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.ei-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(59, 130, 246, 0.45);
}
.ei-btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: none;
  font-weight: 500;
}
.ei-btn-hero-ghost {
  background: transparent;
  color: #fafaf7;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
  font-weight: 500;
}
.ei-btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

/* Hero flow card (illustrative, no invented figures or client data) */
.ei-flow {
  background: #fafaf7;
  color: var(--foreground);
  border-radius: 24px;
  border: 6px solid #dc2626;
  padding: 28px 24px;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), 0 0 32px rgba(220, 38, 38, 0.55);
  font-family: var(--font-sans);
}
.ei-flow-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.ei-flow-top b {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}
.ei-flow-top small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-foreground);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ei-node {
  text-align: center;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--primary);
  font-size: 15px;
}
.ei-node small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-top: 4px;
}
.ei-node-dark {
  background: var(--primary);
  color: #fafaf7;
  border-color: var(--primary);
}
.ei-node-dark small { color: var(--dawn); }
.ei-arrow {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  text-align: center;
  padding: 6px 0;
}
.ei-flow-note {
  margin: 16px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
/* Red filled hero card (switchable variant).
   Default remains the white card with a 6px red frame (and the thicker tags).
   On:  add class "ei-flow--red" to the hero <aside class="ei-flow">.
   Off: remove "ei-flow--red" to restore the white framed card.
   Contrast (WCAG AA): white on #dc2626 ≈ 4.83:1 (normal text); white on #b91c1c ≈ 6.5:1;
   #0d0f12 on white chips > 15:1; #fff on navy #060e1e > 17:1. */
.ei-flow--red {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), 0 0 36px rgba(220, 38, 38, 0.45);
}
.ei-flow--red .ei-flow-top b {
  color: #fff;
  font-weight: 700;
}
.ei-flow--red .ei-flow-top small {
  color: #fff;
}
.ei-flow--red .ei-node {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: #0d0f12;
}
.ei-flow--red .ei-node small {
  color: #3f3f46;
}
.ei-flow--red .ei-node-dark {
  background: #060e1e;
  color: #fff;
  border-color: #060e1e;
}
.ei-flow--red .ei-node-dark small {
  color: #e8eef8;
}
.ei-flow--red .ei-arrow {
  color: #fff;
}
.ei-flow--red .ei-flow-note {
  color: #fff;
}

/* Brand-coloured chips for the hero flow card (colour + abstract pattern only).
   No official logos or trademarks, nothing implying endorsement.
   Applies to both the default white card and the .ei-flow--red variant.
   Shopify green #95BF47 / #5E8E3E; WooCommerce purple #7F54B3;
   LHDN/MyInvois navy from public sites: #0C3590 (hasil.gov.my), pattern #2E3192 (MyInvois portal).
   Contrast: dark #1A2A0C on #95BF47 ≈ 8.5:1; white on #7F54B3 ≈ 5.5:1; white on #0C3590 ≈ 10.9:1. */
.ei-node--shopify,
.ei-flow--red .ei-node--shopify {
  background-color: #95BF47;
  background-image:
    repeating-linear-gradient(135deg, rgba(94, 142, 62, 0.14) 0 6px, transparent 6px 18px);
  color: #1A2A0C;
  border-color: #5E8E3E;
}
.ei-node--shopify small,
.ei-flow--red .ei-node--shopify small {
  color: #243318;
}
.ei-node--woocommerce,
.ei-flow--red .ei-node--woocommerce {
  background-color: #7F54B3;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.16) 1.2px, transparent 1.4px);
  background-size: 12px 12px;
  color: #fff;
  border-color: #5E3E86;
}
.ei-node--woocommerce small,
.ei-flow--red .ei-node--woocommerce small {
  color: #F3E8FF;
}
.ei-node--lhdn,
.ei-flow--red .ei-node--lhdn {
  background-color: #0C3590;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(46, 49, 146, 0.55) 9px 10px),
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(46, 49, 146, 0.35) 9px 10px);
  color: #fff;
  border-color: #092A71;
}
.ei-node--lhdn small,
.ei-flow--red .ei-node--lhdn small {
  color: #D6E4FF;
}

/* Body sections */
.ei-sec { padding: 96px 40px; }
.ei-light { background: var(--background); }
.ei-soft {
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ei-head { max-width: 760px; margin-bottom: 44px; }
.kicker {
  font-family: var(--font-mono);
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-size: 11px;
  display: inline-block;
}
.ei-h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--primary);
  margin: 0;
}

.ei-gets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.ei-gets li {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid #1d4ed8;
  border-radius: 18px;
  padding: 26px;
  grid-column: span 2;
  box-shadow: 0 8px 24px rgba(13, 15, 18, 0.06);
}
.ei-gets li:nth-child(4),
.ei-gets li:nth-child(5) {
  grid-column: span 3;
}
.ei-gets b {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}
.ei-gets p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: #3f4550;
  margin: 0;
}

.ei-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.ei-steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(13, 15, 18, 0.06);
}
.ei-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: #1d4ed8;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.ei-steps p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--primary);
  margin: 0;
  font-weight: 500;
}

.ei-cta {
  background: var(--cta-band);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ei-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 700px 280px at 15% 0%, rgba(147, 197, 253, 0.22), transparent 60%),
    radial-gradient(ellipse 500px 240px at 90% 100%, rgba(255, 255, 255, 0.08), transparent 55%);
}
.ei-cta-box { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.ei-cta-box .kicker { color: #dbeafe; }
.ei-cta .ei-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
  box-shadow: none;
}
.ei-cta .ei-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.ei-cross {
  margin: 28px 0 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #dbeafe;
}
.ei-cross a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ei-cross a:hover { text-decoration-thickness: 2px; }

/* ----- Footer (matches the eHUB SPA chrome) ----- */
.site-footer {
  background: var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.foot-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 48px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.foot-brand img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}
.foot-brand p {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 360px;
}
.foot-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.foot-chips span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.yt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #ff0000;
  background: #ff0000;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
}
.yt:hover { background: #cc0000; border-color: #cc0000; }
.yt svg { width: 15px; height: 15px; }

.foot-col h2 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-col a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}
.foot-col a:hover { color: #fff; }
.foot-contact {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-contact a {
  display: block;
  text-decoration: none;
  margin-bottom: 6px;
}
.foot-contact .tel {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}
.foot-contact .mail {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.foot-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.foot-bottom p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
  letter-spacing: 0.03em;
}
.foot-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-links a {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}
.foot-links a:hover { color: rgba(255, 255, 255, 0.7); }

@media (max-width: 1023px) {
  .ei-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .ei-steps { grid-template-columns: 1fr 1fr; }
  .ei-gets { grid-template-columns: 1fr 1fr; }
  .ei-gets li,
  .ei-gets li:nth-child(4),
  .ei-gets li:nth-child(5) { grid-column: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .site-header { padding: 14px 20px; }
  .site-header.is-scrolled { padding: 12px 20px; }
  .site-header .links,
  .site-header .right { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 700px) {
  .ei-hero { padding: 120px 20px 64px; }
  .ei-sec { padding: 64px 20px; }
  .ei-gets { grid-template-columns: 1fr; }
  .ei-gets li,
  .ei-gets li:nth-child(4),
  .ei-gets li:nth-child(5) { grid-column: auto; }
  .ei-steps { grid-template-columns: 1fr; }
  .foot-in { padding: 48px 20px 32px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* How your e-invoices flow — horizontal on desktop, vertical on mobile */
.ei-invoice-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
  counter-reset: flow;
}
.ei-invoice-flow > li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  counter-increment: flow;
}
.ei-if-top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.ei-if-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.28);
}
.ei-if-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.ei-if-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.ei-if-num::before {
  content: counter(flow, decimal-leading-zero);
}
/* Connector from this icon toward the next, desktop/tablet only */
.ei-invoice-flow > li:not(:last-child) .ei-if-top::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 56px;
  right: -16px;
  height: 2px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.55), rgba(147, 197, 253, 0.2));
  pointer-events: none;
  z-index: 0;
}
.ei-invoice-flow > li p {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--foreground);
  opacity: 0.86;
  margin: 0;
}
.ei-invoice-flow > li p b {
  display: inline;
  font-weight: 600;
  color: var(--primary);
  opacity: 1;
}
/* Equal cell padding on desktop so the optional card aligns with the row */
@media (min-width: 701px) {
  .ei-invoice-flow > li {
    padding: 16px 14px 18px;
    border: 1px solid transparent;
    border-radius: 16px;
  }
}
.ei-invoice-flow > li.is-optional {
  background: rgba(59, 130, 246, 0.05);
  border: 1px dashed rgba(59, 130, 246, 0.45);
  border-radius: 16px;
  padding: 14px 12px 16px;
}
.ei-invoice-flow > li.is-optional .ei-if-icon {
  background: #fff;
  border-style: dashed;
}
.ei-invoice-flow > li.is-optional .ei-if-top::after {
  display: none;
}

/* No connector off the end of a row */
.ei-invoice-flow > li:nth-child(3n) .ei-if-top::after {
  display: none;
}

@media (max-width: 700px) {
  .ei-invoice-flow {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0;
  }
  .ei-invoice-flow > li {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 0 0 28px 0;
  }
  .ei-invoice-flow > li.is-optional {
    padding: 14px 14px 16px;
    margin-bottom: 12px;
  }
  .ei-invoice-flow > li p {
    font-size: 15px;
    padding-top: 4px;
  }
  .ei-if-top {
    flex-direction: column;
    align-items: center;
    width: auto;
    gap: 6px;
  }
  .ei-invoice-flow > li:not(:last-child) .ei-if-top::after,
  .ei-invoice-flow > li:nth-child(3n) .ei-if-top::after {
    display: none;
  }
  /* Vertical rail */
  .ei-invoice-flow > li:not(:last-child):not(.is-optional)::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 52px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.45), rgba(147, 197, 253, 0.15));
  }
  .ei-invoice-flow > li.is-optional + li::before {
    display: none;
  }
}

/* Dark navy band for the invoice flow — high contrast against light sections */
.ei-dark {
  background: var(--navy);
  color: #fafaf7;
  position: relative;
  overflow: hidden;
  border-top: none;
  border-bottom: none;
}
.ei-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 800px 420px at 10% 0%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(ellipse 640px 400px at 90% 100%, rgba(37, 99, 235, 0.22), transparent 55%);
}
.ei-dark .ei-wrap { position: relative; z-index: 1; }
.ei-dark .ei-h2 { color: #fafaf7; }
.ei-dark .kicker { color: #bfdbfe; }

.ei-dark .ei-invoice-flow > li {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  color: var(--foreground);
}
.ei-dark .ei-invoice-flow > li p {
  color: #3f4550;
  opacity: 1;
}
.ei-dark .ei-invoice-flow > li p b {
  color: var(--primary);
}
.ei-dark .ei-if-icon {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.12);
  border-color: rgba(29, 78, 216, 0.28);
}
.ei-dark .ei-if-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.35);
}
.ei-dark .ei-invoice-flow > li:not(:last-child) .ei-if-top::after {
  height: 3px;
  top: 24px;
  background: linear-gradient(90deg, #60a5fa, rgba(147, 197, 253, 0.35));
}
.ei-dark .ei-invoice-flow > li.is-optional {
  background: #f5f8ff;
  border: 1px dashed #60a5fa;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.ei-dark .ei-invoice-flow > li.is-optional .ei-if-icon {
  background: #fff;
  border-style: dashed;
  border-color: #60a5fa;
}

@media (min-width: 701px) {
  .ei-dark .ei-invoice-flow > li {
    padding: 20px 18px 22px;
  }
}
@media (max-width: 700px) {
  .ei-dark .ei-invoice-flow > li {
    background: #fff;
    padding: 16px 16px 16px;
    margin-bottom: 16px;
    gap: 14px;
  }
  .ei-dark .ei-invoice-flow > li:not(:last-child):not(.is-optional)::before {
    left: 39px;
    top: 64px;
    bottom: -16px;
    width: 3px;
    background: linear-gradient(180deg, #60a5fa, rgba(147, 197, 253, 0.2));
  }
  .ei-dark .ei-invoice-flow > li.is-optional {
    padding: 16px;
    margin-bottom: 12px;
  }
}
