/* ==========================================================================
   home.css - the redesigned home page (front-page.php), 2026-10-21

   Everything here is scoped under .emhp, the <main> that follows the hero,
   so no rule can reach another page. The hero itself is unchanged and still
   styled by style.css.

   Loaded only on the front page, after surfaces.css. A separate file rather
   than more style.css: see the header of _tokens.css and RESPONSIVE_APP_UI_PLAN.

   Breakpoints follow the token scale: 768 (tablet), 1024, 1200 (desktop).
   ========================================================================== */

.emhp {
  --emhp-accent: #388E3C;
  --emhp-green: #2e7d32;
  --emhp-green-soft: #e8f5e9;
  --emhp-ink: #0d1f0d;
  --emhp-muted: #5a6b5a;
  --emhp-line: #e2ebe2;
  --emhp-tint: #f5faf5;
  --emhp-dark: #0b1a0c;
  --emhp-radius: 20px;

  width: 100%;
  color: var(--emhp-ink);
  font-family: var(--font-base, "Poppins", system-ui, sans-serif);
}

.emhp *,
.emhp *::before,
.emhp *::after {
  box-sizing: border-box;
}

/* Resets wrapped in :where() so they carry zero specificity: a component's own
   margin (.emhp-stats, .emhp-apps ...) must always beat them. Each keeps its
   element's own specificity (0,0,1), so as the last stylesheet loaded it still
   wins over Bootstrap's reboot and style.css's bare `a`, `p`, `ul` rules. */
:where(.emhp) ul,
:where(.emhp) dl,
:where(.emhp) dd,
:where(.emhp) p {
  margin: 0;
  padding: 0;
}

:where(.emhp) ul {
  list-style: none;
}

:where(.emhp) a {
  color: inherit;
  text-decoration: none;
}

.emhp svg {
  flex-shrink: 0;
}

.emhp :focus-visible {
  outline: 3px solid rgba(56, 142, 60, .45);
  outline-offset: 3px;
  border-radius: 10px;
}

/* --- Layout -------------------------------------------------------------- */

.emhp-wrap {
  width: 100%;
  max-width: var(--container-lg, 1200px);
  margin: 0 auto;
  padding: 0 var(--gutter, 16px);
}

.emhp-section {
  padding: clamp(56px, 8vw, 104px) 0;
  scroll-margin-top: 80px;
}

.emhp-section--tint {
  background: var(--emhp-tint);
  border-top: 1px solid var(--emhp-line);
  border-bottom: 1px solid var(--emhp-line);
}

.emhp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.emhp-split {
  display: grid;
  gap: 40px;
  align-items: center;
}

/* --- Type ---------------------------------------------------------------- */

.emhp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--emhp-green-soft);
  color: var(--emhp-green);
  font-size: var(--fs-xs, .78rem);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.emhp-eyebrow--light {
  background: rgba(255, 255, 255, .08);
  color: #a5d6a7;
}

.emhp .emhp-title {
  margin: 14px 0 12px;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--emhp-ink);
}

.emhp-accent {
  color: var(--emhp-accent);
}

.emhp .emhp-lede {
  max-width: 54ch;
  font-size: var(--fs-base, 1rem);
  line-height: 1.65;
  color: var(--emhp-muted);
}

.emhp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--emhp-accent);
  transition: gap .2s ease;
}

.emhp-link {
  color: var(--emhp-accent);
}

.emhp-link:hover {
  gap: 10px;
}

/* --- Buttons --------------------------------------------------------------- */

