/* =========================================================================
   ETYC — Platform page
   Stylesheet scoped to /platform — dashboard mockup, EMS detail card,
   reporting card, partners directory grid, audience cards.
   Relies on tokens.css + components.css + site.css.
   ========================================================================= */

/* ---------- Browser window chrome (shared between mockups) ---------- */
.window {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.window__bar {
  height: 44px;
  background: linear-gradient(180deg, #F8FDFF, #fff);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}
.window__bar span.window__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}
.window__bar span.window__dot:nth-child(1) { background: #DE484F; opacity: 0.5; }
.window__bar span.window__dot:nth-child(2) { background: #FFB84D; opacity: 0.5; }
.window__bar span.window__dot:nth-child(3) { background: #6BBBAE; opacity: 0.7; }
.window__address {
  margin-left: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-bg-base);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  letter-spacing: 0.02em;
}
.window__meta {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ---------- Window showing a real product screenshot ---------- */
.window--shot { background: #fff; }
.window__viewport {
  background: #fff;
  display: block;
}
.window__viewport img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- EMS pillars list (left column of EMS detail section) ---------- */
.pillars { list-style: none; padding: 0; margin: 0; }
.pillars li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
}
.pillars__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
}
.pillars__icon--coral   { background: rgba(222, 72, 79, 0.10);  color: var(--color-cta); }
.pillars__icon--teal    { background: rgba(0, 133, 125, 0.14); color: var(--color-primary-soft); }
.pillars__icon--deep    { background: rgba(0, 95, 97, 0.10);   color: var(--color-primary); }
.pillars__title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 16px;
  margin-bottom: 2px;
}
.pillars p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Reporting "framework" cards (left column) ---------- */
.frameworks {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}
.framework {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.framework__icon { flex: none; }
.framework__icon--coral { color: var(--color-cta); }
.framework__icon--teal  { color: var(--color-primary-soft); }
.framework__icon--deep  { color: var(--color-primary); }
.framework__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-primary);
}
.framework__sub {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- Solutions directory (partners preview) ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.solution-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.solution-card:hover {
  box-shadow: 0 12px 32px -14px rgba(10, 31, 34, 0.18);
  border-color: var(--color-accent);
}
.solution-card__thumb {
  height: 132px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #FAFAF7;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
.solution-card__thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.solution-card__name {
  padding: 16px 20px 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--color-primary);
}
.solution-card__cat {
  padding: 0 20px 18px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.solutions-bullets {
  list-style: none;
  padding: 0;
  margin: 32px 0 24px;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.solutions-bullets li { display: flex; gap: 10px; }
.solutions-bullets__arrow { color: var(--color-cta); font-weight: 700; }
.solutions-bullets__strong { font-weight: 600; color: var(--color-primary); }
.solutions-bullets__strong--coral { color: var(--color-cta); }
.solutions-bullets__sub { color: var(--color-text-muted); }

/* ---------- Audience cards ---------- */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .audience { grid-template-columns: 1fr; } }
.audience__card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.audience__role {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-soft);
  font-weight: 600;
  margin-bottom: 12px;
}
.audience__card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-primary);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.audience__card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}
.audience__card ul {
  list-style: none;
  padding: 16px 0 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-primary);
}
.audience__card li {
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.audience__card li::before {
  content: "→";
  color: var(--color-primary-soft);
  font-weight: 600;
}

/* ---------- Solutions section split override (denser) ---------- */
.split--solutions { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 880px) { .split--solutions { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- EMS split override ---------- */
.split--ems { grid-template-columns: 1fr 1.3fr; align-items: start; }
.split--ems > div:nth-child(2) {
  position: sticky;
  top: 100px;
  align-self: start;
}
@media (max-width: 880px) {
  .split--ems { grid-template-columns: 1fr; }
  .split--ems > div:nth-child(2) { position: static; top: auto; }
}

/* ---------- Section header (centered intros) ---------- */
.section-intro {
  max-width: 720px;
  margin: 0 auto 48px;
}

/* ---------- Capability cards: real product thumbnail ---------- */
.lever__shot {
  margin: 18px 0 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-base);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 10;
}
.lever__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Standalone product screenshot (EMS section, etc.) ---------- */
.platform-shot {
  margin: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.platform-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.platform-shot__caption {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 14px 20px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-base);
}

/* ---------- EEOI sample (PDF preview + download CTA) ---------- */
.eeoi-sample {
  background: var(--color-bg-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.eeoi-sample__kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFC9B5;
  font-weight: 600;
}
.eeoi-sample__preview {
  margin: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px;
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.eeoi-sample__preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}
.eeoi-sample__label {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-cta);
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(222, 72, 79, 0.30);
  box-shadow: var(--shadow-sm);
}

.eeoi-download {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  color: #fff;
  text-decoration: none;
  transition: background 340ms cubic-bezier(0.4, 0, 0.2, 1), border-color 340ms cubic-bezier(0.4, 0, 0.2, 1), transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}
.eeoi-download:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 201, 181, 0.5);
  transform: translateY(-1px);
}
.eeoi-download__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 201, 181, 0.16);
  color: #FFC9B5;
  display: grid;
  place-items: center;
  flex: none;
}
.eeoi-download__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.eeoi-download__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.eeoi-download__sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Solutions directory — real partner logo thumb (neutralized, base rules apply) ---------- */
.solution-card__thumb--logo {
  /* inherits .solution-card__thumb */
}

