/**
 * @file: seminar.css
 * @description: Landing layer for the 15 November 2026 seminar page. Loaded after ai-ready-calm.css.
 * @created: 2026-11-05
 */

.seminar-page {
  --sem-ink: #18252e;
  --sem-muted: #50646b;
  --sem-teal: #1c3a42;
  --sem-teal-2: #367b76;
  --sem-mint: #e3f1ee;
  --sem-line: #cbd9d5;
  --sem-sun: #f2b33d;
  --sem-sun-hover: #ffc75c;
  --sem-sun-soft: #fff1cf;
  --sem-sun-ink: #6b4400;
  --sem-card: #ffffff;
}

.seminar-page main {
  overflow-x: clip;
}

/* Buttons: one warm, unmistakable action colour on this page */
.seminar-page .button-primary {
  background: var(--sem-sun);
  color: #1d2a2e;
  box-shadow: 0 10px 24px -12px rgba(176, 116, 0, .55);
}

.seminar-page .button-primary:hover {
  background: var(--sem-sun-hover);
}

/* ---------- Hero ---------- */
.sem-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: 4rem;
  padding-block: 3.5rem 6rem;
}

.sem-hero::before {
  content: '';
  position: absolute;
  inset: -6rem -20vw auto auto;
  width: 60vw;
  height: 46rem;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(127, 199, 189, .32), transparent 70%) 20% 30% / 70% 70% no-repeat,
    radial-gradient(closest-side, rgba(242, 179, 61, .22), transparent 70%) 80% 70% / 55% 55% no-repeat;
  pointer-events: none;
}

.sem-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.6rem;
  padding: .5rem .9rem;
  border: 1px solid var(--sem-line);
  border-radius: 100px;
  background: rgba(255, 255, 255, .75);
  color: #2f5f5b;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
}

.sem-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sem-sun);
  box-shadow: 0 0 0 4px rgba(242, 179, 61, .25);
}

.sem-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.35rem);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.04;
  color: var(--sem-ink);
}

.sem-lead {
  max-width: 620px;
  margin: 1.5rem 0 0;
  color: #2b464c;
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.6;
}

.sem-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.sem-facts li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem .55rem .65rem;
  border: 1px solid var(--sem-line);
  border-radius: 100px;
  background: var(--sem-card);
  color: var(--sem-ink);
  font-size: .95rem;
  font-weight: 600;
}

.sem-facts .sem-fact-accent {
  border-color: #efd18d;
  background: var(--sem-sun-soft);
  color: var(--sem-sun-ink);
}

.sem-ico svg,
.sem-card-ico svg,
.sem-check svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sem-ico {
  color: var(--sem-teal-2);
}

.sem-fact-accent .sem-ico {
  color: #b37800;
}

.sem-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2rem;
}

.sem-cta {
  min-height: 58px;
  padding-inline: 1.8rem;
  font-size: 1.02rem;
}

.sem-more {
  color: #2f5f5b;
  font-weight: 700;
  text-underline-offset: .35em;
}

.sem-cta-note {
  max-width: 520px;
  margin: 1rem 0 0;
  color: var(--sem-muted);
  font-size: .9rem;
  line-height: 1.55;
}

/* Chat mock-up */
.sem-mock {
  position: relative;
}

.sem-mock-glow {
  position: absolute;
  inset: 8% -4% -6% 6%;
  border-radius: 40px;
  background: linear-gradient(135deg, #bfe3dc, #ffe2a6);
  filter: blur(2px);
  opacity: .7;
  transform: rotate(3deg);
}

.sem-chat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 1.1rem 1.25rem 1.4rem;
  border: 1px solid #d6e2df;
  border-radius: 26px;
  background: var(--sem-card);
  box-shadow: 0 30px 60px -30px rgba(28, 58, 66, .45);
}

.sem-chat-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid #e6eeec;
}

.sem-chat-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d4dfdc;
}