.emhp-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.emhp a.emhp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap-min, 44px);
  padding: 12px 24px;
  border: 1.5px solid var(--emhp-accent);
  border-radius: 999px;
  background: var(--emhp-accent);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm, .95rem);
  box-shadow: 0 6px 18px rgba(56, 142, 60, .25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.emhp a.emhp-btn:hover {
  background: var(--emhp-green);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(56, 142, 60, .32);
}

.emhp-split-copy > a.emhp-btn {
  margin-top: 28px;
}

.emhp a.emhp-btn--ghost {
  background: transparent;
  color: var(--emhp-green);
  box-shadow: none;
}

.emhp a.emhp-btn--ghost:hover {
  background: var(--emhp-green-soft);
  box-shadow: none;
}

.emhp a.emhp-btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--emhp-green);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.emhp a.emhp-btn--light:hover {
  background: #f1f8f1;
}

.emhp a.emhp-btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
  box-shadow: none;
}

.emhp a.emhp-btn--ghost-light:hover {
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
}

/* --- Tool dock ------------------------------------------------------------- */

.emhp-dock {
  position: relative;
  z-index: 2;
  margin-top: -36px;
}

.emhp-dock-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid var(--emhp-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(13, 31, 13, .10);
}

.emhp-dock-list::-webkit-scrollbar {
  display: none;
}

.emhp-dock-list > li {
  scroll-snap-align: start;
}

.emhp-dock-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 18px;
  transition: background .2s ease;
}

.emhp-dock-item:hover {
  background: var(--emhp-tint);
}

.emhp-dock-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--emhp-green-soft);
  color: var(--emhp-green);
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease;
}

.emhp-dock-item:hover .emhp-dock-icon {
  background: var(--emhp-accent);
  color: #fff;
}

.emhp-dock-text {
  display: grid;
  line-height: 1.25;
  min-width: 0;
}

.emhp-dock-text strong {
  font-size: var(--fs-sm, .92rem);
  font-weight: 600;
  white-space: nowrap;
}

.emhp-dock-text small {
  font-size: var(--fs-xs, .78rem);
  color: var(--emhp-muted);
  white-space: nowrap;
}

/* --- Library --------------------------------------------------------------- */

.emhp-lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.emhp-lib-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--emhp-line);
  border-radius: var(--emhp-radius);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.emhp-lib-card:hover {
  transform: translateY(-4px);
  border-color: #c8e0c9;
  box-shadow: 0 16px 40px rgba(13, 31, 13, .08);
}

.emhp-lib-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.emhp-lib-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--emhp-green-soft);
  color: var(--emhp-green);
}

.emhp-lib-meta {
  display: grid;
  min-width: 0;
}

.emhp-lib-name {
  font-size: var(--fs-lg, 1.15rem);
  font-weight: 700;
  line-height: 1.25;
}

.emhp-lib-blurb {
  font-size: var(--fs-xs, .8rem);
  color: var(--emhp-muted);
}

.emhp-lib-count {
  min-width: 38px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emhp-tint);
  border: 1px solid var(--emhp-line);
  font-size: var(--fs-xs, .78rem);
  font-weight: 600;
  text-align: center;
  color: var(--emhp-green);
}

.emhp-lib-posts {
  display: grid;
  /* minmax(0, 1fr), not the default auto track: an auto track grows to the
     longest title and the ellipsis below never kicks in. */
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  margin: 18px 0 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--emhp-line);
}

.emhp-lib-posts a {
  position: relative;
  display: block;
  padding: 6px 0 6px 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fs-sm, .9rem);
  color: #2b3a2b;
  transition: color .15s ease;
}

.emhp-lib-posts a::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #b9d8ba;
}

.emhp-lib-posts a:hover {
  color: var(--emhp-accent);
}

.emhp-lib-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  font-size: var(--fs-sm, .9rem);
  font-weight: 600;
  color: var(--emhp-accent);
}

.emhp-lib-more {
  color: var(--emhp-accent);
}

.emhp-lib-card:hover .emhp-lib-more {
  gap: 10px;
}

/* --- Shared "visual" column ------------------------------------------------ */

.emhp-split-visual {
  position: relative;
  min-width: 0;
}

.emhp-split-visual::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 142, 60, .16), transparent);
  filter: blur(30px);
  pointer-events: none;
}

