/* ==========================================================================
   EventDiagram design system — v1 (2026-08-28)
   The single stylesheet the whole marketing site runs on.

   HOW TO USE: write plain HTML with `ed-` classes. Any page (or blog post)
   built from these classes is automatically on-brand and responsive. Nothing
   here depends on a build step, a framework, or the WordPress block editor —
   paste HTML into a Custom HTML block and it just works.

   Brand: "Frames" logo system. Blue #2B63E8 · Ink #0D1B3E ·
   Geist (UI + display) · Sora Bold (wordmark only).
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts — self-hosted variable woff2 (latin subset), no third-party CSS.
   One file per family covers every weight we use; both are preloaded from
   functions.php so the hero text never waits on a cross-origin chain.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(fonts/sora-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --ed-blue: #2b63e8;
  --ed-blue-light: #3d74f2;
  --ed-blue-dark: #1f53d6;
  --ed-blue-700: #1e4bb8;
  --ed-ink: #0d1b3e;
  --ed-tint: #dce6fb;
  --ed-paper: #ffffff;

  /* Neutrals (cool slate) */
  --ed-50: #f8fafc;
  --ed-100: #f1f5f9;
  --ed-200: #e2e8f0;
  --ed-300: #cbd5e1;
  --ed-400: #94a3b8;
  --ed-500: #64748b;
  --ed-600: #475569;
  --ed-700: #334155;
  --ed-800: #1e293b;
  --ed-900: #0f172a;

  /* Semantic */
  --ed-good: #059669;
  --ed-good-bg: #ecfdf5;
  --ed-warn: #b45309;
  --ed-warn-bg: #fffbeb;
  --ed-bad: #dc2626;
  --ed-bad-bg: #fef2f2;

  /* Type */
  --ed-font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ed-font-wordmark: "Sora", var(--ed-font);
  --ed-font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  /* Elevation — layered and slightly blue-tinted; depth is the brand */
  --ed-shadow-panel: 0 1px 2px rgba(13, 27, 62, 0.05), 0 1px 1px rgba(13, 27, 62, 0.03);
  --ed-shadow-pop: 0 24px 48px -12px rgba(13, 27, 62, 0.18), 0 4px 12px rgba(13, 27, 62, 0.06);
  --ed-shadow-float: 0 32px 64px -24px rgba(13, 27, 62, 0.35), 0 8px 24px -8px rgba(43, 99, 232, 0.12);
  --ed-shadow-btn: 0 8px 24px rgba(43, 99, 232, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);

  /* Radii */
  --ed-r-sm: 6px;
  --ed-r-md: 10px;
  --ed-r-lg: 16px;
  --ed-r-xl: 24px;
  --ed-r-pill: 999px;

  /* Rhythm */
  --ed-gutter: 20px;
  --ed-max: 1200px;
  --ed-max-narrow: 820px;
  --ed-section-y: 96px;
}

