/* ==========================================================================
   HKGR × Layer Nine — Webinar-Landingpage
   Page-specific styles on top of the Layer Nine Design System
   (tokens → foundations → components → patterns).
   ========================================================================== */

/* --- Brand font ---------------------------------------------------------- */

@font-face {
  font-family: "Akt";
  src: url("../fonts/Akt-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}

/* --- Skip link (accessibility) ------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--on-dark);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--font-sans);
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* --- Prose (multi-paragraph body text) ----------------------------------- */

.prose p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-body);
  max-width: 60ch;
}
.prose p:last-child {
  margin-bottom: 0;
}

/* --- Event meta line ----------------------------------------------------- */

.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.event-meta .sep {
  color: var(--ink-faded);
}
.event-meta--invert {
  color: var(--on-dark);
}
.event-meta--invert .sep {
  color: var(--on-dark-faded);
}

/* --- Organizer line (label in CTA) --------------------------------------- */

.organizer-line {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-faded);
  margin-top: 32px;
}

/* --- Bullet list (audience section) -------------------------------------- */

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bullet-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-body);
  max-width: 56ch;
}
.bullet-list li:last-child {
  margin-bottom: 0;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-deep);
}

/* --- Agenda blocks (rich-content alternative to list-rows) --------------- */

.agenda-blocks {
  border-top: 1px solid var(--line);
  margin-top: 56px;
}
.agenda-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t-base) ease;
}
.agenda-block:hover {
  background: rgba(20, 20, 15, 0.018);
}
.agenda-block__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.agenda-block__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.agenda-block__title {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.agenda-block__desc p {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-body);
  max-width: 68ch;
}
.agenda-block__desc p:last-child {
  margin-bottom: 0;
}

/* --- Nested list (inside agenda blocks) ---------------------------------- */

.nested-list {
  list-style: none;
  margin: 4px 0 4px;
  padding: 0;
}
.nested-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-body);
  max-width: 68ch;
}
.nested-list li:last-child {
  margin-bottom: 0;
}
.nested-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-deep);
}

@media (max-width: 880px) {
  .agenda-block {
    grid-template-columns: 64px 1fr;
    gap: 8px 16px;
    padding: 28px 0;
  }
}
@media (max-width: 540px) {
  .agenda-block {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .agenda-block__num {
    margin-bottom: 2px;
  }
}

/* --- Facts table --------------------------------------------------------- */

.facts {
  width: 100%;
  border-collapse: collapse;
  margin-top: 56px;
}
.facts th,
.facts td {
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.facts th {
  width: 180px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  white-space: nowrap;
}
.facts td {
  font-size: 16px;
  color: var(--ink-body);
}
.facts td a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.facts td a:hover {
  color: var(--ink-mute);
}

/* --- Registration form (dark section, two-step no-op) -------------------- */

.signup {
  max-width: 600px;
}
.signup__intro {
  margin-top: 28px;
}

/* Step transitions */
.signup__step {
  display: none;
}
.signup__step.is-active {
  display: block;
}
.signup__step.is-done {
  display: none;
}

/* Field groups */
.signup__field {
  margin-top: 28px;
}
.signup__field:first-of-type {
  margin-top: 0;
}
.signup__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  margin-bottom: 10px;
}
.signup__hint {
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark-faded);
  margin-top: 8px;
}

/* Email input — full width on dark */
.signup__email-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.signup__email-row .input--invert {
  flex: 1 1 auto;
  min-width: 0;
}
.signup__email-row .pill--sage {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Checkbox grid (question 1) */
.signup__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
}
.signup__choice {
  position: relative;
  display: flex;
}
.signup__choice input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.signup__choice label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--on-dark-mute);
  cursor: pointer;
  position: relative;
  transition: border-color var(--t-fast) ease,
              background-color var(--t-fast) ease,
              color var(--t-fast) ease;
}
.signup__choice label::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1.5px solid var(--on-dark-faded);
  border-radius: 4px;
  transition: border-color var(--t-fast) ease,
              background-color var(--t-fast) ease;
}
.signup__choice label:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--on-dark);
}
.signup__choice input[type="checkbox"]:focus-visible + label {
  outline: 3px solid var(--sage-deep);
  outline-offset: 2px;
}
.signup__choice input[type="checkbox"]:checked + label {
  border-color: var(--sage);
  background: rgba(183, 194, 160, 0.12);
  color: var(--on-dark);
}
.signup__choice input[type="checkbox"]:checked + label::before {
  border-color: var(--sage);
  background: var(--sage);
}
.signup__choice input[type="checkbox"]:checked + label::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 19px;
  transform: rotate(45deg);
  width: 5px;
  height: 10px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
}

/* Radio list (question 2) */
.signup__radios {
  list-style: none;
  margin: 0;
  padding: 0;
}
.signup__radio {
  position: relative;
  margin-bottom: 8px;
}
.signup__radio:last-child {
  margin-bottom: 0;
}
.signup__radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.signup__radio label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--on-dark-mute);
  cursor: pointer;
  position: relative;
  transition: border-color var(--t-fast) ease,
              background-color var(--t-fast) ease,
              color var(--t-fast) ease;
}
.signup__radio label::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1.5px solid var(--on-dark-faded);
  border-radius: 50%;
  transition: border-color var(--t-fast) ease;
}
.signup__radio label:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--on-dark);
}
.signup__radio input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--sage-deep);
  outline-offset: 2px;
}
.signup__radio input[type="radio"]:checked + label {
  border-color: var(--sage);
  background: rgba(183, 194, 160, 0.12);
  color: var(--on-dark);
}
.signup__radio input[type="radio"]:checked + label::before {
  border-color: var(--sage);
  background: radial-gradient(circle at center, var(--sage) 0 7px, transparent 8px);
}

/* Textarea */
.signup__textarea {
  width: 100%;
}

/* Step actions */
.signup__actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  align-items: center;
}

/* Success state */
.signup__success {
  display: none;
  padding: 24px 0 0;
}
.signup__success.is-visible {
  display: block;
}
.signup__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage);
  margin-bottom: 20px;
}
.signup__success-icon svg {
  width: 24px;
  height: 24px;
}
.signup__success h3 {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--on-dark);
  margin-bottom: 12px;
}
.signup__success p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--on-dark-mute);
  max-width: 52ch;
}
.signup__success-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Progress indicator */
.signup__progress {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  margin-bottom: 28px;
}
.signup__progress-dot {
  width: 48px;
  height: 5px;
  border-radius: 3px;
  background: var(--line-dark);
  transition: background-color var(--t-base) ease;
}
.signup__progress-dot.is-active {
  background: var(--sage);
}
.signup__progress-dot.is-done {
  background: var(--sage-deep);
}

/* --- CTA section layout (for intro text, no form) ------------------------ */

.cta-single {
  max-width: 680px;
}
.cta-single .hero__cta {
  margin-top: 40px;
}

/* --- Focus visibility for nav links -------------------------------------- */

.nav__links a:not(.pill):focus-visible {
  outline: 3px solid var(--sage-deep);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --- Responsive tweaks --------------------------------------------------- */

@media (max-width: 540px) {
  .facts th {
    width: 120px;
    font-size: 12px;
  }
  .event-meta {
    font-size: 13px;
  }
  .signup__choices {
    grid-template-columns: 1fr;
  }
  .signup__email-row {
    flex-direction: column;
  }
  .signup__email-row .pill--sage {
    width: 100%;
  }
}