.emhp-split-visual > * {
  position: relative;
  z-index: 1;
}

/* --- Test Your Knowledge ------------------------------------------------- */

.emhp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 26px 0 22px;
}

.emhp-stats dt {
  font-size: var(--fs-xl, 1.7rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--emhp-green);
}

.emhp-stats dd {
  font-size: var(--fs-xs, .78rem);
  color: var(--emhp-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.emhp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emhp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 8px 6px 14px;
  border: 1px solid var(--emhp-line);
  border-radius: 999px;
  background: #fff;
  font-size: var(--fs-sm, .88rem);
  font-weight: 500;
  transition: border-color .2s ease, color .2s ease;
}

.emhp-chip span {
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emhp-green-soft);
  color: var(--emhp-green);
  font-size: .75rem;
  font-weight: 600;
  text-align: center;
}

.emhp-chip:hover {
  border-color: var(--emhp-accent);
  color: var(--emhp-green);
}

.emhp-quiz {
  max-width: 460px;
  margin: 0 auto;
  padding: 26px;
  border: 1px solid var(--emhp-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(13, 31, 13, .12);
}

.emhp-quiz-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--fs-xs, .78rem);
  color: var(--emhp-muted);
}

.emhp-quiz-tag {
  font-weight: 600;
  color: var(--emhp-green);
}

.emhp-quiz-bar {
  height: 6px;
  margin: 12px 0 20px;
  border-radius: 999px;
  background: var(--emhp-green-soft);
  overflow: hidden;
}

.emhp-quiz-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #66bb6a, var(--emhp-green));
}

.emhp .emhp-quiz-q {
  margin-bottom: 16px;
  font-size: var(--fs-lg, 1.1rem);
  font-weight: 600;
  line-height: 1.4;
}

.emhp-quiz-q em {
  font-style: normal;
  color: var(--emhp-accent);
}

.emhp-quiz-opts {
  display: grid;
  gap: 8px;
}

.emhp-quiz-opts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1.5px solid var(--emhp-line);
  border-radius: 14px;
  font-size: var(--fs-sm, .92rem);
  font-weight: 500;
}

.emhp-quiz-opts li > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--emhp-tint);
  font-size: .78rem;
  font-weight: 700;
  color: var(--emhp-muted);
}

.emhp-quiz-opts li.is-picked {
  border-color: var(--emhp-accent);
  background: var(--emhp-green-soft);
  color: var(--emhp-green);
}

.emhp-quiz-opts li.is-picked > span {
  background: var(--emhp-accent);
  color: #fff;
}

.emhp-quiz-opts li.is-picked svg {
  margin-left: auto;
}

.emhp-quiz-score {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--emhp-line);
}

.emhp-quiz-ring {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(var(--emhp-accent) 0 85%, var(--emhp-green-soft) 0);
  flex-shrink: 0;
}

.emhp-quiz-ring b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  font-size: .8rem;
  color: var(--emhp-green);
}

.emhp-quiz-score strong {
  display: block;
  font-size: var(--fs-sm, .95rem);
}

.emhp-quiz-score small {
  font-size: var(--fs-xs, .78rem);
  color: var(--emhp-muted);
}

/* --- Shortcuts ------------------------------------------------------------- */

.emhp-apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 26px;
}

.emhp-apps a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--emhp-line);
  border-radius: 14px;
  background: #fff;
  font-size: var(--fs-sm, .9rem);
  transition: border-color .2s ease, transform .2s ease;
}

.emhp-apps a:hover {
  border-color: var(--app, var(--emhp-accent));
  transform: translateX(3px);
}

.emhp-apps-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--app, var(--emhp-accent));
  flex-shrink: 0;
}

.emhp-apps-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
}

.emhp-apps-num {
  font-size: var(--fs-xs, .78rem);
  color: var(--emhp-muted);
}