/* =========================================================================
   PLATFORM INTRO (editorial header before the dashboard screenshot)
   ========================================================================= */
.platform-intro { max-width: 62ch; margin: 0 0 2.5rem; padding-top: 0.25rem; }
.platform-intro__eyebrow {
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(14, 67, 66, 0.62);
  margin: 0 0 0.9rem; padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(14, 67, 66, 0.14);
  display: inline-block; padding-right: 2.5rem;
}
.platform-intro__title {
  font-family: var(--font-display, "Fraunces", "Merriweather", Georgia, serif);
  font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.18; letter-spacing: -0.012em;
  color: #0E4342; margin: 0 0 1.1rem; text-wrap: balance;
}
.platform-intro__lede {
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: 1.0625rem; line-height: 1.62;
  color: rgba(14, 67, 66, 0.78);
  margin: 0 0 1.25rem; max-width: 56ch;
}
.platform-intro__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(14, 67, 66, 0.55); margin: 0;
}
.platform-intro__meta i { font-style: normal; color: rgba(14, 67, 66, 0.3); }
@media (max-width: 640px) {
  .platform-intro { margin-bottom: 1.75rem; }
  .platform-intro__eyebrow { padding-right: 1.25rem; }
  .platform-intro__lede { font-size: 1rem; }
}

/* =========================================================================
   AUDIENCE — Three roles · One source of truth (editorial rail)
   ========================================================================= */
.section--audience {
  --aud-ink: #0f1a1e;
  --aud-slate: #6b7a80;
  --aud-hair: rgba(15, 26, 30, 0.12);
  --aud-hair-strong: rgba(15, 26, 30, 0.22);
  --aud-teal: #1f5d5a;
  padding: clamp(72px, 9vw, 128px) 0;
}
.section--audience .section-intro {
  max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px);
}

.audience.audience--rail {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--aud-hair-strong);
}

.aud-card {
  position: relative;
  padding: 40px 36px 44px 36px;
  background: transparent; border: 0;
  border-right: 1px solid var(--aud-hair);
  box-shadow: none; display: flex; flex-direction: column; gap: 18px;
}
.aud-card:last-child { border-right: 0; }

.aud-card__rail {
  position: absolute; top: 0; left: 0;
  width: 1px; height: 24px; background: var(--aud-teal);
  transition: height 480ms cubic-bezier(.2,.7,.2,1);
}
.aud-card:hover .aud-card__rail,
.aud-card:focus-within .aud-card__rail { height: 100%; }

.aud-card__head { display: flex; align-items: baseline; gap: 14px; margin-top: 4px; }
.aud-card__index {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px; letter-spacing: 0.08em; color: var(--aud-slate); font-weight: 500;
}
.aud-card__role.audience__role {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--aud-slate); background: transparent; padding: 0; border: 0;
  display: inline-flex; align-items: center; gap: 10px;
}
.aud-card__role.audience__role::before {
  content: ""; width: 18px; height: 1px; background: var(--aud-hair-strong); display: inline-block;
}

.aud-card__title {
  font-family: "GT Sectra", Georgia, "Times New Roman", serif;
  font-weight: 500; font-size: clamp(20px, 1.55vw, 24px);
  line-height: 1.25; color: var(--aud-ink); margin: 4px 0 4px; letter-spacing: -0.005em;
}
.aud-card__body {
  font-size: 16px; line-height: 1.65;
  color: var(--aud-ink); opacity: 0.86; margin: 0; max-width: 36ch;
}

.aud-card__list {
  list-style: none; padding: 0; margin: 14px 0 0;
  border-top: 1px solid var(--aud-hair); padding-top: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.aud-card__list li {
  position: relative; padding-left: 22px;
  font-size: 14.5px; line-height: 1.5;
  color: var(--aud-ink); opacity: 0.78;
}
.aud-card__list li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 12px; height: 1px; background: var(--aud-teal);
}

@media (max-width: 880px) {
  .audience.audience--rail {
    grid-template-columns: 1fr; border-top: 1px solid var(--aud-hair-strong);
  }
  .aud-card {
    border-right: 0; border-bottom: 1px solid var(--aud-hair);
    padding: 36px 24px 40px;
  }
  .aud-card:last-child { border-bottom: 0; }
  .aud-card__body { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .aud-card__rail { transition: none; } }
