/* ============================================================
   CERVANTES — shared design system
   Used by: index.html, privacy.html, terms.html, 404.html
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-blue-dk:   #08131f;
  --c-navy:      #0d2a42;
  --c-navy-2:    #1a3a5c;
  --c-blue:      #1f5276;
  --c-blue-lt:   #4a90c4;
  --c-purple:    #2e6da4;
  --c-purple-dk: #1a3a5c;
  --c-cyan:      #2e5f8a;
  --c-white:     #ffffff;
  --c-bg-soft:   #f2f6fa;
  --c-ink:       #1a1a2e;
  --c-ink-2:     #4a5568;
  --c-muted:     #4a5568;
  --c-border:    #c8d8e8;
  --grad-brand:  linear-gradient(135deg, var(--c-navy-2) 0%, var(--c-blue) 55%, var(--c-blue-lt) 120%);
  --grad-brand-2:linear-gradient(120deg, var(--c-blue-lt) 0%, var(--c-blue) 50%, var(--c-navy-2) 100%);
  --ff-sans:  'Source Sans 3', 'Arial', sans-serif;
  --ff-serif: 'Source Serif 4', 'Georgia', serif;
  --ff-disp:  'Space Grotesk', 'Source Sans 3', sans-serif;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --shadow-soft: 0 20px 60px -20px rgba(31,82,118,.18);
  --shadow-card: 0 12px 40px -18px rgba(16,20,43,.14);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  font-size: 16px;
  color: var(--c-ink);
  background: var(--c-bg-soft);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--c-blue); text-decoration: none; }
a:hover { color: var(--c-purple-dk); }

/* ── scroll reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; }
}

/* ── logo mark ── */
.logo-mark { display: inline-block; flex-shrink: 0; }
.logo-mark circle.ring { fill: none; stroke: url(#lg); stroke-width: 15; }
.logo-mark circle.dot { fill: var(--c-purple); }

/* ── Top utility bar ── */
.em-topbar { background: var(--c-blue-dk); color: #fff; font-size: .8rem; }
.em-topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 8px 24px;
  display: flex; align-items: center; justify-content: flex-end;
}
.em-topbar-links a { color: rgba(255,255,255,.55); font-size: .8rem; transition: color .2s; }
.em-topbar-links a:hover { color: #fff; }
.em-sep { color: rgba(255,255,255,.25); margin: 0 10px; }

/* ── Nav bar (floating pill) ── */
.em-nav-wrap { position: sticky; top: 0; z-index: 200; background: var(--c-blue-dk); padding: 14px 24px 22px; }
.em-nav {
  max-width: 1280px; margin: 0 auto;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 10px 12px 10px 22px;
  display: flex; align-items: center; gap: 20px;
}
.em-nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--ff-disp); font-weight: 700; font-size: 1.05rem; color: #fff; letter-spacing: .01em; margin-right: 8px; }
.em-nav-brand-link { display: flex; align-items: center; gap: 10px; color: #fff; }
.em-nav ul { list-style: none; display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; flex-wrap: wrap; }
.em-nav ul li { position: relative; }
.em-nav ul li a {
  display: flex; align-items: center; gap: 4px; padding: 9px 18px; color: rgba(255,255,255,.72);
  font-size: .88rem; font-weight: 600; border-radius: 999px; transition: all .2s; white-space: nowrap;
}
.em-nav ul li a:hover, .em-nav ul li a.active { background: rgba(255,255,255,.12); color: #fff; }
.em-nav-caret { font-size: .7rem; opacity: .75; transition: transform .3s ease; display: inline-block; }
.has-dropdown.open .em-nav-caret { transform: rotate(180deg); }
.em-nav-cta { flex-shrink: 0; margin-left: 8px; }

/* capsule buttons */
.em-btn {
  padding: 11px 24px; font-size: .88rem; font-family: var(--ff-sans);
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font-weight: 700; transition: all .25s cubic-bezier(.16,.8,.3,1);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.em-btn--primary {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff;
}
.em-btn--primary:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }
.em-btn--action {
  background: var(--grad-brand); color: #fff; box-shadow: 0 8px 24px -6px rgba(31,82,118,.55);
}
.em-btn--action:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(31,82,118,.7); }
.em-nav-cta .em-btn { padding: 10px 20px; font-size: .84rem; }

/* ── Journals dropdown ── */
.has-dropdown .dropdown {
  display: flex; position: absolute; top: calc(100% + 14px); left: 0;
  background: #fff; border: 1px solid var(--c-border);
  box-shadow: var(--shadow-soft); z-index: 100; min-width: 300px;
  flex-direction: column; border-radius: var(--radius-sm); overflow: hidden;
  list-style: none;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-10px) scale(.95); transform-origin: top left;
  transition: opacity .2s ease, visibility .2s, transform .2s ease;
}
.has-dropdown.open .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  animation: dropdownBounce .4s cubic-bezier(.68,-.55,.265,1.55) forwards;
}
@keyframes dropdownBounce {
  from { opacity: 0; transform: translateY(-10px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.has-dropdown .dropdown li a {
  padding: 10px 16px; color: var(--c-ink-2); border: none; border-radius: 0;
  font-size: .86rem; white-space: nowrap; font-weight: 400;
  transition: all .25s ease;
}
.has-dropdown .dropdown li a:hover { background: var(--c-bg-soft); color: var(--c-blue); padding-left: 22px; transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .has-dropdown.open .dropdown { animation: none; }
}
.dropdown-search-box { padding: 12px 14px; border-bottom: 1px solid var(--c-border); }
.dropdown-search-box input {
  width: 100%; padding: 9px 14px; border: 1px solid var(--c-border);
  border-radius: 999px; font-size: .84rem; font-family: var(--ff-sans); outline: none; transition: border-color .2s;
}
.dropdown-search-box input:focus { border-color: var(--c-blue); }
.dropdown-list { max-height: 300px; overflow-y: auto; }
.dropdown-footer {
  padding: 10px 16px; border-top: 1px solid var(--c-border);
  font-size: .74rem; color: var(--c-muted); text-align: center;
}
.jp-abbr {
  display: inline-block; font-size: .66rem; font-weight: 700; color: #fff;
  background: var(--grad-brand);
  padding: 2px 8px; border-radius: 999px; margin-right: 8px; min-width: 42px;
  text-align: center;
}
.jp-field { font-size: .72rem; color: var(--c-muted); display: block; margin-top: 1px; }
.no-results-msg { padding: 14px 16px; font-size: .82rem; color: var(--c-muted); text-align: center; display: none; }

/* ── Main wrapper ── */
.em-main { max-width: 1280px; margin: 0 auto; padding: 0 24px 60px; flex: 1; width: 100%; }

/* ── Hero ── */
.em-hero {
  position: relative;
  background: var(--c-blue-dk) url('../img/hero-bg.svg') center top / cover no-repeat;
  color: #fff;
  margin: 0 -24px 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.em-hero-stars {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1.5px 1.5px at 22% 62%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 38% 24%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 54% 12%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 65% 40%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 20%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 88% 55%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 95% 30%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 15% 45%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 45% 55%, rgba(255,255,255,.45), transparent 60%);
  background-repeat: no-repeat;
}
.em-hero-stat-strip {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 40px;
  padding: 26px 48px; margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.em-hero-stat b {
  display: block; font-family: var(--ff-disp); font-size: 1.7rem; font-weight: 700; color: #fff; letter-spacing: -.02em;
}
.em-hero-stat span {
  display: block; font-size: .74rem; color: #9aa8d4; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px;
}
.em-hero::before, .em-hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.em-hero::before { width: 520px; height: 520px; background: radial-gradient(circle, rgba(31,82,118,.55), transparent 70%); top: -160px; left: -120px; animation: float3 16s ease-in-out infinite; }
.em-hero::after { width: 620px; height: 620px; background: radial-gradient(circle, rgba(31,82,118,.4), transparent 70%); bottom: -260px; right: -160px; animation: float3 19s ease-in-out infinite reverse; }
.em-hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; opacity: .55; }
.em-hero-blob.b1 { width: 260px; height: 260px; background: radial-gradient(circle, var(--c-cyan), transparent 70%); top: 30%; right: 18%; animation: float1 9s ease-in-out infinite; }
.em-hero-blob.b2 { width: 180px; height: 180px; background: radial-gradient(circle, var(--c-purple), transparent 70%); bottom: 8%; left: 8%; animation: float2 11s ease-in-out infinite; }
.em-hero-blob.b3 { width: 220px; height: 220px; background: radial-gradient(circle, var(--c-blue-lt), transparent 70%); top: 8%; left: 30%; animation: float3 13s ease-in-out infinite; animation-delay: 2s; }
@keyframes float1 { 0%,100% { transform: translateY(0) translateX(0) scale(1);} 50% { transform: translateY(-26px) translateX(14px) scale(1.08);} }
@keyframes float2 { 0%,100% { transform: translateY(0) scale(1);} 50% { transform: translateY(22px) scale(0.94);} }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(-30px, 20px) scale(1.1);} }
@media (prefers-reduced-motion: reduce) {
  .em-hero-blob, .em-hero::before, .em-hero::after, .em-page-hero::before, .em-page-hero::after { animation: none; }
}

.em-hero-banner {
  position: relative; z-index: 2; width: 100%;
  padding: 96px 48px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
}
.em-hero-copy { flex: 1; max-width: 600px; }
.em-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
  color: #cbd7ff; border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 6px 16px 6px 12px;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 22px;
}
.em-hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 10px var(--c-cyan); }
.em-hero-copy h1 {
  font-family: var(--ff-disp);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -.02em;
}
.em-hero-copy h1 em {
  font-style: normal;
  background: var(--grad-brand-2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.em-hero-copy p {
  font-size: 1.02rem; color: #9aa8d4; line-height: 1.75;
  max-width: 480px; margin-bottom: 32px; font-weight: 300;
}
.em-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Dashboard mockup — glass floating card ── */
.em-hero-visual {
  flex: 0 0 470px;
  position: relative; z-index: 2;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(8,10,30,.65), 0 0 0 1px rgba(255,255,255,.03);
  animation: dashFloat 7s ease-in-out infinite;
}
@keyframes dashFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hv-header {
  background: rgba(0,0,0,.2);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hv-dot { width: 9px; height: 9px; border-radius: 50%; }
.hv-dot.red { background: #ff5f57; }
.hv-dot.yellow { background: #ffbd2e; }
.hv-dot.green { background: #28c840; }
.hv-title { font-size: .74rem; color: rgba(255,255,255,.4); margin-left: auto; letter-spacing: .04em; font-weight: 600; }
.hv-header-icons { display: flex; align-items: center; gap: 10px; margin-left: 14px; }
.hv-bell {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); flex-shrink: 0;
}
.hv-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-brand); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .62rem; font-weight: 700;
}
.hv-body { display: flex; align-items: stretch; }
.hv-list { flex: 1; min-width: 0; }
.hv-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .8rem; transition: background .2s;
}
.hv-list .hv-row:last-child { border-bottom: none; }
.hv-row:hover { background: rgba(255,255,255,.04); }
.hv-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hv-status.review   { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
.hv-status.accepted { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.hv-status.revision { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.hv-status.published{ background: #a78bfa; box-shadow: 0 0 8px #a78bfa; }
.hv-row-content { flex: 1; min-width: 0; }
.hv-row-title { color: rgba(255,255,255,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: .8rem; }
.hv-row-meta { font-size: .68rem; color: rgba(255,255,255,.4); margin-top: 2px; }
.hv-tag { font-size: .6rem; padding: 3px 9px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.hv-tag.review    { background: rgba(96,165,250,.18);  color: #93c5fd; }
.hv-tag.accepted  { background: rgba(34,197,94,.18);   color: #4ade80; }
.hv-tag.revision  { background: rgba(245,158,11,.18);  color: #fbbf24; }
.hv-tag.published { background: rgba(167,139,250,.18); color: #c4b5fd; }

/* ── Donut chart panel ── */
.hv-donut-panel {
  flex: 0 0 168px; display: flex; flex-direction: column; align-items: center;
  padding: 20px 14px; border-left: 1px solid rgba(255,255,255,.08); gap: 16px;
}
.hv-donut {
  position: relative; width: 122px; height: 122px; border-radius: 50%;
  background: conic-gradient(
    #60a5fa 0deg 126.56deg,
    #f59e0b 126.56deg 177.19deg,
    #22c55e 177.19deg 267.19deg,
    #a78bfa 267.19deg 360deg
  );
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hv-donut::before {
  content: ''; position: absolute; width: 78px; height: 78px; border-radius: 50%;
  background: var(--c-navy-2);
}
.hv-donut-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hv-donut-label { font-size: .56rem; color: rgba(255,255,255,.5); line-height: 1.3; max-width: 62px; }
.hv-donut-value { font-family: var(--ff-disp); font-size: 1.3rem; font-weight: 700; color: #fff; margin-top: 2px; }
.hv-legend { list-style: none; display: flex; flex-direction: column; gap: 9px; width: 100%; }
.hv-legend li { display: flex; align-items: center; gap: 8px; font-size: .7rem; color: rgba(255,255,255,.65); }
.hv-legend .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hv-legend .dot.review    { background: #60a5fa; }
.hv-legend .dot.revision  { background: #f59e0b; }
.hv-legend .dot.accepted  { background: #22c55e; }
.hv-legend .dot.published { background: #a78bfa; }
.hv-legend .lbl { flex: 1; }
.hv-legend .num { font-weight: 700; color: #fff; }

@media (max-width: 560px) {
  .hv-body { flex-direction: column; }
  .hv-donut-panel { flex-direction: row; border-left: none; border-top: 1px solid rgba(255,255,255,.08); width: 100%; justify-content: center; }
}

/* ── Wavy divider ── */
.em-hero-wave {
  position: relative; z-index: 2;
  width: 100%; height: 24px;
  margin: 4px 0 20px;
}
.em-hero-wave svg { width: 100%; height: 100%; display: block; }

/* ── Stats — circular ── */
.em-stats-bar {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding: 0 48px 64px;
}
.em-stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.em-stat-ring {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-cyan); margin-bottom: 14px;
  transition: box-shadow .35s;
  transform: scale(.7); opacity: 0;
}
.em-stat-item:nth-child(2) .em-stat-ring { color: var(--c-blue-lt); }
.em-stat-item:nth-child(3) .em-stat-ring { color: var(--c-purple); }
.em-stat-item:nth-child(4) .em-stat-ring { color: var(--c-cyan); }
.em-stat-item.is-visible .em-stat-ring { animation: statPop .6s cubic-bezier(.34,1.56,.64,1) forwards; }
@keyframes statPop { to { transform: scale(1); opacity: 1; } }
.em-stat-item:hover .em-stat-ring { box-shadow: 0 0 0 6px rgba(255,255,255,.05), 0 0 24px rgba(31,82,118,.35); }
.em-stat-num {
  font-family: var(--ff-disp);
  font-size: 1.7rem; font-weight: 700;
  color: #fff; display: block; letter-spacing: -.02em;
}
.em-stat-label { font-size: .74rem; color: rgba(255,255,255,.45); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* ── Quick access panels — circular ── */
.em-panels { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 48px 16px; }
.em-panel {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none; width: 128px; transition: transform .3s cubic-bezier(.16,.8,.3,1);
}
.em-panel:hover { transform: translateY(-6px); }
.em-panel-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: #fff; border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-blue); margin-bottom: 14px;
  box-shadow: var(--shadow-card); transition: all .3s cubic-bezier(.16,.8,.3,1);
}
.em-panel:hover .em-panel-icon { box-shadow: 0 16px 40px -10px rgba(31,82,118,.4); background: var(--grad-brand); color: #fff; }
.em-panel-title { font-size: .86rem; font-weight: 700; color: var(--c-ink); }
.em-panel-sub { font-size: .75rem; color: var(--c-muted); margin-top: 3px; }

/* ── Two-column layout ── */
.em-body-cols { display: flex; gap: 28px; align-items: flex-start; }
.em-col-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.em-col-side { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 28px; }

/* ── Cards ── */
.em-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card);
}
.em-card-header {
  padding: 22px 30px; display: flex;
  align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
}
.em-card-header h3 { font-family: var(--ff-disp); font-size: 1.2rem; font-weight: 700; color: var(--c-ink); letter-spacing: -.01em; }
.em-card-toggle {
  font-size: .7rem; color: #fff; width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .3s cubic-bezier(.16,.8,.3,1);
}
.em-card.is-collapsed .em-card-toggle { transform: rotate(180deg); }
.em-card-body {
  padding: 0 30px 30px; overflow: hidden;
  max-height: 3000px; opacity: 1;
  transition: max-height .45s cubic-bezier(.16,.8,.3,1), opacity .3s ease, padding .45s cubic-bezier(.16,.8,.3,1);
}
.em-card.is-collapsed .em-card-body { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }

/* ── Feature items — organic circular cards ── */
.em-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.em-feature-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 26px 22px; border-radius: 28px; border: 1px solid var(--c-border);
  background: linear-gradient(180deg, #fff, #fafbff);
  transition: all .3s cubic-bezier(.16,.8,.3,1);
}
.em-feature-item:hover { transform: translateY(-6px); box-shadow: 0 20px 44px -16px rgba(31,82,118,.35); border-color: transparent; }
.em-feature-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.em-feature-item svg { width: 26px; height: 26px; }
.em-feature-content h4 { font-family: var(--ff-disp); font-size: 1rem; font-weight: 700; color: var(--c-ink); margin-bottom: 6px; }
.em-feature-content p { font-size: .88rem; color: var(--c-muted); line-height: 1.6; }

/* ── Workflow — circular journey ── */
.em-workflow { padding: 10px 0 20px; }
.em-wf-circle {
  position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / 1; margin: 0 auto;
}
.em-wf-path {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76%; height: 76%; border-radius: 50%;
  border: 2px dashed #dfe3fa;
  animation: wf-rotate 40s linear infinite;
}
.em-wf-orbit {
  position: absolute; top: 50%; left: 50%; width: 76%; height: 76%;
  transform: translate(-50%, -50%); pointer-events: none;
  animation: wf-rotate 9s linear infinite;
}
.em-wf-orbit-dot {
  position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 14px 3px var(--c-cyan);
}
@keyframes wf-rotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.em-wf-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--grad-brand); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 50px -14px rgba(31,82,118,.55);
  animation: wf-pulse 3.2s ease-in-out infinite;
}
@keyframes wf-pulse {
  0%, 100% { box-shadow: 0 20px 50px -14px rgba(31,82,118,.55), 0 0 0 0 rgba(31,82,118,.4); }
  50% { box-shadow: 0 20px 50px -14px rgba(31,82,118,.55), 0 0 0 14px rgba(31,82,118,0); }
}
@media (prefers-reduced-motion: reduce) {
  .em-wf-path, .em-wf-orbit, .em-wf-hub { animation: none; }
}
.em-wf-step {
  position: absolute; width: 200px; display: flex; flex-direction: column; align-items: center;
  text-align: center; transform: translate(-50%, -50%);
}
.em-wf-step-1 { top: 12%; left: 50%; }
.em-wf-step-2 { top: 38.3%; left: 86.1%; }
.em-wf-step-3 { top: 80.7%; left: 72.3%; }
.em-wf-step-4 { top: 80.7%; left: 27.7%; }
.em-wf-step-5 { top: 38.3%; left: 13.9%; }
.em-wf-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 2px solid var(--c-blue);
  color: var(--c-blue); display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-disp); font-size: 1rem; font-weight: 700; margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}
.em-wf-content h4 { font-family: var(--ff-disp); font-size: .92rem; font-weight: 700; color: var(--c-ink); margin-bottom: 4px; }
.em-wf-content p { font-size: .78rem; color: var(--c-muted); line-height: 1.5; }

@media (max-width: 900px) {
  .em-wf-circle { max-width: none; aspect-ratio: auto; }
  .em-wf-path, .em-wf-hub { display: none; }
  .em-wf-step { position: static; transform: none; width: 100%; flex-direction: row; text-align: left; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--c-border); }
  .em-wf-step:last-child { border-bottom: none; }
  .em-wf-num { margin-bottom: 0; flex-shrink: 0; }
}

/* ── Testimonials — glass ── */
.em-testi-grid { display: flex; flex-direction: column; gap: 16px; }
.em-testi {
  padding: 26px 26px; border-radius: 26px;
  background: linear-gradient(135deg, rgba(31,82,118,.05), rgba(31,82,118,.06));
  border: 1px solid var(--c-border);
  display: flex; gap: 16px; align-items: flex-start;
}
.em-testi-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-disp); font-weight: 700; font-size: .8rem;
}
.em-testi-text {
  font-family: var(--ff-serif);
  font-style: italic; color: var(--c-ink-2); line-height: 1.7;
  margin-bottom: 10px; font-size: .95rem;
}
.em-testi-role { font-size: .8rem; color: var(--c-muted); font-weight: 600; }

/* ── Alert ── */
.em-alert {
  padding: 18px 22px; border-radius: var(--radius-sm); font-size: .86rem;
  border: 1px solid rgba(31,82,118,.18);
  background: linear-gradient(135deg, rgba(31,82,118,.08), rgba(46,109,164,.06));
  color: var(--c-ink-2); line-height: 1.55;
}
.em-alert strong { color: var(--c-blue); }

/* ── CTA / demo block ── */
.em-cta-block {
  position: relative; overflow: hidden;
  background: var(--c-blue-dk);
  border-radius: var(--radius-md);
  padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.em-cta-block::before {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,82,118,.5), transparent 70%);
  filter: blur(50px); top: -140px; right: -100px; pointer-events: none;
}
.em-cta-block h3 { font-family: var(--ff-disp); font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 10px; position: relative; }
.em-cta-block p { font-size: .9rem; color: #9aa8d4; line-height: 1.65; max-width: 420px; position: relative; }
.em-cta-block ul { list-style: none; margin-top: 14px; position: relative; }
.em-cta-block ul li {
  font-size: .85rem; color: #cbd3f0; padding: 4px 0;
  display: flex; align-items: center; gap: 10px;
}
.em-cta-block ul li::before {
  content: '✓'; color: var(--c-cyan); font-size: .8rem; font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%; background: rgba(46,109,164,.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.em-cta-actions { flex-shrink: 0; text-align: center; position: relative; }
.em-cta-actions a { display: inline-flex; margin-bottom: 12px; }
.em-cta-email { font-size: .82rem; color: #9aa8d4; margin-top: 6px; }

/* ── Journals — floating circular badges ── */
.em-journal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.em-journal-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 22px 12px; border-radius: 24px; border: 1px solid var(--c-border);
  background: #fff; transition: all .3s cubic-bezier(.16,.8,.3,1);
}
.em-journal-item:hover { transform: translateY(-5px); box-shadow: 0 16px 34px -14px rgba(31,82,118,.35); border-color: transparent; }
.em-j-abbr {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.em-j-name { color: var(--c-ink); font-size: .8rem; font-weight: 700; line-height: 1.3; }
.em-j-field { font-size: .7rem; color: var(--c-muted); }

/* ── Help / legal side cards ── */
.em-side-text { font-size: .86rem; color: var(--c-muted); line-height: 1.7; }
.em-side-text p { margin-bottom: 10px; }
.em-side-text strong { color: var(--c-ink); }
.em-legal-links { display: flex; flex-direction: column; gap: 4px; }
.em-legal-links a {
  font-size: .88rem; padding: 10px 16px; border-radius: 999px; color: var(--c-ink-2);
  transition: all .2s;
}
.em-legal-links a:hover { background: var(--c-bg-soft); color: var(--c-blue); }

/* ── Footer ── */
.em-footer {
  background: var(--c-blue-dk); color: #9aa8d4;
  padding: 40px 24px 30px; margin-top: 60px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.em-footer-inner { max-width: 1280px; margin: 0 auto; text-align: center; }
.em-footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-disp); font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.em-footer p { margin-bottom: 6px; font-size: .85rem; }
.em-footer a { color: #9aa8d4; }
.em-footer a:hover { color: #fff; }
.em-footer-sep { margin: 0 10px; color: rgba(255,255,255,.2); }
.em-footer-fine { font-size: .78rem; color: rgba(255,255,255,.4); margin-top: 14px; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .em-hero-banner { flex-direction: column; padding: 56px 28px 40px; }
  .em-hero-visual { flex: none; width: 100%; }
  .em-stats-bar { grid-template-columns: repeat(2, 1fr); padding: 0 28px 48px; }
  .em-body-cols { flex-direction: column; }
  .em-col-side { width: 100%; }
  .em-panels { gap: 24px; }
  .em-cta-block { flex-direction: column; align-items: flex-start; }
  .em-feature-grid { grid-template-columns: 1fr; }
  .em-nav ul { gap: 0; }
}
@media (max-width: 620px) {
  .em-hero-copy h1 { font-size: 2.1rem; }
  .em-main { padding: 0 14px 40px; }
  .em-hero { margin: 0 -14px 0; }
  .em-nav-wrap { padding: 12px 12px 18px; }
  .em-nav { padding: 8px 8px 8px 16px; flex-wrap: wrap; }
  .em-nav ul { display: none; }
  .em-card-body { padding: 0 18px 24px; }
  .em-card-header { padding: 18px 18px; }
  .em-journal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Inner page hero (privacy / terms / 404) ── */
.em-page-hero {
  position: relative;
  background: var(--c-blue-dk) url('../img/hero-bg.svg') center top / cover no-repeat;
  color: #fff;
  margin: 0 -24px 0;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.em-page-hero::before, .em-page-hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.em-page-hero::before { width: 460px; height: 460px; background: radial-gradient(circle, rgba(31,82,118,.5), transparent 70%); top: -180px; left: -100px; animation: float3 15s ease-in-out infinite; }
.em-page-hero::after { width: 520px; height: 520px; background: radial-gradient(circle, rgba(31,82,118,.4), transparent 70%); bottom: -260px; right: -140px; animation: float3 18s ease-in-out infinite reverse; }
.em-page-hero-inner {
  position: relative; z-index: 2; max-width: 760px; margin: 0 auto;
  padding: 64px 32px 56px; text-align: center;
}
.em-page-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
  color: #cbd7ff; border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 6px 16px 6px 12px;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 20px;
}
.em-page-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 10px var(--c-cyan); }
.em-page-hero-inner h1 {
  font-family: var(--ff-disp); font-size: 2.7rem; font-weight: 700;
  color: #fff; letter-spacing: -.02em; margin-bottom: 14px;
}
.em-page-hero-inner p { font-size: .95rem; color: #9aa8d4; font-weight: 300; }
.em-page-hero-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: #cbd7ff; font-size: .84rem; font-weight: 600;
  margin-bottom: 22px; transition: color .2s;
}
.em-page-hero-back:hover { color: #fff; }

/* ── Legal page layout ── */
.legal-wrap { display: flex; gap: 28px; align-items: flex-start; padding: 44px 0 20px; }
.legal-toc {
  width: 260px; flex-shrink: 0; position: sticky; top: 110px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 22px 20px; max-height: calc(100vh - 140px); overflow-y: auto;
}
.legal-toc-header {
  font-family: var(--ff-disp); font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--c-muted); margin-bottom: 14px;
}
.legal-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.legal-toc ol li { counter-increment: toc; }
.legal-toc ol li a {
  display: flex; align-items: center; gap: 10px;
  font-size: .84rem; color: var(--c-ink-2); padding: 8px 10px; border-radius: 10px;
  transition: all .2s; font-weight: 600;
}
.legal-toc ol li a::before {
  content: counter(toc); flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-bg-soft); color: var(--c-muted); font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.legal-toc ol li a:hover { background: var(--c-bg-soft); color: var(--c-blue); }
.legal-toc ol li a:hover::before { background: var(--grad-brand); color: #fff; }

.legal-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.legal-content > .info-box, .legal-content > .gdpr-badge, .legal-content > .legal-section {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 28px 30px;
}
.legal-content .gdpr-badge {
  background: linear-gradient(135deg, rgba(31,82,118,.07), rgba(46,109,164,.06));
  border-color: rgba(31,82,118,.18); font-size: .86rem; font-weight: 700; color: var(--c-blue);
  text-align: center; padding: 16px 22px;
}
.legal-content .info-box { font-size: .92rem; color: var(--c-ink-2); line-height: 1.75; }
.legal-section h2 {
  font-family: var(--ff-disp); font-size: 1.15rem; font-weight: 700; color: var(--c-ink);
  letter-spacing: -.01em; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--c-border);
}
.legal-section p { font-size: .9rem; color: var(--c-muted); line-height: 1.75; margin-bottom: 12px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul, .legal-section ol.legal-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; }
.legal-section ul li, .legal-section ol.legal-list li {
  font-size: .88rem; color: var(--c-muted); line-height: 1.65; padding-left: 20px; position: relative;
}
.legal-section ul li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-brand);
}
.legal-section strong { color: var(--c-ink); }
.legal-section a { font-weight: 600; }
.legal-section table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: .86rem; }
.legal-section table th, .legal-section table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-border); color: var(--c-muted); }
.legal-section table th { color: var(--c-ink); font-weight: 700; background: var(--c-bg-soft); }

/* ── Rights grid (privacy page) ── */
.rights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 14px 0; }
.right-card {
  padding: 18px 20px; border-radius: 18px; border: 1px solid var(--c-border);
  background: linear-gradient(180deg, #fff, #fafbff); transition: all .25s cubic-bezier(.16,.8,.3,1);
}
.right-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(31,82,118,.3); border-color: transparent; }
.right-card h4 { font-family: var(--ff-disp); font-size: .92rem; font-weight: 700; color: var(--c-ink); margin-bottom: 6px; }
.right-card p { font-size: .84rem; color: var(--c-muted); line-height: 1.6; margin-bottom: 0; }
@media (max-width: 620px) {
  .rights-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .legal-wrap { flex-direction: column; }
  .legal-toc { width: 100%; position: static; max-height: none; }
  .em-page-hero-inner h1 { font-size: 1.8rem; }
}

/* ── 404 page ── */
.em-404 {
  position: relative; z-index: 2; max-width: 560px; margin: 0 auto;
  padding: 96px 32px 110px; text-align: center;
}
.em-404-code {
  font-family: var(--ff-disp); font-weight: 700; font-size: 6.5rem; line-height: 1;
  background: var(--grad-brand-2); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px; letter-spacing: -.03em;
}
.em-404 h1 { font-family: var(--ff-disp); font-size: 1.7rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.em-404 p { font-size: .95rem; color: #9aa8d4; line-height: 1.7; margin-bottom: 32px; font-weight: 300; }
.em-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Autofill override ── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--c-ink) !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
  transition: background-color 5000s ease-in-out 0s;
}
