/* Snilld forside 2026 – kurserne som billetter. Almindelig CSS, afgrænset til #snilld-frontier. */

#snilld-frontier .sf-courses {
  --sfc-ink: #0e0a14;
  --sfc-inksoft: #241439;
  --sfc-violet: #6b3eb8;
  --sfc-signal: #2f6bff;
  --sfc-paper: #fbfaf6;
  --sfc-mono: "DM Mono", SFMono-Regular, Consolas, monospace;
  position: relative;
  z-index: 4;
  padding: clamp(64px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
  background: #f8f8fb;
}

#snilld-frontier .sf-courses .sf-lead {
  margin-bottom: 34px;
}

#snilld-frontier .sfc-list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- billetten ---------- */

#snilld-frontier .sfc-ticket {
  --sfx-rx: 0deg;
  --sfx-ry: 0deg;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  border-radius: 20px;
  background: var(--sfc-paper);
  color: var(--sfc-ink);
  box-shadow: 0 1px 0 rgba(36, 20, 57, 0.1), 0 20px 44px rgba(36, 20, 57, 0.16);
  transform: perspective(1400px) rotateX(var(--sfx-rx)) rotateY(var(--sfx-ry));
  transition: transform 500ms cubic-bezier(0.2, 0.85, 0.2, 1), box-shadow 300ms;
}

#snilld-frontier .sfc-ticket.is-tilting {
  transition-duration: 120ms, 300ms;
}

#snilld-frontier .sfc-ticket:hover {
  box-shadow: 0 1px 0 rgba(36, 20, 57, 0.1), 0 30px 64px rgba(36, 20, 57, 0.24);
}

#snilld-frontier .sfc-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 26px 22px;
}

#snilld-frontier .sfc-kind {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--sfc-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sfc-violet);
}

#snilld-frontier .sfc-kind span {
  color: rgba(36, 20, 57, 0.45);
}

#snilld-frontier .sfc-ticket h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.3vw, 30px) !important;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--sfc-inksoft);
  text-wrap: balance;
}

#snilld-frontier .sfc-tag {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  color: rgba(14, 10, 20, 0.86);
}

#snilld-frontier .sfc-text {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.45;
  color: rgba(14, 10, 20, 0.74);
}

#snilld-frontier .sfc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: auto 0 0;
  padding-top: 18px;
}

#snilld-frontier .sfc-price {
  font-family: var(--sfc-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--sfc-inksoft);
}

#snilld-frontier .sfc-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  color: var(--sfc-violet);
  text-decoration: none;
}

#snilld-frontier .sfc-more span {
  transition: transform 200ms;
}

#snilld-frontier .sfc-more:hover span {
  transform: translateX(5px);
}

/* slip-siden: skilt fra billetten med en perforering og to hak */
#snilld-frontier .sfc-side {
  position: relative;
  min-width: 0;
  padding: 18px 20px 20px;
  border-top: 2px dashed rgba(36, 20, 57, 0.28);
}

#snilld-frontier .sfc-side:before,
#snilld-frontier .sfc-side:after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f8f8fb;
}

#snilld-frontier .sfc-side:before { left: -10px; }
#snilld-frontier .sfc-side:after { right: -10px; }

#snilld-frontier .sfc-side-title {
  margin: 0 0 10px;
  font-family: var(--sfc-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(36, 20, 57, 0.6);
}

#snilld-frontier .sfc-stubs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#snilld-frontier .sfc-stubs li {
  margin: 0;
  padding: 0;
}

#snilld-frontier .sfc-stub {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 7px;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 9px 12px 9px 14px;
  border: 1px solid rgba(36, 20, 57, 0.22);
  border-left: 2px dashed rgba(36, 20, 57, 0.35);
  border-radius: 4px 10px 10px 4px;
  background: #fff;
  color: var(--sfc-inksoft);
  font: inherit;
  text-align: left;
  text-decoration: none;
  transform-origin: 0 50%;
  transition: transform 220ms cubic-bezier(0.2, 1.2, 0.4, 1), background-color 180ms, color 180ms, border-color 180ms, box-shadow 220ms;
}

#snilld-frontier .sfc-stub b {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

#snilld-frontier .sfc-stub span {
  font-family: var(--sfc-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#snilld-frontier .sfc-stub small {
  grid-column: 1 / -1;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.2;
  color: rgba(14, 10, 20, 0.7);
  transition: color 180ms;
}

/* slippen løfter sig, som om man har fat i den */
#snilld-frontier a.sfc-stub:hover,
#snilld-frontier button.sfc-stub:hover,
#snilld-frontier a.sfc-stub:focus-visible,
#snilld-frontier button.sfc-stub:focus-visible {
  background: var(--sfc-inksoft);
  border-color: var(--sfc-inksoft);
  color: #fff;
  transform: rotate(-3deg) translateY(-3px);
  box-shadow: 0 12px 22px rgba(36, 20, 57, 0.3);
}