@media (max-width: 780px) {
  :root { --ed-section-y: 64px; }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* iOS Safari does not propagate body overflow to the viewport, so the clip
   must live on the root element too — without it the ±52px reveal transforms
   below the fold let the whole page pan sideways on phones. */
html { overflow-x: clip; }

body.ed {
  margin: 0;
  background: var(--ed-paper);
  color: var(--ed-ink);
  font-family: var(--ed-font);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

.ed img, .ed svg, .ed video { max-width: 100%; height: auto; display: block; }

/* Zero-specificity base link colour (`:where()` contributes nothing), so ANY
   component class — .ed-btn, .ed-link, .ed-header__login — wins without
   needing !important. Using `.ed a` here would beat every single-class
   component rule and silently paint button labels blue-on-blue. */
:where(.ed) :where(a) { color: var(--ed-blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
:where(.ed) :where(a):hover { color: var(--ed-blue-dark); }
.ed ::selection { background: var(--ed-tint); color: var(--ed-ink); }
.ed :focus-visible { outline: 3px solid var(--ed-blue); outline-offset: 2px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.ed-wrap { width: 100%; max-width: var(--ed-max); margin-inline: auto; padding-inline: var(--ed-gutter); }
.ed-wrap--narrow { max-width: var(--ed-max-narrow); }
.ed-wrap--wide { max-width: 1320px; }

.ed-section { padding-block: var(--ed-section-y); }
.ed-section--tight { padding-block: calc(var(--ed-section-y) * 0.6); }
.ed-section--tint { background: color-mix(in srgb, var(--ed-50) 70%, white); border-block: 1px solid var(--ed-200); }
.ed-section--dark { background: var(--ed-ink); color: #fff; position: relative; overflow: hidden; }
.ed-section--dark .ed-h2, .ed-section--dark .ed-h3 { color: #fff; }
.ed-section--dark .ed-body, .ed-section--dark p { color: rgba(255, 255, 255, 0.72); }
.ed-section--dark .ed-eyebrow { color: #93b4fb; }

.ed-center { text-align: center; }
.ed-measure { max-width: 62ch; }
.ed-center .ed-measure { margin-inline: auto; }

/* Two-column split: copy on one side, visual on the other.
   minmax(0,1fr) everywhere: an auto track would size to a wide child's
   max-content (e.g. a 1600px screenshot) and blow out phone layouts. */
.ed-split { display: grid; gap: 56px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .ed-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
  .ed-split--even { grid-template-columns: 1fr 1fr; }
  .ed-split--flip > :first-child { order: 2; }
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.ed-eyebrow {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ed-blue); margin: 0 0 14px;
}

.ed-h1 {
  font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -0.03em;
  font-weight: 600; margin: 0; text-wrap: balance;
}
.ed-h2 {
  font-size: clamp(27px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 600; margin: 0; color: var(--ed-ink); text-wrap: balance;
}
.ed-h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; margin: 0; color: var(--ed-ink); }

.ed-lede { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; color: var(--ed-600); margin: 20px 0 0; max-width: 56ch; }
.ed-body { font-size: 15px; line-height: 1.65; color: var(--ed-600); margin: 10px 0 0; }
.ed-small { font-size: 13px; line-height: 1.6; color: var(--ed-500); }
.ed-fine { font-size: 12px; line-height: 1.6; color: var(--ed-400); }
.ed-mono { font-family: var(--ed-font-mono); font-size: 0.9em; }

/* Gradient accent for one phrase inside a headline. Use once per headline. */
.ed-grad {
  background: linear-gradient(100deg, #8fb4fb, #5b8cf0 45%, #a5b8f8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ed-section:not(.ed-section--dark) .ed-grad,
.ed-light .ed-grad { background: linear-gradient(100deg, var(--ed-blue-700), var(--ed-blue) 50%, #4f84f5); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.ed-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--ed-r-pill);
  font-size: 15px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.ed-btn:hover { transform: translateY(-2px); }
.ed-btn__arrow { transition: transform .18s ease; }
.ed-btn:hover .ed-btn__arrow { transform: translateX(2px); }

.ed-btn--primary { background: linear-gradient(180deg, var(--ed-blue-light), var(--ed-blue)); color: #fff; box-shadow: var(--ed-shadow-btn); }
.ed-btn--primary:hover { color: #fff; box-shadow: 0 12px 32px rgba(43, 99, 232, 0.45), inset 0 1px 0 rgba(255,255,255,0.2); }

.ed-btn--secondary { background: #fff; color: var(--ed-700); border-color: var(--ed-300); box-shadow: var(--ed-shadow-panel); }
.ed-btn--secondary:hover { color: var(--ed-ink); border-color: var(--ed-400); box-shadow: var(--ed-shadow-pop); }

/* On dark bands */
.ed-btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.ed-btn--ghost:hover { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); }
.ed-btn--white { background: #fff; color: var(--ed-blue-dark); box-shadow: 0 12px 32px rgba(2,6,23,.35); }
.ed-btn--white:hover { background: var(--ed-50); color: var(--ed-blue-dark); }

.ed-btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 34px; }
.ed-center .ed-btn-row { justify-content: center; }

/* Inline text link with arrow */
.ed-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.ed-link:hover .ed-btn__arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Hero band (dark navy, used at the top of every page)
   -------------------------------------------------------------------------- */
.ed-hero { position: relative; overflow: hidden; background: var(--ed-ink); color: #fff; padding-block: 76px 64px; }
.ed-hero__inner { position: relative; z-index: 2; }
.ed-hero .ed-h1 { color: #fff; }
.ed-hero .ed-lede { color: rgba(255,255,255,.74); }
.ed-hero__note { font-size: 13px; color: rgba(255,255,255,.45); margin: 14px 0 0; }

/* Atmosphere: blueprint grid + aurora glows */
.ed-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.ed-hero::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  top: -180px; left: 45%; width: 900px; height: 560px; transform: translateX(-33%);
  background: radial-gradient(closest-side, rgba(43,99,232,.42), transparent);
  filter: blur(40px);
}
.ed-hero--tall { padding-block: 96px 80px; }

/* Pill above the H1 */
.ed-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: var(--ed-r-pill);
  font-size: 13px; font-weight: 500;
  border: 1px solid rgba(96,143,250,.32); background: rgba(43,99,232,.12);
  color: #bcd0fb; backdrop-filter: blur(6px); margin: 0 0 22px;
}
.ed-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: #7fb1ff; animation: ed-pulse 2s ease-in-out infinite; }
.ed-pill--light { border-color: var(--ed-tint); background: #eff4fe; color: var(--ed-blue-700); }
/* A pill that IS a link shouldn't wear a permanent underline — it reads as a
   rendering bug. Keep the affordance on hover/focus. */
a.ed-pill, .ed-pill a { color: inherit; text-decoration: none; }
a.ed-pill:hover, .ed-pill a:hover, a.ed-pill:focus-visible { color: inherit; text-decoration: underline; }

@keyframes ed-pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* Checkmark reassurance row */
.ed-checks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; padding: 0; list-style: none; }
.ed-check { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.8); }
.ed-check::before {
  content: "✓"; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ed-blue); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(43,99,232,.6);
}
.ed-light .ed-check { color: var(--ed-600); }

/* --------------------------------------------------------------------------
   7. Stat rail
   -------------------------------------------------------------------------- */
.ed-stats { display: grid; gap: 30px; padding-block: 40px; }
@media (min-width: 640px) { .ed-stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ed-stats { grid-template-columns: repeat(4, 1fr); } }
.ed-stat { text-align: center; }
@media (min-width: 960px) {
  .ed-stat + .ed-stat { border-left: 1px solid var(--ed-200); }
  .ed-section--dark .ed-stat + .ed-stat, .ed-hero .ed-stat + .ed-stat { border-left-color: rgba(255,255,255,.12); }
}
.ed-stat__lead { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 0; color: var(--ed-ink); }
.ed-section--dark .ed-stat__lead, .ed-hero .ed-stat__lead { color: #fff; }
.ed-stat__label { font-size: 13px; line-height: 1.4; color: var(--ed-500); margin: 4px 0 0; }
.ed-section--dark .ed-stat__label, .ed-hero .ed-stat__label { color: rgba(255,255,255,.6); }
.ed-hero .ed-stats { border-top: 1px solid rgba(255,255,255,.1); position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.ed-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .ed-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .ed-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ed-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .ed-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .ed-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.ed-card {
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--ed-50) 60%, #fff));
  border: 1px solid var(--ed-200); border-radius: var(--ed-r-lg);
  padding: 26px; box-shadow: var(--ed-shadow-panel);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none; display: block; color: inherit;
}
a.ed-card:hover, .ed-card--hover:hover { transform: translateY(-4px); border-color: #b9cdfa; box-shadow: var(--ed-shadow-pop); }
.ed-card__title { font-size: 17px; font-weight: 600; margin: 0; color: var(--ed-ink); display: flex; align-items: center; gap: 6px; }
.ed-card__body { font-size: 14px; line-height: 1.6; color: var(--ed-600); margin: 9px 0 0; }
.ed-card--flat { background: #fff; }

/* Gradient icon chip */
.ed-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--ed-blue-light), var(--ed-blue-dark));
  box-shadow: 0 4px 14px rgba(43,99,232,.35);
  transition: transform .2s ease;
}
.ed-card:hover .ed-icon { transform: scale(1.05); }
.ed-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ed-card--icon { display: flex; gap: 16px; align-items: flex-start; }
.ed-card--icon .ed-card__title { display: block; }

/* Ghost numerals for "how it works" */
.ed-step { position: relative; overflow: hidden; }
.ed-step__num {
  position: absolute; top: -22px; right: -6px; pointer-events: none;
  font-size: 104px; font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--ed-200), var(--ed-100));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ed-step .ed-card__title { position: relative; margin-top: 62px; }
.ed-step .ed-card__body { position: relative; }

/* Chips / tags */
.ed-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--ed-r-pill);
  border: 1px solid var(--ed-200); background: #fff;
  font-size: 12px; font-weight: 500; color: var(--ed-600); box-shadow: var(--ed-shadow-panel);
}
.ed-chip--blue { border-color: var(--ed-tint); background: #eff4fe; color: var(--ed-blue-700); font-weight: 600; }
.ed-chip--good { border-color: #a7f3d0; background: var(--ed-good-bg); color: #047857; font-weight: 600; }
.ed-chip--warn { border-color: #fcd34d; background: var(--ed-warn-bg); color: var(--ed-warn); font-weight: 600; }
.ed-chip--bad { border-color: #fecaca; background: var(--ed-bad-bg); color: #b91c1c; font-weight: 600; }
.ed-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------------------
   9. Product shots (real screenshots in browser chrome)
   -------------------------------------------------------------------------- */
.ed-shot { position: relative; margin: 0; }
.ed-shot::before {
  content: ""; position: absolute; inset: -40px; z-index: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(43,99,232,.40), rgba(56,189,248,.22) 50%, rgba(99,102,241,.30));
  filter: blur(48px); border-radius: 48px;
}
.ed-shot__frame {
  position: relative; z-index: 1; overflow: hidden;
  border-radius: var(--ed-r-lg); background: #fff;
  box-shadow: var(--ed-shadow-float); outline: 1px solid rgba(13,27,62,.10);
}
.ed-shot__chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--ed-200);
  background: color-mix(in srgb, var(--ed-50) 80%, #fff);
}
.ed-shot__dots { display: flex; gap: 6px; }
.ed-shot__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ed-300); display: block; }
.ed-shot__url {
  flex: 1; text-align: center; font-family: var(--ed-font-mono); font-size: 11px; color: var(--ed-500);
}
.ed-shot__url span { border: 1px solid var(--ed-200); background: #fff; border-radius: var(--ed-r-pill); padding: 4px 16px; display: inline-block; }
@media (max-width: 640px) { .ed-shot__url { display: none; } }
.ed-shot__caption {
  margin: 12px 0 0; text-align: center;
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(100,116,139,.85);
}
.ed-section--dark .ed-shot__caption, .ed-hero .ed-shot__caption { color: rgba(255,255,255,.45); }
.ed-shot--plain::before { display: none; }
.ed-shot--plain .ed-shot__frame { box-shadow: var(--ed-shadow-pop); }

/* Floating accessory cards over a shot */
.ed-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(255,255,255,.95); border: 1px solid var(--ed-200);
  box-shadow: var(--ed-shadow-pop); backdrop-filter: blur(6px);
}
.ed-float--tr { top: -22px; right: 20px; animation: ed-float 3.6s ease-in-out infinite alternate; }
/* sits above the caption line, not on top of it */
.ed-float--bl { bottom: 26px; left: -14px; animation: ed-float 4.4s ease-in-out .8s infinite alternate; }
/* spans must stack — these are used as <span> inside a flex row */
.ed-float__t { display: block; font-size: 13px; font-weight: 600; color: var(--ed-ink); margin: 0; }
.ed-float__s { display: block; font-size: 11px; line-height: 1.4; color: var(--ed-500); margin: 0; }
.ed-float__tick { width: 28px; height: 28px; border-radius: 50%; background: var(--ed-good); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(5,150,105,.5); }
@media (max-width: 720px) { .ed-float { display: none; } }
@keyframes ed-float { from { transform: translateY(0) } to { transform: translateY(-8px) } }

/* --------------------------------------------------------------------------
   10. Comparison table (competitor vs us)
   -------------------------------------------------------------------------- */
.ed-compare-scroll { overflow-x: auto; border-radius: var(--ed-r-lg); border: 1px solid var(--ed-200); box-shadow: var(--ed-shadow-pop); background: #fff; }
.ed-compare { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 14px; }
.ed-compare th, .ed-compare td { padding: 16px 20px; text-align: left; vertical-align: top; }
.ed-compare thead th { border-bottom: 1px solid var(--ed-200); font-weight: 600; color: var(--ed-500); }
.ed-compare thead th:first-child { width: 22%; }
.ed-compare tbody tr { border-bottom: 1px solid var(--ed-100); }
.ed-compare tbody tr:last-child { border-bottom: 0; }
.ed-compare td:first-child { font-weight: 600; color: var(--ed-ink); }
.ed-compare .ed-them { color: var(--ed-500); }
/* Our column, visually elevated */
.ed-compare .ed-us { background: rgba(43,99,232,.045); font-weight: 500; color: var(--ed-800); }
.ed-compare thead .ed-us { background: rgba(43,99,232,.08); color: var(--ed-blue-700); }
.ed-compare thead .ed-us span { display: inline-flex; align-items: center; gap: 8px; }

/* --------------------------------------------------------------------------
   11. FAQ (also emits FAQPage schema — see theme)
   -------------------------------------------------------------------------- */
.ed-faq { border: 1px solid var(--ed-200); border-radius: var(--ed-r-lg); background: #fff; box-shadow: var(--ed-shadow-pop); overflow: hidden; }
.ed-faq__item { padding: 20px 24px; border-bottom: 1px solid var(--ed-100); }
.ed-faq__item:last-child { border-bottom: 0; }
.ed-faq__q { font-size: 16px; font-weight: 600; color: var(--ed-ink); margin: 0; }
.ed-faq__a { font-size: 14px; line-height: 1.65; color: var(--ed-600); margin: 7px 0 0; }

/* --------------------------------------------------------------------------
   12. CTA band (closes every page)
   -------------------------------------------------------------------------- */
.ed-cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--ed-r-xl); padding: 64px 24px;
  background: linear-gradient(135deg, var(--ed-blue) 0%, var(--ed-blue-dark) 45%, #3730a3 100%);
  box-shadow: var(--ed-shadow-float); color: #fff;
}
.ed-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.ed-cta::after {
  content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 620px; height: 300px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(125,211,252,.42), transparent); filter: blur(30px);
}
.ed-cta > * { position: relative; z-index: 1; }
.ed-cta .ed-h2 { color: #fff; margin-inline: auto; max-width: 30ch; }
.ed-cta__sub { color: rgba(219,234,254,.9); font-size: 15px; line-height: 1.6; margin: 16px auto 0; max-width: 54ch; }
.ed-cta__note { color: rgba(191,219,254,.7); font-size: 13px; margin: 16px 0 0; }
.ed-cta a.ed-link { color: rgba(255,255,255,.9); }
.ed-cta a.ed-link:hover { color: #fff; }

/* --------------------------------------------------------------------------
   13. Site chrome — header & footer (rendered by the theme)
   -------------------------------------------------------------------------- */
.ed-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,27,62,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ed-header__bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.ed-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.ed-logo svg { width: 28px; height: 28px; }
.ed-logo__text { font-family: var(--ed-font-wordmark); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: #fff; }
.ed-logo__text i { font-style: normal; color: #7fa6f5; }
.ed-logo--ink .ed-logo__text { color: var(--ed-ink); }
.ed-logo--ink .ed-logo__text i { color: var(--ed-blue); }

/* wp_nav_menu always emits <ul><li>; strip list chrome rather than fight it. */
.ed-nav ul, .ed-mobile-nav ul, .ed-footer ul { list-style: none; margin: 0; padding: 0; }
.ed-nav ul { display: flex; gap: 4px; align-items: center; }
.ed-nav li, .ed-mobile-nav li { list-style: none; }

.ed-nav { display: none; }
@media (min-width: 900px) { .ed-nav { display: block; } }
.ed-nav a {
  padding: 7px 14px; border-radius: var(--ed-r-pill); text-decoration: none;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.78); transition: background .15s, color .15s;
}
.ed-nav a:hover, .ed-nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.ed-header__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ed-header__login { padding: 7px 14px; border-radius: var(--ed-r-pill); text-decoration: none; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.78); }
.ed-header__login:hover { background: rgba(255,255,255,.1); color: #fff; }
.ed-header .ed-btn { padding: 9px 18px; font-size: 14px; }

/* Mobile nav toggle */
.ed-burger { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); cursor: pointer; }
@media (min-width: 900px) { .ed-burger { display: none; } }
.ed-burger span, .ed-burger span::before, .ed-burger span::after { content: ""; display: block; width: 16px; height: 2px; background: #fff; border-radius: 2px; position: relative; }
.ed-burger span::before { position: absolute; top: -5px; }
.ed-burger span::after { position: absolute; top: 5px; }
.ed-mobile-nav { display: none; padding: 12px 0 20px; border-top: 1px solid rgba(255,255,255,.1); }
.ed-mobile-nav.is-open { display: block; }
.ed-mobile-nav a { display: block; padding: 11px 4px; color: rgba(255,255,255,.85); text-decoration: none; font-size: 15px; font-weight: 500; }
.ed-mobile-nav ul { display: grid; }

.ed-footer { background: var(--ed-ink); color: rgba(255,255,255,.6); }
.ed-footer__cols { display: grid; gap: 36px; padding-block: 64px; }
@media (min-width: 640px) { .ed-footer__cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .ed-footer__cols { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.ed-footer h3 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.42); margin: 0 0 14px; }
.ed-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ed-footer a { color: rgba(255,255,255,.68); text-decoration: none; font-size: 13px; }
.ed-footer a:hover { color: #fff; }
.ed-footer__meta { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.5); margin: 16px 0 0; }
.ed-footer__legal { border-top: 1px solid rgba(255,255,255,.1); }
.ed-footer__legal p { font-size: 12px; color: rgba(255,255,255,.4); padding-block: 22px; margin: 0; }

/* --------------------------------------------------------------------------
   14. Prose — blog posts and any long-form page.
   Anything the WordPress editor outputs inside .ed-prose is auto-styled,
   which is what keeps NEW posts consistent without extra work.
   -------------------------------------------------------------------------- */
.ed-prose { font-size: 17px; line-height: 1.72; color: var(--ed-700); }
.ed-prose > * + * { margin-top: 22px; }
.ed-prose h2 { font-size: 27px; line-height: 1.22; letter-spacing: -0.02em; font-weight: 600; color: var(--ed-ink); margin-top: 48px; }
.ed-prose h3 { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--ed-ink); margin-top: 34px; }
.ed-prose h4 { font-size: 17px; font-weight: 600; color: var(--ed-ink); margin-top: 28px; }
/* :where() keeps this at zero specificity so the `> * + *` flow-spacing rule
   above still wins — otherwise every paragraph collapses against the next. */
.ed-prose :where(p) { margin-block: 0; }
.ed-prose a { font-weight: 500; }
.ed-prose strong { color: var(--ed-ink); font-weight: 600; }
.ed-prose ul, .ed-prose ol { padding-left: 24px; display: grid; gap: 10px; }
.ed-prose li { padding-left: 4px; }
.ed-prose li::marker { color: var(--ed-blue); }
.ed-prose blockquote {
  margin: 32px 0; padding: 20px 26px; border-left: 3px solid var(--ed-blue);
  background: var(--ed-50); border-radius: 0 var(--ed-r-md) var(--ed-r-md) 0;
  font-size: 18px; color: var(--ed-800);
}
.ed-prose blockquote p { margin: 0; }
.ed-prose img, .ed-prose figure img { border-radius: var(--ed-r-md); box-shadow: var(--ed-shadow-pop); }
.ed-prose figure { margin: 34px 0; }
.ed-prose figcaption { font-size: 13px; color: var(--ed-500); text-align: center; margin-top: 10px; }
.ed-prose hr { border: 0; border-top: 1px solid var(--ed-200); margin: 44px 0; }
.ed-prose code { font-family: var(--ed-font-mono); font-size: .9em; background: var(--ed-100); padding: 2px 6px; border-radius: 4px; }
.ed-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ed-prose :is(th, td) { border: 1px solid var(--ed-200); padding: 10px 14px; text-align: left; }
.ed-prose th { background: var(--ed-50); font-weight: 600; color: var(--ed-ink); }
.ed-prose .wp-block-table { overflow-x: auto; }

/* Post header + meta */
.ed-post__meta { font-size: 13px; color: var(--ed-500); margin: 0 0 12px; }
.ed-post__meta a { font-weight: 600; }

/* Visible breadcrumb (mirrors the BreadcrumbList schema) */
.ed-crumbs { font-size: 13px; color: rgba(255,255,255,.55); margin: 0 0 18px; }
.ed-crumbs a { color: rgba(255,255,255,.7); text-decoration: none; }
.ed-crumbs a:hover { color: #fff; text-decoration: underline; }
.ed-crumbs__sep { margin: 0 7px; color: rgba(255,255,255,.3); }
.ed-author { display: flex; align-items: center; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--ed-200); }
.ed-author__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(140deg, var(--ed-700), var(--ed-ink)); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; flex: none; }
.ed-author__name { font-size: 14px; font-weight: 600; color: var(--ed-ink); margin: 0; }
.ed-author__role { font-size: 12px; color: var(--ed-500); margin: 0; }

/* Blog index cards */
.ed-postcard { display: flex; flex-direction: column; height: 100%; }
.ed-postcard__date { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--ed-400); margin: 0; }
.ed-postcard__title { font-size: 20px; font-weight: 600; line-height: 1.28; color: var(--ed-ink); margin: 10px 0 0; }
.ed-postcard__excerpt { font-size: 14px; line-height: 1.6; color: var(--ed-600); margin: 8px 0 0; flex: 1; }
.ed-postcard__more { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--ed-blue); display: inline-flex; align-items: center; gap: 6px; }
a.ed-card:hover .ed-postcard__more .ed-btn__arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   15. Utilities
   -------------------------------------------------------------------------- */
.ed-dots {
  background-image: radial-gradient(circle, var(--ed-300) 1px, transparent 1px);
  background-size: 26px 26px;
}
.ed-list-plain { list-style: none; margin: 0; padding: 0; }
.ed-stack { display: grid; gap: 20px; }
.ed-stack--sm { gap: 12px; }
.ed-mt-0 { margin-top: 0 !important; }
.ed-mt-lg { margin-top: 40px; }
.ed-hide-sm { display: none; }
@media (min-width: 640px) { .ed-hide-sm { display: revert; } }
.ed-show-sm { display: revert; }
@media (min-width: 640px) { .ed-show-sm { display: none; } }
.ed-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Cross/tick list (e.g. "what the migration leaves behind") */
.ed-marklist { display: grid; gap: 16px; }
.ed-mark { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--ed-200); border-radius: var(--ed-r-lg); padding: 18px 20px; box-shadow: var(--ed-shadow-panel); }
.ed-mark__i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ed-mark--x .ed-mark__i { background: var(--ed-bad-bg); color: var(--ed-bad); }
.ed-mark--check .ed-mark__i { background: var(--ed-good-bg); color: var(--ed-good); }
.ed-mark p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ed-700); }

/* --------------------------------------------------------------------------
   16. Motion — scroll reveals (progressive enhancement; JS adds .is-in)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-rv] {
    opacity: 0; transform: translateY(46px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
  }
  [data-rv="left"] { transform: translateX(-52px); }
  [data-rv="right"] { transform: translateX(52px); }
  [data-rv="rise"] { transform: translateY(60px) scale(.97); }
  [data-rv].is-in { opacity: 1; transform: none; }

  .ed-hero__inner > * { animation: ed-rise .9s cubic-bezier(.16,1,.3,1) both; }
  .ed-hero__inner > *:nth-child(2) { animation-delay: .1s; }
  .ed-hero__inner > *:nth-child(3) { animation-delay: .2s; }
  .ed-hero__inner > *:nth-child(4) { animation-delay: .3s; }
  .ed-hero__inner > *:nth-child(5) { animation-delay: .38s; }
}
@keyframes ed-rise { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }

/* If JS fails, never leave content invisible */
.no-js [data-rv] { opacity: 1 !important; transform: none !important; }

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
  .ed-header, .ed-footer, .ed-cta, .ed-shot::before { display: none !important; }
  .ed-hero { background: #fff !important; color: #000 !important; }
  .ed-hero .ed-h1, .ed-hero .ed-lede { color: #000 !important; }
  [data-rv] { opacity: 1 !important; transform: none !important; }
}