.sem-chat-bar b {
  margin-left: .5rem;
  color: var(--sem-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .05em;
}

.sem-letter {
  padding: .9rem 1rem;
  border: 1px dashed #d9c79c;
  border-radius: 14px;
  background: #fffaf0;
}

.sem-letter p {
  margin: 0;
  color: #3a3a32;
  font-size: .92rem;
  line-height: 1.55;
}

.sem-letter .sem-letter-label {
  margin-bottom: .35rem;
  color: #8a6a1f;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .66rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sem-letter mark {
  padding: 0 .2em;
  border-radius: 4px;
  background: #ffe08a;
  color: inherit;
}

.sem-msg {
  max-width: 88%;
  margin: 0;
  padding: .75rem 1rem;
  border-radius: 18px;
  font-size: .93rem;
  line-height: 1.5;
}

.sem-msg-user {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: var(--sem-teal);
  color: #f2f8f6;
}

.sem-msg-ai {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: var(--sem-mint);
  color: #19343a;
}

.sem-check {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  padding: .4rem .75rem .4rem .5rem;
  border-radius: 100px;
  background: #dff3e6;
  color: #1e6b45;
  font-size: .82rem;
  font-weight: 700;
}

.sem-check svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

/* ---------- Sections ---------- */
.seminar-page .section-pad {
  padding-block: 6rem;
}

.seminar-page .section-heading h2 {
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  letter-spacing: -.045em;
}

.sem-band {
  border-block: 1px solid #d5e0dd;
  background: #eef4f2;
}

.sem-small {
  margin: 1.6rem 0 0;
  color: var(--sem-muted);
  font-size: .9rem;
  line-height: 1.6;
}

.sem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.sem-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--sem-line);
  border-radius: 22px;
  background: var(--sem-card);
}

.sem-card h3 {
  margin: .7rem 0 .55rem;
  color: var(--sem-ink);
  font-size: 1.22rem;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.sem-card p {
  margin: 0;
  color: var(--sem-muted);
  line-height: 1.6;
}

.sem-card .sem-tag {
  margin-top: 1rem;
}

.sem-card-main {
  border-color: #efd18d;
  background: linear-gradient(160deg, #fff8e6, #ffffff 65%);
}

.sem-card-ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sem-mint);
  color: var(--sem-teal-2);
}

.sem-card-ico svg {
  width: 24px;
  height: 24px;
}

.sem-card-main .sem-card-ico {
  background: var(--sem-sun-soft);
  color: #a86f00;
}

.sem-tag {
  align-self: flex-start;
  margin: 0;
  padding: .25rem .6rem;
  border-radius: 100px;
  background: #eef4f2;
  color: #3f6d69;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sem-card-main .sem-tag {
  background: var(--sem-sun-soft);
  color: var(--sem-sun-ink);
}

.sem-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 4rem;
}

.sem-checklist {
  display: grid;
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sem-checklist li {
  position: relative;
  padding: 1rem 1.2rem 1rem 3.4rem;
  border: 1px solid var(--sem-line);
  border-radius: 16px;
  background: var(--sem-card);
  color: #22383e;
  font-size: 1.04rem;
  line-height: 1.5;
}

.sem-checklist li::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sem-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23367b76' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.sem-safety {
  margin: 1.2rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--sem-sun);
  border-radius: 0 12px 12px 0;
  background: var(--sem-sun-soft);
  color: #4d3a12;
  line-height: 1.6;
}

.sem-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.sem-steps li {
  padding: 1.6rem;
  border: 1px solid var(--sem-line);
  border-radius: 22px;
  background: var(--sem-card);
}

.sem-step-n {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sem-teal);
  color: #f2f8f6;
  font-weight: 700;
}