#snilld-frontier a.sfc-stub:hover small,
#snilld-frontier button.sfc-stub:hover small,
#snilld-frontier a.sfc-stub:focus-visible small,
#snilld-frontier button.sfc-stub:focus-visible small {
  color: rgba(255, 255, 255, 0.82);
}

#snilld-frontier .sfc-stub:focus-visible {
  outline: 3px solid var(--sfc-signal);
  outline-offset: 3px;
}

#snilld-frontier .sfc-stub.is-torn {
  animation: sfc-tear 520ms cubic-bezier(0.5, 0, 0.8, 0.4) both;
  pointer-events: none;
}

@keyframes sfc-tear {
  0% { transform: rotate(-3deg) translateY(-3px); opacity: 1; }
  35% { transform: rotate(-9deg) translate(10px, -8px); opacity: 1; }
  100% { transform: rotate(16deg) translate(46px, 70px); opacity: 0; }
}

#snilld-frontier .sfc-all {
  margin: 10px 0 0;
  padding: 8px 2px;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--sfc-violet);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- jeres eget kursus ---------- */

#snilld-frontier .sfc-own {
  background: var(--sfc-inksoft);
  color: #fff;
}

#snilld-frontier .sfc-own h3 {
  color: #fff;
}

#snilld-frontier .sfc-own .sfc-kind {
  color: #cdc2f8;
}

#snilld-frontier .sfc-own .sfc-tag {
  color: rgba(255, 255, 255, 0.88);
}

#snilld-frontier .sfc-own .sfc-side {
  border-top-color: rgba(255, 255, 255, 0.35);
}

#snilld-frontier .sfc-side-blank {
  display: grid;
  place-items: center;
  min-height: 90px;
}

#snilld-frontier .sfc-side-blank span {
  font-size: 54px;
  font-weight: 300;
  line-height: 1;
  color: rgba(205, 194, 248, 0.55);
}

#snilld-frontier .sfc-build {
  display: grid;
  gap: 28px;
  margin-top: 34px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 24px;
  background: var(--sfc-ink);
  color: #fff;
}

#snilld-frontier .sfc-form h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.4vw, 32px) !important;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

#snilld-frontier .sfc-form h3:focus {
  outline: none;
}

#snilld-frontier .sfc-form-lead {
  margin: 0 0 24px;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

#snilld-frontier .sfc-field {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  min-width: 0;
}

#snilld-frontier .sfc-field legend,
#snilld-frontier .sfc-field > label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 10px;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

#snilld-frontier .sfc-field small {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.66);
}

#snilld-frontier .sfc-field output {
  font-family: var(--sfc-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #cdc2f8;
}

#snilld-frontier .sfc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#snilld-frontier .sfc-chip {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

#snilld-frontier .sfc-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

#snilld-frontier .sfc-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px 9px;
  border: 1px solid rgba(205, 194, 248, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.25;
  transition: background-color 160ms, border-color 160ms, color 160ms, transform 160ms;
}

#snilld-frontier .sfc-chip:hover span {
  border-color: #fff;
  transform: translateY(-2px);
}

#snilld-frontier .sfc-chip input:checked + span {
  background: #fff;
  border-color: #fff;
  color: var(--sfc-inksoft);
  font-weight: 600;
}

#snilld-frontier .sfc-chip input:focus-visible + span {
  outline: 3px solid var(--sfc-signal);
  outline-offset: 3px;
}

#snilld-frontier .sfc-field input[type="text"],
#snilld-frontier .sfc-field input[type="email"],
#snilld-frontier .sfc-field input[type="tel"],
#snilld-frontier .sfc-field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(205, 194, 248, 0.5);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
  box-shadow: none;
}

#snilld-frontier .sfc-field input[type="text"],
#snilld-frontier .sfc-field input[type="email"],
#snilld-frontier .sfc-field input[type="tel"] {
  height: 52px;
}

#snilld-frontier .sfc-field textarea {
  resize: vertical;
  min-height: 96px;
}

#snilld-frontier .sfc-field input:focus-visible,
#snilld-frontier .sfc-field textarea:focus-visible {
  outline: 3px solid var(--sfc-signal);
  outline-offset: 2px;
  border-color: #fff;
}

#snilld-frontier .sfc-field input[type="range"] {
  width: 100%;
  max-width: 420px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: none;
  accent-color: #cdc2f8;
}

#snilld-frontier .sfc-contact {
  display: grid;
  gap: 0 16px;
}