.emhp-sotd {
  max-width: 480px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(102, 187, 106, .25), transparent 55%),
    var(--emhp-dark);
  color: #fff;
  box-shadow: 0 30px 70px rgba(13, 31, 13, .28);
}

.emhp-sotd-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #a5d6a7;
  font-size: var(--fs-xs, .75rem);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.emhp .emhp-sotd-action {
  margin: 18px 0 4px;
  font-size: var(--fs-xl, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.emhp-sotd-section {
  font-size: var(--fs-xs, .8rem);
  color: rgba(255, 255, 255, .55);
}

.emhp-sotd-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.emhp-sotd-os {
  width: 64px;
  font-size: var(--fs-xs, .78rem);
  color: rgba(255, 255, 255, .6);
}

.emhp-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.emhp kbd {
  min-width: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 -3px 0 #c9d6c9, 0 4px 10px rgba(0, 0, 0, .25);
  color: var(--emhp-ink);
  font-family: inherit;
  font-size: var(--fs-sm, .88rem);
  font-weight: 600;
  text-align: center;
}

.emhp-plus {
  color: rgba(255, 255, 255, .5);
  font-weight: 600;
}

/* --- Courses (dark) ------------------------------------------------------- */

.emhp-section--dark {
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(56, 142, 60, .28), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(56, 142, 60, .14), transparent 70%),
    var(--emhp-dark);
  color: #fff;
}

.emhp-section--dark .emhp-title {
  color: #fff;
}

.emhp-section--dark .emhp-accent {
  color: #81c784;
}

.emhp-section--dark .emhp-lede {
  color: rgba(255, 255, 255, .68);
}

.emhp-link--light {
  color: #a5d6a7;
}

.emhp-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.emhp-course {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--emhp-radius);
  background: rgba(255, 255, 255, .04);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.emhp-course:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 199, 132, .45);
  background: rgba(255, 255, 255, .07);
}

.emhp-course-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1b5e20, #2e7d32 55%, #43a047);
  background-size: cover;
  background-position: center;
}

.emhp-course-ph {
  color: rgba(255, 255, 255, .85);
}

.emhp-course-price {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--emhp-green);
  font-size: var(--fs-xs, .78rem);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.emhp-course-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.emhp-course-title {
  font-size: var(--fs-lg, 1.1rem);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.emhp-course-excerpt {
  font-size: var(--fs-sm, .88rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .62);
}

.emhp-course-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-size: var(--fs-sm, .88rem);
  font-weight: 600;
  color: #a5d6a7;
  transition: gap .2s ease;
}

.emhp-course:hover .emhp-course-cta {
  gap: 10px;
}

/* --- Q&A ------------------------------------------------------------------- */

.emhp-section--qa {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(56, 142, 60, .12), transparent 70%),
    linear-gradient(180deg, #fff, var(--emhp-tint));
}

.emhp .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.emhp-qa-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.emhp-qa-intro .emhp-lede {
  margin: 0 auto;
}

.emhp-askbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 30px auto 0;
  padding: 8px 8px 8px 18px;
  border: 1.5px solid var(--emhp-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(13, 31, 13, .10);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.emhp-askbar:focus-within {
  border-color: var(--emhp-accent);
  box-shadow: 0 18px 50px rgba(13, 31, 13, .10), 0 0 0 5px rgba(56, 142, 60, .12);
}

.emhp-askbar-icon {
  color: var(--emhp-accent);
}

.emhp .emhp-askbar input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--emhp-ink);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming into the field */
  box-shadow: none;
  outline: none;
}

.emhp .emhp-askbar input::placeholder {
  color: #93a393;
}

.emhp .emhp-askbar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--emhp-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease;
}

.emhp .emhp-askbar button:hover {
  background: var(--emhp-green);
}

.emhp-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.emhp-prompts-label {
  font-size: var(--fs-xs, .8rem);
  color: var(--emhp-muted);
}

