/* EMS Relay — marketing site. Brand: navy #002060, red #E1251B (logo, primary button), amber #F5A800 (small accents). */
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-condensed-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url(/assets/fonts/barlow-condensed-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 400; font-display: swap; src: url(/assets/fonts/public-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-display: swap; src: url(/assets/fonts/public-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 700; font-display: swap; src: url(/assets/fonts/public-sans-latin-700-normal.woff2) format('woff2'); }

:root {
  --navy: #002060;
  --navy-deep: #001645;
  --red: #E1251B;
  --red-hover: #C41E15;
  --amber: #F5A800;
  --ink: #0F1B33;
  --muted: #4A5874;
  --line: #DDE4F0;
  --soft: #F3F6FB;
  --tint: #E8EEF8;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; margin: 0; }
h1, h2 { text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ── buttons ───────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

.eyebrow { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.eyebrow-dark { color: var(--red); }

/* ── hero ─────────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); padding-bottom: 96px; }
.hero::after { /* the logo's chevrons, huge and faint */
  content: ''; position: absolute; right: -140px; top: 120px; width: 760px; height: 480px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 146 92'%3E%3Cg fill='%23fff' fill-opacity='.05'%3E%3Cpolygon points='0,0 26,0 58,46 26,92 0,92 32,46'/%3E%3Cpolygon points='44,0 70,0 102,46 70,92 44,92 76,46'/%3E%3Cpolygon points='88,0 114,0 146,46 114,92 88,92 120,46'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.nav-logo img { width: 190px; height: auto; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-link:hover { color: #fff; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding-top: 48px; }
.hero h1 { font-size: clamp(2.9rem, 5.4vw, 4.6rem); margin-top: 14px; }
.lead { margin-top: 22px; font-size: 19px; line-height: 1.6; color: rgba(255,255,255,.86); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 15px; color: rgba(255,255,255,.8); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ''; width: 16px; height: 16px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5A800' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain; }

.hero-visual { position: relative; padding: 0 0 40px 40px; }
.browser { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.browser-bar { display: flex; gap: 7px; align-items: center; height: 30px; padding: 0 14px; background: #E9EEF6; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #C6D0E0; }
.browser img { width: 100%; height: auto; }
.phone { margin: 0; width: 210px; border-radius: 34px; border: 9px solid #0B1020; background: #0B1020; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,.55); }
.phone img { width: 100%; height: auto; border-radius: 25px; }
.phone-hero { position: absolute; left: 0; bottom: 0; width: 34%; max-width: 210px; }

/* ── sections ─────────────────────────────────────────────────────────────────── */
.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2, .split-text h2, .origin h2, .cta h2 { font-size: clamp(2.2rem, 3.6vw, 3.1rem); margin-top: 10px; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { padding: 28px 26px 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--navy); }
.card-icon svg, .sec-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-top: 22px; font-size: 26px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.also { margin-top: 32px; color: var(--muted); font-size: 16px; }
.also strong { color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: none; }
.steps li { position: relative; padding: 28px 26px; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.steps li:not(:last-child)::after { /* a chevron between the steps */
  content: ''; position: absolute; right: -17px; top: 50%; width: 14px; height: 22px; margin-top: -11px; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 92'%3E%3Cpolygon fill='%23E1251B' points='0,0 26,0 58,46 26,92 0,92 32,46'/%3E%3C/svg%3E") no-repeat center / contain;
}
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 800; font-size: 21px; }
.steps h3 { margin-top: 18px; font-size: 26px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split-reverse { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.split-reverse .split-visual { order: 2; }
.split-visual-phone { display: grid; place-items: center; padding: 48px 0; border-radius: 24px; background: linear-gradient(160deg, var(--tint), #fff 70%); }
.split-visual-phone .phone { width: 250px; }
.split-text { max-width: 520px; }
.chev-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.chev-list li { position: relative; padding-left: 36px; font-size: 18px; }
.chev-list li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 22px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 146 92'%3E%3Cpolygon fill='%23C3D0EA' points='0,0 26,0 58,46 26,92 0,92 32,46'/%3E%3Cpolygon fill='%23002060' points='44,0 70,0 102,46 70,92 44,92 76,46'/%3E%3Cpolygon fill='%23E1251B' points='88,0 114,0 146,46 114,92 88,92 120,46'/%3E%3C/svg%3E") no-repeat center / contain;
}

.section-navy { background: var(--navy); color: #fff; }
.sec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sec { padding: 28px 26px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.sec-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(245,168,0,.14); color: var(--amber); }
.sec h3 { margin-top: 22px; font-size: 25px; }
.sec p { margin-top: 10px; color: rgba(255,255,255,.78); font-size: 16px; }

.origin { text-align: center; }
.origin-mark { width: 64px; height: auto; margin: 0 auto 22px; }
.origin p { margin: 20px auto 0; font-size: 19px; color: var(--muted); max-width: 640px; }

.cta-section { padding-top: 0; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px 60px; border-radius: 24px; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta h2 { margin-top: 0; }
.cta p { margin-top: 12px; font-size: 18px; color: rgba(255,255,255,.82); }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; }
.cta-mail { color: rgba(255,255,255,.8); font-size: 15px; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer img { width: 150px; height: auto; }
.footer p { color: var(--muted); font-size: 15px; }

/* ── smaller screens ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .cards, .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 960px) {
  .nav-link { display: none; }
  .hero::after { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 24px; }
  .hero-visual { padding: 0 0 32px 24px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split-reverse .split-visual { order: 0; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .cta-actions { align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { min-height: 72px; }
  .nav-logo img { width: 150px; }
  .hero { padding-bottom: 64px; }
  .lead { font-size: 17px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .cards, .sec-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li::after { display: none; }
  .phone-hero { width: 38%; }
  .split-visual-phone .phone { width: 220px; }
  .chev-list li { font-size: 17px; }
  .cta { padding: 36px 24px; }
}
@media (max-width: 380px) {
  .nav-logo img { width: 128px; }
  .btn-sm { padding: 0 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