#snilld-frontier .sfc-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#snilld-frontier .sfc-error {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(47, 107, 255, 0.2);
  border: 1px solid rgba(120, 160, 255, 0.8);
  font-size: 15.5px;
  line-height: 1.4;
  color: #fff;
}

#snilld-frontier .sfc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

#snilld-frontier .sfc-actions .sf-link {
  color: #fff;
}

#snilld-frontier .sfc-actions .sf-btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

#snilld-frontier .sfc-legal {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.66);
}

/* jeres billet: bliver til, mens man vælger */
#snilld-frontier .sfc-preview {
  align-self: start;
}

#snilld-frontier .sfc-mine {
  --sfx-rx: 3deg;
  --sfx-ry: -7deg;
}

#snilld-frontier .sfc-mine .sfc-side:before,
#snilld-frontier .sfc-mine .sfc-side:after {
  background: var(--sfc-ink);
}

#snilld-frontier .sfc-mine-topics {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

#snilld-frontier .sfc-mine-topics li {
  position: relative;
  margin: 0;
  padding-left: 16px;
  font-size: 15.5px;
  line-height: 1.35;
}

#snilld-frontier .sfc-mine-topics li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sfc-violet);
}

#snilld-frontier .sfc-stubs-mine .sfc-stub {
  min-height: 52px;
  align-items: center;
}

#snilld-frontier .sfc-stubs-mine .sfc-stub small {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--sfc-inksoft);
}

#snilld-frontier .sfc-stamp {
  align-self: flex-start;
  margin: 16px 0 0;
  padding: 5px 14px 4px;
  border: 3px solid #0f9d76;
  border-radius: 8px;
  font-family: var(--sfc-mono);
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f9d76;
  transform: rotate(-7deg);
  animation: sfc-stamp 380ms cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

@keyframes sfc-stamp {
  from { transform: rotate(-7deg) scale(2.4); opacity: 0; }
  to { transform: rotate(-7deg) scale(1); opacity: 1; }
}

#snilld-frontier .sfc-done {
  margin: 22px 0 0;
  font-size: 19px;
  line-height: 1.4;
  color: #fff;
}

/* ---------- bredere skærme ---------- */

@media (min-width: 760px) {
  #snilld-frontier .sfc-ticket {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
  }

  #snilld-frontier .sfc-side {
    border-top: 0;
    border-left: 2px dashed rgba(36, 20, 57, 0.28);
    padding: 24px 22px 22px 24px;
  }

  #snilld-frontier .sfc-own .sfc-side {
    border-left-color: rgba(255, 255, 255, 0.35);
  }

  #snilld-frontier .sfc-side:before,
  #snilld-frontier .sfc-side:after {
    left: -11px;
    right: auto;
  }

  #snilld-frontier .sfc-side:before { top: -10px; }
  #snilld-frontier .sfc-side:after { top: auto; bottom: -10px; }

  #snilld-frontier .sfc-contact {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  #snilld-frontier .sfc-list {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  #snilld-frontier .sfc-ticket {
    grid-template-columns: minmax(0, 1fr) 236px;
  }

  #snilld-frontier .sfc-stubs {
    grid-template-columns: 1fr 1fr;
  }

  #snilld-frontier .sfc-build {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
  }

  #snilld-frontier .sfc-preview {
    position: sticky;
    top: 110px;
  }

  #snilld-frontier .sfc-mine {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  #snilld-frontier .sfc-stubs-mine {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #snilld-frontier .sfc-ticket,
  #snilld-frontier .sfc-stub {
    transition: none;
    transform: none;
  }

  #snilld-frontier .sfc-stub.is-torn,
  #snilld-frontier .sfc-stamp {
    animation: none;
  }
}

/* Nyhedsbrevet står alene, når kurserne har fået deres egen sektion. */
#snilld-frontier .sf-meet-solo .sf-meet-grid {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

/* Billetten til eget kursus fylder hele rækken, og tiden på en slip står på én linje. */
#snilld-frontier .sfc-stub small {
  white-space: nowrap;
}

@media (min-width: 1100px) {
  #snilld-frontier .sfc-own {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 236px;
  }

  #snilld-frontier .sfc-own .sfc-main {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 40px;
  }

  #snilld-frontier .sfc-own .sfc-kind {
    flex: 0 0 100%;
    margin-bottom: 8px;
  }

  #snilld-frontier .sfc-own h3 {
    margin: 0;
  }

  #snilld-frontier .sfc-own .sfc-tag {
    flex: 1 1 280px;
    max-width: 30em;
  }

  #snilld-frontier .sfc-own .sfc-foot {
    margin: 0;
    padding: 0;
  }
}
#snilld-frontier .sfc-stubs-mine .sfc-stub small {
  white-space: normal;
}