.emhp-prompt {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px dashed #b9d8ba;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  font-size: var(--fs-xs, .82rem);
  font-weight: 500;
  color: var(--emhp-green);
  transition: background .2s ease, border-color .2s ease;
}

.emhp-prompt:hover {
  border-style: solid;
  border-color: var(--emhp-accent);
  background: var(--emhp-green-soft);
}

.emhp-qa-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-top: clamp(40px, 6vw, 72px);
}

/* How it works: a numbered rail with the AI step highlighted. */
.emhp-steps {
  position: relative;
  display: grid;
  gap: 26px;
  counter-reset: emhp-step;
}

.emhp-steps > li:not(.emhp-steps-cta) {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.emhp-steps > li:not(.emhp-steps-cta):not(:nth-child(3))::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 56px;
  bottom: -22px;
  width: 2px;
  background: repeating-linear-gradient(var(--emhp-line) 0 6px, transparent 6px 10px);
}

.emhp-step-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--emhp-line);
  background: #fff;
  color: var(--emhp-green);
  flex-shrink: 0;
}

.emhp-steps .is-ai .emhp-step-icon {
  border-color: transparent;
  background: linear-gradient(135deg, #43a047, #1b5e20);
  color: #fff;
  box-shadow: 0 10px 24px rgba(56, 142, 60, .35);
}

.emhp-steps strong {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-base, 1rem);
  font-weight: 600;
}

.emhp-steps small {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-sm, .9rem);
  line-height: 1.55;
  color: var(--emhp-muted);
}

.emhp-steps-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* Mock thread */
.emhp-thread {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.emhp-thread-q,
.emhp-thread-a {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--emhp-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(13, 31, 13, .07);
}

.emhp-thread-q > div,
.emhp-thread-a > div {
  flex: 1;
  min-width: 0;
}

.emhp-thread-a {
  margin-left: 28px;
}

.emhp-thread-a--ai {
  border-color: #b9d8ba;
  background: linear-gradient(135deg, #f3faf3, #fff 60%);
}

.emhp-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e3ecf8;
  color: #2b579a;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.emhp-avatar--ai {
  background: linear-gradient(135deg, #43a047, #1b5e20);
  color: #fff;
}

.emhp-avatar--user {
  background: #fdeee6;
  color: #c2531f;
}

.emhp .emhp-thread-title {
  font-size: var(--fs-sm, .95rem);
  font-weight: 600;
  line-height: 1.45;
}

.emhp-thread-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.emhp-thread-tags span {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--emhp-green-soft);
  color: var(--emhp-green);
  font-size: .72rem;
  font-weight: 600;
}

.emhp-thread-tags small {
  font-size: .72rem;
  color: var(--emhp-muted);
}

.emhp-thread-a p {
  font-size: var(--fs-sm, .9rem);
  line-height: 1.55;
  color: #2b3a2b;
}

.emhp-thread-a code {
  display: block;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--emhp-dark);
  color: #c5e1a5;
  font-family: ui-monospace, Consolas, monospace;
  font-size: .82rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.emhp-thread-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--emhp-accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.emhp-thread-badge--ok {
  background: #fff;
  border: 1px solid var(--emhp-accent);
  color: var(--emhp-green);
}

.emhp-votes {
  display: grid;
  justify-items: center;
  min-width: 34px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--emhp-green);
  line-height: 1.2;
}

.emhp-votes b {
  font-size: .7rem;
}

/* Latest questions, shown only once the plugin has some. */
.emhp-qa-latest {
  margin-top: clamp(40px, 6vw, 64px);
}

.emhp-qa-latest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.emhp .emhp-qa-latest-head h3 {
  margin: 0;
  font-size: var(--fs-lg, 1.2rem);
  font-weight: 700;
}

.emhp-qa-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 12px;
}

.emhp-qa {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--emhp-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(13, 31, 13, .05);
  transition: transform .2s ease, border-color .2s ease;
}

.emhp-qa:hover {
  transform: translateY(-2px);
  border-color: #c8e0c9;
}