.sem-steps h3 {
  margin: 1rem 0 .5rem;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.sem-steps p {
  margin: 0;
  color: var(--sem-muted);
  line-height: 1.6;
}

.sem-feedback {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.sem-feedback .sem-card h3 {
  margin-top: .9rem;
}

/* Host */
.sem-host {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 920px;
  padding: 2.4rem;
  border: 1px solid var(--sem-line);
  border-radius: 28px;
  background: var(--sem-card);
}

.sem-host-photo {
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

.sem-host-initials {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #1c3a42, #367b76 60%, #f2b33d);
  color: #f5f8f7;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -.04em;
}

.sem-host .eyebrow {
  margin-bottom: .6rem;
}

.sem-host-name {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -.04em;
  line-height: 1.1;
}

.sem-host-role {
  margin: .4rem 0 0;
  color: var(--sem-teal-2);
  font-weight: 700;
}

.sem-host p:not(.eyebrow):not(.sem-host-role) {
  margin: 1rem 0 0;
  color: var(--sem-muted);
  line-height: 1.65;
}

.sem-host-link {
  display: inline-block;
  margin-top: 1rem;
  color: #2f5f5b;
  font-weight: 700;
  text-underline-offset: .3em;
}

/* Details */
.sem-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.sem-details > div {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--sem-line);
  border-radius: 18px;
  background: var(--sem-card);
}

.sem-details .eyebrow {
  margin-bottom: .6rem;
}

.sem-details p:not(.eyebrow) {
  margin: 0;
  color: #22383e;
  line-height: 1.55;
}

/* FAQ */
.sem-faq {
  display: grid;
  gap: .7rem;
}

.sem-faq details {
  border: 1px solid var(--sem-line);
  border-radius: 16px;
  background: var(--sem-card);
}

.sem-faq summary {
  position: relative;
  padding: 1.1rem 3.2rem 1.1rem 1.3rem;
  color: var(--sem-ink);
  font-size: 1.05rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.sem-faq summary::-webkit-details-marker {
  display: none;
}

.sem-faq summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 1.2rem;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sem-mint);
  color: var(--sem-teal-2);
  font-size: 1.2rem;
  transform: translateY(-50%);
}

.sem-faq details[open] summary::after {
  content: '−';
}

.sem-faq summary:focus-visible {
  outline: 2px solid #3b8580;
  outline-offset: 3px;
  border-radius: 16px;
}

.sem-faq details p {
  margin: 0;
  padding: 0 1.3rem 1.2rem;
  color: var(--sem-muted);
  line-height: 1.65;
}

/* Final CTA */
.sem-final {
  padding-block: 2rem 3rem;
}

.sem-final-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  overflow: hidden;
  padding: 3.5rem;
  border-radius: 28px;
  background: var(--sem-teal);
  color: #f2f8f6;
}

.sem-final-box::after {
  content: '';
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 179, 61, .35), transparent);
  pointer-events: none;
}

.sem-final-box .eyebrow {
  color: #92c6c0;
}

.sem-final-box h2 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.sem-final-box p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: #bdd3d0;
  line-height: 1.6;
}

.sem-final-actions {
  position: relative;
  z-index: 1;
  flex: 0 0 min(100%, 340px);
}

.sem-final-actions .button {
  width: 100%;
  min-height: 58px;
  font-size: 1.02rem;
}

.sem-final-box .sem-privacy {
  margin-top: 1rem;
  color: #a9c3bf;
  font-size: .78rem;
  line-height: 1.5;
}

.sem-privacy a {
  color: #d9eeea;
  text-underline-offset: .25em;
}

.sem-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.6rem;
  margin-top: 1.4rem;
  color: var(--sem-muted);
  font-size: .92rem;
}

.sem-fallback p {
  margin: 0;
}

.sem-fallback a {
  color: #2f5f5b;
  font-weight: 700;
  text-underline-offset: .3em;
}

/* Sticky mobile CTA */
.sem-sticky {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .sem-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 2rem;
  }

  .sem-mock {
    max-width: 520px;
  }

  .sem-split {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .sem-steps,
  .sem-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sem-final-box {
    flex-direction: column;
    align-items: stretch;
  }

  .sem-final-actions {
    flex-basis: auto;
  }
}

@media (max-width: 700px) {
  .seminar-page {
    padding-bottom: 84px;
  }

  .sem-hero {
    padding-block: 1rem 4rem;
  }

  .sem-badge {
    font-size: .64rem;
    letter-spacing: .03em;
  }

  .sem-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .9rem;
  }

  .sem-more {
    text-align: center;
  }

  .seminar-page .section-pad {
    padding-block: 4.2rem;
  }

  .sem-grid,
  .sem-steps,
  .sem-feedback,
  .sem-details {
    grid-template-columns: 1fr;
  }

  .sem-host {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.6rem;
  }

  .sem-host-photo {
    width: 112px;
    height: 112px;
  }

  .sem-host-initials {
    font-size: 2.2rem;
  }

  .sem-final-box {
    padding: 2rem 1.5rem;
  }

  .sem-sticky {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    border-top: 1px solid #d5e0dd;
    background: rgba(245, 248, 247, .96);
    backdrop-filter: blur(8px);
    transition: transform .25s ease;
  }

  .sem-sticky.is-hidden {
    transform: translateY(110%);
  }

  .sem-sticky span {
    min-width: 0;
    color: var(--sem-ink);
    font-size: .86rem;
    font-weight: 700;
  }

  .sem-sticky .button {
    flex: 0 0 auto;
    min-height: 46px;
    padding-inline: 1.2rem;
  }
}

