/* London Rails — site styles */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Space Grotesk', sans-serif;
  color: #0B0B0C;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; }
img, svg { display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #ECECEC;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { line-height: 0; }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: #46484B;
  text-decoration: none; letter-spacing: 0.01em;
  transition: color .18s ease;
}
.nav-links a:hover { color: #0B0B0C; }

/* ---------- Buttons ---------- */
.btn-primary {
  font-size: 15px; font-weight: 600; color: #FFFFFF !important;
  background: #1A4FE0; text-decoration: none;
  padding: 15px 30px; border-radius: 2px; letter-spacing: 0.01em;
  display: inline-block; transition: background .18s ease;
}
.btn-primary:hover { background: #1340B8; }
.nav-links .btn-primary { padding: 11px 22px; font-weight: 600; }

.btn-ghost {
  font-size: 15px; font-weight: 600; color: #1A4FE0; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
  border-bottom: 1px solid #1A4FE0; padding-bottom: 3px;
  transition: gap .18s ease;
}
.btn-ghost:hover { gap: 14px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: center; padding-top: 92px; padding-bottom: 80px;
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid #DADADA; border-radius: 2px; padding: 7px 14px; margin-bottom: 34px;
}
.eyebrow-pill .dot { width: 6px; height: 6px; background: #1A4FE0; border-radius: 50%; }
.eyebrow-pill span:last-child {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: #46484B;
}
.hero h1 {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 70px;
  line-height: 0.98; letter-spacing: -0.025em; margin: 0 0 26px; text-wrap: balance;
}
.hero p.lead { font-size: 19px; line-height: 1.55; color: #46484B; max-width: 500px; margin: 0 0 40px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-disclaimer { display: flex; gap: 11px; margin-top: 36px; padding-top: 22px; border-top: 1px solid #ECECEC; max-width: 500px; }
.hero-disclaimer svg { flex-shrink: 0; margin-top: 2px; }
.hero-disclaimer p { font-size: 12.5px; line-height: 1.65; color: #46484B; margin: 0; }

/* Hero visual card */
.visual-wrap { display: flex; justify-content: center; }
.rail-card {
  width: 100%; max-width: 480px; background: #FFFFFF;
  border: 1px solid #E6E6E6; border-radius: 4px; padding: 24px 24px 20px;
  box-shadow: 0 10px 40px rgba(11,11,12,0.07);
}
.rail-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rail-card-head .label { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #9A9DA1; }
.rail-card-head .status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #1A4FE0; white-space: nowrap; }
.rail-card-head .status .pulse { width: 7px; height: 7px; border-radius: 50%; background: #1A4FE0; animation: lr-pulse 1.6s ease-in-out infinite; }
.rail-legend { margin-top: 6px; padding-top: 16px; border-top: 1px solid #F0F0F0; display: flex; align-items: center; gap: 8px; }
.rail-legend .key { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #46484B; }
.rail-legend .key .swatch { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.rail-legend .cleared { font-size: 12px; color: #9A9DA1; margin-left: auto; }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid #ECECEC; border-bottom: 1px solid #ECECEC; padding: 22px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; animation: lr-marquee 32s linear infinite; will-change: transform; }
.marquee-track .item { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: #0B0B0C; padding: 0 32px; }
.marquee-track .sep { color: #C9C9C9; }

/* ---------- Section heads ---------- */
.section { padding-top: 104px; }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: #9A9DA1; margin-bottom: 16px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; flex-wrap: wrap; gap: 16px; }
.section-head h2 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 44px; line-height: 1.02; letter-spacing: -0.02em; margin: 0; max-width: 560px; text-wrap: balance; }
.section-head p { font-size: 15px; line-height: 1.55; color: #46484B; max-width: 340px; margin: 0; }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: #E6E6E6; border: 1px solid #E6E6E6; }
.service-card { background: #FFFFFF; color: #0B0B0C; padding: 42px 36px 48px; min-height: 280px; display: flex; flex-direction: column; transition: background .18s ease, color .18s ease; }
.service-card:hover { background: #0B0B0C; color: #FFFFFF; }
.service-card .num { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; opacity: 0.4; }
.service-card h3 { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -0.01em; margin: 26px 0 14px; }
.service-card p { font-size: 14.5px; line-height: 1.6; color: inherit; opacity: 0.66; margin: 0; }

/* ---------- Dark section ---------- */
.dark { background: #0B0B0C; color: #FFFFFF; margin-top: 104px; }
.dark .container { padding-top: 120px; padding-bottom: 120px; }
.dark-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.dark-grid .kicker { color: #7C8085; }
.dark-grid h2 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 52px; line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 26px; text-wrap: balance; }
.dark-grid p.lead { font-size: 18px; line-height: 1.6; color: #B6B9BD; max-width: 480px; margin: 0 0 40px; }
.dark-grid .btn-primary:hover { background: #3A68E8; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #27292C; border: 1px solid #27292C; }
.stat { background: #0B0B0C; padding: 34px 30px; }
.stat .big { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 40px; letter-spacing: -0.02em; }
.stat .big.blue { color: #1A4FE0; }
.stat .cap { font-size: 13px; color: #9A9DA1; margin-top: 8px; letter-spacing: 0.02em; }

/* ---------- Contact CTA ---------- */
.cta { padding-top: 120px; padding-bottom: 120px; text-align: center; }
.cta h2 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 56px; line-height: 1.0; letter-spacing: -0.025em; margin: 0 auto 22px; max-width: 760px; text-wrap: balance; }
.cta p { font-size: 18px; line-height: 1.55; color: #46484B; max-width: 480px; margin: 0 auto 38px; }

/* ---------- Footer ---------- */
.site-footer { background: #0B0B0C; color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 72px; padding-bottom: 40px; }
.footer-grid p { font-size: 14px; line-height: 1.6; color: #8C9094; max-width: 280px; margin: 20px 0 0; }
.footer-col-title { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #6B6F73; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: #C7CACD; text-decoration: none; transition: color .18s ease; }
.footer-links a:hover { color: #FFFFFF; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact a { font-size: 14px; color: #C7CACD; text-decoration: none; transition: color .18s ease; }
.footer-contact a:hover { color: #FFFFFF; }
.footer-contact .sub { font-size: 12px; color: #6B6F73; margin-top: 3px; }
.footer-social { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: #C7CACD; text-decoration: none; margin-top: 4px; transition: color .18s ease; }
.footer-social:hover { color: #FFFFFF; }
.footer-social svg { flex-shrink: 0; }
.footer-rule { border-top: 1px solid #1E2023; }
.footer-important { display: flex; align-items: flex-start; gap: 12px; padding-top: 26px; padding-bottom: 26px; }
.footer-important .tag { flex-shrink: 0; font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #0B0B0C; background: #9A9DA1; padding: 4px 8px; border-radius: 2px; margin-top: 1px; }
.footer-important p { font-size: 12.5px; line-height: 1.7; color: #8C9094; margin: 0; max-width: 940px; }
.footer-important p .em { color: #C7CACD; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 24px; font-size: 12.5px; color: #6B6F73; }
.footer-bottom a { color: #6B6F73; text-decoration: none; transition: color .18s ease; }
.footer-bottom a:hover { color: #C7CACD; }
.footer-bottom .links { display: flex; gap: 22px; }

/* ---------- Legal pages ---------- */
.legal-hero { border-bottom: 1px solid #ECECEC; padding-top: 64px; padding-bottom: 48px; }
.legal-hero h1 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 52px; line-height: 1.0; letter-spacing: -0.025em; margin: 0 0 14px; }
.legal-hero .updated { font-size: 13px; color: #9A9DA1; letter-spacing: 0.02em; }
.legal { max-width: 820px; margin: 0 auto; padding: 56px 40px 96px; }
.legal .disclaimer {
  background: #F6F8FF; border: 1px solid #D9E2FF; border-radius: 6px;
  padding: 18px 22px; margin-bottom: 44px; font-size: 14px; line-height: 1.6; color: #2B3550;
}
.legal h2 { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -0.01em; margin: 44px 0 14px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 17px; margin: 28px 0 10px; }
.legal p { font-size: 15.5px; line-height: 1.7; color: #2C2E31; margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { font-size: 15.5px; line-height: 1.7; color: #2C2E31; margin-bottom: 8px; }
.legal a { color: #1A4FE0; }
.legal .num { color: #9A9DA1; font-weight: 700; margin-right: 8px; }
.legal .small { font-size: 13.5px; color: #6B6F73; }

/* ---------- Blog listing ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card { border: 1px solid #E6E6E6; border-radius: 6px; overflow: hidden; background: #FFFFFF; transition: box-shadow .2s ease, transform .2s ease; }
.post-card:hover { box-shadow: 0 12px 34px rgba(11,11,12,0.10); transform: translateY(-3px); }
.post-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.post-card-cover { height: 180px; background-size: cover; background-position: center; background-color: #F1F3F5; }
.post-card-cover--blank { display: flex; align-items: center; justify-content: center; }
.post-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #9A9DA1; margin-bottom: 12px; }
.post-card-title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
.post-card-excerpt { font-size: 14.5px; line-height: 1.6; color: #46484B; margin: 0 0 20px; flex: 1; }
.post-card-more { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #1A4FE0; }

/* ---------- Article ---------- */
.article-head { padding-top: 56px; max-width: 760px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9A9DA1; margin-bottom: 22px; }
.breadcrumb a { color: #9A9DA1; text-decoration: none; }
.breadcrumb a:hover { color: #1A4FE0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag-chip { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #1A4FE0; background: #EEF3FF; border-radius: 100px; padding: 6px 12px; }
.article-head h1 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 46px; line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 20px; text-wrap: balance; }
.article-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #6B6F73; }
.article-cover { height: 420px; border-radius: 8px; background-size: cover; background-position: center; background-color: #F1F3F5; margin: 40px 0 0; }
.article-body { max-width: 720px; margin: 44px auto 0; padding: 0 40px; }
.article-body p { font-size: 18px; line-height: 1.75; color: #2C2E31; margin: 0 0 22px; }
.article-body h2 { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 28px; letter-spacing: -0.015em; margin: 42px 0 16px; }
.article-body h3 { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 21px; margin: 32px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li { font-size: 18px; line-height: 1.7; color: #2C2E31; margin-bottom: 10px; }
.article-body a { color: #1A4FE0; }
.article-body img { max-width: 100%; border-radius: 8px; margin: 24px 0; }
.article-body blockquote { border-left: 3px solid #1A4FE0; margin: 28px 0; padding: 4px 0 4px 22px; color: #46484B; font-style: italic; }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 720px; margin: 56px auto 110px; padding: 32px 40px 0; border-top: 1px solid #ECECEC; }

/* ---------- Cookie consent ---------- */
.consent-bar[hidden], .consent-modal[hidden] { display: none !important; }
.consent-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: #FFFFFF; border: 1px solid #E2E4E7; border-radius: 8px;
  padding: 22px 26px; box-shadow: 0 8px 40px rgba(11,11,12,0.16);
  max-width: 1240px; margin: 0 auto;
}
.consent-bar p { font-size: 14px; line-height: 1.6; color: #2C2E31; margin: 0; max-width: 760px; flex: 1 1 420px; }
.consent-bar a { color: #1A4FE0; }
.consent-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.consent-btn {
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600;
  border-radius: 3px; padding: 12px 26px; cursor: pointer; border: 1px solid #0B0B0C;
  white-space: nowrap; line-height: 1.2;
  transition: background .15s ease, color .15s ease;
}
.consent-btn--dark { background: #0B0B0C; color: #FFFFFF; }
.consent-btn--dark:hover { background: #1A4FE0; border-color: #1A4FE0; }
.consent-btn--ghost { background: #FFFFFF; color: #0B0B0C; }
.consent-btn--ghost:hover { background: #F1F3F5; }

.consent-modal { position: fixed; inset: 0; z-index: 210; background: rgba(11,11,12,0.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.consent-modal-card { background: #FFFFFF; border-radius: 10px; width: 100%; max-width: 580px; max-height: 88vh; overflow-y: auto; padding: 28px 30px 26px; box-shadow: 0 20px 60px rgba(11,11,12,0.3); }
.consent-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.consent-modal-head h2 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin: 0; }
.consent-close { background: none; border: none; font-size: 28px; line-height: 1; color: #9A9DA1; cursor: pointer; padding: 0 4px; }
.consent-close:hover { color: #0B0B0C; }
.consent-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid #F0F0F0; }
.consent-row-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.consent-row p { font-size: 13.5px; line-height: 1.6; color: #46484B; margin: 0; }
.consent-always { flex-shrink: 0; font-size: 12px; font-weight: 600; color: #6B6F73; background: #F1F3F5; border-radius: 100px; padding: 5px 12px; margin-top: 2px; }
.consent-switch { flex-shrink: 0; cursor: pointer; margin-top: 2px; }
.consent-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent-track { position: relative; display: block; width: 44px; height: 25px; background: #D6D8DB; border-radius: 100px; transition: background .18s ease; }
.consent-dot { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; background: #FFFFFF; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform .18s ease; }
.consent-switch input:checked + .consent-track { background: #1A4FE0; }
.consent-switch input:checked + .consent-track .consent-dot { transform: translateX(19px); }
.consent-switch input:focus-visible + .consent-track { box-shadow: 0 0 0 3px rgba(26,79,224,0.25); }
.consent-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 22px; }

@media (max-width: 720px) {
  .consent-bar { padding: 18px; gap: 16px; }
  .consent-actions { width: 100%; }
  .consent-actions .consent-btn { flex: 1; padding: 12px 14px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .container { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .nav-links a:not(.btn-primary) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; padding-bottom: 56px; }
  .hero h1 { font-size: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .dark-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-head h2 { font-size: 34px; }
  .dark-grid h2 { font-size: 38px; }
  .cta h2 { font-size: 38px; }
  .legal-hero h1 { font-size: 38px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-head h1 { font-size: 32px; }
  .article-cover { height: 240px; }
  .article-body { padding: 0 24px; }
  .article-body p, .article-body li { font-size: 16.5px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
}

/* ---------- Keyframes ---------- */
@keyframes lr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes lr-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: 0.35; } }


/* ---- Related reading (vector-matched) ---- */
.related { margin: 64px auto 0; padding-top: 40px; border-top: 1px solid #ECECEC; }
.related-h { font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #9A9DA1; margin: 0 0 26px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.related-card { display: flex; flex-direction: column; gap: 9px; padding: 24px; border: 1px solid #ECECEC; border-radius: 4px; text-decoration: none; transition: border-color 160ms ease-out; }
.related-card:hover { border-color: #1A4FE0; }
.related-title { font-family: 'Archivo', sans-serif; font-size: 17px; font-weight: 700; line-height: 1.35; color: #0B0B0C; text-wrap: pretty; }
.related-ex { font-size: 14px; line-height: 1.6; color: #9A9DA1; }
@media (max-width: 700px) { .related { margin-top: 44px; } }