.emhp-qa-count {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--emhp-tint);
  border: 1px solid var(--emhp-line);
  color: var(--emhp-muted);
  line-height: 1.1;
  flex-shrink: 0;
}

.emhp-qa-count b {
  font-size: 1.1rem;
}

.emhp-qa-count small {
  font-size: .65rem;
}

.emhp-qa-count.has-answers {
  background: var(--emhp-accent);
  border-color: var(--emhp-accent);
  color: #fff;
}

.emhp-qa-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.emhp-qa-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: var(--fs-sm, .95rem);
  font-weight: 600;
  line-height: 1.4;
}

.emhp-qa-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: var(--fs-xs, .76rem);
  color: var(--emhp-muted);
}

.emhp-qa-topic {
  max-width: 200px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--emhp-green-soft);
  color: var(--emhp-green);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .emhp-qa-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 72px;
  }
}

@media (max-width: 479px) {
  /* The button keeps its label; the icon goes so the input keeps its room. */
  .emhp-askbar {
    padding-left: 12px;
  }

  .emhp-askbar-icon {
    visibility: hidden;
    width: 0;
    overflow: hidden;
  }

  .emhp .emhp-askbar button {
    padding: 0 16px;
  }

  .emhp-thread-a {
    margin-left: 12px;
  }
}

/* --- Certificates ---------------------------------------------------------- */

.emhp-verify {
  max-width: 460px;
  margin: 26px 0 18px;
}

.emhp-verify label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: var(--fs-sm, .9rem);
  font-weight: 600;
  color: var(--emhp-green);
}

.emhp-verify-row {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1.5px solid var(--emhp-line);
  border-radius: 999px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.emhp-verify-row:focus-within {
  border-color: var(--emhp-accent);
  box-shadow: 0 0 0 4px rgba(56, 142, 60, .12);
}

.emhp .emhp-verify input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--emhp-ink);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming into the field */
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: none;
  outline: none;
}

.emhp .emhp-verify input::placeholder {
  color: #9aa99a;
  text-transform: none;
}

.emhp .emhp-verify button {
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--emhp-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}

.emhp .emhp-verify button:hover {
  background: var(--emhp-green);
}

.emhp-cert {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(13, 31, 13, .14);
  transform: rotate(-2deg);
  transition: transform .4s ease;
}

.emhp-cert:hover {
  transform: rotate(0deg);
}

.emhp-cert-inner {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 26px 22px 18px;
  border: 2px solid var(--emhp-accent);
  outline: 1px solid #c8e0c9;
  outline-offset: -8px;
  border-radius: 10px;
  text-align: center;
}

.emhp-cert-brand {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--emhp-green);
}

.emhp-cert-kicker {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--emhp-muted);
}

.emhp-cert-name {
  margin: 12px 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-style: italic;
  color: var(--emhp-ink);
}

.emhp-cert-line {
  font-size: .78rem;
  color: var(--emhp-muted);
}

.emhp-cert-course {
  font-size: var(--fs-sm, .95rem);
  font-weight: 700;
}

.emhp-cert-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  margin-top: 18px;
  font-size: .72rem;
  font-weight: 600;
  text-align: left;
}

.emhp-cert-foot small {
  display: block;
  font-weight: 400;
  color: var(--emhp-muted);
}

.emhp-cert-qr {
  width: 46px;
  height: 46px;
  border: 4px solid #fff;
  outline: 1px solid var(--emhp-line);
  background: conic-gradient(var(--emhp-ink) 25%, #fff 0 50%, var(--emhp-ink) 0 75%, #fff 0) 0 0 / 9px 9px;
}

.emhp-cert-seal {
  position: absolute;
  right: -14px;
  top: -14px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6d365, #c9a227);
  color: #fff;
  box-shadow: 0 8px 20px rgba(201, 162, 39, .45);
}

/* --- AI assistant ------------------------------------------------------- */

.emhp-ai {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 60px);
  border-radius: 32px;
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(102, 187, 106, .30), transparent 60%),
    linear-gradient(135deg, #0b1a0c, #12301a);
  color: #fff;
}