@media (max-width: 380px) {
  .sem-facts li {
    font-size: .88rem;
  }

  .sem-chat {
    padding-inline: .9rem;
  }

  .sem-msg {
    max-width: 94%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sem-sticky {
    transition: none;
  }
}

/* =========================================================
   Live layer (2026-11-05): animated chat, countdown,
   "how it works" band with live flashcards, scroll reveal.
   Everything is CSS-only except the countdown numbers,
   and everything ends in a readable static state.
   ========================================================= */

/* Faint dot grid behind the hero, fading out to the edges */
.sem-hero::after {
  content: '';
  position: absolute;
  inset: -2rem -10vw 0 30%;
  z-index: -1;
  background-image: radial-gradient(rgba(28, 58, 66, .16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  pointer-events: none;
}

/* Countdown */
.sem-count {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem;
  margin: 1.2rem 0 0;
  padding: .45rem .9rem;
  border-radius: 100px;
  background: var(--sem-teal);
  color: #cfe6e2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .82rem;
  letter-spacing: .02em;
}

.sem-count b {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sem-count [data-i='countLabel'] {
  margin-right: .25rem;
}

.sem-count-dot {
  align-self: center;
  width: 8px;
  height: 8px;
  margin-right: .3rem;
  border-radius: 50%;
  background: #7fe0c9;
  box-shadow: 0 0 0 0 rgba(127, 224, 201, .7);
  animation: semPing 2s ease-out infinite;
}

/* Chat: plays once, about 5 seconds, then stays in its final state */
.sem-ai-wrap {
  position: relative;
  align-self: flex-start;
  max-width: 88%;
}

.sem-ai-wrap .sem-msg-ai {
  max-width: none;
}

.sem-dots {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  gap: 5px;
  padding: .9rem 1rem;
  border-radius: 18px 18px 18px 6px;
  background: var(--sem-mint);
  opacity: 0;
  pointer-events: none;
}

.sem-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #367b76;
  animation: semBounce 1s ease-in-out infinite;
}

.sem-dots i:nth-child(2) { animation-delay: .15s; }
.sem-dots i:nth-child(3) { animation-delay: .3s; }

.sem-chat::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 30%, rgba(127, 199, 189, .9), rgba(242, 179, 61, .8), transparent 70%) 0 0 / 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .sem-chat::after {
    animation: semSweep 6s linear infinite;
  }

  .sem-letter { animation: semIn .5s .2s both; }
  .sem-msg-user { animation: semIn .5s .9s both; }
  .sem-dots { animation: semDots 1.6s 1.6s both; }
  .sem-msg-ai { animation: semIn .4s 1.6s both, semText .5s 3.1s both; }
  .sem-letter mark { animation: semMark .6s 3.5s both; }
  .sem-letter mark + mark { animation-delay: 3.9s; }
  .sem-check { animation: semPop .5s 4.5s both; }

  /* Steps: a light pulse travels along the line */
  .sem-pipe::before {
    animation: semFlow 3.2s linear infinite;
  }

  /* Blocks appear as they scroll in (no JavaScript) */
  @supports (animation-timeline: view()) {
    .sem-card,
    .sem-steps li,
    .sem-checklist li,
    .sem-details > div,
    .sem-pipe li,
    .sem-fc {
      animation: semRise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

@keyframes semIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes semText {
  from { color: transparent; }
  to { color: #19343a; }
}

@keyframes semDots {
  0% { opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

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

@keyframes semMark {
  from { background: transparent; }
  to { background: #ffe08a; }
}

@keyframes semPop {
  0% { opacity: 0; transform: scale(.8); }
  70% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: none; }
}

@keyframes semPing {
  0% { box-shadow: 0 0 0 0 rgba(127, 224, 201, .7); }
  80%, 100% { box-shadow: 0 0 0 8px rgba(127, 224, 201, 0); }
}

@keyframes semSweep {
  from { background-position: 100% 0; }
  to { background-position: -200% 0; }
}

@keyframes semFlow {
  from { background-position: -40% 0; }
  to { background-position: 140% 0; }
}

@keyframes semRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Cards: soft teal glow on hover */
.sem-card,
.sem-steps li {
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.sem-card:hover,
.sem-steps li:hover {
  border-color: #8fcfc5;
  box-shadow: 0 14px 30px -18px rgba(54, 123, 118, .55), 0 0 0 4px rgba(127, 199, 189, .14);
  transform: translateY(-2px);
}

/* ---------- Dark "how it works" band ---------- */
.sem-ai {
  position: relative;
  overflow: hidden;
  padding-block: 6rem;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(127, 199, 189, .22), transparent 60%),
    radial-gradient(40rem 26rem at 0% 110%, rgba(242, 179, 61, .16), transparent 60%),
    #0f2a30;
  color: #e7f2ef;
}

.sem-ai::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(185, 225, 218, .12) 1px, transparent 1.4px);
  background-size: 24px 24px;
  pointer-events: none;
}

.sem-ai .wrap {
  position: relative;
}

.sem-ai .eyebrow {
  color: #7fe0c9;
}

.sem-ai .section-heading h2 {
  color: #ffffff;
}

.sem-ai .section-heading > p:last-child {
  color: #b7cfcb;
}

.sem-pipe {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.sem-pipe::before {
  content: '';
  position: absolute;
  top: 2.15rem;
  left: 6%;
  right: 6%;
  height: 2px;
  background:
    linear-gradient(90deg, transparent, #7fe0c9 45%, #f2b33d 55%, transparent) -40% 0 / 30% 100% no-repeat,
    rgba(185, 225, 218, .22);
}

.sem-pipe li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1rem 1.2rem;
  border: 1px solid rgba(185, 225, 218, .18);
  border-radius: 18px;
  background: rgba(15, 42, 48, .85);
  backdrop-filter: blur(4px);
}

.sem-pipe-n {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  margin-bottom: .4rem;
  border: 1px solid rgba(127, 224, 201, .5);
  border-radius: 10px;
  background: #12363d;
  color: #7fe0c9;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .8rem;
}

.sem-pipe li:last-child .sem-pipe-n {
  border-color: rgba(242, 179, 61, .7);
  color: #f2b33d;
}

.sem-pipe b {
  color: #ffffff;
  font-size: 1.08rem;
}

.sem-pipe-sub {
  color: #9fbcb7;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .76rem;
  line-height: 1.45;
}

.sem-fc-area {
  margin-top: 3rem;
}

.sem-fc-hint {
  margin: 0 0 1rem;
  color: #f2b33d;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .8rem;
  letter-spacing: .04em;
}

.sem-fc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.sem-fc {
  overflow: hidden;
  border-radius: 18px;
  background: #f5f8f7;
  color: #18252e;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7);
}

.sem-fc summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 1.6rem 1rem;
  cursor: pointer;
  list-style: none;
  text-align: center;
}

.sem-fc summary::-webkit-details-marker {
  display: none;
}

.sem-fc summary:focus-visible {
  outline: 2px solid #f2b33d;
  outline-offset: -4px;
  border-radius: 18px;
}

.sem-fc-w {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.sem-fc-f {
  color: #50646b;
  font-size: .9rem;
}

.sem-fc-back {
  padding: 1rem 1.1rem 1.2rem;
  border-top: 1px solid #d5e0dd;
  background: #e8f4f1;
}

.sem-fc-back p {
  margin: 0;
}

.sem-fc-t {
  color: #1c3a42;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}

.sem-fc-e {
  margin-top: .7rem !important;
  color: #22383e;
  line-height: 1.5;
}

.sem-fc-x {
  color: #50646b;
  font-size: .92rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: no-preference) {
  .sem-fc[open] .sem-fc-back {
    animation: semIn .3s both;
  }
}

@media (max-width: 1080px) {
  .sem-pipe {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sem-pipe::before {
    display: none;
  }

  .sem-fc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .sem-ai {
    padding-block: 4.2rem;
  }

  .sem-pipe {
    grid-template-columns: 1fr;
    gap: .6rem;
  }

  .sem-pipe li {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: .9rem;
    row-gap: .1rem;
    align-items: center;
    padding: .8rem 1rem;
  }

  .sem-pipe-n {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .sem-fc-grid {
    grid-template-columns: 1fr;
  }

  .sem-count {
    font-size: .76rem;
  }
}