.emhp-ai .emhp-title {
  color: #fff;
}

.emhp-ai .emhp-accent {
  color: #81c784;
}

.emhp-ai .emhp-lede {
  color: rgba(255, 255, 255, .7);
}

.emhp .emhp-ai-hint {
  margin-top: 16px;
  font-size: var(--fs-xs, .8rem);
  color: rgba(255, 255, 255, .5);
}

.emhp-ai-chat {
  display: grid;
  gap: 10px;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

.emhp-bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: var(--fs-sm, .9rem);
  line-height: 1.5;
}

.emhp-bubble--me {
  justify-self: end;
  border-bottom-right-radius: 6px;
  background: var(--emhp-accent);
  color: #fff;
}

.emhp-bubble--ai {
  justify-self: start;
  border-bottom-left-radius: 6px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .88);
}

.emhp-bubble code {
  display: block;
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .35);
  color: #c5e1a5;
  font-family: ui-monospace, Consolas, monospace;
  font-size: .85rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.emhp-bubble--typing {
  display: flex;
  gap: 5px;
  padding: 14px 16px;
}

.emhp-bubble--typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  animation: emhp-typing 1.2s infinite ease-in-out;
}

.emhp-bubble--typing span:nth-child(2) { animation-delay: .15s; }
.emhp-bubble--typing span:nth-child(3) { animation-delay: .3s; }

@keyframes emhp-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* --- Contact band ------------------------------------------------------ */

.emhp-section--contact {
  padding-top: 0;
}

.emhp-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--emhp-line);
  border-radius: 28px;
  background: var(--emhp-tint);
}

.emhp .emhp-contact-title {
  margin: 0 0 6px;
  font-size: var(--fs-xl, 1.6rem);
  font-weight: 700;
  color: var(--emhp-ink);
}

.emhp-contact p {
  color: var(--emhp-muted);
}

.emhp-contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.emhp-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--emhp-line);
  border-radius: 999px;
  background: #fff;
  font-size: var(--fs-sm, .9rem);
  font-weight: 500;
  color: var(--emhp-ink);
  transition: border-color .2s ease;
}

.emhp-contact-pill svg {
  color: var(--emhp-accent);
}

.emhp-contact-pill:hover {
  border-color: var(--emhp-accent);
}

/* --- Breakpoints ---------------------------------------------------------- */

@media (min-width: 768px) {
  .emhp-wrap {
    padding: 0 var(--gutter-md, 24px);
  }
}

@media (min-width: 1024px) {
  .emhp-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 64px;
  }

  .emhp-split--flip .emhp-split-copy {
    order: 2;
  }

  .emhp-ai {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
  }
}

@media (min-width: 1200px) {
  /* Six tiles fit in one row on desktop; below this the dock scrolls. */
  .emhp-dock-list {
    grid-auto-flow: row;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (max-width: 767px) {
  /* Narrower tiles so a third one peeks in from the edge - otherwise two
     tiles fill the row exactly and nothing says the dock scrolls. */
  .emhp-dock-list {
    grid-auto-columns: minmax(148px, 42%);
  }
}

@media (max-width: 479px) {
  .emhp-apps {
    grid-template-columns: 1fr;
  }

  .emhp-dock {
    margin-top: -28px;
  }

  .emhp-cert {
    transform: none;
  }

  .emhp-cert-seal {
    right: -6px;
    top: -10px;
    width: 48px;
    height: 48px;
  }

  .emhp-contact-actions,
  .emhp-contact-actions > a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .emhp *,
  .emhp *::before,
  .emhp *::after {
    animation: none !important;
    transition: none !important;
  }

  .emhp-cert {
    transform: none;
  }
}
